Skip to content
Developer docs · v1

PostPlenty API & MCP.

One Bearer key, scoped to one business. Every operation exists twice: as a JSON endpoint under /api/v1 and as an MCP tool at /api/mcp. Same validation, same behaviour.

01

Authentication

Sign in, then create a key under Settings → API keys. It is shown once; PostPlenty stores only a hash. Send it as a Bearer token on every request. A key is bound to exactly one business, so no businessId is needed anywhere.

curl https://www.postplenty.com/api/v1/me \
  -H "Authorization: Bearer pyl_live_…"

Keys inherit the plan of the business. Free-plan limits (post quota, one draft at a time) and credit balances apply exactly as in the dashboard.

02

MCP server

Streamable HTTP, stateless, JSON responses. Point any MCP client at https://www.postplenty.com/api/mcp with the same Authorization header. Calling it by hand? Send Accept: application/json, text/event-stream (PostPlenty adds it if missing).

Claude Code
claude mcp add --transport http pylot https://www.postplenty.com/api/mcp \
  --header "Authorization: Bearer pyl_live_…"
Claude Desktop · Cursor · Codex · OpenClaw
{
  "mcpServers": {
    "pylot": {
      "url": "https://www.postplenty.com/api/mcp",
      "headers": { "Authorization": "Bearer pyl_live_…" }
    }
  }
}
ToolDoesREST equivalent
get_accountWho am IGET /api/v1/me
get_creditsCredit balanceGET /api/v1/credits
list_channelsList connected accountsGET /api/v1/channels
set_channel_focusSet what an account posts aboutPUT /api/v1/channels/{id}/focus
list_postsList postsGET /api/v1/posts
create_postCreate a draft postPOST /api/v1/posts
get_postGet a postGET /api/v1/posts/{id}
delete_postDelete a postDELETE /api/v1/posts/{id}
schedule_postSchedule a postPOST /api/v1/posts/{id}/schedule
publish_postPublish nowPOST /api/v1/posts/{id}/publish
upload_mediaUpload mediaPOST /api/v1/media
list_photosList the business's photosGET /api/v1/photos
list_film_asksWhat to filmGET /api/v1/film-asks
edit_videoEdit a videoPOST /api/v1/edits
get_editGet an editGET /api/v1/edits/{id}
generate_captionsGenerate captionsPOST /api/v1/generate/captions
generate_imageGenerate an imagePOST /api/v1/generate/images

The server's instructions tell the model that create_post is always a draft and that publish_post needs confirm: true; publish_post and delete_post are annotated destructiveHint so clients can require approval.

03

Concepts

Channels

One connected social account (one TikTok, one Facebook Page). The app calls it an account, and a workspace is one business. Meta channels (a Facebook Page with a linked Instagram account) expose targets: ["facebook","instagram"] and expand to both unless you pass subPlatform. You can connect several accounts on one platform, for example four TikTok accounts or three Facebook Pages. Each is its own channel with its own id; every channel has a label that names it and no other, like "TikTok · Taco Truck (@taco)". Filter GET /channels with platform and q (part of a name or handle). If q matches more than one account, confirm with the owner before posting.

Targets

Where a post goes. Each target is { channelId, subPlatform?, caption?, postFormat?, mediaUrls? }. A target without its own caption uses the post caption. Send one target per account, each with the caption written for it. Publish results are recorded per target.

Account focus

What the owner said one account posts about: { about, audience, voice, focusOnly }. GET /channels returns it as focus; set it with PUT /channels/{id}/focus (set_channel_focus). An account with an about and focusOnly true is a focused account and only gets posts you send it. generate_captions takes channelId and writes for that account.

Posting without targets

Omit targets and the post goes to every account with no focus. With no focused account that is every active account, as before. Focused accounts are left out, and the response lists them in post.skippedAccounts as { channelId, displayName, reason: "has_focus" }. If every account has a focus there is nothing to default to: the call returns validation_error and you pass targets with channel ids.

Post lifecycle

draft → approved (scheduled time set) → scheduled (queued) → posted | failed | partial. create_post makes drafts; schedule_post moves to approved; publish_post queues immediately.

Credits

