Developers · REST API and MCP server

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

Join the waitlist

Postiefy is invite-only for now. Join the waitlist and we will write when your spot opens.

At a glance
REST base URL
https://api.postiefy.com/v1
MCP server
https://api.postiefy.com/mcp
Auth
API key as bearer, or OAuth 2.1 for MCP clients
Burst limit
120 requests per 60 s per key
Reference for agents
llms.txt · agents.md

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.

Auth · where the key goes
# 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.

Request · POST /v1/posts
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
  }
}
Response · a needs_approval key
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}.

Error · the envelope
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.

Validate · a Pinterest title over 100 characters
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

Post statuses
statusmeaning
draftSaved, not sent out. A post without scheduledAt or publishNow is a draft, and so is everything a drafts_only key sends out.
needs_approvalWaits for a person to approve it in the dashboard, or for a client to approve it by link.
scheduledWaits for its time. Nothing has reached a platform, so it can still be edited, moved or cancelled.
publishingAt least one account is being published, or some are done and others are still due.
publishedEvery account published.
partially_publishedSome accounts published and the others failed.
failedNo account published.
cancelledCancelled before anything ran, or every account was cancelled.

Target (one account)

Target statuses
statusmeaning
pendingWaits for its time, or for a retry.
queuedDue, and on the publishing queue.
publishingBeing sent to the platform. It cannot be cancelled: the platform may already have the post.
publishedLive. externalPostId and publishedAt are set, and externalUrl when the platform gave a link to the post.
failederror says why: code, message and retryable, plus hint, needsReconnect or mayBeLive when they apply.
cancelledCancelled 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 with 200 and Idempotent-Replayed: true instead of creating a second one. The same key with a different body answers 409 CONFLICT.
  • Failures carry their own advice. A failed target's error has retryable and, most of the time, a hint. Passing failures are retried by Postiefy before a target is marked failed.
  • Retry. POST /v1/posts/{id}/retry runs 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 mayBeLive and no retry runs it, from you or from Postiefy. Check the account. If the post is live, report it with POST /v1/posts/{id}/targets/{targetId}/resolve and {"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_approval or publish key sends out to TikTok as a direct post (overrides.mode: direct_post, the default), or as a Pinterest Pin, waits in needs_approval until a person approves it in the dashboard. Both platforms require a person to choose each post. A drafts_only key saves it as a draft like any other post, and the person who schedules it approves it.
  • A TikTok inbox_draft does not wait: the creator finishes it in TikTok.
  • Each target's confirmation records who approved which revision. A key's edit of such a post sends it back for approval.
  • Only a person approves (POST /v1/posts/{id}/approve answers FORBIDDEN to 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.

Delivery · post.published
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.

Media library types and limits
kindtypesup to
ImagesJPEG, PNG, GIF, WebP30 MB
VideoMP4, MOV1 GB
Documents (LinkedIn)PDF100 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: 429 RATE_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: 429 RATE_LIMIT_EXCEEDED, “Monthly API call limit (…) exceeded”, for every call until the 1st (UTC), GET /v1/usage included. 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: 402 PLAN_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 402 STORAGE_LIMIT_REACHED; deleting unused media frees room. GET /v1/usage shows storage.usedBytes and storage.limitBytes.
  • Lapsed subscription: the workspace keeps reading, cancelling and deleting (any DELETE, a post's cancel, POST /v1/media/delete-unused); anything else answers 402 PAYMENT_REQUIRED.
API calls a month per plan
planAPI calls a month
Creator10,000
Pro50,000
Agency200,000

From the plans billing uses. Pricing

Error codes

Error codes, their HTTP status and what to do
codeHTTPwhat to do
VALIDATION_ERROR400Fix what details names and call again. validate_post checks a post without saving it.
UNAUTHORIZED401This connection is no longer valid. Reconnect Postiefy in the client.
PAYMENT_REQUIRED402The workspace subscription lapsed: it can read and cancel, nothing else. A person renews it in the dashboard.
PLAN_LIMIT_REACHED402The 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_REACHED402The 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.
FORBIDDEN403This 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_FOUND404Check the id. list_posts and list_accounts return the ids this connection can use.
CONFLICT409The post is not in a state that allows this. Call get_post to see where it is.
RATE_LIMIT_EXCEEDED429Too 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_ERROR500Something failed on Postiefy's side. Retry once; if it fails again, tell the user.
EXTERNAL_SERVICE_ERROR502The 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.

REST routes and their MCP tools
routewhat it doesMCP tool
GET /v1/channelsConnected 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}/optionsLive options of one account.get_account_options
GET /v1/providersPlatform limits. The JSON Schema of each platform's overrides comes only from the MCP tool.get_platform_constraints
POST /v1/posts/validateDry run of a create.validate_post
POST /v1/postsCreate. Send Idempotency-Key to make retries safe.create_post
POST /v1/posts/batchUp 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}/scheduleSchedule, publish now, or move the time.schedule_post
POST /v1/posts/{id}/cancelCancel.cancel_post
POST /v1/posts/{id}/retryRetry the failed accounts whose error is retryable now.retry_post
POST /v1/posts/{id}/targets/{targetId}/resolveSettle 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}/metricsRaw metric snapshots.get_post_metrics
GET /v1/metricsSnapshots across posts, newest published first. from, to, channelId, brandId, snapshot, page, limit.list_metrics
POST /v1/posts/{id}/approval-linksA 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}/approvalsA post's links and its approval record.get_post_approvals
POST /v1/media/importImport from a URL.import_media
GET /v1/mediaThe media library. type, brandId, q (file name), unused.list_media
PATCH /v1/media/{id}, DELETE /v1/media/{id}, POST /v1/media/delete-unusedRename 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}/completePresigned upload, then finish it.create_media_upload, complete_media_upload
GET /v1/usageThis 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/meThe 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.

