API reference

The Contents Pilot API lets an agent, a script or any tool that speaks HTTP create, design, render and schedule on-brand Instagram posts for a workspace. The same operations are available as MCP tools.

Base URL

https://www.contentspilot.com/api/v1
  • Requests and responses are JSON (Content-Type: application/json).
  • Every request names the workspace (brand) it acts on in the x-workspace-id header.
  • Long work (writing a post, rendering images, converting a post) answers 202 and continues in the background: poll the resource until it is ready.
  • Agents can use the MCP server at /api/mcp with the same API key.

Authentication

  • Connect a bot in the app under Settings → Connect a bot: it creates an agent and its API key.
  • Send it as a bearer token, together with the id of the workspace to act on. A key bound to one workspace only works for that workspace.
  • The workspace owner needs an active plan. The API spends the credits of the account that owns the workspace: the same balance the app uses, shared by every brand of the account.

Important: The full key is shown only when it is created. Keep it somewhere safe: it cannot be read again later.

curl https://www.contentspilot.com/api/v1/brand \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Scopes

Each key carries the scopes chosen when it was created. An operation outside them answers 403.

scopeMeaning
content:readRead the brand, skills, memories, style kits, photos, references, news, posts and renders.
content:writeCreate and edit posts, skills and memories; follow references and read posts; search news; render; convert.
content:publishSchedule a post to the connected Instagram account.
instagram:insights:readRead Instagram performance data.
webhooks:manageRegister, change and remove the webhooks that are told about posts.

Errors

Errors answer with the HTTP status below and a JSON body: { "error": string, "code"?: string, "details"?: object }.

StatusMeaning
400Invalid input; the body lists what to fix.
401Missing or invalid API key, or a workspace the key cannot use.
402The operation needs a paid plan.
403The key lacks the required scope, the account has no credits left for the action (QUOTA_REACHED), the agent reached its own monthly credit ceiling (AGENT_CREDIT_LIMIT), or the record belongs to the brand owner.
404The resource does not exist in this workspace.
409A request with this Idempotency-Key is still running; send it again shortly.
422This Idempotency-Key was already used for a different request.
429Rate limit exceeded; see the Retry-After header.

Codes that can come in the body of an error:

CodeMeaning
INVALID_INPUTThe body or a referenced resource is not valid; details.issues says why.
NOT_FREEFORMThe post is drawn by a design family and has no document yet. Convert it first.
QUOTA_REACHEDThe account has no credits left for this action.
AGENT_CREDIT_LIMITThe agent reached the monthly credit ceiling its owner set.
PAID_FEATURE_REQUIREDThe operation needs a paid plan.
LIMIT_REACHEDThe workspace holds the maximum number of skills or memories.
NAME_TAKENA skill with this name already exists.
OWNER_AUTHOREDThe skill or memory was written by the brand owner; an API key cannot delete it (403).
IDEMPOTENCY_KEY_INVALIDThe Idempotency-Key is empty, too long or has spaces (400).
IDEMPOTENCY_IN_PROGRESSA request with this Idempotency-Key is still running (409).
IDEMPOTENCY_KEY_REUSEDThe Idempotency-Key was already used for a different request (422).
IDEMPOTENCY_UNAVAILABLEThe Idempotency-Key could not be checked; nothing ran (503).

Rate limits

Limits are per API key and per hour, by scope. A request over the limit answers 429 with a Retry-After header.

scopeRequests per hour
instagram:insights:read120
content:read600
content:write120
content:publish60
webhooks:manage30
/api/mcp900

Safety rules

Safe defaults that hold in the API and in the MCP server:

RuleWhat happens
Keys stay in their workspaceA key bound to a workspace only works with that workspace in x-workspace-id; any other answers 401. A key never reaches a workspace its owner does not own.
Keys do not manage bots, keys or webhooksNo operation of the API or tool of the MCP server creates, pauses or deletes an agent, an API key or a webhook. That is done in the app, signed in.
A bot does not delete what the owner wroteDELETE /skills/{id} and DELETE /memories/{id} (delete_skill, delete_memory) refuse a skill or memory written by the brand owner: 403 OWNER_AUTHORED. Updating it is still allowed, so a bot can improve a skill or correct a memory.
What the owner recorded about the brand is read-onlyGET /brand-memories (list_brand_memories) only reads. A bot writes what it learned in the workspace notebook instead.
Only library imagesAn image URL from any other host is removed from a post; the answer lists it in removed. POST /photos (add_photo) brings a picture into the library first.
Publishing needs its own scopePOST /posts/{id}/schedule (schedule_post) needs the content:publish scope (403 without it); it is open to every account. A post only goes to the Instagram account connected to the workspace.
Creating spends creditsA post the bot asks the platform to write costs 1 post credit (a Reel script: 1 script credit), as in the app. A post the bot writes and designs itself and hands over ready (POST /posts/freeform) costs half a post credit; a Reel script it writes itself (POST /posts/reel-script), half a script credit. An AI-generated image is charged apart, from the image balance. It all comes from the same balance the app uses. With no credits left the answer is 403 QUOTA_REACHED; at the agent's own monthly cap it is 403 AGENT_CREDIT_LIMIT.
Keys travel in the header onlyA key sent in the URL is ignored. An unknown, revoked or expired key, and the key of a paused agent, all answer the same 401.

Idempotency

A write can be repeated safely. Send an Idempotency-Key header with a unique value you choose (a UUID is a good one): if the same request arrives again with the same value, it does not run again and you get the first answer back.

curl -X POST https://www.contentspilot.com/api/v1/posts \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Idempotency-Key: 4f1c2a9e-7b0d-4c1e-9a55-2d6e8f3b1c07" \
  -H "Content-Type: application/json" \
  -d '{"type":"carousel","subject":"…"}'
  • Use it on every write a retry could duplicate: POST /posts, POST /posts/freeform, POST /posts/{id}/schedule. It is accepted on every POST, PUT, PATCH and DELETE, and ignored on GET.
  • A key is remembered for 24 hours, per API key. Two API keys never see each other's values.
  • A repeated answer carries the header Idempotent-Replayed: true and the same status and body as the first.
  • Only a write that succeeded is remembered. One that failed frees its key, so you can fix the request and send it again with the same value.
  • In the MCP server every write tool takes an optional idempotencyKey argument that works the same way.