Image generation costs 1 credit and is refunded if generation fails. Captions are free. GET /credits shows the balance; 402 insufficient_credits when short.

Media

mediaUrls must be stable, public URLs. Upload with POST /media (URL or multipart) or use the URL returned by generate_image. Post-level mediaUrls apply to every target unless a target overrides.

Timezones

scheduledAt with an offset (…-06:00 / Z) is absolute. Without one it is read in `timezone`, else the business timezone. Must be ≥ 1 minute ahead.

04

Endpoints

Base URL https://www.postplenty.com/api/v1. All bodies and responses are JSON unless noted. Machine-readable spec: openapi.json .

Account

GET/api/v1/health

Health check

Unauthenticated liveness probe for uptime monitors: 200 with `{ ok: true, db: "up" }` when the database answers, 503 otherwise.

Example response
{
  "ok": true,
  "db": "up",
  "latencyMs": 12,
  "version": "v1",
  "time": "2026-10-25T18:00:00.000Z"
}
GET/api/v1/memcp · get_account

Who am I

The business, plan, credit balance and limits behind the key. Call this first to confirm the key is scoped to the business you expect.

Example response
{
  "business": {
    "id": "biz_…",
    "name": "Fern & Fig Bakery",
    "niche": "Bakery",
    "timezone": "America/Chicago"
  },
  "plan": {
    "name": "Pro",
    "status": "active"
  },
  "credits": {
    "balance": 42,
    "monthlyAllocation": 50,
    "resetAt": "2026-11-01T00:00:00.000Z"
  },
  "limits": {
    "canCreateVideos": true,
    "captionIntelligence": true,
    "maxDrafts": -1
  },
  "apiKey": {
    "id": "key_…",
    "name": "OpenClaw",
    "prefix": "pyl_live_a1b2c3d"
  }
}
GET/api/v1/creditsmcp · get_credits

Credit balance

Current balance, monthly allocation and the credit cost of each metered operation.

Example response
{
  "balance": 42,
  "monthlyAllocation": 50,
  "resetAt": "2026-11-01T00:00:00.000Z",
  "costs": {
    "image": 1
  }
}

Channels

GET/api/v1/channelsmcp · list_channels

List connected accounts

Every social account connected to the business, including several accounts on one platform (a channel is one account). Use `id` as `channelId` when creating posts. `label` names the account for the owner and never matches another account, for example "TikTok · Taco Truck (@taco)". Narrow the list with `platform` (meta, tiktok, linkedin, x) or `q` (part of a name or handle, not case sensitive). When `q` matches more than one account, ask the owner which one they mean before posting. `handle` and `displayName` tell two accounts of one platform apart. `focus` is what the owner said the account posts about (null when they have not said); `focused` is true when the account only gets posts that fit its focus. Meta channels expose `targets` (facebook and/or instagram).

Parameters
  • platform query — Only accounts on this platform: meta (or facebook, instagram), tiktok, linkedin, x
  • q query — Only accounts whose displayName or handle contains this text
Example response
{
  "channels": [
    {
      "id": "ch_meta_1",
      "platform": "meta",
      "platformType": "page",
      "displayName": "Fern & Fig",
      "handle": "@fernandfig",
      "label": "Facebook and Instagram · Fern & Fig",
      "avatarUrl": null,
      "isActive": true,
      "focus": null,
      "focused": false,
      "targets": [
        "facebook",
        "instagram"
      ],
      "capabilities": {
        "supportsImages": true,
        "supportsVideos": true,
        "supportsCarousels": true,
        "supportsStories": true,
        "maxCaptionLength": 2200
      },
      "connectedAt": "2026-09-01T00:00:00.000Z"
    },
    {
      "id": "ch_tt_1",
      "platform": "tiktok",
      "platformType": "personal",
      "displayName": "Fern & Fig Bakes",
      "handle": "@fernandfigbakes",
      "label": "TikTok · Fern & Fig Bakes",
      "avatarUrl": null,
      "isActive": true,
      "focus": {
        "about": "Behind the scenes in the bakery: dough, ovens and early mornings.",
        "audience": null,
        "voice": "Warm and funny",
        "focusOnly": true
      },
      "focused": true,
      "capabilities": {
        "supportsImages": false,
        "supportsVideos": true,
        "supportsCarousels": false,
        "supportsStories": false,
        "maxCaptionLength": 2200
      },
      "connectedAt": "2026-09-02T00:00:00.000Z"
    },
    {
      "id": "ch_tt_2",
      "platform": "tiktok",
      "platformType": "personal",
      "displayName": "Fern & Fig Recipes",
      "handle": "@fernandfigrecipes",
      "label": "TikTok · Fern & Fig Recipes",
      "avatarUrl": null,
      "isActive": true,
      "focus": null,
      "focused": false,
      "capabilities": {
        "supportsImages": false,
        "supportsVideos": true,
        "supportsCarousels": false,
        "supportsStories": false,
        "maxCaptionLength": 2200
      },
      "connectedAt": "2026-09-03T00:00:00.000Z"
    }
  ]
}
PUT/api/v1/channels/{id}/focusmcp · set_channel_focus

