Chalk API & MCP Docs
Connect any AI agent or script to your Instagram Reels, scheduled posts, transcripts, watch-time stats, and auto-DMs using MCP or REST.
Authentication
Pass your CHALK_API_KEY as a Bearer token in the Authorization header on /mcp and /api/*.
Connect an agent
Chalk exposes a stateless Streamable HTTP MCP server at /mcp. Choose your client below and copy the configuration.
Tool reference
Every tool below is discovered automatically when an agent connects to /mcp (or via local stdio with npm run mcp).
list_automationscreate_automationtoggle_automationdelete_automationlist_recent_runsqueued, sent, retrying, failed).get_queue_statussync_instagram_poststranscribe_postsget_post_analyticsviews, saves, shares, reach, likes, or recent, including full spoken transcripts.create_draftmediaUrl, scheduledFor, shareToFeed, thumbOffsetMs, and optional autoDm to activate a Comment-to-DM trigger on publish).list_draftsupdate_draftpublish_draft_nowDRY_RUN).delete_draftREST API endpoints
All programmatic endpoints accept JSON and authenticate via Authorization: Bearer <CHALK_API_KEY>.
/api/automations/api/automations/api/automations/:id/api/automations/:id/api/uploadsstorageKey./api/drafts?status=draft|scheduled|published|failed)./api/draftsautoDmConfig./api/drafts/:id/api/drafts/:id/publish/api/drafts/:id/retry/api/drafts/:id/api/posts/api/sync/api/transcribe?limit=5/api/queue/api/simulate/comment/api/simulate/dmSend queue & retries
Incoming webhooks at /webhooks/instagram verify Meta's X-Hub-Signature-256 header, deduplicate per user, enqueue matching replies into SQLite (send_queue), and respond 200 OK immediately.
The background worker paces outgoing Meta API calls at 1 job every 500ms and retries transient rate-limit failures up to 5 times with exponential backoff (15s → 60s → 5m → 15m → 60m), so comment spikes don't drop DMs.