SituationAnswer
First request with the keyRuns and answers normally.
Same key, same request, already finishedThe first answer again, with Idempotent-Replayed: true. Nothing runs.
Same key, same request, still running409 IDEMPOTENCY_IN_PROGRESS with Retry-After. Send it again shortly to get the answer.
Same key, different request422 IDEMPOTENCY_KEY_REUSED. Use a new key for a new request.
Key that is empty, longer than 255 characters or has spaces400 IDEMPOTENCY_KEY_INVALID.
The key cannot be checked503 IDEMPOTENCY_UNAVAILABLE with Retry-After. Nothing ran; send it again.

Agents

  • An agent is a named bot of one workspace (OpenClaw, Hermes, Claude…). Its API key points at it, so every post it creates, edits, renders or schedules is attributed to it.
  • Pausing an agent in the app makes its key answer 401 until it is resumed. Disconnecting it revokes the key for good.
  • Agent Ops, in the app, shows what each agent did in a period: posts created, edits, renders, scheduled posts and failed calls with their error codes. Reads are not logged.
  • What an agent creates spends the credits of the account, like anything created in the app. The owner can cap how many credits each agent spends per month; GET /quota shows the balance, the cap and what each action costs.

Webhooks

Register an https address under Settings → Webhooks and choose the events it receives. Each event is one POST with a JSON body, sent once per registered address.

EventSent when
post.readyA post was written and designed; its status is draft.
post.failedWriting or designing a post failed.
post.renderedThe images of a post were rendered; data.renders lists their URLs.
post.publishedA scheduled post was published.
post.publish_failedPublishing a post failed for good.
{
  "id": "evt_Qm9…",
  "type": "post.ready",
  "created_at": "2026-11-15T12:00:00.000Z",
  "workspace_id": "<workspace uuid>",
  "data": { "post_id": "<post uuid>", "type": "carousel", "created_by": "agent" }
}
  • Every request carries X-ContentsPilot-Signature: t=<unix seconds>,v1=<hex>. The value of v1 is the HMAC-SHA256, keyed with the signing secret (whsec_…), of the string <t>.<raw request body>.
  • Compute it over the raw body, compare in constant time, and refuse a request whose t is more than 300 seconds away from your clock.
  • X-ContentsPilot-Event-Id repeats the id of the event: use it to ignore a delivery you already processed.

Important: Answer 2xx within 10 seconds. A 5xx, a 429 or a network error is retried with backoff for about an hour; any other answer is not retried. Redirects are not followed.

import { createHmac, timingSafeEqual } from 'node:crypto';

function isFromContentsPilot(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  const age = Math.abs(Date.now() / 1000 - Number(parts.t));
  if (!parts.t || !parts.v1 || age > 300) return false;
  const expected = createHmac('sha256', secret)
    .update(`${parts.t}.${rawBody}`)
    .digest('hex');
  return (
    expected.length === parts.v1.length &&
    timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1))
  );
}

Editing a post

A freeform post is HTML and CSS, and it is edited through operations: POST /posts/{id}/ops (the edit_post tool) takes a list of them. Nobody resends a whole post to change one headline. The editor in the app uses these same operations, so a post edited by a person and by a bot stays one document.

Note: A list of operations is applied all or nothing: if one of them is refused, none is saved.

  • Every element of a slide carries an id in its data-el attribute (e1, e2…), given when the document is stored. GET /posts/{id} returns the document with these ids and, in "elements", lists them slide by slide (el, tag, parent, text, slot, src, role). An operation names its element by slideId and el.
  • Operations on an element write on the element itself (inline style), over what the stylesheet of the slide gives it. Setting a property to null takes it off, so the stylesheet applies again. To move an element set its translate ("40px -12px"); to resize it set width and height in px; to turn it set its rotate ("-8deg").
  • An element that is a template slot (data-slot) can also be set by the name of the slot, with set_slot.
  • What an operation sends is sanitized like the rest of the document; the response lists in "removed" what was taken out. Image URLs must come from GET /photos.
  • Some elements have a role the editor understands, given by their class, and "elements" reports it as role. The slide background (cp-bg) is one <img> or <div> covering the slide behind everything else, set with set_slide_background. The shapes of a background style (cp-deco) are loose <svg> elements behind the content, set with set_background_style. The elements of the editor's Elements menu are drawn from data and changed with add_composite / update_composite instead of by hand: a list (<ul> or <ol>), and, with cp-group plus their own class, an icon list (cp-icon-list), steps (cp-steps), an icon grid (cp-icon-grid), a stat (cp-stat), a quote (cp-quote), a question (cp-question), a highlight box (cp-highlight), a comparison (cp-comparison), a big number (cp-big-number) and a chart (cp-chart, plus cp-chart-bar, cp-chart-hbar or cp-chart-donut). Anything with cp-group is picked as one in the editor. Colours of one slide only are set with set_slide_colors, and which element is drawn over which with reorder_layers. The common format names what each box says instead of how it looks: each slide is one <div class="cp-slide cp-layout-…"> (cover, content, cta or single) holding cp-kicker, cp-title, cp-text, cp-photo, cp-cta, the brand's @ (cp-handle, on every slide), the cover's swipe button (cp-swipe) and blocks of data; its look is the post's style, a stylesheet over those classes, changed with apply_style.