Set what an account posts about

Tell PostPlenty what one connected account is about. Send only the fields to change; `null` clears one. A focused account (`about` set and `focusOnly` true, the default) is left out when you create a post without `targets`, and `generate_captions` can write for it with `channelId`. Set `focusOnly` to false to keep the notes but still send the account every post.

Parameters
  • id path — Channel id
Body
about
object
What this account posts about, in the owner's words (up to 300 characters). Empty or null removes the focus.
audience
object
Who follows this account (up to 160 characters).
voice
object
How this account sounds (up to 200 characters).
focusOnly
boolean
true (default): the account only gets posts that fit its focus, and is left out when create_post has no targets. false: it still gets every post.
Example request
curl -X PUT https://www.postplenty.com/api/v1/channels/CHANNEL_ID/focus \
  -H "Authorization: Bearer pyl_live_…" \
  -H "Content-Type: application/json" \
  -d '{"about":"Behind the scenes in the bakery: dough, ovens and early mornings.","voice":"Warm and funny"}'
Example response
{
  "channelId": "ch_tt_1",
  "focus": {
    "about": "Behind the scenes in the bakery: dough, ovens and early mornings.",
    "audience": null,
    "voice": "Warm and funny",
    "focusOnly": true
  },
  "focused": true
}

Posts

GET/api/v1/postsmcp · list_posts

List posts

Newest first. Filter with a comma-separated `status` list, and with `channelId` to see what went to one account.

Parameters
  • status query — Comma-separated: proposed, draft, approved, scheduled, posted, failed, partial, rejected
  • channelId query — Only posts with a target on this channel id
  • limit query — 1–100, default 25
Example response
{
  "posts": [
    {
      "id": "f3b2…",
      "status": "draft",
      "mediaUrls": [
        "https://blob.vercel-storage.com/…/hero.png"
      ],
      "scheduledAt": null,
      "timezone": null,
      "postedAt": null,
      "approval": {
        "approvedAt": null,
        "channel": null
      },
      "needsOwnerApproval": true,
      "targets": [
        {
          "channelId": "ch_meta_1",
          "platform": "meta",
          "subPlatform": "instagram",
          "caption": "…",
          "postFormat": null,
          "mediaUrls": null,
          "publishedAt": null,
          "publishedId": null,
          "error": null
        }
      ],
      "createdAt": "2026-10-25T18:12:00.000Z",
      "updatedAt": "2026-10-25T18:12:00.000Z"
    }
  ]
}
POST/api/v1/postsmcp · create_post

Create a draft post

Creates a **draft** — nothing is published. Provide `targets` (channel ids). Omit them and the post goes to every account with no focus (every active account when none has a focus); accounts with a focus are left out and listed in `post.skippedAccounts` (`{ channelId, displayName, reason: "has_focus" }`), and if every account has one the call fails with `validation_error` and you must pass `targets`. Pass `scheduledAt` to create and schedule in one call: because you supplied the text, that counts as approval and the post becomes `approved`. Meta channels expand to Facebook + Instagram unless you pass `subPlatform`.

