Schedule social media posts with the Ampost API
By ArturPublished Updated
Ampost schedules posts on eleven social networks from one REST request: set a future scheduledFor time, or let a posting queue pick the next free slot. The same operations are MCP tools, so an AI agent can schedule posts too.
Scheduling and queues need the Pro plan or higher (403 UPGRADE_REQUIRED otherwise). Every endpoint and field is in the full API reference; publishing right away is in the Publishing API overview.
Schedule a post for a set time
Send POST /api/posts with scheduledFor, an ISO 8601 timestamp, instead of publishNow, and Ampost publishes the post at that time. Without either, the new post is a draft.
curl -X POST https://api.ampost.io/api/posts \
-H "Authorization: Bearer amp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"targets": [
{
"platforms": [
"facebook",
"threads"
]
}
],
"text": "Webinar starts in one hour.",
"linkUrl": "https://example.com/webinar",
"scheduledFor": "2027-01-14T15:00:00Z"
}'To publish a scheduled post now, call POST /api/posts/:postId/publish:
curl -X POST https://api.ampost.io/api/posts/$POST_ID/publish \
-H "Authorization: Bearer amp_live_YOUR_KEY"Use a posting queue
Each platform set has one queue: weekly slots, such as Monday 09:00 and Friday 17:00, in an IANA time zone. Create a post with useQueue: true instead of scheduledFor and exactly one target, and Ampost schedules it in that set's next free slot. The post's queuePlatformSetId names the queue.
curl -X POST https://api.ampost.io/api/posts \
-H "Authorization: Bearer amp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"targets": [
{
"platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
"platforms": [
"linkedin",
"threads"
]
}
],
"text": "Tip of the week: schedule once, post everywhere.",
"useQueue": true
}'Slots follow the time zone's daylight saving changes. A slot is taken while a queued post is scheduled at its time; rescheduling, publishing or deleting the post frees it. Changing the slots does not move posts already in the queue. An empty queue answers 409 QUEUE_EMPTY, and queues need the Pro plan or higher (403 UPGRADE_REQUIRED).
Read a set's queue with GET /api/platform-sets/:platformSetId/queue:
curl -X GET https://api.ampost.io/api/platform-sets/$PLATFORM_SET_ID/queue \
-H "Authorization: Bearer amp_live_YOUR_KEY"Set its time zone or slots with PATCH /api/platform-sets/:platformSetId/queue; slots replaces the whole list:
curl -X PATCH https://api.ampost.io/api/platform-sets/$PLATFORM_SET_ID/queue \
-H "Authorization: Bearer amp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"timezone": "Europe/Warsaw",
"slots": [
{
"day": "monday",
"time": "09:00"
},
{
"day": "wednesday",
"time": "12:30"
},
{
"day": "friday",
"time": "17:00"
}
]
}'Both answer with the queue:
{
"platformSetId": "0b6e4d2a-9c3f-4e1b-8a7d-5f2c1e9b3d40",
"timezone": "Europe/Warsaw",
"slots": [
{
"day": "monday",
"time": "09:00"
},
{
"day": "wednesday",
"time": "12:30"
},
{
"day": "friday",
"time": "17:00"
}
],
"updatedAt": "2026-10-06T09:00:00.000Z"
}Time zones
scheduledFor is an absolute timestamp: give it with a Z or an offset, and the post publishes at that instant wherever your users are. Queue slots are local times in the queue's IANA time zone (timezone, such as Europe/Warsaw), so a Monday 09:00 slot stays at 09:00 local time when daylight saving time starts or ends.
Media in scheduled posts
For a scheduled post, Ampost copies the media from your URLs into its own storage when you create the post, so temporary media URLs don't have to last until publish time. The LinkedIn and Threads pages say the same for those networks.
Which networks can be scheduled
All eleven networks Ampost publishes to take scheduled posts. Each network's page has its details. LinkedIn and TikTok are coming soon.
| Network | Scheduling | Notes |
|---|---|---|
Yes, with scheduledFor | Posts are processed at the scheduled time; Ampost refreshes Instagram long-lived tokens before they expire. | |
Yes, with scheduledFor | Ampost refreshes Facebook long-lived tokens so scheduled jobs don't fail on routine token expiry. | |
| LinkedInComing soon | Yes, with scheduledFor | Member-profile posts only, not organization or Page posts. Scheduled media is copied into Ampost's storage. |
| TikTokComing soon | Yes, with scheduledFor | Creator photo and video posts with explicit media descriptors; the media is copied into Ampost's storage when the post is created. |
| Threads | Yes, with scheduledFor | Media is stored in Ampost's storage before the scheduled job publishes. |
| X | Yes, with scheduledFor | Ampost copies the media to its storage. X is on the Max and Scale plans only, and the X allowance is used when the post publishes. |
| YouTube | Yes, with scheduledFor | Ampost stores the video and uploads it at the scheduled time. |
Yes, with scheduledFor | Ampost stores the media and creates the Pin at the scheduled time. | |
| Bluesky | Yes, with scheduledFor | Ampost stores the images or video and opens a fresh Bluesky session if the old one expired. |
| Telegram | Yes, with scheduledFor | Ampost stores the media and the bot posts it at the scheduled time. |
| Discord | Yes, with scheduledFor | Ampost stores the attachments and posts the message at the scheduled time. |
Schedule from an AI agent
The same operations are MCP tools: posts_create creates a post with scheduledFor or useQueue, and queue_get and queue_update read and change a queue. Connect your agent with Set up the MCP server.