Pages in Guides
Quickstart
From a key to a published post in five calls. Connecting an account takes one visit in the browser.
Public REST and MCP traffic is hosted on https://api.ampost.io. The dashboard, OAuth callbacks, and billing/session flows stay on https://ampost.io, where the dashboard calls the same endpoints with its sign-in session. Integrations should use the API host.
1
Get your API key
Sign up at ampost.io, open Setup → API keys in the dashboard, and create a new key. Save the raw key: it is shown only once.
2
See the platforms
GET /api/platforms returns each platform's rules (text limit, media, scheduling) and its availability. LinkedIn and TikTok are coming soon. They come back as coming_soon; pick an available one.terminal
curl https://api.ampost.io/api/platforms \
-H "Authorization: Bearer amp_live_YOUR_KEY"3
Connect a social account
POST /api/accounts/connect returns a connectUrl to open in a browser; poll GET /api/accounts/connect/{connectRequestId} until it is done. Or connect in the dashboard under Setup → Connections. New accounts land in your default platform set (a group of accounts, one per platform), which a post uses when its target has no platformSetId.4
Check the post
POST /api/posts/validate takes the body you will create and answers what would fail, per platform, without creating or counting anything.terminal
curl -X POST https://api.ampost.io/api/posts/validate \
-H "Authorization: Bearer amp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"targets": [
{
"platforms": [
"bluesky"
]
}
],
"text": "Hello from the Ampost API!",
"publishNow": true
}'5
Publish it
The same body to Each account's outcome is in
POST /api/posts. "publishNow": true publishes it in the same call; without it the post is a draft.terminal
curl -X POST https://api.ampost.io/api/posts \
-H "Authorization: Bearer amp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"targets": [
{
"platforms": [
"bluesky"
]
}
],
"text": "Hello from the Ampost API!",
"publishNow": true
}'platformPosts; read it again with GET /api/posts/{postId} and retry a failed one with POST /api/posts/{postId}/retry. To be told instead of polling, add a webhook.