Body
caption
string
Default caption for every target
mediaUrls
string[]
Public image/video URLs. Upload first with POST /media (upload_media) to get a stable URL.
targets
object[]
Channels to post to, by channel id. Omit to post to every account with no focus (all active accounts when none has a focus). When every account has a focus there is no default: pass targets.
channelIdrequired
string
A channel id from list_channels / GET /channels
subPlatform
"facebook" | "instagram"
Meta channels only: "facebook" or "instagram". Omit to post to both.
caption
string
Overrides the post-level caption for this target
postFormat
"feed" | "reel" | "story"
Meta only: feed (default), reel or story
mediaUrls
string[]
Overrides the post-level media for this target
tiktokSettings
object
privacyLevel
"PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY"
disableComment
boolean
disableDuet
boolean
disableStitch
boolean
commercialContentEnabled
boolean
brandOrganic
boolean
brandedContent
boolean
musicUsageConfirmed
boolean
scheduledAt
string
ISO-8601 timestamp (with offset, or naive + timezone). When set, the post is created and scheduled in one call.
timezone
string
IANA timezone used to interpret scheduledAt when it has no offset. Defaults to the business timezone.
Example request
curl -X POST https://www.postplenty.com/api/v1/posts \
  -H "Authorization: Bearer pyl_live_…" \
  -H "Content-Type: application/json" \
  -d '{"caption":"Sourdough drops at 7am tomorrow. First 20 loaves get a free cold brew ☕","mediaUrls":["https://blob.vercel-storage.com/…/sourdough.png"],"targets":[{"channelId":"ch_meta_1","subPlatform":"instagram"},{"channelId":"ch_x_1","caption":"Sourdough drops 7am. First 20 loaves get a free cold brew."}]}'
Example response
{
  "post": {
    "id": "f3b2…",
    "status": "draft",
    "mediaUrls": [
      "https://blob.vercel-storage.com/…/hero.png"
    ],
    "scheduledAt": null,
    "timezone": null,
    "postedAt": null,
    "approval": {
      "approvedAt": null,
      "channel": null
    },
    "needsOwnerApproval": true,
    "targets": [
      {
        "channelId": "ch_meta_1",
        "platform": "meta",
        "subPlatform": "instagram",
        "caption": "…",
        "postFormat": null,
        "mediaUrls": null,
        "publishedAt": null,
        "publishedId": null,
        "error": null
      }
    ],
    "createdAt": "2026-10-25T18:12:00.000Z",
    "updatedAt": "2026-10-25T18:12:00.000Z"
  }
}
GET/api/v1/posts/{id}mcp · get_post

Get a post

A post with its per-target captions, schedule and publish results (`publishedId`, `error`).

Parameters
  • id path — Post id
Example response
{
  "post": {
    "id": "f3b2…",
    "status": "draft",
    "mediaUrls": [
      "https://blob.vercel-storage.com/…/hero.png"
    ],
    "scheduledAt": null,
    "timezone": null,
    "postedAt": null,
    "approval": {
      "approvedAt": null,
      "channel": null
    },
    "needsOwnerApproval": true,
    "targets": [
      {
        "channelId": "ch_meta_1",
        "platform": "meta",
        "subPlatform": "instagram",
        "caption": "…",
        "postFormat": null,
        "mediaUrls": null,
        "publishedAt": null,
        "publishedId": null,
        "error": null
      }
    ],
    "createdAt": "2026-10-25T18:12:00.000Z",
    "updatedAt": "2026-10-25T18:12:00.000Z"
  }
}
DELETE/api/v1/posts/{id}mcp · delete_post

Delete a post

Drafts and scheduled posts only; published posts return `invalid_state`.

Parameters
  • id path — Post id
Example response
{
  "id": "f3b2…",
  "deleted": true
}
POST/api/v1/posts/{id}/schedulemcp · schedule_post

Schedule a post

Queue the post for a future time (≥ 1 minute ahead). Timestamps with an offset are absolute; naive ones are read in `timezone` or the business timezone. PostPlenty publishes it on schedule. If you wrote the text (created through the API or MCP), scheduling approves it. If PostPlenty wrote it, the time is saved but the post stays a draft (`needsOwnerApproval: true`) until the owner approves it in PostPlenty.

Parameters
  • id path — Post id
