Social Media Scheduling API
Queue posts for X, Instagram, Facebook, TikTok, LinkedIn, YouTube, Pinterest and Google Business at an exact time in any time zone. Move, edit or cancel until it goes out.
- Add one field to any post to schedule it
- A local time plus an IANA time zone
- Reschedule or cancel until it goes out
- Same results, refunds and webhooks as instant posts
const pk = new Postkey(process.env.POSTKEY_API_KEY);
await pk.posts.create({
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"
});- Instagramscheduled
- LinkedInscheduled
- Xscheduled
Queued for Dec 1, 09:00 New York time
Three steps to your first scheduled post
- 1
Connect accounts
Your customer signs in with each network's login. You get an account ID per profile, Page or channel.
- 2
Get the account id
List the connected accounts for your customer's profile. Each id is an accountId.
- 3
Schedule
Send the post with scheduledFor and timezone. It's queued now and published at that time, with one webhook for the result.
One request, one clear response
The same request as posting now, plus a time. The response tells you it's queued, per platform.
1POST https://api.postkey.dev/v1/posts2x-access-key: pk_live_…3Content-Type: application/json4 5{6 "content": "Doors open at 9. See you there.",7 "mediaItems": [8 {9 "type": "image",10 "url": "https://cdn.example.com/launch.png"11 }12 ],13 "platforms": [14 {15 "platform": "instagram",16 "accountId": "int_ig_123"17 },18 {19 "platform": "linkedin",20 "accountId": "int_li_456"21 },22 {23 "platform": "twitter",24 "accountId": "int_x_789"25 }26 ],27 "scheduledFor": "2026-12-01T09:00:00",28 "timezone": "America/New_York"29}202 · scheduled
Queued in the account's time zone. One webhook when it goes out.
{
"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
}
]
}What the scheduling API handles for you
One extra field
Any post becomes a scheduled post with scheduledFor and timezone. Formats, media and options are the same as posting now.
Change your mind
Move the time or cancel the post with one call, any time before it goes out.
Checked when queued
Text and media are checked when you schedule, so you find problems now, not at 9am on launch day.
See the queue
List scheduled posts, edit their content or accounts, and credits adjust to match.
Told both times
A post.scheduled webhook when it's queued, and post.published, post.partial or post.failed when it goes out.
Cancel and get credits back
Cancelling moves the post back to draft and returns its credits. Failed platforms at publish time are refunded too.
Scheduling API for every platform
Each platform has its own page with the formats, the rules Postkey checks, and a request you can copy.
- X Scheduling APIText · Image · Video · Thread
- Instagram Scheduling APIFeed post · Reel · Story · Carousel
- Facebook Scheduling APIText · Photo · Video
- TikTok Scheduling APIVideo · Photo
- LinkedIn Scheduling APIText · Image · Document
- YouTube Scheduling APIVideo
- YouTube Shorts Scheduling APIShort
- Pinterest Scheduling APIPin
- Google Business Scheduling APIUpdate post · Offer · Event
Built in
Connect links under our app or yours, partial success with automatic refunds, and signed webhooks. On every plan.
- Connect accountsConnect links under our app or yours, a profile per client.How it works
- Media uploadsUpload once, attach to any post. Each network's upload flow is handled.How it works
- Retries & refundsPartial success, automatic refunds, retry only what failed.How it works
- WebhooksOne signed event per post, plus account alerts.How it works
Works with your stack
Your code
Node and Python SDKs with the same calls, or plain REST from anything that speaks HTTP.
- Node
- Python
- {}REST
No-code tools
Call the REST API from an HTTP step in n8n, Make or Zapier. One request posts to every network.
- n8n
- Make
- Zapier
AI agents & MCP
The MCP server lets Claude, Cursor and other agent tools publish and schedule posts, and read the results.
- MCP server
Scheduling API questions
Something not here? Email hello@postkey.dev.
How do I schedule a post?
Send the normal post request with scheduledFor (a local time) and timezone (for example America/New_York). The response says it's scheduled.
Can I cancel or move a scheduled post?
Yes, until it goes out. Reschedule with one call, or cancel it and it goes back to draft.
When are credits charged for scheduled posts?
When you schedule. If you cancel, or a platform fails at publish time, those credits come back.
Which platforms support scheduling?
All of them: X, Instagram, Facebook, TikTok, LinkedIn, YouTube, YouTube Shorts, Pinterest and Google Business.
What if the platform rejects it at publish time?
The other platforms still go out, the failed one is refunded, and the webhook has a plain reason. Retry only the failed platform with one call.
What does it cost?
Scheduling costs the same credits as posting now. See the pricing page.
Schedule once. Get told when it goes out.
Get a key, connect an account, send your first request.
Free while it's early. Read the docs