OperationFieldsWhat it does
set_textslideId, el, textReplaces the text of an element. A line break becomes <br>.
set_element_htmlslideId, el, htmlReplaces what an element contains with markup (strong, em, mark, br…).
set_styleslideId, el, styleSets inline CSS on an element, e.g. { "color": "#FFFFFF", "font-size": "96px" }. null removes a property. "translate" moves it, "width"/"height" resize it and "rotate" turns it around its middle ("-8deg").
set_imageslideId, el, src, alt?Changes the picture of an <img> element.
add_elementslideId, html, parent?, index?Adds one element, with what it contains, to the slide — or inside the element named by parent.
remove_elementslideId, elRemoves an element and what it contains.
duplicate_elementslideId, el, newEl?Copies an element right after itself.
set_slotslideId, slot, valueSets the text, or the image URL, of a template slot.
set_slide_htmlslideId, html, css?Replaces the HTML (and the CSS) of a slide.
add_slideslide, index?Adds a slide: { id, html, css? }.
remove_slideslideIdRemoves a slide.
move_slideslideId, toIndexMoves a slide to another position.
duplicate_slideslideId, newSlideIdCopies a slide.
set_theme_varname, valueSets a colour of the theme (--brand-…). null removes it.
set_fontsfontsSets the Google Fonts the post loads: [{ family, weights }].
set_shared_csscssReplaces the stylesheet shared by every slide. The post then leaves its named style (apply_style puts it back in one).
apply_stylestyleRedraws the whole post in a style of the common format: "plain" (no style: the words and photos on the background, in the post's colours and fonts) or a design family ("checklist", "cinema_viral", "case_study", "hype", "noticia_decodificada", "twitter_v2", "futuristic", "twitter", "editorial", "minimalist", "agency", "jornal", "playful"), which also brings the family's background, surface and text colours and its fonts; the accent stays the brand's. Texts, photos and blocks stay; what was moved, resized or recoloured by hand goes back to the style. A post in any other markup is first rewritten in the common format from what it says.
set_covercoverLays out the cover slide in the post's style: "classic" (the style's own cover), "photo" (the photo fills the slide and fades into it, words over it), "split" (the photo on the top half, words below) or "centered" (everything centred under a round photo). Words and photo stay; it survives apply_style. "photo" and "split" use the cover's photo, or turn its background image into the photo; on a cover with neither they look like "classic".
set_swipetextPuts the swipe button ("Swipe →") on the cover with text as its label, or takes it off with null. It is a box like the others (cp-swipe): it moves, resizes and takes its own colours; the style draws it and its arrow.
set_handletextPuts the brand's @ (cp-handle) on every slide of a post in the common format with text as its label, or takes it off every slide with null. The style places it.
set_counteronShows the page count ("2/7", cp-counter) on every slide of a post in the common format, or takes it off. It renumbers itself whenever slides are added, removed or moved; the style places it.
set_logosrcPuts the brand's logo (cp-logo) on every slide of a post in the common format, from a picture in our storage (get_post shows the brand's), or takes it off with null. The style places it.
set_avatarsrcPuts the profile avatar (cp-avatar) on every slide; only the styles with an author mark draw it ("twitter", "twitter_v2"), from a picture in our storage, or takes it off with null.
set_slide_backgroundslideId, backgroundWhat is behind the whole slide: { "type": "none" }, { "type": "color", "color": "#RRGGBB" }, { "type": "gradient", "from", "to", "angle"? } or { "type": "image", "src", "blur"?, "darken"?, "focusX"?, "focusY"?, "zoom"? } (src from the brand library; blur 0–40 px, darken 0–100, zoom 100–300). The editor shows it as the slide background.
set_slide_colorsslideId, colorsColours of one slide only: { "bg"?, "surface"?, "text"?, "accent"? } as #RRGGBB — the roles the theme names --brand-bg, --brand-surface, --brand-text, --brand-accent. Roles left out are kept; null goes back to the colours of the post.
set_background_styleslideId, styleDecorative shapes behind the content, as in the editor: none, waves, geometric, organic, minimal_corners, diagonal, circles, blobs, double_wave, editorial, roundly_capsules, confetti_burst, dotted_drift, pulse_rings or pebble_patch. Each shape becomes an element that can be moved or brought to the front.
add_compositeslideId, block, el?, parent?Adds an element drawn from data — block is { "kind", "data" }: list { ordered, items }, icon-list { items: [{ text, icon? }] }, steps { items: [{ title?, text }] }, icon-grid { items: [{ icon?, title?, text }] }, stat { number, label, source? }, quote { text, author? }, question { text }, highlight { text, icon? }, comparison { before: { label, text }, after: { label, text } }, big-number { number, label }, chart { type: bar | hbar | donut, unit, rows: [{ label, value, color? }] }. Icons are the keys GET /guidelines lists in format.icons.
update_compositeslideId, el, blockChanges the data of such an element — el is the element or any box inside it; send its whole data. What did not change keeps the formatting it was given by hand.
reorder_layersslideId, orderSets which element is drawn over which: order lists element ids, the one in front first.
POST /api/v1/posts/7b1f…/ops

{
  "ops": [
    { "type": "set_text", "slideId": "s1", "el": "e4", "text": "Three months on an app nobody asked for" },
    { "type": "set_style", "slideId": "s1", "el": "e4", "style": { "font-size": "96px", "translate": "0px -24px" } },
    { "type": "set_image", "slideId": "s2", "el": "e6", "src": "<url from GET /photos>" },
    { "type": "remove_element", "slideId": "s2", "el": "e9" }
  ]
}

Brand

Who the brand is and how it sounds. Read these before writing anything.

GET/api/v1/brandscope: content:read

Who the brand is: niche, voice, content pillars, visual brief.

Example request

curl -X GET https://www.contentspilot.com/api/v1/brand \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

GET/api/v1/guidelinesscope: content:read

The freeform post format, carousel rules and operating loop.

Example request

curl -X GET https://www.contentspilot.com/api/v1/guidelines \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

GET/api/v1/quotascope: content:read

What the key can still spend: the account's credit balance, the agent's own monthly ceiling when one is set, and what each action costs in credits.

Example request

curl -X GET https://www.contentspilot.com/api/v1/quota \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

GET/api/v1/photosscope: content:read

Brand photos that may be used in image slots.

Example request

curl -X GET https://www.contentspilot.com/api/v1/photos \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

POST/api/v1/photosscope: content:write