Body
scheduledAtrequired
string
ISO-8601 timestamp (e.g. 2026-11-02T09:00:00-05:00). Must be at least 1 minute in the future.
timezone
string
IANA timezone used when scheduledAt has no offset. Defaults to the business timezone.
Example request
curl -X POST https://www.postplenty.com/api/v1/posts/POST_ID/schedule \
  -H "Authorization: Bearer pyl_live_…" \
  -H "Content-Type: application/json" \
  -d '{"scheduledAt":"2026-11-02T09:00:00-06:00"}'
Example response
{
  "post": {
    "id": "f3b2…",
    "status": "approved",
    "mediaUrls": [
      "https://blob.vercel-storage.com/…/hero.png"
    ],
    "scheduledAt": "2026-11-02T15:00:00.000Z",
    "timezone": "America/Chicago",
    "postedAt": null,
    "approval": {
      "approvedAt": "2026-10-25T18:13:00.000Z",
      "channel": "api"
    },
    "needsOwnerApproval": false,
    "targets": [
      {
        "channelId": "ch_meta_1",
        "platform": "meta",
        "subPlatform": "instagram",
        "caption": "…",
        "postFormat": null,
        "mediaUrls": null,
        "publishedAt": null,
        "publishedId": null,
        "error": null
      }
    ],
    "createdAt": "2026-10-25T18:12:00.000Z",
    "updatedAt": "2026-10-25T18:12:00.000Z"
  }
}
POST/api/v1/posts/{id}/publishmcp · publish_post

Publish now

**Irreversible.** Publishes to every enabled target immediately via PostPlenty's publishing pipeline. The body must be exactly `{ "confirm": true }`. If PostPlenty wrote the text (a draft the owner has not approved), this returns `approval_required` (403) and nothing is published. Returns 202; poll `GET /posts/{id}` for per-target results.

Parameters
  • id path — Post id
Body
confirmrequired
boolean
Must be exactly true. Publishing is irreversible and goes live on the connected accounts.
Example request
curl -X POST https://www.postplenty.com/api/v1/posts/POST_ID/publish \
  -H "Authorization: Bearer pyl_live_…" \
  -H "Content-Type: application/json" \
  -d '{"confirm":true}'
Example response
{
  "post": {
    "id": "f3b2…",
    "status": "scheduled",
    "mediaUrls": [
      "https://blob.vercel-storage.com/…/hero.png"
    ],
    "scheduledAt": null,
    "timezone": null,
    "postedAt": null,
    "approval": {
      "approvedAt": null,
      "channel": null
    },
    "needsOwnerApproval": true,
    "targets": [
      {
        "channelId": "ch_meta_1",
        "platform": "meta",
        "subPlatform": "instagram",
        "caption": "…",
        "postFormat": null,
        "mediaUrls": null,
        "publishedAt": null,
        "publishedId": null,
        "error": null
      }
    ],
    "createdAt": "2026-10-25T18:12:00.000Z",
    "updatedAt": "2026-10-25T18:12:00.000Z"
  },
  "queued": true
}

Media

POST/api/v1/mediamcp · upload_media

Upload media

Copy a file into PostPlenty storage. Send JSON `{ "url" }` for a public URL (images ≤ 5MB, videos ≤ 500MB; private/internal hosts are rejected), or `multipart/form-data` with a `file` field for small files (request bodies are capped at ~4.5MB). Use the returned `url` in `mediaUrls`.

Body
urlrequired
string
Publicly reachable image or video URL to copy into PostPlenty storage
filename
string
Example request
curl -X POST https://www.postplenty.com/api/v1/media \
  -H "Authorization: Bearer pyl_live_…" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/photos/sourdough.jpg"}'
Example response
{
  "asset": {
    "id": "a1…",
    "url": "https://blob.vercel-storage.com/…/sourdough.jpg",
    "filename": "upload-….jpg",
    "contentType": "image/jpeg",
    "sizeBytes": 184202,
    "mediaType": "image",
    "width": 1080,
    "height": 1350
  }
}
GET/api/v1/photosmcp · list_photos

List the business's photos

Photos PostPlenty already holds for the business: the owner's own photos and the photos saved from its website (the same ones the slideshow photo picker offers), never hidden ones and never AI images, plus the brand kit's `logoUrl`. Pass `q` to put the best match first. Every `url` is public https and works in `mediaUrls`. Read only: this never crawls the website.