MCP tools
toolwhat it does
list_accountsLists the social accounts this connection may post to, with each one's platform, health and brand.
list_brandsLists 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_optionsReturns 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_constraintsReturns each platform's fixed limits (text length, media count, sizes, durations, aspect ratios) and the JSON Schema of the overrides it accepts.
validate_postDry run of create_post: returns, per account, every issue its platform would raise (code, field, message, hint).
create_postCreates 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_postsCreates up to 50 posts in one call, each exactly as create_post would, with one result per post: not all-or-nothing.
update_postReplaces the content, disclosure, timezone or whole target list of a post that has not started publishing.
schedule_postGives a post its time, moves it, or sends it now.
cancel_postStops every account of a post that has not started publishing.
retry_postPublishes again the accounts of a post whose error is retryable now.
resolve_post_targetFor a failed account whose post may already be live: reports the live post's URL, and the account becomes published.
get_postReturns a post with each account's status, the live post URL once published and the error with its hint when one failed.
list_postsLists the workspace's posts, filtered by status, time window, account, brand or who made them.
wait_for_postWaits for a post to stop changing, 20 seconds by default and at most 25, then returns it.
create_approval_linkMakes a link a client opens without an account to approve the post or ask for changes.
revoke_approval_linkCloses an approval link nobody has answered, so it no longer opens.
get_post_approvalsReturns a post's approval links and its approval record: who approved or asked for changes, on which revision.
import_mediaCopies an image, video or PDF from a public URL into the media library and returns its id.
create_media_uploadReturns a presigned URL for a file the agent holds locally.
complete_media_uploadChecks an uploaded file and makes it ready for a post.
list_mediaLists the workspace's uploaded and imported files, newest first, so a file already there can be reused instead of uploaded again.
get_post_metricsReturns 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_metricsLists the published accounts of every post with their metric snapshots, newest first, filtered by time, account, brand or snapshot.
get_usageReturns 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.

Join the waitlist

Postiefy is invite-only for now. Join the waitlist and we will write when your spot opens.