A posting API and MCP server. Same rules for both.
One request, one version per account, checked against each platform's rules, with a status and a live URL for every account. Your code calls REST; your agent calls MCP.
Built for Instagram, TikTok, Facebook Pages, LinkedIn, YouTube, Pinterest and X. None is open for publishing yet: each one opens after that platform approves Postiefy's app. Where each platform stands
Postiefy is invite-only for now. Join the waitlist and we will write when your spot opens.
Auth
API keys
A person creates a key in the dashboard and sees it once. Send it as Authorization: Bearer pfy_live_…, to REST and to the MCP server alike. Each key has a mode, which the person must pick (the API has no default), and, optionally, a list of the accounts it may post to.
OAuth 2.1 for MCP clients
A client that supports remote servers finds everything from https://api.postiefy.com/.well-known/oauth-protected-resource/mcp. Client ID Metadata Documents and Dynamic Client Registration are supported. The client sends the person to the consent page in the dashboard, where they sign in and pick the workspace, the mode and the accounts. The page starts on needs_approval and offers publish only to owners and admins. The connection is a key underneath, with the same rules.
Modes
drafts_only: everything the key creates is a draft a person sends out.needs_approval: a post the key sends out waits for a person to approve it in the dashboard.publish: posts go out at their time.
Revoke a key or a connection in the dashboard and it stops working within a minute; its posts stay. A mode cannot be changed in place: revoke and create a new one.
# REST
GET https://api.postiefy.com/v1/channels
Authorization: Bearer pfy_live_...
# MCP, with OAuth (the client finds it from here)
https://api.postiefy.com/.well-known/oauth-protected-resource/mcp
# MCP, without OAuth
POST https://api.postiefy.com/mcp
Authorization: Bearer pfy_live_...Request and response
One post, several accounts. Each target may carry its own overrides and its own content. Without scheduledAt or publishNow the post is saved as a draft.
POST /v1/posts
Authorization: Bearer pfy_live_...
Idempotency-Key: sat-sourdough-2026-12-05
Content-Type: application/json
{
"content": {
"text": "Saturday sourdough is back. Out of the oven at 8.",
"mediaIds": [
"00000000-0000-4000-8000-000000000002"
],
"link": "https://example.com/menu"
},
"targets": [
{
"channelId": "00000000-0000-4000-8000-0000000000a1",
"overrides": {}
},
{
"channelId": "00000000-0000-4000-8000-0000000000a2",
"overrides": {},
"content": {
"text": "Saturday sourdough is back. Out of the oven at 8, ask for a warm one."
}
}
],
"scheduledAt": "2026-12-05T08:00:00+01:00",
"timezone": "Europe/Warsaw",
"disclosure": {
"aiGenerated": false,
"paidPartnership": false,
"brandedContent": false,
"yourBrand": false
}
}HTTP/1.1 201 Created
{
"success": true,
"data": {
"id": "00000000-0000-4000-8000-000000000001",
"status": "needs_approval",
"scheduledAt": "2026-12-05T07:00:00.000Z",
"timezone": "Europe/Warsaw",
"content": {
"text": "Saturday sourdough is back. Out of the oven at 8.",
"mediaIds": [
"00000000-0000-4000-8000-000000000002"
],
"link": "https://example.com/menu"
},
"disclosure": {
"aiGenerated": false,
"paidPartnership": false,
"brandedContent": false,
"yourBrand": false
},
"source": {
"kind": "api_key",
"id": "00000000-0000-4000-8000-0000000000c1"
},
"targets": [
{
"id": "00000000-0000-4000-8000-0000000000b1",
"channelId": "00000000-0000-4000-8000-0000000000a1",
"status": "pending",
"attempt": 0,
"overrides": {
"type": "post"
},
"externalPostId": null,
"externalUrl": null,
"error": null,
"publishedAt": null,
"content": null,
"confirmation": null
},
{
"id": "00000000-0000-4000-8000-0000000000b2",
"channelId": "00000000-0000-4000-8000-0000000000a2",
"status": "pending",
"attempt": 0,
"overrides": {
"type": "post"
},
"externalPostId": null,
"externalUrl": null,
"error": null,
"publishedAt": null,
"content": {
"text": "Saturday sourdough is back. Out of the oven at 8, ask for a warm one."
},
"confirmation": null
}
],
"revision": 0,
"brandId": null,
"createdAt": "2026-12-01T10:15:00.000Z",
"updatedAt": "2026-12-01T10:15:00.000Z"
},
"meta": {
"timestamp": "2026-12-01T10:15:00.000Z",
"requestId": "00000000-0000-4000-8000-0000000000d1",
"version": "v1"
}
}Sample data. Every id is invented. The key here is in needs_approval mode, so the post waits for a person. Each target's overrides come back with the platform's defaults filled in.
Every answer has the same envelope
Success is {success: true, data, meta}, with meta holding timestamp, requestId and version. Lists add pagination. An error is {success: false, error: {code, message, details}} with the HTTP status of its code. An MCP tool takes the fields of its route's body and query, with path ids and Idempotency-Key as arguments (postId, idempotencyKey). A post, an account or a media file has the same fields in both, but a tool wraps its answer in a named object, such as create_post's {post, replayed}, and has no envelope. A failed tool call is a result with isError: true and structuredContent.error: {code, message, hint, details}.
HTTP/1.1 409 Conflict
{
"success": false,
"error": {
"code": "CONFLICT",
"message": "...",
"details": null,
"path": "/v1/posts/00000000-0000-4000-8000-000000000001",
"timestamp": "2026-12-01T10:16:00.000Z"
},
"meta": {
"requestId": "00000000-0000-4000-8000-0000000000d1",
"version": "v1"
}
}Validate first
POST /v1/posts/validate takes the same body as a create and saves nothing. It answers valid and, per account, every issue its platform would raise.
Each issue has a stable code, the field it is about (a dotted path such as overrides.title), a message, a severity and, for most issues, a hint on how to fix it. An error blocks publishing; a warning does not, and valid ignores warnings.
A create that its platform would refuse fails with VALIDATION_ERROR and the same issues in details.
POST /v1/posts/validate
{
"success": true,
"data": {
"valid": false,
"targets": [
{
"channelId": "00000000-0000-4000-8000-0000000000a3",
"provider": "pinterest",
"issues": [
{
"code": "title_too_long",
"field": "overrides.title",
"message": "The title is 112 characters; Pinterest allows 100.",
"severity": "error",
"hint": "Shorten it by 12 characters."
}
]
}
]
},
"meta": {
"timestamp": "...",
"requestId": "...",
"version": "v1"
}
}Sample data. The message and hint are the backend's own text.
Statuses
A post has a status, and so does each of its accounts (a target). The post's status follows from its targets once it is scheduled.
Post
| status | meaning |
|---|---|
draft | Saved, not sent out. A post without scheduledAt or publishNow is a draft, and so is everything a drafts_only key sends out. |
needs_approval | Waits for a person to approve it in the dashboard, or for a client to approve it by link. |
scheduled | Waits for its time. Nothing has reached a platform, so it can still be edited, moved or cancelled. |
publishing | At least one account is being published, or some are done and others are still due. |
published | Every account published. |
partially_published | Some accounts published and the others failed. |
failed | No account published. |
cancelled | Cancelled before anything ran, or every account was cancelled. |
Target (one account)
| status | meaning |
|---|---|
pending | Waits for its time, or for a retry. |
queued | Due, and on the publishing queue. |
publishing | Being sent to the platform. It cannot be cancelled: the platform may already have the post. |
published | Live. externalPostId and publishedAt are set, and externalUrl when the platform gave a link to the post. |
failed | error says why: code, message and retryable, plus hint, needsReconnect or mayBeLive when they apply. |
cancelled | Cancelled while it was pending or queued. |
Reliability
- Idempotency-Key. Send it with
POST /v1/posts(MCP:idempotencyKey), 1 to 255 printable ASCII characters without spaces. A repeat with the same key and the same body returns the first post with200andIdempotent-Replayed: trueinstead of creating a second one. The same key with a different body answers409CONFLICT. - Failures carry their own advice. A failed target's
errorhasretryableand, most of the time, ahint. Passing failures are retried by Postiefy before a target is marked failed. - Retry.
POST /v1/posts/{id}/retryruns again every failed account whose error is retryable now. An account that lost its connection (needsReconnect) becomes retryable once a person reconnects it. Publish keys only. - mayBeLive is never retried. When the platform may already hold the post, the error says
mayBeLiveand no retry runs it, from you or from Postiefy. Check the account. If the post is live, report it withPOST /v1/posts/{id}/targets/{targetId}/resolveand{"outcome": "published", "externalUrl": "…"}. Only a person can mark it not published, in the dashboard, because that allows a retry that could post twice.
When a person must approve
Some posts wait for a person even when the key may publish.
- A post a
needs_approvalorpublishkey sends out to TikTok as a direct post (overrides.mode: direct_post, the default), or as a Pinterest Pin, waits inneeds_approvaluntil a person approves it in the dashboard. Both platforms require a person to choose each post. Adrafts_onlykey saves it as a draft like any other post, and the person who schedules it approves it. - A TikTok
inbox_draftdoes not wait: the creator finishes it in TikTok. - Each target's
confirmationrecords who approved whichrevision. A key's edit of such a post sends it back for approval. - Only a person approves (
POST /v1/posts/{id}/approveanswersFORBIDDENto a key), and no key edits a post while it waits for approval.
Webhooks
post.published and post.failed, one per account as it finishes, signed per Standard Webhooks.
Register an endpoint with POST /v1/webhooks {"url": "https://…", "events": [...]}. The URL must be public https. The answer holds the signing secret (whsec_…) once.
Each delivery carries webhook-id, webhook-timestamp and webhook-signature (v1, and a base64 HMAC-SHA256 of id.timestamp.body), so any Standard Webhooks library verifies it. Use webhook-id to drop repeats.
Answer with a 2xx within 10 seconds. Redirects are not followed. A failed delivery is tried 6 times in all, after waits of 30 s, 2 min, 10 min, 1 h, 6 h: the last attempt comes at least 7 h 12 min after the first.
POST https://example.com/hooks/postiefy
webhook-id: 00000000-0000-4000-8000-0000000000e1
webhook-timestamp: 1796454041
webhook-signature: v1,...
Content-Type: application/json
{
"id": "00000000-0000-4000-8000-0000000000e1",
"type": "post.published",
"post": {
"id": "00000000-0000-4000-8000-000000000001",
"status": "published"
},
"target": {
"id": "00000000-0000-4000-8000-0000000000b1",
"channelId": "00000000-0000-4000-8000-0000000000a1",
"provider": "instagram",
"attempt": 1,
"externalPostId": "...",
"externalUrl": "https://www.instagram.com/p/...",
"error": null
},
"createdAt": "2026-12-05T07:00:41.000Z"
}Sample data. Every id is invented.
Media
Upload a file
POST /v1/media/uploads with mime and bytes returns a presigned URL that lives 15 minutes. Upload to it, then POST /v1/media/{id}/complete checks the file and makes it ready.
Import from a URL
POST /v1/media/import with a url. The URL, and every redirect, must be https on a public host, answer with a Content-Length and no content encoding, and stay within 200 MB or the type's own limit, whichever is smaller.
Each platform has its own limits on top of these. Read them from GET /v1/providers; validate checks them.
| kind | types | up to |
|---|---|---|
| Images | JPEG, PNG, GIF, WebP | 30 MB |
| Video | MP4, MOV | 1 GB |
| Documents (LinkedIn) | 100 MB |
Metrics
GET /v1/posts/{id}/metrics returns, per published account, snapshots taken 24 h, 72 h, 7 days and 30 days after publishing (X posts only at 7 days, because X charges for every read). Each snapshot is raw, with the platform's own field names, and a snapshot missed for its whole window is skipped rather than taken late under its label.
Limits and errors
- Burst: 120 requests per 60 seconds per key, counted per Cloudflare location. Over it:
429RATE_LIMIT_EXCEEDED, “Too many requests for this API key”. - Monthly calls: every REST request and every MCP tool call made with a key counts as one; a batch create counts one per post. Over the plan's allowance:
429RATE_LIMIT_EXCEEDED, “Monthly API call limit (…) exceeded”, for every call until the 1st (UTC),GET /v1/usageincluded. Read the counters there before you run out. - Posts a month: over the plan's allowance a post cannot be scheduled or sent for approval:
402PLAN_LIMIT_REACHED. Drafts do not count. - Media storage: the files a workspace keeps at once (10 GB, 25 GB, 75 GB by plan). An upload or import that would pass it answers
402STORAGE_LIMIT_REACHED; deleting unused media frees room.GET /v1/usageshowsstorage.usedBytesandstorage.limitBytes. - Lapsed subscription: the workspace keeps reading, cancelling and deleting (any
DELETE, a post'scancel,POST /v1/media/delete-unused); anything else answers402PAYMENT_REQUIRED.
| plan | API calls a month |
|---|---|
| Creator | 10,000 |
| Pro | 50,000 |
| Agency | 200,000 |
From the plans billing uses. Pricing
Error codes
| code | HTTP | what to do |
|---|---|---|
VALIDATION_ERROR | 400 | Fix what details names and call again. validate_post checks a post without saving it. |
UNAUTHORIZED | 401 | This connection is no longer valid. Reconnect Postiefy in the client. |
PAYMENT_REQUIRED | 402 | The workspace subscription lapsed: it can read and cancel, nothing else. A person renews it in the dashboard. |
PLAN_LIMIT_REACHED | 402 | The plan's posts for the month are used up (raised when a post is created with a time, scheduled or sent for approval; drafts do not count), or connecting accounts would pass the plan's account limit. A person upgrades the plan, or posts reset on the 1st (UTC). |
STORAGE_LIMIT_REACHED | 402 | The file would pass the plan's media storage (details: limitBytes, usedBytes, fileBytes). Storage is not monthly: delete media no post uses (GET /v1/media?unused=true, then POST /v1/media/delete-unused), or upgrade the plan. |
FORBIDDEN | 403 | This connection's mode or account list does not allow it. Save a draft instead, or ask a person to reconnect with a wider mode. |
NOT_FOUND | 404 | Check the id. list_posts and list_accounts return the ids this connection can use. |
CONFLICT | 409 | The post is not in a state that allows this. Call get_post to see where it is. |
RATE_LIMIT_EXCEEDED | 429 | Too many calls; the message says which limit. "Too many requests for this API key": the per-minute burst, wait a minute. "Monthly API call limit (…) exceeded": the plan's calls are used up and every call answers this until the 1st (UTC) or a plan upgrade. |
INTERNAL_ERROR | 500 | Something failed on Postiefy's side. Retry once; if it fails again, tell the user. |
EXTERNAL_SERVICE_ERROR | 502 | The platform did not answer. Retry in a minute. |
REST routes
Base URL https://api.postiefy.com/v1. Each route takes the same input as its MCP tool; the tool wraps its answer in a named object.
| route | what it does | MCP tool |
|---|---|---|
GET /v1/channels | Connected accounts. ?brandId= for one brand. | list_accounts |
GET /v1/brands, GET /v1/brands/{id} | Brands (clients) and their accounts. | list_brands |
GET /v1/channels/{id}/options | Live options of one account. | get_account_options |
GET /v1/providers | Platform limits. The JSON Schema of each platform's overrides comes only from the MCP tool. | get_platform_constraints |
POST /v1/posts/validate | Dry run of a create. | validate_post |
POST /v1/posts | Create. Send Idempotency-Key to make retries safe. | create_post |
POST /v1/posts/batch | Up to 50 posts in one call, each with its own idempotencyKey. One result per item, not all-or-nothing. | create_posts |
PATCH /v1/posts/{id} | Edit before it goes out. | update_post |
POST /v1/posts/{id}/schedule | Schedule, publish now, or move the time. | schedule_post |
POST /v1/posts/{id}/cancel | Cancel. | cancel_post |
POST /v1/posts/{id}/retry | Retry the failed accounts whose error is retryable now. | retry_post |
POST /v1/posts/{id}/targets/{targetId}/resolve | Settle an account in doubt (mayBeLive): a key reports the live post it found, with its URL. Only a person marks it not published. | resolve_post_target |
GET /v1/posts, GET /v1/posts/{id} | Read. The list takes status=a,b, scheduledFrom, scheduledTo, updatedFrom, channelId, brandId, sourceKind, sourceId, sort, page, limit. | list_posts, get_post |
GET /v1/posts/{id}/metrics | Raw metric snapshots. | get_post_metrics |
GET /v1/metrics | Snapshots across posts, newest published first. from, to, channelId, brandId, snapshot, page, limit. | list_metrics |
POST /v1/posts/{id}/approval-links | A link a client opens without an account to approve or ask for changes. | create_approval_link |
DELETE /v1/posts/{id}/approval-links/{linkId} | Revoke an unanswered link. | revoke_approval_link |
GET /v1/posts/{id}/approval-links, GET /v1/posts/{id}/approvals | A post's links and its approval record. | get_post_approvals |
POST /v1/media/import | Import from a URL. | import_media |
GET /v1/media | The media library. type, brandId, q (file name), unused. | list_media |
PATCH /v1/media/{id}, DELETE /v1/media/{id}, POST /v1/media/delete-unused | Rename or re-brand a file; delete one, or the unused ones of a list. Publish keys only. | |
POST /v1/media/uploads, POST /v1/media/{id}/complete | Presigned upload, then finish it. | create_media_upload, complete_media_upload |
GET /v1/usage | This month against the plan. | get_usage |
POST, GET /v1/webhooks, DELETE /v1/webhooks/{id} | Webhook endpoints. The signing secret is in the create answer only. | |
GET /v1/me | The workspace and the key making the call, with its mode. |
The 25 MCP tools
Endpoint https://api.postiefy.com/mcp. Every tool call counts as one API call.
| tool | what it does |
|---|---|
list_accounts | Lists the social accounts this connection may post to, with each one's platform, health and brand. |
list_brands | Lists the workspace's brands: the clients an agency posts for, each with its name, colour, timezone and the accounts this connection may use. |
get_account_options | Returns the values one account accepts right now, fetched from its platform: TikTok privacy levels and limits, Pinterest boards, the YouTube upload allowance left today and the like. |
get_platform_constraints | Returns each platform's fixed limits (text length, media count, sizes, durations, aspect ratios) and the JSON Schema of the overrides it accepts. |
validate_post | Dry run of create_post: returns, per account, every issue its platform would raise (code, field, message, hint). |
create_post | Creates one post for one or more accounts: a draft without a time; with one, scheduled, held for approval or a draft, depending on the connection's mode and the platform. |
create_posts | Creates up to 50 posts in one call, each exactly as create_post would, with one result per post: not all-or-nothing. |
update_post | Replaces the content, disclosure, timezone or whole target list of a post that has not started publishing. |
schedule_post | Gives a post its time, moves it, or sends it now. |
cancel_post | Stops every account of a post that has not started publishing. |
retry_post | Publishes again the accounts of a post whose error is retryable now. |
resolve_post_target | For a failed account whose post may already be live: reports the live post's URL, and the account becomes published. |
get_post | Returns a post with each account's status, the live post URL once published and the error with its hint when one failed. |
list_posts | Lists the workspace's posts, filtered by status, time window, account, brand or who made them. |
wait_for_post | Waits for a post to stop changing, 20 seconds by default and at most 25, then returns it. |
create_approval_link | Makes a link a client opens without an account to approve the post or ask for changes. |
revoke_approval_link | Closes an approval link nobody has answered, so it no longer opens. |
get_post_approvals | Returns a post's approval links and its approval record: who approved or asked for changes, on which revision. |
import_media | Copies an image, video or PDF from a public URL into the media library and returns its id. |
create_media_upload | Returns a presigned URL for a file the agent holds locally. |
complete_media_upload | Checks an uploaded file and makes it ready for a post. |
list_media | Lists the workspace's uploaded and imported files, newest first, so a file already there can be reused instead of uploaded again. |
get_post_metrics | Returns the metric snapshots of each published account of one post, taken 24 h, 72 h, 7 days and 30 days after publishing (X: 7 days only). |
list_metrics | Lists the published accounts of every post with their metric snapshots, newest first, filtered by time, account, brand or snapshot. |
get_usage | Returns this month's counters against the plan: posts sent out, X credits and API calls. |
What is not there yet
- No OpenAPI file yet. The reference for agents is llms.txt, rendered from the tables the server runs on.
- No account-level metrics: snapshots are per post and account.
- A key limited to some accounts lists only those accounts (and only those under each brand), but reads every post and media file in the workspace. The account list limits what it can create, edit, cancel or retry.
- Publishing opens per platform after its app review. None is open for publishing yet: each one opens after that platform approves Postiefy's app.
Read the reference, then let your agent post.
Postiefy is invite-only for now. Join the waitlist and we will write when your spot opens.