Parameters
  • q query — What the photo should show, up to 80 characters. Best match first.
  • limit query — 1–120, default 40
Example response
{
  "photos": [
    {
      "assetId": "a7…",
      "url": "https://…/storefront.jpg",
      "thumbnailUrl": null,
      "description": "The shop front with the green awning",
      "source": "website"
    }
  ],
  "logoUrl": "https://…/logo.png"
}

Video

GET/api/v1/film-asksmcp · list_film_asks

What to film

This week's "what to film" list, the same asks PostPlenty shows the owner on Home, written for this business. `next` is the first ask still `open`. When there is no list this week, `asks` is empty and the other fields are null. Read only.

Example response
{
  "weekStart": "2026-11-16",
  "closesAt": "2026-11-22T23:59:00.000Z",
  "listStatus": "sent",
  "asks": [
    {
      "id": "sh_…",
      "title": "First tray out",
      "instructions": "When the first tray comes out tomorrow, film it for 10 seconds. No need to talk.",
      "payoff": "A short post of the morning bake.",
      "mediaKind": "video",
      "targetSeconds": 10,
      "peoplePolicy": "none",
      "status": "open"
    }
  ],
  "next": {
    "id": "sh_…",
    "title": "First tray out",
    "instructions": "When the first tray comes out tomorrow, film it for 10 seconds. No need to talk.",
    "payoff": "A short post of the morning bake.",
    "mediaKind": "video",
    "targetSeconds": 10,
    "peoplePolicy": "none",
    "status": "open"
  }
}
POST/api/v1/editsmcp · edit_video

Edit a video

Sends a clip the owner filmed to PostPlenty's editor, the same pipeline as a clip sent in the app: pauses cut, captions added, scenes designed. Pass a public `url` or the `assetId` of a video copied in with `POST /media` (mp4, mov or webm, up to 500MB; clips over 90 seconds are kept as filmed), and `rightsConfirmed: true` once everyone in the clip agreed to be posted. The clip is saved to the owner's Library. Refused before anything is uploaded with `not_enabled` when video editing is not on for the business, `payment_required` when the plan does not include it, or `plan_limit_reached` when the plan's edited videos for this period are used up (`details.resetsAt` says when more are available). Returns 202 with an `editId`; poll `GET /edits/{id}`. When the edit finishes it becomes a post that PostPlenty schedules on its own (the next open day at noon in the business timezone) unless the owner turned on "Wait for my OK"; a clip that cannot be edited becomes a draft as filmed and waits for the owner.

Cost · One of the plan's edited videos (no credits)
Body
url
string
Public URL of the video (mp4, mov or webm, up to 500MB, at most 90 seconds to be edited)
assetId
string
Or: the id of a video already copied in with upload_media
rightsConfirmedrequired
boolean
Must be exactly true: everyone in the clip agreed to be posted (the same confirmation the app asks for).
filename
string
Name for the clip in the owner's Library
Example request
curl -X POST https://www.postplenty.com/api/v1/edits \
  -H "Authorization: Bearer pyl_live_…" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/clips/morning-bake.mp4","rightsConfirmed":true}'
Example response
{
  "editId": "6f1c…",
  "status": "queued",
  "dispatched": true,
  "editsLeft": 4,
  "message": "PostPlenty is editing the clip: it cuts the pauses, adds captions and designs the scenes. Check with get_edit; an edit usually takes about 15 minutes."
}
GET/api/v1/edits/{id}mcp · get_edit

Get an edit

`status` is `queued`, `editing` (with `stage`: transcribing, framing, planning or rendering), `done`, `not_edited` (with `reason`; the clip as filmed is a draft waiting for the owner) or `failed`. When done, `editedVideoUrl` is a link to watch the edited video for one hour and `post` is the post it became (often already scheduled).

Parameters
  • id path — The editId from POST /edits