Add a picture to the brand library from a public HTTPS address (PNG, JPEG or WebP, at most 8MB, no redirect); answers with its library URL.

Body (JSON)

NameTypeRequired
urlstring (uri)yes

Example request

curl -X POST https://www.contentspilot.com/api/v1/photos \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"url":"<url>"}'

Success: 201

GET/api/v1/skillscope: content:read

The brand skill: Markdown files and their version.

Example request

curl -X GET https://www.contentspilot.com/api/v1/skill \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

GET/api/v1/skill/versionscope: content:read

Version of the brand skill, for a cheap change check.

Example request

curl -X GET https://www.contentspilot.com/api/v1/skill/version \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

Skills

A skill is a structure for one kind of post: how it is written and how it is drawn. The brand owner writes skills in the app; a bot can write them too, and is encouraged to record a structure that worked.

GET/api/v1/skillsscope: content:read

The brand's skills: how each kind of post is written and how it is drawn.

Example request

curl -X GET https://www.contentspilot.com/api/v1/skills \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Example response (200)

{
  "skills": [
    {
      "id": "3f0c…",
      "name": "Myth and truth carousel",
      "postType": "carousel",
      "summary": "When the topic is something the customer wrongly believes.",
      "writing": "Slide 1: the myth in quotes…",
      "design": "Cover with large text only…",
      "examplePostId": null,
      "isDefault": true,
      "author": "user",
      "updatedAt": "2026-11-14T00:17:41.316Z"
    }
  ]
}
POST/api/v1/skillsscope: content:write

Record a structure worth repeating as a skill.

Body (JSON)

NameTypeRequired
namestring (max 80)yes
postTypesarray—
summarystring (max 300)—
writingstring (max 6000)—
designstring (max 6000)—
examplePostIdstring | null (uuid)—
isDefaultboolean—

Example request

curl -X POST https://www.contentspilot.com/api/v1/skills \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>"}'

Success: 201

GET/api/v1/skills/{id}scope: content:read

One skill in full.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X GET https://www.contentspilot.com/api/v1/skills/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

PATCH/api/v1/skills/{id}scope: content:write

Change a skill; only the fields sent.

Path parameters

NameTypeRequired
iduuidyes

Body (JSON)

NameTypeRequired
namestring (max 80)—
postTypesarray—
summarystring (max 300)—
writingstring (max 6000)—
designstring (max 6000)—
examplePostIdstring | null (uuid)—
isDefaultboolean—

Example request

curl -X PATCH https://www.contentspilot.com/api/v1/skills/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"name":"<name>","postTypes":[]}'

Success: 200

DELETE/api/v1/skills/{id}scope: content:write

Delete a skill a bot wrote; one written by the brand owner is refused.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X DELETE https://www.contentspilot.com/api/v1/skills/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

Memory

The workspace notebook: a free area where bots and the brand owner record what was learned (what performed, mistakes to never repeat, preferences). The platform reads it when it writes a post. GET /brand-memories reads, without changing, what the owner recorded about the brand (projects, milestones, awards, stories).

GET/api/v1/brand-memoriesscope: content:read

What the brand's owner recorded about the brand: projects, milestones, awards, stories. Read-only.

Example request

curl -X GET https://www.contentspilot.com/api/v1/brand-memories \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Example response (200)

{
  "memories": [
    {
      "id": "51c0…",
      "title": "Opened the second clinic",
      "description": "In March we opened a second clinic, in Pinheiros, focused on sports physiotherapy.",
      "category": "milestone",
      "date": "2026-03-10",
      "postType": null,
      "updatedAt": "2026-03-12T14:02:11.000Z"
    }
  ]
}
GET/api/v1/memoriesscope: content:read

The workspace notebook: what bots and the user learned about making its posts.

Example request

curl -X GET https://www.contentspilot.com/api/v1/memories \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Example response (200)

{
  "memories": [
    {
      "id": "9a2e…",
      "title": "Question covers perform better",
      "content": "The three covers with a question got twice the saves of covers with a statement.",
      "kind": "performance",
      "postType": "carousel",
      "postId": null,
      "pinned": true,
      "author": "agent",
      "updatedAt": "2026-11-14T00:20:03.000Z"
    }
  ]
}
POST/api/v1/memoriesscope: content:write

Write down something worth keeping.

Body (JSON)

NameTypeRequired
titlestring (max 160)yes
contentstring (max 4000)yes
kindstring: learning | performance | mistake | preference | note—
postTypestring | null: carousel | post_unity | infographic—
postIdstring | null (uuid)—
pinnedboolean—

Example request

curl -X POST https://www.contentspilot.com/api/v1/memories \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"title":"<title>","content":"<content>"}'

Success: 201

PATCH/api/v1/memories/{id}scope: content:write

Correct a memory; only the fields sent.

Path parameters

NameTypeRequired
iduuidyes

Body (JSON)

NameTypeRequired
titlestring (max 160)—
contentstring (max 4000)—
kindstring: learning | performance | mistake | preference | note—
postTypestring | null: carousel | post_unity | infographic—
postIdstring | null (uuid)—
pinnedboolean—

Example request

curl -X PATCH https://www.contentspilot.com/api/v1/memories/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"title":"<title>","content":"<content>"}'

Success: 200

DELETE/api/v1/memories/{id}scope: content:write

Delete a memory a bot wrote that stopped being true; one written by the brand owner is refused.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X DELETE https://www.contentspilot.com/api/v1/memories/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

Style kits

Visual styles designed for the brand: a theme plus slide templates with editable slots. POST /style-kits/{id}/ops changes the templates themselves: every post made after is drawn with the change.

GET/api/v1/style-kitsscope: content:read

Style kits of the workspace and which one is active.

Example request

curl -X GET https://www.contentspilot.com/api/v1/style-kits \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

GET/api/v1/style-kits/{id}scope: content:read

A style kit in full: theme, shared CSS, templates and slots.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X GET https://www.contentspilot.com/api/v1/style-kits/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

POST/api/v1/style-kits/{id}/opsscope: content:write

