Instagram Posting API
Publish feed posts, Reels, Stories and carousels without building the Instagram API integration yourself.
- Feed posts, Reels, Stories and carousels
- Captions and media checked before Instagram sees them
- Business and Creator accounts, connected through Instagram's login
- A webhook when Instagram finishes processing video
const pk = new Postkey(process.env.POSTKEY_API_KEY);
await pk.posts.create({
content: "New colours just dropped. Which one's yours?",
mediaItems: [
{
type: "image",
url: "https://cdn.example.com/colours.jpg"
}
],
platforms: [
{
platform: "instagram",
accountId: "int_ig_123"
}
],
publishNow: true
});- Instagrampublished
1 call · result per platform
Your first Instagram post in three steps
- 1
Connect Instagram
Your customer signs in through Instagram's own login. You get an account ID, never a password.
- 2
Get the account id
List connected accounts. The id of the new account is the accountId you post with.
- 3
Post
Send the post to /v1/posts with that accountId. The Instagram result comes back in the response and by webhook.
Every Instagram format, one endpoint
Pick a format to see the exact request and what comes back. Options that only make sense on Instagram sit under "instagram".
A single image post on the profile grid.
1POST https://api.postkey.dev/v1/posts2x-access-key: pk_live_…3Content-Type: application/json4 5{6 "content": "New colours just dropped. Which one's yours?",7 "mediaItems": [8 {9 "type": "image",10 "url": "https://cdn.example.com/colours.jpg"11 }12 ],13 "platforms": [14 {15 "platform": "instagram",16 "accountId": "int_ig_123"17 }18 ],19 "publishNow": true20}200 · published
Live on Instagram. If it had failed, its credits would come back.
{
"success": true,
"postId": "post_3k9d2",
"status": "published",
"platforms": [
{
"platform": "instagram",
"accountId": "int_ig_123",
"success": true,
"platformPostUrl": "https://www.instagram.com/p/…"
}
]
}Everything you need for Instagram posting
Checked against Instagram's rules
Before anything is sent, Postkey checks it against Instagram's published limits:
Four formats, one field
One image is a feed post, a video is a Reel, several items make a carousel, and contentType story makes a Story. The rest of the request stays the same.
Professional accounts
Instagram's API only publishes to Business and Creator accounts. Postkey tells you up front if a connected account can't be posted to.
Video processing tracked
Instagram processes Reels and video before publishing. Postkey waits for it and sends a webhook when the post is live or has failed.
Files or URLs
Instagram fetches media from a public URL. Send a URL, or upload the file to Postkey and it hosts it for the publish step.
Inside Instagram's daily limit
Instagram limits how many API posts an account can publish in a day. Postkey queues posts to stay inside it.
Also for Instagram
Built in
Connect, publish, get told
Your users connect Instagram through a connect link. If Instagram fails inside a multi-network post, the others still go out and the Instagram credits come back.
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
Beyond Instagram
Same request shape on every platform. Add an account ID and the post goes there too.
- X Posting APIText · Image · Video · Thread
- You're hereInstagram Posting APIFeed post · Reel · Story · Carousel
- Facebook Posting APIText · Photo · Video
- TikTok Posting APIVideo · Photo
- LinkedIn Posting APIText · Image · Document
- YouTube Posting APIVideo
- YouTube Shorts Posting APIShort
- Pinterest Posting APIPin
- Google Business Posting APIUpdate post · Offer · Event
Instagram posting questions
Something not here? Email hello@postkey.dev.
What can I publish to Instagram?
Feed posts, Reels, Stories and carousels. The media you send decides the format, and contentType story makes a Story. The endpoint is the same.
Does it work with personal Instagram accounts?
No. Instagram's publishing API only works with professional accounts (Business or Creator). Switching is free in the Instagram app.
Why is my Reel 'processing' instead of 'posted'?
Instagram processes video before it publishes. The API call returns right away, and a webhook follows when the Reel is live or if Instagram rejects it, with the reason.
Do I need to host my media somewhere?
Instagram pulls media from a public URL. If you'd rather not host files, upload them to Postkey and it serves them for the publish step.
Can I post the same thing to Facebook and TikTok?
Yes. List more accounts in the same request. Each platform gets its own result, so one failure doesn't hide the others.
Can I schedule Instagram posts instead?
Yes. Add scheduledFor to the same request. See the Instagram Scheduling API page for details.
Post to Instagram for every customer.
Get a key, connect an account, send the request above.
Free while it's early. Read the docs