Scheduling
Publish later, then list, move, edit or cancel scheduled posts.
Schedule a post
Send scheduledFor and timezone instead of publishNow. scheduledFor is a local time in that time zone. timezone is an IANA name like America/New_York and defaults to UTC.
curl -X POST https://api.postkey.dev/v1/posts \
-H "x-access-key: $POSTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Doors open at 9. See you there.",
"mediaItems": [{ "type": "image", "url": "https://cdn.example.com/launch.png" }],
"platforms": [
{ "platform": "instagram", "accountId": "int_ig_123" },
{ "platform": "linkedin", "accountId": "int_li_456" },
{ "platform": "twitter", "accountId": "int_x_789" }
],
"scheduledFor": "2026-12-01T09:00:00",
"timezone": "America/New_York"
}'{
"success": true,
"postId": "post_4d7a1",
"status": "scheduled",
"scheduledFor": "2026-12-01T14:00:00Z",
"platforms": [
{ "platform": "instagram", "accountId": "int_ig_123", "success": true },
{ "platform": "linkedin", "accountId": "int_li_456", "success": true },
{ "platform": "twitter", "accountId": "int_x_789", "success": true }
]
}Credits are charged when you schedule. If a platform fails at publish time, its credits come back, the same as publishing now.
Manage scheduled posts
| Call | What it does |
|---|---|
GET /v1/posts/scheduled | List scheduled posts. |
PATCH /v1/posts/scheduled/{postId} | Move it to a new time. |
PUT /v1/posts/scheduled/{postId} | Edit content, media, accounts or time. Credits are adjusted to match. |
DELETE /v1/posts/scheduled/{postId} | Cancel it. The post goes back to draft and its credits come back. |
Reschedule
curl -X PATCH https://api.postkey.dev/v1/posts/scheduled/post_4d7a1 \
-H "x-access-key: $POSTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "scheduledFor": "2026-12-02T09:00:00", "timezone": "America/New_York" }'Know when it went out
Subscribe to post.published, post.partial and post.failed with a webhook. Set onlyScheduledPosts: true on the subscription if you only care about scheduled posts. post.scheduled fires when a post is queued.
How far ahead you can schedule: details before launch.