Edit a kit's templates with the operations a post takes (slideId = template key). New posts are drawn with the result. All or nothing.

Path parameters

NameTypeRequired
iduuidyes

Body (JSON)

NameTypeRequired
opsarrayyes

Example request

curl -X POST https://www.contentspilot.com/api/v1/style-kits/<id>/ops \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"ops":[]}'

Success: 200

PUT/api/v1/style-kits/activescope: content:write

Choose the kit new posts are drawn with (null = classic family).

Body (JSON)

NameTypeRequired
kitIdstring | null (uuid)yes

Example request

curl -X PUT https://www.contentspilot.com/api/v1/style-kits/active \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"kitId":"00000000-0000-4000-8000-000000000000"}'

Success: 200

Posts

Create a post from a brief or send your own HTML and CSS, edit it with partial operations, render it to images and schedule it.

POST/api/v1/postsscope: content:write

Create a post from a brief; the platform writes and designs it. Costs one post credit (a Reel script: one script credit).

Body (JSON)

NameTypeRequired
typestring: carousel | post_unity | infographicyes
subjectstring (max 2000)yes
titlestring (max 200)—
objectivestring (13 values)—
skillIdstring (uuid)—
editableboolean—

Example request

curl -X POST https://www.contentspilot.com/api/v1/posts \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"type":"carousel","subject":"<subject>"}'

Example response (202)

{
  "postId": "7b1f…",
  "status": "queued",
  "runId": "run_…"
}
POST/api/v1/posts/freeformscope: content:write

Store a post designed by the caller as a freeform document. Costs half a post credit (0.5): the caller wrote and designed it.

Body (JSON)

NameTypeRequired
typestring: carousel | post_unityyes
titlestring (max 200)yes
documentobjectyes
captionstring (max 2200)—
hashtagsarray—

Example request

curl -X POST https://www.contentspilot.com/api/v1/posts/freeform \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"type":"carousel","title":"<title>","document":{}}'

Success: 201

POST/api/v1/posts/reel-scriptscope: content:write

Store a Reel script written by the caller: a hook, 3 to 7 beats and a closing call to action. Beats are numbered and the total duration added up by the server. Costs half a script credit (0.5): the caller wrote it.

Body (JSON)

NameTypeRequired
titlestring (max 200)yes
hookobjectyes
beatsarrayyes
ctaobjectyes
suggestedAudiostringyes
captionstring (max 2200)yes
hashtagsarray—

Example request

curl -X POST https://www.contentspilot.com/api/v1/posts/reel-script \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"title":"<title>","hook":{},"beats":[],"cta":{},"suggestedAudio":"<suggestedAudio>","caption":"<caption>"}'

Success: 201

GET/api/v1/posts/{id}scope: content:read

A post: status, caption and, when freeform, its document.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X GET https://www.contentspilot.com/api/v1/posts/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Example response (200)

{
  "postId": "7b1f…",
  "type": "carousel",
  "status": "draft",
  "format": "freeform",
  "conversion": null,
  "caption": "…",
  "hashtags": [],
  "document": { "schemaVersion": 2, "kind": "freeform", "size": "aspect-[4/5]", "theme": { … }, "sharedCss": "…", "slides": [ … ] }
}
PATCH/api/v1/posts/{id}scope: content:write

Set the caption and/or hashtags of a post.

Path parameters

NameTypeRequired
iduuidyes

Body (JSON)

NameTypeRequired
captionstring (max 2200)—
hashtagsarray—

Example request

curl -X PATCH https://www.contentspilot.com/api/v1/posts/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"caption":"<caption>","hashtags":[]}'

Success: 200

POST/api/v1/posts/{id}/opsscope: content:write

Apply partial edits to a freeform post. All or nothing.

Path parameters

NameTypeRequired
iduuidyes

Body (JSON)

NameTypeRequired
opsarrayyes

Example request

curl -X POST https://www.contentspilot.com/api/v1/posts/<id>/ops \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"ops":[]}'

Example response (200)

{
  "postId": "7b1f…",
  "slides": 6,
  "removed": [],
  "document": { … }
}
POST/api/v1/posts/{id}/convertscope: content:write

Turn a post drawn by a design family into a freeform post with the same look, editable through ops.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X POST https://www.contentspilot.com/api/v1/posts/<id>/convert \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 202

POST/api/v1/posts/{id}/renderscope: content:write

Start rendering a post into durable PNG images.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X POST https://www.contentspilot.com/api/v1/posts/<id>/render \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 202

GET/api/v1/posts/{id}/rendersscope: content:read

Rendered images of a post with layout warnings per slide.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X GET https://www.contentspilot.com/api/v1/posts/<id>/renders \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Example response (200)

{
  "postId": "7b1f…",
  "totalSlides": 6,
  "complete": true,
  "renders": [
    { "slideIndex": 1, "size": "aspect-[4/5]", "url": "https://…/slide-1-….png", "width": 2160, "height": 2700, "warnings": [], "stale": false }
  ]
}
POST/api/v1/posts/{id}/schedulescope: content:publish

Schedule a post to the connected Instagram account.

Path parameters

NameTypeRequired
iduuidyes

Body (JSON)

NameTypeRequired
scheduledAtstring (date-time)yes

Example request

curl -X POST https://www.contentspilot.com/api/v1/posts/<id>/schedule \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"scheduledAt":"2027-01-15T12:00:00.000Z"}'

Success: 200

POST/api/v1/posts/from-referencescope: content:write

Write the brand's own post from a reading of a reference post (title and angle from yourVersion, plus hook, structure and whyItWorked): the mechanism of the reference, the brand's facts. Costs the credits of its format.

Body (JSON)

NameTypeRequired
titlestring (max 200)yes
anglestring (max 2000)yes
hookstring (max 500)—
structurestring (max 2000)—
whyItWorkedstring (max 2000)—
typestring: carousel | post_unity | infographic—
shortCodestring—

Example request

curl -X POST https://www.contentspilot.com/api/v1/posts/from-reference \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"title":"<title>","angle":"<angle>"}'

Success: 202

