Developer APIREST, CLI and MCP

Build on the MagicSync API

Everything the interface can do is available to scripts and AI assistants: create posts, queue them, inspect results and read analytics with scoped keys and audit logging.

MagicSync API keys and endpoint documentation

Designed for Automation

What you can do with MagicSync

Stable shapes, explicit scopes and logs that answer "who changed this?".

Scoped API Keys
Create read-only or full-access keys per workspace. Revoke a key instantly without touching the rest of your automation.
REST Resource Groups
Predictable JSON endpoints for posts, businesses, accounts, media, analytics, templates and the agent runtime.
MCP Server
Connect Claude or any MCP client to discover tools and resources, then draft and schedule posts through natural language.
Audit Every Call
Each request is attributed to a key and recorded, so you can see which automation created or changed a post.

Authentication

Create a key at API keys and send it as a bearer token:

curl https://magicsync.dev/api/v1/posts \
  -H "Authorization: Bearer $MAGICSYNC_API_KEY"

Keys belong to a user and are limited to that user's businesses. Read-only keys can list and fetch; full-access keys can create, update, schedule and publish.

Endpoint groups

GroupBase pathTypical use
Posts/api/v1/postsCreate, update, schedule and inspect posts
Businesses/api/v1/businessWorkspaces, profiles and brand context
Accounts/api/v1/accountsConnected social accounts and status
Media/api/v1/mediaUpload and reference images and video
Analytics/api/v1/statsReach, engagement and post performance
Templates/api/v1/templatesReusable post and variable templates
Bulk scheduler/api/v1/bulk-schedulerCSV imports and batch creation
Agent/api/v1/agentChat sessions, capabilities and runs
API keys/api/v1/api-keysCreate, list and revoke keys
MCP/mcpTool and resource discovery for AI clients

Exact request bodies, query parameters and response schemas are documented per endpoint in the OpenAPI description exposed by the running instance.

MCP in one minute

Point an MCP client at https://magicsync.dev/mcp, authenticate with a key or OAuth, and the assistant can list tools and resources. Approval-gated actions stay gated: the assistant can draft and queue, but publishing follows the permissions on the key.

CLI

The companion CLI wraps the same API for terminal workflows such as bulk text imports and scheduled checks. See the CLI guide for a walkthrough.

API FAQ

Authentication, limits and safety for programmatic access.

Still have questions? Contact us

Create Your First API Key

Generate a scoped key and make your first request in a couple of minutes.