API reference
Seventeen tools, reachable three ways: as native Model Context Protocol tools, as plain JSON over REST, or through a generated OpenAPI spec. Same handlers, same payloads, whichever door you use.
On this page
Base URLs
| Transport | Endpoint | Use it for |
|---|---|---|
| MCP | https://mcp.postmcpai.com/mcp | Claude, ChatGPT, Cursor, Claude Code and any streamable-HTTP MCP client. |
| REST | https://api.postmcpai.com/api/tools/:name | Plain JSON from your own code, scripts or automations. |
| OpenAPI | https://api.postmcpai.com/openapi.json | Import into a ChatGPT Custom GPT or any OpenAPI tooling. |
Every request needs an API key from the AI Integration tab of the dashboard. See Authentication for where it goes.
A first request
Schedule a post to two named profiles. The ids come from get_connected_accounts; the response returns one post per profile, each with its own id.
curl -X POST "https://api.postmcpai.com/api/tools/create_post" \
-H "Content-Type: application/json" \
-H "x-api-key: $POSTMCPAI_API_KEY" \
-d '{
"content": "Shipping the PostMCP AI integration for Claude Desktop and Cursor today. π",
"targetAccounts": [
{
"platform": "linkedin",
"profileId": "lin_7741903"
},
{
"platform": "twitter",
"profileId": "tw_1293847",
"content": "PostMCP AI now plugs straight into Claude Desktop and Cursor. Ship posts from your editor. π"
}
],
"publishImmediately": false,
"scheduleDate": "2026-08-02",
"scheduleTime": "10:00",
"timezone": "Asia/Kolkata",
"mediaUrl": "https://postmcpai.com/assets/banner.png"
}'All tools
Read tools are safe to call unattended. Write tools change the queue and, for create_post and publish_post_now, spend credits.
Account
Who the key belongs to and which workspaces it can reach.
Channels
Connected profiles and their health.
Publishing
The queue: read it, dry-run against it, and create, move, retry or cancel posts.
list_postsreadRead the publishing queueget_postreadRead one post in fullpreflight_postreadDry-run before you spend a creditcreate_postwriteSchedule or publish a postupdate_postwriteEdit a queued postpublish_post_nowwriteJump the queuedelete_postwriteCancel and removereschedule_postwriteMove a post to another slotreset_stuck_postwriteRelease a post stuck mid-publish
Analytics
How a post did, or how a profile stands, read from its network on request.
Media
Generate images to attach to posts.
Batching
Run several tools in one request.