POST/api/v1/posts/from-newsscope: content:write

Write a post from one news item of GET /news, named by its exact title. Costs the credits of its format.

Body (JSON)

NameTypeRequired
titlestring (max 400)yes
typestring: carousel | post_unity | infographic—

Example request

curl -X POST https://www.contentspilot.com/api/v1/posts/from-news \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"title":"<title>"}'

Success: 202

References

Learn from posts that worked. Follow reference profiles of the niche and read their best posts, or read any public post from its link; each reading explains why the post worked, its structure and the brand's own version, which POST /posts/from-reference turns into a post. Only the mechanism is reused, never the words.

GET/api/v1/referencesscope: content:read

The reference profiles the workspace follows.

Example request

curl -X GET https://www.contentspilot.com/api/v1/references \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

POST/api/v1/referencesscope: content:write

Follow a reference profile (Instagram link or @username). It is read in the background (about a minute): poll GET /references/{id} until status is "ready". Paid plans; limited per plan.

Body (JSON)

NameTypeRequired
profilestring (max 300)yes

Example request

curl -X POST https://www.contentspilot.com/api/v1/references \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"profile":"<profile>"}'

Success: 202

GET/api/v1/references/{id}scope: content:read

A reference profile and its best posts (format, numbers, caption and pictures).

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X GET https://www.contentspilot.com/api/v1/references/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

DELETE/api/v1/references/{id}scope: content:write

Stop following a reference profile.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X DELETE https://www.contentspilot.com/api/v1/references/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

POST/api/v1/references/{id}/posts/{shortCode}/adaptscope: content:write

Read one post of a reference profile for the brand: why it worked, its structure and the brand's own version (yourVersion). Send it to POST /posts/from-reference to have the post written.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X POST https://www.contentspilot.com/api/v1/references/<id>/posts/{shortCode}/adapt \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

GET/api/v1/reference-postsscope: content:read

Instagram posts read from their link, newest first, each with why it worked and the brand's version; and how many readings are left today.

Example request

curl -X GET https://www.contentspilot.com/api/v1/reference-posts \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

POST/api/v1/reference-postsscope: content:write

Read an Instagram post from its link (/p/…, /reel/… or /tv/…), in the background (about a minute); it then appears in GET /reference-posts. At most 10 a day; each reading costs credits.

Body (JSON)

NameTypeRequired
urlstring (max 500)yes

Example request

curl -X POST https://www.contentspilot.com/api/v1/reference-posts \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"url":"<url>"}'

Success: 202

News

News of the brand's niche, found by searches within the plan's limit and decoded for its audience. POST /posts/from-news writes a post from one of them, keeping its source.

GET/api/v1/newsscope: content:read

News of the niche the last searches found: title, summary, source, the take for the brand's audience, a hook and the suggested kind of post.

Example request

curl -X GET https://www.contentspilot.com/api/v1/news \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

POST/api/v1/news/searchscope: content:write

Search for new news of the niche, in the background (one to two minutes), within the plan's number of searches; then poll GET /news.

Example request

curl -X POST https://www.contentspilot.com/api/v1/news/search \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 202

Instagram insights

Performance of what the brand already published.

GET/api/v1/instagram/media-insightsscope: instagram:insights:read

Per-media Instagram insights of the connected account.

Query parameters

NameTypeRequired
media_idstring—
sincestring—
untilstring—
media_typestring—

Example request

curl -X GET https://www.contentspilot.com/api/v1/instagram/media-insights \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

Webhooks

Be told when something happens to a post instead of asking again and again: register a public https address and the events it wants (post.ready, post.failed, post.rendered, post.published, post.publish_failed). Every delivery is signed with the secret returned once, at creation. A webhook registered with a bot's key belongs to that bot: it is told only about the posts that bot created, and only that bot manages it. One registered with a key of no bot is told about every post of the brand.

GET/api/v1/webhooksscope: webhooks:manage

The brand's webhooks: where its events are sent (never the secrets).

Example request

curl -X GET https://www.contentspilot.com/api/v1/webhooks \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

POST/api/v1/webhooksscope: webhooks:manage

Register a public https address for the events chosen; the signing secret is in this response only.

Body (JSON)

NameTypeRequired
urlstring (uri)yes
descriptionstring (max 200)—
eventsarrayyes

Example request

curl -X POST https://www.contentspilot.com/api/v1/webhooks \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"url":"<url>","events":[]}'

Success: 201

PATCH/api/v1/webhooks/{id}scope: webhooks:manage

Change the events of a webhook, or pause and resume it.

Path parameters

NameTypeRequired
iduuidyes

Body (JSON)

NameTypeRequired
eventsarray—
isActiveboolean—

Example request

curl -X PATCH https://www.contentspilot.com/api/v1/webhooks/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>" \
  -H "Content-Type: application/json" \
  -d '{"events":[],"isActive":false}'

Success: 200

DELETE/api/v1/webhooks/{id}scope: webhooks:manage

Remove a webhook and its delivery history.

Path parameters

NameTypeRequired
iduuidyes

Example request

curl -X DELETE https://www.contentspilot.com/api/v1/webhooks/<id> \
  -H "Authorization: Bearer cp_live_…" \
  -H "x-workspace-id: <workspace uuid>"

Success: 200

MCP server

The MCP server speaks Streamable HTTP (stateless) at /api/mcp. Authenticate with the same bearer key and x-workspace-id header. Every tool wraps one operation of this API, so both behave the same.

https://www.contentspilot.com/api/mcp

Tip: Start with get_guidelines and get_skill; then list_skills, list_memories and list_brand_memories before creating a post.