Example response
{
  "editId": "6f1c…",
  "status": "done",
  "stage": null,
  "reason": null,
  "editedVideoUrl": "https://…r2.cloudflarestorage.com/…edited.mp4?X-Amz-…",
  "editedVideoUrlExpiresAt": "2026-11-20T19:00:00.000Z",
  "post": {
    "id": "f3b2…",
    "status": "approved",
    "mediaUrls": [
      "https://blob.vercel-storage.com/…/hero.png"
    ],
    "scheduledAt": null,
    "timezone": null,
    "postedAt": null,
    "approval": {
      "approvedAt": null,
      "channel": null
    },
    "needsOwnerApproval": true,
    "targets": [
      {
        "channelId": "ch_meta_1",
        "platform": "meta",
        "subPlatform": "instagram",
        "caption": "…",
        "postFormat": null,
        "mediaUrls": null,
        "publishedAt": null,
        "publishedId": null,
        "error": null
      }
    ],
    "createdAt": "2026-10-25T18:12:00.000Z",
    "updatedAt": "2026-10-25T18:12:00.000Z"
  }
}

Generate

POST/api/v1/generate/captionsmcp · generate_captions

Generate captions

Three on-brand variations per platform, written in the business's brand voice (and tuned by learned patterns on Pro+). Pass `channelId` to write for one account: its focus is added to the prompt. Free.

Cost · Free
Body
promptrequired
string
What the post is about, who it is for, and any must-include details
platforms
"facebook" | "instagram" | "linkedin" | "x"[]
Platforms to write for. Each gets 3 variations tuned to its length and style. Default: ["instagram"]
tone
"professional" | "casual" | "funny" | "inspirational" | "promotional"
Default: "casual"
includeHashtags
boolean
Default: true
channelId
string
Write for one connected account: its focus (what it posts about, who follows it, how it sounds) is added to the prompt.
Example request
curl -X POST https://www.postplenty.com/api/v1/generate/captions \
  -H "Authorization: Bearer pyl_live_…" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Launch of our new sourdough loaf, bakery in Austin, casual and warm","platforms":["instagram","x"],"tone":"casual"}'
Example response
{
  "captions": [
    {
      "id": 1,
      "text": "…",
      "hashtags": [
        "austinbakery",
        "sourdough"
      ],
      "platform": "instagram",
      "tone": "casual"
    }
  ],
  "creditsDeducted": 0
}
POST/api/v1/generate/imagesmcp · generate_image

Generate an image

A brand-aware marketing image: brand colours, logo and visual style are applied automatically. Saved to the Assets library and returned as a URL you can pass straight to `mediaUrls`.

Cost · 1 credit (refunded on failure)
Body
promptrequired
string
Describe the image. Brand colours, logo and style are added automatically.
aspectRatio
"1:1" | "3:4" | "4:3" | "4:5" | "9:16" | "16:9"
Default: "1:1"
productId
string
Optional product id to feature (uses its name, description and photos)
includeLogo
boolean
Default: true
includeWebsite
boolean
Default: false
Example request
curl -X POST https://www.postplenty.com/api/v1/generate/images \
  -H "Authorization: Bearer pyl_live_…" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Fresh sourdough loaf on a wooden board, morning light","aspectRatio":"4:5"}'
Example response
{
  "imageUrl": "https://…/image.webp",
  "width": 1080,
  "height": 1350,
  "assetId": "a2…",
  "creditsDeducted": 1,
  "creditsRemaining": 41
}

05

Errors

Every error is { "error": { "code", "message", "details?" } }. Branch on code. Every response carries an x-request-id header — include it when reporting issues. For uptime checks, poll GET /api/v1/health (no auth).

unauthorized401Missing, malformed, invalid or revoked API key
forbidden403The account behind the key is no longer active
payment_required402Subscription inactive, or payment required before publishing
insufficient_credits402Not enough credits for a metered operation
plan_limit_reached403A plan limit was hit: Free-plan posts or drafts, or the plan's edited videos for this period
not_enabled403The feature is not turned on for this business (for example video editing)
validation_error400Body or query failed validation; `details` has the field errors
not_found404Post or account (channel) does not exist in this business
approval_required403PostPlenty wrote this text, so the owner must approve it in PostPlenty before it can be published
invalid_state409Operation not allowed in the resource's current state
upstream_error502A provider (AI, storage, queue) failed
internal_error500Unexpected error; retry with the same request id

Not in v1 yet

Webhooks for publish results, per-key scopes and rate-limit headers are on the way. Need one of these first? Tell us