Social media posting API that tells you why a post failed
Postsure is a social media posting API for developers. It is a unified social media API: one call posts to every account you connect. Each post gets a receipt with every account's live link, or the reason in plain English. When a post fails, Postsure retries only if that is safe, and sends an email and a signed webhook.
7 days free on the plan you pick. Card needed, nothing charged before day 7. Cancel any time.
Send a post with one API call
Put the account ids in account_ids, up to 20, and the text in text.
curl https://api.postsure.dev/v1/posts \ -H "Authorization: Bearer $POSTSURE_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "account_ids": ["<account id>", "<another account id>"], "text": "We just shipped a new release." }'Example response202
{ "id": "cmgwb1n6e000bl808v5j0k8ry", "status": "queued", "text": "We just shipped a new release.", "targets": [ { "account_id": "cmgw7k2xq0003l808x9f2h1ab", "account": { "network": "<network>", "username": "postsure_demo" }, "status": "queued", "url": null }, { "account_id": "cmgw7m4ta0005l808q3d7c2ze", "account": { "network": "<another network>", "username": "postsure_news" }, "status": "queued", "url": null } ]}202 means the post is saved and in the queue. Each account gets its own target, with its own status, live link and tries.
The same call in TypeScript:
const res = await fetch("https://api.postsure.dev/v1/posts", { method: "POST", headers: { Authorization: `Bearer ${process.env.POSTSURE_KEY}`, "Content-Type": "application/json", "Idempotency-Key": crypto.randomUUID(), }, body: JSON.stringify({ account_ids: ["<account id>", "<another account id>"], text: "We just shipped a new release.", }),});const post: { id: string; status: string } = await res.json(); // status: "queued"Send posts covers threads, images, video, scheduled posts and drafts.
What happens when a post fails
Each account has its own result. When one fails, the receipt says why and what happens next.
curl https://api.postsure.dev/v1/posts/<post id> \ -H "Authorization: Bearer $POSTSURE_KEY"Example receipt, not a real run200
{ "id": "cmgwb1n6e000bl808v5j0k8ry", "status": "failed", "targets": [ { "account": { "network": "<network>", "username": "postsure_demo" }, "status": "failed", "url": null, "error_category": "content_policy", "error_reason": "The network does not allow posting the same text twice.", "retry_at": null, "attempts": [ { "number": 1, "outcome": "failed", "http_status": 403, "started_at": "2026-10-18T12:00:01.512Z", "finished_at": "2026-10-18T12:00:01.904Z" } ] } ]}The network is left out until one is listed below.
error_category names the kind of error, for your code. error_reason says why in plain English, for your user. attempts keeps every try, with its HTTP status and timing.
Postsure never sends a failed post again by itself. Fix what the reason names, then retry that account. When the text or a file must change, make a new post.
The four results
- published
- The post is live on that account.
- waiting
- A try failed for a reason that can pass, like a rate limit or the network being down.
- failed
- The network refused the post, or Postsure stopped trying. The reason says which.
- unconfirmed
- Postsure sent the post and the network did not answer. It may be live.
When Postsure tries again
| When | What Postsure does |
|---|---|
| The network is busy (rate limit) | Tries again after 1 h, 2 h and 4 h, or at the network's own reset time. |
| The network fails and nothing was posted | Tries again after 1 min, 5 min and 15 min, or at the time the network names. |
| A day has passed | Starts no try by itself more than 24 hours after the first try, or after a retry you asked for. |
| The post may be live | No retry by itself. It becomes unconfirmed, and you check the account. |
How Postsure tells you
When a post fails, you get an email. A webhook, if you add one, also gets a signed event with Standard Webhooks headers.
post.waiting- A try failed, and the post waits for its next try.
post.published- Live on every account.
post.partially_failed- Live on some accounts, not on others.
post.failed- Failed on every account. Each target says why.
post.unconfirmed- May be live: the network's answer was lost.
A delivery gets up to 8 tries, over about 9 hours. Read Receipts and retries for every status, and Webhooks for the signature check.
Can it post the same thing twice?
Not by itself. A post that may be live is sent again only when you ask, after you check the account.
- A post that may be live is never sent again by itself. Its status is
unconfirmed, and you check the account. - Send an
Idempotency-Keywith each new post. If the call times out, send it again with the same key. You get the saved post back, not a second one. - A retry of a thread sends only the parts that are not live yet.
Which networks does it post to?
A network is listed here after a real post works on our live server.
- Facebook Pages
- Threads
- TikTok
- YouTube
- X
- Bluesky
- Telegram
- Discord
Can my AI agent use it?
Yes. Postsure is also an MCP server, the way AI tools call outside services.
An agent can see your accounts and posts, upload media, make drafts and publish them. In Claude Code, add it with one command:
claude mcp add --transport http postsure https://mcp.postsure.dev/mcp \ --header "Authorization: Bearer <your API key>"An agent cannot post in one step. It makes a draft first, and Postsure tells it to post only after you say yes. A post is sent once.
Price
Pay for accounts, not for posts. Both plans have unlimited posts, the same networks and the same features.
7 days free on the plan you pick. Card needed, nothing charged before day 7. Cancel any time.
Both plans include
- Analytics
- API and MCP server
- Failure emails
- Signed webhooks
- Receipts
Build it yourself, or use Postsure
What you take on with each network's own API, and what Postsure does instead.
| If you build it yourself | With Postsure |
|---|---|
| Get API access on each network. Some review your app first. | Your users connect their accounts through Postsure. You need no app of your own on each network. |
| Keep every login working, and notice when one breaks. | Postsure keeps the logins. A broken account becomes needs_reconnect, with the reason. |
| Learn each network's rules for text, files and sizes. | Postsure checks the text and files for every network before it saves the post. |
| Decide when a retry is safe, so no post goes out twice. | Postsure retries only rate limits and network errors, and only when the post cannot already be live. |
| Turn each network's error codes into plain words. | Each failed account has error_category for your code and error_reason in plain English. |
Questions
Short answers for developers who are choosing a posting API.
Is there a free social media API?
Postsure has no free plan. Both plans start with a 7-day free trial on the plan you pick, with a card. You can also call each network's own API yourself, but then you build and keep each one.
What is a unified API for social media?
One API in front of many networks. You learn one set of calls, fields and errors, and it talks to each network for you. With Postsure, one post goes to many accounts and comes back with one receipt.
How does Postsure tell me a post failed?
Three ways. The receipt gives each account's status and reason. You get an email when a post fails. And a webhook, if you add one, gets a signed post.failed, post.partially_failed or post.unconfirmed event.
Can I post to several networks in one call?
Yes. Put up to 20 account ids in account_ids, on different networks if you like. Postsure checks the post against each account's network first. Then each account gets its own result.
Does it work with n8n or Make?
Any tool that can send an HTTP request can call a REST API, and Postsure is one. Send the same method, headers and JSON body as the curl sample above.
Is there an SDK?
No. Postsure is a plain REST API, described in an OpenAPI spec, and an MCP server for AI tools. The samples on this page need no Postsure package.