ToolscopeWhat it does
get_guidelinescontent:readStart here. Returns the freeform post format, the rules for a good carousel and the operating loop (create → render → fix warnings → schedule). Static: read it once per session.
get_skillcontent:readReturns the brand guide as Markdown files (SKILL.md, brand.md, style.md, playbook.md, skills.md, brand-memories.md, memory.md, api.md) that teach you to post for this brand, plus a version. It already came with the connection's instructions; call it again to refresh during a long session, comparing 'version' to know whether it changed.
list_skillscontent:readReturns the brand's skills. A skill is a structure for one kind of post (carousel, post_unity, infographic or any): 'writing' says how it is written, 'design' how it is drawn. Read them before creating a post and follow the default of the kind you are making.
save_skillcontent:writeCreates a skill, or updates one when 'id' is sent (only the fields sent change). Do this when a structure worked and should be repeated, or to improve the skill you just used. Write 'writing' and 'design' as instructions another agent could follow: slide by slide, with the rules that matter. 'postTypes' lists the kinds of post it serves (a carousel structure does not fit a Reels script: write one skill per family of kinds). 'isDefault' makes it the skill used for all its kinds when none is named; another skill that was the default of one of those kinds stops being it for that kind only.
delete_skillcontent:writeDeletes a skill a bot wrote. A skill written by the brand owner is refused (OWNER_AUTHORED): the owner deletes it in the app. To improve one, use save_skill instead.
list_memoriescontent:readReturns the workspace notebook: what bots and the user learned about making this brand's posts (what performed, mistakes to never repeat, preferences). Read it before creating a post. The platform reads the same notebook when it writes one.
list_brand_memoriescontent:readReturns what the brand's owner recorded about the brand in the app: projects, milestones, awards, stories, offers, each with its category and date. Read it before writing, to speak of the brand with real facts. Read-only: these are the owner's words; write what you learned with save_memory instead.
save_memorycontent:writeWrites a memory, or updates one when 'id' is sent. Use it freely: after a post, after reading its numbers, after a correction from the user, after an error. One fact per memory, specific. kind: performance (what the numbers showed), mistake (never repeat), preference (how the brand likes it), learning, note. 'pinned' memories are always used when the platform writes a post. Update a memory that changed instead of adding a contradicting one.
delete_memorycontent:writeDeletes a memory a bot wrote that stopped being true. A memory written by the brand owner is refused (OWNER_AUTHORED): correct it with save_memory, or the owner deletes it in the app.
get_brandcontent:readReturns who the brand is: niche, language, voice (phrases to use and avoid), content pillars and the visual brief. Read it before writing any copy.
get_quotacontent:readReturns what you can still spend: the account's credit balance (shared with the app and every brand of the account), your own monthly credit ceiling when the owner set one, and what each action costs in credits. Creating a post, searching news and reading a reference spend credits. Check before creating several.
list_style_kitscontent:readLists the brand's style kits (unique visual styles designed from its Instagram) with preview images, and which one is active. Use get_style_kit to read one in full.
get_style_kitcontent:readReturns one style kit in full: theme variables, shared CSS and every slide template with its HTML, CSS, slot names and elements (their el ids). Build a freeform post by copying templates and replacing the text inside their slots, or change the templates themselves with edit_style_kit.
edit_style_kitcontent:writeEdits the templates of a style kit, so every post made from now on is drawn with the change (posts already made keep their own copy). Takes the same operations as edit_post; each template is a slide whose slideId is its key (cover_a, cover_b, cover_c, cover_d, content_text, content_list, content_stat, content_quote, content_photo, cta, single_post) and el is an id listed by get_style_kit. Typical edits: remove_element to take something off, add_element or add_composite to put something on every post, set_style to move, resize or recolour, set_theme_var and set_fonts for the kit's colours and fonts. An element with data-slot is filled with the post's words (its text here is only a sample); an element without one is drawn as it is on every post. Not allowed: adding, removing, moving or duplicating slides, leaving a template with no text slot, or taking the image slot off cover_d. All or nothing.
activate_style_kitcontent:writeChooses the style kit that posts created from a brief are drawn with. Pass kitId null to go back to the classic design family.
list_photoscontent:readLists the brand's photos. Only these URLs are accepted in image slots; any other image host is removed from a post.
add_photocontent:writeAdds a picture to the brand library from a public HTTPS address (PNG, JPEG or WebP, at most 8MB, answered without a redirect) and returns its library url — the one to use in a post (set_image, set_slide_background). Use it only for pictures the brand may use.
create_postcontent:writeAsks the platform to write and design a post from a brief, in the brand's voice and active style, following the skill and the memories of the workspace. Returns a postId with status 'queued'; poll get_post until status is 'draft' (usually 1-3 minutes). Costs the credits of its format.
create_freeform_postcontent:writeStores a post you designed yourself as a freeform document (see get_guidelines for the format, get_style_kit for templates to reuse). The document is sanitized; 'removed' lists what was dropped. Costs half a post credit (0.5): you wrote and designed it, the platform only checks, stores and draws it. A post the platform writes for you (create_post, from news, from a reference) costs a whole one. Next: render_post.
create_reel_scriptcontent:writeStores a Reel script you wrote yourself: a hook (up to 3 seconds), 3 to 7 beats (2 to 8 seconds each; role 'value', 'proof' or 'twist') and a closing call to action (2 to 6 seconds, 1 or 2 spoken sentences, on one channel). The whole script lasts 15 to 90 seconds. Only the closing may ask for an action (follow, comment, save, link in bio). Beats are numbered and the total duration added up for you; a script that breaks a rule comes back as INVALID_INPUT with the issues. Costs half a script credit (0.5): you wrote it. Next: get_post.
get_postcontent:readReturns a post: status ('queued' while being generated, 'draft' when ready), caption, hashtags, format ('freeform' or 'legacy') and, for a freeform post, its document and 'elements': for each slide, the elements an edit can name (el, tag, parent, text, slot, src, and role for the slide background, a list, an icon list or a chart). A legacy post has no document until convert_post.
convert_postcontent:writeTurns a post with format 'legacy' (drawn by a built-in design family) into a freeform post that looks the same, so you can edit its HTML and CSS with edit_post. Runs in the background (about a minute): call get_post until format is 'freeform'. If conversion becomes 'not_faithful' the copy was refused and the post is unchanged.
edit_postcontent:writeEdits a freeform post with partial operations instead of resending it. All or nothing. Operations: set_slot, set_text, set_element_html, set_style, set_image, add_element, remove_element, duplicate_element, set_slide_html, add_slide, remove_slide, move_slide, duplicate_slide, set_theme_var, set_fonts, set_shared_css, apply_style, set_cover, set_swipe, set_handle, set_counter, set_logo, set_avatar, set_slide_background, set_slide_colors, set_background_style, add_composite, update_composite, reorder_layers. An element is named by slideId and el (its data-el id, listed by get_post): set_text and set_element_html change what it says, set_style its inline CSS (null removes a property; "translate" moves it, "width"/"height" resize it, "rotate" turns it, e.g. "-8deg"), set_image its picture. add_element puts one new element on a slide, remove_element and duplicate_element do what they say. set_slot still sets a template slot by name. What the editor does in one click is one operation too: set_slide_background (none, color, gradient or a library image behind the slide), set_slide_colors (the four theme colours for one slide), set_background_style (the decorative shapes of the editor), add_composite / update_composite (lists, steps, stats, quotes, questions, highlight boxes, comparisons, big numbers, icon lists and grids, charts — from data; get_guidelines lists their data and the icon keys) reorder_layers (which element is in front) and apply_style (redraws the whole post in a style, keeping its words, photos and blocks: "plain" = no style, or a design family — "checklist", "cinema_viral", "case_study", "hype", "noticia_decodificada", "twitter_v2", "futuristic", "twitter", "editorial", "minimalist", "agency", "jornal", "playful" — which also brings its background colours and fonts), set_cover (lays the cover out: "classic", "photo", "split" or "centered"), set_swipe (the cover's swipe button: its label, or null to take it off), set_handle (the brand's @ on every slide, or null to take it off), set_counter (the page count "2/7" on every slide, on or off), set_logo / set_avatar (the brand's logo on the cover and the last slide, or the profile avatar drawn by the Twitter styles, from a picture in our storage, or null). Use it to fix the warnings reported by get_renders, then render_post again.
set_captioncontent:writeSets the caption and/or hashtags of a post.
render_postcontent:writeStarts rendering a post into PNG images. Returns immediately; call get_renders until 'complete' is true (usually under a minute). Slides that did not change are not rendered again.
get_renderscontent:readReturns the rendered images of a post: one URL per slide plus layout warnings (overflow, out_of_bounds, text_too_small, low_contrast, image_failed, image_empty) naming the slot at fault. 'stale' means the slide changed since that image. Fix every warning with edit_post before scheduling.
schedule_postcontent:publishSchedules a post to the workspace's connected Instagram account at a future time (ISO 8601, UTC). Needs the content:publish scope. Do this last, after the renders have no warnings.
list_referencescontent:readLists the reference profiles the workspace follows (id, username, followers, status, last analysis).
add_referencecontent:writeFollows a reference profile of the brand's niche (an Instagram link or @username). It is read in the background in about a minute: poll get_reference until status is 'ready'. Paid plans; the number of profiles is limited per plan.
get_referencecontent:readReturns a reference profile with its best posts: shortCode, format (carousel, image, reel), likes, comments, caption and the pictures (media, our copies; a carousel's slides in order, a reel's cover). Pick a post and call adapt_reference_post.
delete_referencecontent:writeStops following a reference profile.
adapt_reference_postcontent:writeReads one post of a reference profile for the brand: whyItWorked, structure and yourVersion (title, hook, angle, type) — the same mechanism with the brand's own content. Then call create_post_from_reference with it.
read_post_linkcontent:writeReads any public Instagram post from its link (/p/…, /reel/… or /tv/…), in the background (about a minute): it then appears in list_reference_posts with whyItWorked, structure and yourVersion. At most 10 a day; each reading costs credits.
list_reference_postscontent:readLists the posts read from their link, newest first, each with its pictures, whyItWorked, structure and yourVersion, and how many readings are left today.
create_post_from_referencecontent:writeWrites the brand's own post from a reading (adapt_reference_post or list_reference_posts): pass yourVersion.title as title, yourVersion.angle as angle, yourVersion.hook as hook, and structure and whyItWorked. The reference's mechanism, the brand's facts — never its text. Pass shortCode for a post read from its link. Spends one post of the quota; poll get_post until 'draft'.
list_newscontent:readLists the news of the brand's niche the last searches found: title, summary, source, the take for the brand's audience (nicheTake), a hook, the suggested kind of post and whether a post was already made from it.
search_newscontent:writeSearches for new news of the niche in the background (one to two minutes), within the plan's number of searches; then call list_news.
create_post_from_newscontent:writeWrites a post from one news item of list_news, named by its exact title: the news decoded for the brand's audience, with its source. Spends one post of the quota; poll get_post until 'draft'.
list_webhookswebhooks:manageLists the brand's webhooks: where its events are sent, which events each one gets and whether it is paused. Never the signing secrets. Needs the webhooks:manage scope.
create_webhookwebhooks:manageRegisters a public https address to be told about the brand's posts instead of polling get_post. Events: post.ready, post.failed, post.rendered, post.published, post.publish_failed. The answer carries the signing secret once: store it and use it to check the X-ContentsPilot-Signature header of every delivery. Needs the webhooks:manage scope. Only register an address the account owner asked for or that is your own.
update_webhookwebhooks:manageChanges which events a webhook gets, or pauses and resumes it (isActive). Its address and its secret do not change. Needs the webhooks:manage scope.
delete_webhookwebhooks:manageRemoves a webhook and its delivery history. Needs the webhooks:manage scope.

OpenAPI, llms.txt and skill

AddressWhat it is
/api/v1/openapi.jsonOpenAPI 3.1 document of every operation on this page.
/llms.txtShort description of the product and the API for language models.
/agent-skills/contents-pilot/SKILL.mdA generic skill any agent can install; it tells the agent to fetch the brand guide.
/api/v1/docs.mdThis reference as one Markdown file, for agents. Add ?lang=pt or ?lang=es for another language.
/api/v1/skillThe brand guide of the workspace as Markdown files, including its skills and memories.