ClipEmber API reference
Everything the app does is a REST call under /api/v1: post your own videos or clips to TikTok, YouTube Shorts, Instagram Reels, LinkedIn and Bluesky, make clips, read analytics and get webhooks. Keys come with Pro and Agency. Working from Claude or ChatGPT instead? The MCP server needs no key.
01Basics
Before the first call.
- Base URL
https://clipember.com/api/v1- Authentication
- An API key in the
X-API-Keyheader. New keys come with Pro and Agency, and during the 7-day Pro trial; a key you already have keeps working on any plan. The secret is shown once. - Format
- JSON in, JSON out. Responses sit under
data; times are ISO 8601, sent with an offset. Errors share one shape,{ "error": { "code", "message", "retryable" } }, with a message written for a person. Error codes - Rate limits
- Per account, per minute. Responses carry
X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Reset; over the limit you get429 rate_limitedwith aRetry-Afterheader. - Webhooks
- Signed POSTs for post.scheduled, post.published, post.failed, post.unconfirmed, post.first_comment_failed, post.deferred, post.canceled, post.updated, post.deleted_remote, post.remote_action_failed, account.connected, account.disconnected, account.reauth_required, clip.ready, request.failed, so you don’t have to poll. Up to 10 addresses on Pro, 30 on Agency. Details
- From a chat instead
- Claude and ChatGPT use the MCP server: no key, every plan. Set it up
- Integration guides
- Step by step, with code: n8n, Make, LangChain, Vercel AI SDK and OpenAI Agents SDK. All guides
02Your first post
From a key to a scheduled post in three calls.
TikTok posts need one more thing: who can see the post, chosen by a person for that post. Sent without it, a TikTok post waits in the TikTok queue.
- 1. Get a key
- Create it in the app, or with
POST /api/v1/keysfrom a signed-in session — never with another key. Store it straight away: we keep only a hash. - 2. Find your accounts
- Accounts are connected in the app, through each network’s own sign-in. Each one has an id you pass as
connectionId.curl https://clipember.com/api/v1/connections \ -H "X-API-Key: cf_..."
- 3. Schedule a post
- One call, one video, as many accounts as you list — each with its own caption. A video of your own needs a
mediaIdfirst (upload or import it); a clip made here usesclipId.curl -X POST https://clipember.com/api/v1/posts \ -H "X-API-Key: cf_..." -H "Content-Type: application/json" \ -d '{ "source": { "mediaId": "<mediaId>" }, "mode": "schedule", "scheduledFor": "2026-12-01T14:00:00Z", "targets": [ { "platform": "youtube_shorts", "connectionId": "<connectionId>", "caption": "Three hours of footage, one minute of story" }, { "platform": "instagram_reels", "connectionId": "<connectionId>", "caption": "Three hours → one minute #editing" } ] }'
The TikTok fields, every error code and the limits per plan are in the reference below: Posts, plan limits, error codes.
03Full reference
Machine-readable spec: OpenAPI 3.1 at /api/v1/openapi.json, generated from the same schemas the API validates with — import it into Postman, Insomnia or a client generator.
Authentication
Create a key in the app (or via POST /api/v1/keys with a session — never with another key) and pass it as X-API-Key. The secret is shown once; we store only a hash. New keys are issued on Pro and Agency (and during the 7-day Pro trial); a key you already have keeps working on any plan. Requests are rate-limited per account per minute: responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds), and over the limit you get 429 rate_limited with a Retry-After header.
curl -X POST $BASE/api/v1/keys \
-H "Content-Type: application/json" \
--cookie "$SESSION_COOKIE" \
-d '{"name": "my-integration"}'
# -> { "data": { "apiKey": "cf_..." } } # store it nowTimes. The media, accounts, posts and webhooks endpoints, and every webhook body, return times as ISO 8601 in UTC with milliseconds, e.g. 2026-12-01T14:00:00.000Z. Send scheduledFor, from and to as ISO 8601 with an offset (Z or +02:00).
Words in the app vs the API. A credit here is what the app calls a video to clip: one long video turned into clips. The Free publishing cap (publishQuota, publish_limit) is shown in the app as posts a month. A post with status queued is shown as Scheduled.
Clips
POST /api/v1/shorts
Create a clips request. Costs 1 credit. Exactly one source: url (YouTube), fileUrl (direct video link) or uploadKey (see uploads).
curl -X POST $BASE/api/v1/shorts \
-H "X-API-Key: cf_..." -H "Content-Type: application/json" \
-d '{
"fileUrl": "https://example.com/episode.mp4",
"start": 0, "end": 1200,
"preferredLength": "under60sec",
"noClipping": false,
"captionStyleId": "rise",
"webhookUrl": "https://your.app/hooks/clipember",
"externalId": "episode-42"
}'
# 202 -> { "data": { "requestId": "...", "status": "processing", "creditsUsed": 1, "externalId": "episode-42" } }captionStyleId — the caption style of the first render: a preset id or one of your styles from GET /api/v1/caption-styles (an unknown id is a 400, no credit spent). "captions": false renders without captions. externalId — optional, your own reference id (1–128 characters, no control characters). It comes back as externalId in GET /api/v1/requests, GET /api/v1/requests/:id and the webhookUrl callback; filter with GET /api/v1/requests?externalId=…. It isn’t unique — to avoid duplicates on retries, send an Idempotency-Key.
GET /api/v1/caption-styles
Caption presets ({ id, name, font, animation }) and your own styles. Use either id as captionStyleId.
{ "data": [
{ "id": "<styleId>", "name": "My loud", "baseId": "punch", "sizePx": 110, "position": "middle",
"overrides": { "font": "bangers", "lines": 1, "colors": { "spoken": "#00FF00" } },
"createdAt": "…", "updatedAt": "…" }
], "presets": [{ "id": "karaoke", "name": "Karaoke", "font": "montserrat-extrabold", "animation": "karaoke" }, …] }POST /api/v1/caption-styles
Save a style: name, baseId (a preset id), overrides (font, lines 1–3, colors, case, outlinePx, shadowPx, italic, underline, background, animation — the same keys as captions.overrides in an EDL), sizePx (27–135) and position (auto, top, middle, bottom). 201; 400 for an unknown preset or font; 409 limit_reached.
GET /api/v1/caption-styles/:id
One of your styles. 404 caption_style_not_found.
PUT /api/v1/caption-styles/:id
Replace a style (same body as POST). Clips that already use it keep their look — they hold a copy.
DELETE /api/v1/caption-styles/:id
Delete a style. Clips keep their look.
GET /api/v1/recipes
Recipes for the creation screen: the four built-in ones (system, ids sys:*) and yours (data). A recipe is a set of options: clipping, lengths, teaser, captions, captionStyleId, speechCleanup, ratio, layouts.
POST /api/v1/recipes
Save a recipe: name (1–60) and settings. 201; 400 for an unknown captionStyleId; 409 limit_reached. Send its name as recipe in POST /api/v1/shorts to show it on the project.
PUT /api/v1/recipes/:id
Replace one of your recipes (same body as POST). Built-in ones can't be changed. 404 recipe_not_found.
DELETE /api/v1/recipes/:id
Delete one of your recipes. Projects made with it don't change.
GET /api/v1/brand-kits
Your brand kits (data) and how many your plan allows (limit). A kit holds a logo (assetId, position, sizePct 5–40, opacity), captionStyleId, headlineStyle, music, and per ratio: layouts, intro and outro (video assetIds).
POST /api/v1/brand-kits
Create a kit: name (1–60) and settings. Files are your uploads from POST /api/v1/broll. 201; 400 for someone else's file or an unknown caption style; 403 brand_kit_limit. Send its id as brandKitId in POST /api/v1/shorts.
PUT /api/v1/brand-kits/:id
Replace one of your kits (same body as POST). Clips that already use it keep their look. 404 brand_kit_not_found.
DELETE /api/v1/brand-kits/:id
Delete a kit. Clips and projects made with it don't change.
GET /api/v1/fonts
Your caption fonts (data) and how many your plan allows (limit). Each font has a key (u-<id>) — use it as the caption font: overrides.font in a caption style or captions.overrides.font in a clip edit.
POST /api/v1/fonts
Upload a font as multipart/form-data field file: a single TTF or OTF up to 5 MB. 201; 400 invalid_font (not a font, a collection, WOFF, damaged); 403 font_limit.
DELETE /api/v1/fonts/:id
Delete a font. Captions that used it render with their preset's font.
GET /api/v1/brand-vocabulary
Your brand vocabulary: terms (up to 30 names). New projects fix close misspellings of them in the transcript.
PUT /api/v1/brand-vocabulary
Replace the whole list: terms (each 2–40 characters, no duplicates). Projects already made don't change.
GET /api/v1/censor-lists
The default censor list (isDefault, read-only) and yours: name and words.
POST /api/v1/censor-lists
Create a list: name (1–60) and words (up to 500, stored lowercase). 201; 403 censor_list_limit (10 lists).
PUT /api/v1/censor-lists/:id
Replace one of your lists (same body as POST). The default list can't be changed — 403 censor_list_read_only.
DELETE /api/v1/censor-lists/:id
Delete one of your lists.
GET /api/v1/requests
Your requests, newest first, with clip counts and externalId. Filter: externalId (exact match).
GET /api/v1/requests/:id
Request status, pipeline stages (ingest → transcribe → highlight → crop_plan → render) and clips. Includes the source video title once ingest resolves it. Rendered clips include a time-limited downloadUrl and a thumbUrl poster frame.
POST /api/v1/uploads
Returns a presigned PUT URL for a direct browser/CLI upload; pass the returned key to /shorts as uploadKey. (To post a video of your own as is, without clipping, use /api/v1/media instead.)
curl -X POST $BASE/api/v1/uploads \
-H "X-API-Key: cf_..." -H "Content-Type: application/json" \
-d '{"filename": "episode.mp4", "contentType": "video/mp4"}'
# -> { "data": { "key": "uploads/<you>/<uuid>.mp4", "putUrl": "https://..." } }
curl -X PUT -H "Content-Type: video/mp4" --data-binary @episode.mp4 "$PUT_URL"GET /api/v1/clips/:id
A single clip with the transcript words inside its window and the saved EDL (always version 2) — the editor's data source.
POST /api/v1/clips/:id/compile
Re-render one clip from an EDL version 2 document: pieces of the source in any order (segments, times in ms), removed words (from video and captions, or from captions only), caption style, layout, background, hookTitle / ctaText. Version 1 documents are still accepted and converted. Recompiles are free.
{
"version": 2, "sourceAssetId": "…",
"segments": [ // played in this order
{ "id": "intro", "srcStartMs": 187000, "srcEndMs": 206000,
"layout": "fill", "crop": { "keyframes": [{ "tMs": 0, "x": 0.4 }] } },
{ "id": "later", "srcStartMs": 412500, "srcEndMs": 420000, "layout": "fill",
"crop": { "keyframes": [{ "tMs": 0, "x": 0.4 }] } }
],
"words": { "removed": [
{ "srcStartMs": 191200, "srcEndMs": 191450, "mode": "video" }, // cut from video and captions
{ "srcStartMs": 195000, "srcEndMs": 195300, "mode": "caption" } // captions only
] },
"captions": {
"styleId": "neon", // bold-pop | karaoke | minimal | boxed |
// neon | sunset | grape | subtle | inkbox
"sizePct": 62, "position": { "mode": "free", "y": 0.73 }, // or auto | top | middle | bottom
"wordsPerCaption": 3,
"grouping": "phrase", // phrase: split at sentences/pauses, max 2 lines,
// wordsPerCaption is the upper bound; fixed (default
// when omitted): exactly wordsPerCaption words
"translateTo": "en" // optional: caption translation (audio unchanged)
},
"hookTitle": "WAIT FOR IT…", // static title, top of the clip
"ctaText": "Follow for part 2" // static call-to-action, bottom
}POST /api/v1/clips/:id/feedback
Thumbs up/down on a clip: {value: -1 | 0 | 1}. Feedback is stored per clip and will feed scorer tuning.
POST /api/v1/channels
Channel Automation: pass {channel: 'UC…' | 'youtube.com/channel/UC…'}. New uploads are auto-clipped with your settings; the first check only baselines (no backlog charges). GET lists channels, DELETE /api/v1/channels/:id disconnects.
If a request carries webhookUrl, we POST there when processing finishes — on success and on failure, three attempts a few seconds apart. This callback is not signed, so treat it as a nudge and read the result with GET /api/v1/requests/:id. Signed account-level webhooks (clip.ready, request.failed, and events about posts and accounts) are below.
{
"event": "request.completed", // or "request.failed"
"requestId": "…",
"status": "completed",
"externalId": "episode-42", // yours from POST /api/v1/shorts, or null
"clips": [
{ "id": "…", "score": 92, "title": "…",
"startMs": 187000, "endMs": 206000, "status": "rendered" }
]
}Plan limits for posting
The same limits apply in the app, the API and the MCP server. New accounts get 7 days of Pro first.
| Plan | Videos published a month | Social accounts | Schedule ahead | Webhook endpoints |
|---|---|---|---|---|
| Free | 3 | 3 | 7 days | Not included |
| Creator | No limit | 3 | 30 days | Not included |
| Pro | No limit | 10 | 90 days | 10 |
| Agency | No limit | 30 | 90 days | 30 |
- Videos a month counts different videos (a clip or a video of your own) with a post created this calendar month (UTC) that is queued, posted or unconfirmed. One video posted to three networks, or to two accounts, counts once. Drafts, canceled and failed posts don’t count; retrying a failed post checks the limit again. Over it:
403 publish_limitwithlimit,usedandresetsOn(the 1st of next month). - Social accounts are counted across all networks. An account whose access the network revoked still holds its slot until you remove it. Connecting one more than the plan allows is refused with
403 account_limit(withlimitandused). A downgrade never disconnects accounts: the ones over the new limit are locked (locked: trueinGET /api/v1/connections) — the oldest stay active unless the owner chooses others. Creating or editing a post on a locked account is refused with403 account_locked; its queued posts wait (the post’serrorsays why) and fail 7 days after their time. Upgrading unlocks them. - Schedule ahead: a
scheduledForfurther out is refused with403 plan_requiredandfeature: "scheduleHorizonDays".
Your own videos
Post a finished video as is — no clipping, no credits. Formats: video/mp4, video/quicktime, video/webm, image/jpeg, image/png, image/webp, image/heic, image/heif, application/pdf, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document; up to 1 GB and 15 min. Upload the file, or let us fetch it from a link. Photos (JPEG, PNG, WebP, HEIC) up to 50 MB go to the same library with kind: "image": we turn each into a JPEG in the right orientation, without location or camera data. Photo posts are coming soon; until then a photo can’t be the source of a video post (400 media_is_photo). Documents for LinkedIn — PDF, PowerPoint (PPT, PPTX) or Word (DOC, DOCX) up to 100 MB and 300 pages — go there too with kind: "document": we check the file really is that type and count a PDF’s pages (pageCount). Post one with source: {documentId}: LinkedIn shows it as a swipeable document with settings.documentTitle (else the file name) above it; other networks are skipped with the reason. A document as the source of a video post is 400 media_is_document.
POST /api/v1/media
Start an upload: {filename, contentType, sizeBytes}. Returns a presigned uploadUrl that lives expiresInSec seconds. PUT the bytes there with the same Content-Type (one PUT takes the whole file, up to 1 GB), then call complete.
curl -X POST $BASE/api/v1/media \
-H "X-API-Key: cf_..." -H "Content-Type: application/json" \
-d '{"filename": "launch.mp4", "contentType": "video/mp4", "sizeBytes": 48211337}'
# 201 -> { "data": { "id": "<mediaId>", "uploadUrl": "https://...", "expiresInSec": 1800 } }
curl -X PUT -H "Content-Type: video/mp4" --data-binary @launch.mp4 "$UPLOAD_URL"
curl -X POST $BASE/api/v1/media/<mediaId>/complete -H "X-API-Key: cf_..."
# 200 -> { "data": { "id": "<mediaId>", "status": "uploaded", ... } }POST /api/v1/media/:id/complete
Tell us the PUT finished. We check the file is really there and hand it to processing (status uploaded). Safe to call twice. 409 upload_missing — the bytes haven't arrived yet; 413 invalid_file — larger than 1 GB (the file is removed).
POST /api/v1/media/import
Import from a link: {url}. A direct https link to the video file on a public address — not a YouTube or TikTok page, no user:password@ in the link. A Google Drive or Dropbox share link works too (drive.google.com/file/d/…/view, …/open?id=…, dropbox.com/s/… or /scl/fi/…): the file must be shared with "Anyone with the link", and a folder link is 400 invalid_url. Up to 1 GB. Returns 201 with the video in status uploading; we download it in the background — if the link turns out to be a web page, a sign-in page or a private file, the video ends in status failed with the reason in error. At most 10 links downloading at once (429 too_many_imports).
GET /api/v1/media
Your videos, the Media library. ?filter=all|unused|in_use|expiring — unused: in no post (canceled posts don't count), in_use: in at least one, expiring: deleted automatically within 7 days. ?sort=newest|expiring — expiring puts the soonest automatic deletion first and videos a post still needs last. ?q= searches the file name (up to 100 characters, case-insensitive; % and _ match themselves). ?limit= (1–100, default 20) and ?cursor= (pass nextCursor from the previous page with the same sort; null means the last page; a cursor from another sort is 400 invalid_request). Removed files are left out.
GET /api/v1/media/:id
One video: status, duration, size, a thumbnail link that lives an hour, and why it failed if it did. A removed video is still returned, with deleted: true.
DELETE /api/v1/media/:id
Remove the file now (the video and its thumbnail). 409 media_in_use while a draft, queued, failed or unconfirmed post uses it — cancel those posts first (DELETE /api/v1/posts/:id). Returns the video with deleted: true; calling it again is safe.
GET /api/v1/media/:id/preview
A preview of exactly the file that will be posted (no re-encoding): { data: { videoUrl, thumbUrl, durationSec } }, links live an hour. Show it before a TikTok post — TikTok requires apps to preview the content. 404 if the video isn't yours.
POST /api/v1/media/:id/alt-text/suggest
Suggest alt text for one of your photos (kind image, status ready): optional body { caption?, platform? } — the caption is only context (names, language); platform pinterest keeps it to 500 characters, otherwise up to 1,000. 200 -> { data: { kind: 'alt_text', text, … } }; 202 -> poll GET /api/v1/ai/tasks/:id. Nothing is saved: put it into the post's altText yourself. 404 not_found (not yours), 400 invalid_request (not a photo), 409 media_deleted / media_failed / not_ready. Same daily AI allowance (429 limit_reached); 503 ai_unavailable. MCP: clipember_suggest_alt_text.
POST /api/v1/media/bulk-posts
Several videos at once, one post group each: { mediaIds: [1–50 ids], mode: 'draft' | 'queue', targets: [PostTarget with connectionId, …], externalId? } (externalId goes on every post created). draft creates drafts; queue puts each video into the next free posting slot of the accounts, in turn (no slots → that video is skipped with no_slots). The same accounts and caption for every video. Each video is checked on its own like POST /api/v1/posts — Free plan quota (drafts don't count), plan lock, schedule horizon, client approval — and the response lists each: { data: { mode, created, skipped, results: [{ mediaId, ok, groupId, scheduledFor, code, message, waitingTikTokChoice }] } }. tiktokOptions is refused here (400): each TikTok post waits for its own choice in the TikTok queue.
POST /api/v1/clips/bulk-posts
Schedule all: several rendered clips at once, one post group each, in the order you send them: { clipIds: [1–50 ids], mode: 'draft' | 'queue', step?: { startAt, gapMinutes: 30–1440 }, targets: [PostTarget with connectionId, …], externalId? } (externalId goes on every post created). With step the first clip goes out at startAt and each next one gapMinutes later (1440 = daily at the same time; drafts keep that time too); without it queue uses the next free posting slots and draft creates drafts without a time. A clip that already has a draft, queued, published or unconfirmed post on one of these accounts is skipped with already_scheduled, so calling it twice doesn't duplicate. Every clip is checked like POST /api/v1/posts — on Free each clip counts as one video toward the monthly quota, however many accounts it goes to. The response lists each: { data: { mode, created, skipped, results: [{ clipId, ok, groupId, scheduledFor, code, message, waitingTikTokChoice }] } }. tiktokOptions is refused (400): each TikTok post waits for its own choice. Agents do the same with the MCP tool clipember_schedule_clips.
{ "data": {
"id": "…", "status": "ready", // uploading | uploaded | ready | failed
"originalName": "launch.mp4", "mime": "video/mp4", "sizeBytes": 48211337,
"durationSec": 41.2, "width": 1080, "height": 1920,
"thumbUrl": "https://…", // null until processed
"sourceUrl": null, // the link, for imports
"error": null, // why, when status is failed
"createdAt": "2026-11-08T10:02:11.520Z", "readyAt": "2026-11-08T10:02:40.100Z",
"deleted": false, // true: the file was removed; it can't be posted
"postCount": 2, // posts with this video, canceled ones left out
"pendingPostCount": 1, // of them still waiting (draft, queued, failed, unconfirmed)
"expiresAt": null // when it is deleted automatically; null while a post waits
} }| Status | Meaning |
|---|---|
uploading | Waiting for the upload to finish, or still downloading an import. |
uploaded | Received; we're checking the file and making a thumbnail. |
ready | Checked: duration, size and thumbnail are known. |
failed | Can't be posted — error says why (e.g. longer than the limit, not a video). Upload it again. |
Files are removed automatically: 30 days after the last post that uses them goes out or is canceled, 30 days after upload if no post ever used them, and a day after processing failed. A file that a draft, queued, failed or unconfirmed post can still publish is never removed. The record stays with deleted: true, so your post history keeps its title.
You can create a post before the video is ready: it waits for processing. Once the duration is known, each network’s limits are checked and a video that doesn’t fit is refused with 422 video_not_supported (unless you pass allowTrim, below): TikTok 3 s to 10 min; YouTube Shorts 1 s to 3 min, vertical or square only; Instagram Reels 3 s to 15 min; Bluesky 1 s to 10 min; LinkedIn 3 s to 30 min.
Social accounts
Accounts are connected in the app (each network’s own sign-in) at clipember.com/connections. You can connect several accounts on one network; each has an id, which you pass as connectionId when posting.
GET /api/v1/connections
Every network with its accounts, and how many of the plan's account slots are in use.
{ "data": {
"accountLimit": { "limit": 10, "used": 3, "locked": 0 }, // locked: accounts over the limit
"connections": [
{ "platform": "tiktok",
"status": "connected", // connected | reconnect_required | not_connected
"handle": "@studio", "avatarUrl": "…", "reason": null, "disconnectedAt": null,
"accounts": [
{ "id": "<connectionId>", "handle": "@studio", "avatarUrl": "…",
"status": "connected", "disconnectReason": null, "disconnectedAt": null,
"connectedAt": "2026-10-02T09:14:00.000Z",
"clientId": "<clientId>", // null when the account has no client
"locked": false, // true: over the plan's limit after a downgrade
"pausedAt": null }, // set while publishing to the account is paused
{ "id": "<connectionId>", "handle": "@studio.clips", "avatarUrl": "…",
"status": "reconnect_required", // the network revoked access: reconnect it
"disconnectReason": "token_revoked", "disconnectedAt": "…", "connectedAt": "…" }
] },
{ "platform": "youtube_shorts", "status": "not_connected", "accounts": [], … },
{ "platform": "instagram_reels", … }
],
"publishingConfigured": true, "tiktokConfigured": true, "tiktokDirectPost": true,
"youtubeConfigured": true, "instagramConfigured": true, "googleOauthUnverified": false
} }The fields next to accounts (status, handle, …) describe the network’s default account — the oldest connected one — and are kept for older clients. DELETE /api/v1/connections/:platform?id=<connectionId> disconnects one account (id is required when the network has more than one).
DELETE /api/v1/connections/:platform
Disconnect one account: ?id=<connectionId>. Its tokens are deleted and it stops counting toward your plan's accounts.
POST /api/v1/connections/:platform
Only for networks without a sign-in screen: Bluesky takes { handle, appPassword } (an app password you create in Bluesky, stored encrypted). Discord and Slack take { url, name? } — the channel's webhook URL (https://discord.com/api/webhooks/… or https://hooks.slack.com/services/…); a Discord webhook is checked without posting, a Slack one by its first post; the URL is stored encrypted and only returned masked (webhook). Errors: invalid_webhook_url, webhook_not_found, webhook_unreachable. Mastodon connects in the app (enter your server, then sign in there) and answers oauth_required here. Other networks connect in the app; for them this answers 400 or 501 and creates nothing. 403 feature_disabled while a network is switched off.
POST /api/v1/connections/telegram/bot
Telegram with your own bot: send { token } from @BotFather. ClipEmber checks it (getMe), stores it encrypted and returns only a mask (bot.token, like 123456:…abcd), plus the channels where the bot became an admin in the last 24 hours. If the bot has a webhook set, the list stays empty (discovery: webhook_set) — send channels by @username or id instead. Errors: invalid_bot_token, bot_token_rejected, telegram_unreachable.
GET /api/v1/connections/telegram/bot/channels
?botId=<bot.id> — look for the bot's channels again with its saved token (you don't send the token twice). Same answer as POST /api/v1/connections/telegram/bot.
POST /api/v1/connections/telegram/bot/channels
Connect channels with that bot: { botId, channels: ["@mychannel", "-1001234567890"] }. Each one is checked (the bot must be an admin with Post messages) and becomes its own account. Answers connected[] and failed[]. Errors: bot_not_found, channel_not_found, bot_not_admin, wrong_chat_type, invalid_channel, account_limit.
GET /api/v1/connections/tiktok/creator-info
The TikTok account's current posting options, fetched from TikTok right now: the audiences it offers, the interactions the creator turned off and the longest video it takes — what a TikTok choice is checked against. ?connectionId= picks the account (default: the oldest). 409 when TikTok says the account can't post now (posting limits).
POST /api/v1/connections/keep-active
After a downgrade: which accounts stay active (up to the plan's limit). The rest of the free slots go to the oldest accounts; everything else is locked.
{ "connectionIds": ["<connectionId>", "<connectionId>"] }
// 200 { "data": { "locked": ["<connectionId>"] } }
// 400 too_many_accounts · 404 account_not_found · 403 owner_only (in a team, only the owner chooses)POST /api/v1/connections/pause
Pause publishing to one account (like Buffer's Pause Queue): its queued posts wait instead of going out; new posts can still be scheduled to it. Nothing is deleted. Workspace owner or admin only.
POST /api/v1/connections/resume
Resume a paused account. Queued posts go out at their times. Posts whose time came while it was paused are not published late: they become failed (errorCode account_paused) so you can reschedule them — missed says how many.
{ "connectionId": "<connectionId>" }
// 200 { "data": { "connectionId": "…", "pausedAt": "2026-11-14T09:00:00.000Z", // null after resume
// "queued": 4, // queued posts that go out at their times (after resume, when paused)
// "missed": 0 } } // resume only: came due while paused, will show as failed
// 404 account_not_found · 403 admin_required (in a team, the owner or an admin pauses)Clients
A client groups the accounts of one brand you manage. Each account belongs to one client at most. Clients are labels for filtering: you still post to accounts (connectionId), and deleting a client never disconnects its accounts or touches their posts. In the app, the calendar and New post filter by client, and picking a client in New post ticks all of its accounts.
GET /api/v1/clients
Your clients, by name, each with the ids of its accounts (accounts you removed yourself are left out).
{ "data": [
{ "id": "<clientId>", "name": "Acme", "color": "#e4572e",
"createdAt": "2026-11-08T10:05:42.311Z",
"accountIds": ["<connectionId>", "<connectionId>"] }
] }POST /api/v1/clients
Create a client: name (1–60 characters, unique per account ignoring case) and an optional color (#rrggbb; one is picked for you if you leave it out). 201 with the client; 409 duplicate_name.
curl -X POST $BASE/api/v1/clients -H "X-API-Key: $KEY" -H "Content-Type: application/json" -d '{"name": "Acme"}'GET /api/v1/clients/:id
One client with the ids of its accounts. 404 client_not_found.
PATCH /api/v1/clients/:id
Rename a client or change its color (null removes it). 409 duplicate_name if another client has that name.
DELETE /api/v1/clients/:id
Delete a client. Its accounts stay connected and keep their posts. Returns { data: { deleted: true, unassignedAccounts } }.
POST /api/v1/clients/:id/accounts
Move accounts into this client, from another client or from none: { connectionIds: [...] } (1–30 ids from GET /api/v1/connections). All or nothing — if any id isn't one of your accounts, nothing changes (404 account_not_found). Returns the client.
curl -X POST $BASE/api/v1/clients/<clientId>/accounts -H "X-API-Key: $KEY" -H "Content-Type: application/json" -d '{"connectionIds": ["<connectionId>", "<connectionId>"]}'DELETE /api/v1/clients/:id/accounts/:connectionId
Take one account out of this client; it stays connected. Returns the client; 404 account_not_found if the account isn't in it.
Another account’s client looks like one that doesn’t exist: 404 client_not_found. To see one client’s posts, pass clientId to GET /api/v1/posts.
Connect links. A client can connect their own accounts without a ClipEmber login: send them a link, they sign in to each network on it once, and the account joins your workspace under this client (your plan and account limit).
POST /api/v1/clients/:id/connect-links
Create a link: { platforms: [networks], expiresInDays?: 1–30 (default 7), senderName?: the name the client sees }. 201 with the link and its url — shown once; we keep only a hash. Each network on the link connects once.
GET /api/v1/clients/:id/connect-links
The client's links, newest first (up to 50): status active | used | expired | revoked, which networks are connected and by which accounts, and the client's last attempt.
DELETE /api/v1/clients/:id/connect-links/:linkId
Revoke a link: its page answers 404 and an attempt started before can't connect anything. Accounts already connected stay. Calling it again is safe.
Posts
POST /api/v1/posts
One video to several networks and accounts in one call, each with its own caption. Creates one post per account, all sharing a groupId.
curl -X POST $BASE/api/v1/posts \
-H "X-API-Key: cf_..." -H "Content-Type: application/json" \
-d '{
"source": { "mediaId": "<mediaId>" }, // or { "clipId": "<clipId>" }
"mode": "schedule", // schedule | now | draft
"scheduledFor": "2026-12-01T14:00:00Z",
"targets": [
{ "platform": "youtube_shorts",
"caption": "Three hours of footage, one minute of story",
"settings": { "title": "3 hours in 60 seconds", "privacy": "public",
"madeForKids": false, "tags": ["editing", "shorts"] } },
{ "platform": "instagram_reels", "connectionId": "<connectionId>",
"caption": "Three hours → one minute #editing",
"settings": { "shareToFeed": true } },
{ "platform": "tiktok", "caption": "Three hours → one minute" }
],
"externalId": "cms-post-1187" // optional, your own id
}'
# 201 -> { "data": { "groupId": "…", "posts": [
# { "id": "…", "platform": "youtube_shorts", "connectionId": "…", "status": "queued",
# "scheduledFor": "2026-12-01T14:00:00.000Z", "waitsForTikTokChoice": false },
# …,
# { "id": "…", "platform": "tiktok", "connectionId": "…", "status": "queued",
# "scheduledFor": "2026-12-01T14:00:00.000Z", "waitsForTikTokChoice": true } ] } }externalId— optional, your own reference id (1–128 characters, no control characters), so you can match posts and webhooks to your records. Every post of the call gets the same one (one per target account). It comes back asexternalIdon every post and in every post webhook; filter withGET /api/v1/posts?externalId=…; change or clear it withPATCH /api/v1/posts/:id. It isn’t unique — to avoid duplicates on retries, send anIdempotency-Key. The bulk endpoints take it too and give it to every post they create.source— one of:{mediaId}(a video of your own),{clipId}(a rendered clip), or{items: [{mediaId, altText?}]}— photos from your library in order: one photo or a carousel (Bluesky, X and Mastodon up to 4, Pinterest 5, Instagram, Telegram and Discord 10, Threads and LinkedIn 20; Instagram carousels may mix in videos), or{documentId}— a PDF, PowerPoint or Word file from your library as a LinkedIn document post (LinkedIn only). Leavesourceout for a text post (Bluesky, X, Threads, LinkedIn, Telegram, Discord, Slack, Mastodon; every target needs a caption). Slack takes text only: in a video or photo post it gets the caption (a Slack target without one is skipped). Targets on networks that can’t take that kind of post aren’t created — they come back indata.skipped: [{platform, connectionId, reason}]; if none is left, it’s400 no_target_for_kind. Posts carrycontentKind(video|images|text|document) anditems; a photo, text or document post counts as one video toward the Free plan’s monthly limit.mode—scheduleneedsscheduledFor(ISO 8601 with an offset);nowqueues it for right away and takes noscheduledFor;draftsaves without queuing (a date is optional). Drafts don’t count toward the monthly limit, and the account and file checks run when you queue them.targets— 1 to 30, one per account.platformistiktok,youtube_shorts,instagram_reels,linkedinorbluesky.connectionIdpicks the account (ids fromGET /api/v1/connections): optional with one connected account on that network, required with several (400 account_requiredotherwise). Each account once; to post to two accounts on one network, add two targets.caption— the final text, sent as written (clips cut from a Creative Commons video also get the credit line the license requires). Limits: TikTok 2200, YouTube Shorts 5000, Instagram Reels 2200, Bluesky 300, LinkedIn 3000 characters (on YouTube it’s the description). Left out on a clip, the caption is composed from the clip’s title and hashtags.settings— YouTube:{title, privacy: public|unlisted|private, madeForKids, tags}: title up to 100 characters without < or > (default: the caption’s first line), privacy defaults to public, madeForKids to false, up to 15 tags. Also for YouTube:categoryId(1 Film & Animation, 2 Autos & Vehicles, 10 Music, 15 Pets & Animals, 17 Sports, 19 Travel & Events, 20 Gaming, 22 People & Blogs, 23 Comedy, 24 Entertainment, 25 News & Politics, 26 Howto & Style, 27 Education, 28 Science & Technology, 29 Nonprofits & Activism; default 22),defaultLanguage(BCP-47 tag such asenorpt-BR— the language of the title, description and speech),notifySubscribers(false= no notification to subscribers; default true),license: youtube|creativeCommon(default youtube),embeddableandpublicStatsViewable(both default true). Instagram:{shareToFeed}(left out: Instagram decides), pluscollaborators(up to 3 usernames without @, invited as collaborators),userTags: [{username, x?, y?}](people to tag: on a photo at x/y from 0 to 1, center if left out; on a carousel on the first item; on a Reel without a position),locationId(numeric id of a Facebook Page with an address — we don’t search places),audioName(Reels: name of the original audio, Instagram allows one rename) andtrialReel: {graduation: manual|performance}(Reels: shown to non-followers first; manual = you share it with followers in Instagram, performance = Instagram does it if it does well). On a photo postaudioNameandtrialReelare ignored with anoption_ignoredwarning. If Instagram refuses a username or the location, the post fails with the reason.aiGenerated: trueon YouTube, Instagram and Facebook Reels (and in TikTok’stiktokOptions) adds each network’s own AI label — set it when the video was made or realistically changed with AI; left out, no label. LinkedIn:{visibility: PUBLIC|CONNECTIONS}— no default: a LinkedIn post without it can be a draft, but queuing it answers400 linkedin_visibility_required. LinkedIn posts go to the connected person’s own profile, not company Pages. Bluesky:{altText, lang}— alt text up to 2000 characters and a language code such asen(left out: Bluesky decides). Mastodon:{visibility?: public|unlisted|private, spoilerText?, sensitive?, lang?, altText?}— visibility defaults topublic(unlistedkeeps it out of public timelines,privateshows it to followers only);spoilerTextis a content warning (up to 200 characters) that hides the post behind it and counts toward the server’s 500 characters together with the caption;sensitivehides photos or video behind a warning;langis a two-letter code;altTextdescribes a video (up to 1500; photos carry their own). A server with smaller limits than usual gives aserver_limitwarning. TikTok takes nosettings— its choice istiktokOptions(below).firstComment— Bluesky, X and LinkedIn: a comment we post under the post, from the same account, right after it goes out (on Bluesky and X it’s a reply in the thread). Up to 300 characters on Bluesky, 280 on X (counted like the caption) and 1250 on LinkedIn. A failed comment never fails the post: the post staysposted, itsfirstCommentreads{status: "failed", error}and thepost.first_comment_failedwebhook goes out. While it waits the status ispending; once it’s up —postedwith aurl.thread— X, Bluesky and Mastodon:{mode: "auto", numbering?: true}turns a long caption into a thread. The caption may then be longer than one post; we split it at paragraphs, then sentences, then words (never inside a link, @mention or #hashtag), add1/3-style numbering unlessnumbering: false, and post each part as a reply to the one before. A line with only---forces a break. Up to 25 parts; photos or video go with the first part, and a first comment goes under the last one. A dry run returns the parts asthreadParts. If a later part fails, the post stayspostedand itsthreadreads{status: "failed", parts, posted, urls, error}; while parts are still going out it’spending. Thepost.publishedwebhook carriesthreadParts. Threads (the network) can’t chain replies through ClipEmber yet.poll— text posts only (a photo or video post gets anoption_ignoredwarning). X:{options: 2–4 × up to 25 characters, durationMinutes?: 5–10080, default 1440}. Threads:{options: 2–4 × up to 25 characters}— Threads decides how long it stays open. LinkedIn:{question: up to 140, options: 2–4 × up to 30, durationMinutes?: 1440|4320|10080|20160, default 4320}. Mastodon:{options: 2–4 × up to 50 characters, durationMinutes?: 5–43200, default 1440, multiple?: false}. The caption is the post’s text above the poll.cover— video posts: the cover is a frame of the video,{kind: "frame", atMs}(millisecond from the start, not past the end), or a photo from your media library,{kind: "image", mediaId}. YouTube, Instagram and LinkedIn take it insettings(frame or photo); TikTok takes a frame only, intiktokOptions.cover, and only when the post goes straight to the profile. Other networks have no cover option in their API. YouTube sets it only on a verified channel; a cover that fails never fails the post. The post’scoverreads{kind, atMs, mediaId, status: pending|applied|ignored|failed, warning}; a cover a network will ignore (e.g. a photo for TikTok) comes back as acover_ignoredwarning, in dry runs too.language— optional, the post’s language as a BCP-47 code (en,uk,pt-BR). ClipEmber puts it where the network has a language field and the target’ssettingsdon’t set one: Blueskylang, YouTubedefaultLanguage, Mastodonlang(two-letter codes only). Other networks have no such field; the response (and a dry run) says so with anoption_ignoredwarning.- Instagram hashtags. A hashtag that Instagram is reported to restrict (posts with it can be hidden from hashtag search) comes back as a
hashtag_flaggedwarning, in dry runs too; the post still goes out. The list is ClipEmber’s own and short — Instagram has no official way to check this. allowTrim— optional,truelets ClipEmber cut your own video to a network’s length limit (it keeps the start). Without it a video that is too long is refused with422 video_not_supported. Everything else a network won’t take as is — file type, codec, resolution, frame rate, file size, aspect ratio — ClipEmber adjusts by itself: it converts to H.264 MP4, scales down, lowers the frame rate, compresses under the size limit, or adds black bars when the network needs a certain shape. You get avideo_will_be_adjustedwarning (dry runs too), and after publishing the post’sfitreads{changes: ["Converted HEVC → H.264", "Scaled 3840×2160 → 1920×1080"], profile, cached}(thepost.publishedwebhook carries the samechanges). A video that can’t be made to fit — shorter than the network allows, or too long to compress under its size limit — is still refused.groupId— optional: add accounts to a post you already created, instead of starting a new group. It must be thegroupIdof one of your posts with the samesource; an account that already has a live post in that group is refused (409— edit that post instead). Every check of a new post still runs, the monthly limit included.
Dry run. Add ?dryRun=1 (or ?dryRun=true) to check a post without creating it: every check of a real call runs — plan and monthly limit, the video or photos, accounts, LinkedIn visibility, Pinterest board, the TikTok choice, caption limits, tags and signature — and a refusal is the same status and {error:{code,message}} the real call would give. Nothing is written: no posts, no tags, and nothing counts toward the Free plan’s monthly limit. A valid post answers 200 with { data: { valid: true, posts: [{platform, connectionId, status: would_queue|would_draft, scheduledFor, waitsForTikTokChoice}], skipped: [] } } plus warnings and notice when the real call would have them. Agents use the MCP tool clipember_validate_post.
TikTok: the choice is explicit, for every post
TikTok requires the person posting to choose who can see each video, with no default value. A TikTok target can carry that choice as tiktokOptions — from the post editor, with an API key or from an agent, under the same rules. Send it only when the person told you their choice for this post: ClipEmber never fills it in, never saves it as a default and never copies it from another post, account, template or repeat. Every field is required — a missing one is 400 invalid_request, not a silent default:
"tiktokOptions": {
"title": "Three hours → one minute", // the TikTok caption; "" = use this target's caption
"privacyLevel": "FOLLOWER_OF_CREATOR", // PUBLIC_TO_EVERYONE | MUTUAL_FOLLOW_FRIENDS |
// FOLLOWER_OF_CREATOR | SELF_ONLY — no default
"disableComment": false, // true = off
"disableDuet": true,
"disableStitch": true,
"brandOrganicToggle": false, // disclosure: promotes your own business
"brandContentToggle": false, // disclosure: paid partnership (not with SELF_ONLY)
"aiGenerated": false // optional: "Creator labeled as AI-generated"
}- Before the post is queued, the choice is checked against that TikTok account’s current settings (its
creator_info):409 privacy_not_allowedif the account doesn’t offer that audience (the message lists the ones it does),409 interaction_not_allowedif it turns on comments, duets or stitches the creator turned off in TikTok, and422 video_too_long_for_accountif the video is longer than the account accepts. A draft keeps its choice unchecked until you queue it. - The caption is part of the choice: a choice with no caption is refused, and changing the caption of a post with a choice changes the caption it posts with.
- By sending a choice you confirm the person agreed to TikTok’s Music Usage Confirmation (and, for a paid partnership, its Branded Content Policy) — the same statement the Post to TikTok screen shows.
- Change it with
PATCH /api/v1/posts/:id{ tiktokOptions }, or clear it withtiktokOptions: null; read a post’s choice withGET /api/v1/posts/:id/tiktok-choice. The older/api/v1/scheduleendpoints take the same object asoptions.
A TikTok target without tiktokOptions creates a post that waits in the TikTok queue (clipember.com/tiktok-queue, waitsForTikTokChoice: true) until someone makes the choice there or through the API. If nobody does before the scheduled time, TikTok receives the video as an upload and notifies the person in their TikTok Inbox, and they finish the post in the TikTok app. If the account no longer offers the chosen audience when the post goes out, the post fails.
GET /api/v1/posts
Posts from every source (clips and your own videos), soonest first. Filters: status (comma list, e.g. status=failed,unconfirmed), platform, connectionId, clientId (posts of that client's accounts), groupId (the posts of one POST /api/v1/posts call), externalId (posts created with your externalId, exact match), from and to (ISO 8601 with an offset, on scheduledFor; to is exclusive). Without status, canceled posts are left out. Returns up to 500 posts, or 2000 with any filter; truncated: true when the cap was hit.
{ "data": [ {
"id": "…", "groupId": "…", "platform": "instagram_reels",
"connectionId": "…", "accountHandle": "@studio", "accountAvatarUrl": "…",
"status": "queued", "scheduledFor": "2026-12-01T14:00:00.000Z", "postedAt": null,
"source": "media", // media | clip
"mediaId": "…", "mediaStatus": "ready", "clipId": null, "requestId": null,
"title": "…", // clip title, YouTube title, caption's first line or file name
"caption": "…", "settings": { "shareToFeed": true },
"thumbUrl": "https://…",
"hasTikTokChoice": false, // TikTok: has the person chosen yet
"link": null, "platformPostId": null, // filled in once posted
"error": null, "createdAt": "2026-11-08T10:05:42.311Z",
"createdBy": { "id": "…", "name": "Ira" }, // who created it (name, else email); null = unknown
"externalId": "cms-post-1187" // yours from POST /api/v1/posts, or null
} ], "truncated": false }createdBy is the teammate who created the post (through the app, the API, MCP or the CLI), not the workspace owner. It is null for posts made before the field existed and for posts the Autopilot queued. A repeat's later posts carry the author of the post it repeats.
GET /api/v1/posts/:id
One post, in the same shape as an item of the list above: { data: Post }. 404 not_found if it doesn't exist or isn't yours. Handy after a webhook: data.postId is the id.
PATCH /api/v1/posts/:id
Change a post that hasn't gone out: any of caption, settings (null clears them), scheduledFor, status (draft ↔ queued), connectionId (another account on the same network), externalId (your reference id; null clears it) and, on a TikTok post, tiktokOptions (the full choice, or null to clear it — see TikTok above; moving to another account clears the choice). Works on draft and queued posts; a failed post takes only caption and settings — retry it to send it again. scheduledFor can't be in the past (400) — send the current time to post right away. Queuing a draft runs every check a new post gets (plan, file, account, monthly limit). Returns the post; 409 conflict if it started publishing meanwhile. A PUBLISHED post takes only caption: ClipEmber rewrites it on the network (LinkedIn, Facebook, Telegram) in the background — the post comes back with remoteAction {kind: 'edit', status: 'pending'}, then done or failed (webhooks post.updated / post.remote_action_failed). Other networks answer 409 not_supported_by_network with where to change it instead (X, Bluesky, Pinterest, Instagram, TikTok, YouTube, Threads).
curl -X PATCH $BASE/api/v1/posts/<postId> \
-H "X-API-Key: cf_..." -H "Content-Type: application/json" \
-d '{"status": "queued", "scheduledFor": "2026-12-02T09:30:00Z"}'
# 200 -> { "data": { "id": "…", "status": "queued", ... } }DELETE /api/v1/posts/:id
Cancel a draft, queued, failed or unconfirmed post. Add ?group=1 to cancel every post created by the same POST /api/v1/posts call. Returns { data: { canceled: [ids], repeatStopped } }; repeatStopped is true when this canceled the last live post of the latest group of an active repeat, so the repeat stops too. Posts that already went out are untouched unless you add ?alsoFromNetwork=true: then they're also deleted from the network where its API allows it — X, Bluesky, LinkedIn, Facebook, Pinterest, and Telegram within 48 hours of posting (X and Bluesky thread parts and the first comment go too). The answer adds deleting: [ids] (in progress; read remoteAction on the post, webhooks post.deleted_remote / post.remote_action_failed) and notDeletable: [{id, platform, code, reason}]. Deleted posts stay in your history with status posted. A single post its network can't delete — Instagram, TikTok, YouTube, Threads — answers 409 not_supported_by_network.
POST /api/v1/post-groups/:id/duplicate
Copy a post group (:id is the posts' groupId) as a new draft: the same video, accounts, captions, network settings and tags — from any post, including one that already went out or failed. Not copied: the TikTok choice (each TikTok post of the copy waits for a new choice made for it, waitsForTikTokChoice: true), the client approval and preview link, and the repeat. The copy has no time yet — queue it with PATCH /api/v1/posts/:id {status: 'queued', scheduledFor}. 201 -> { data: { groupId, duplicatedFrom, posts } }; 404 not_found if the group isn't yours; 403 account_locked for an account over your plan's limit; 409 media_deleted if the video is gone.
GET /api/v1/post-groups/:id/comments
Your team's internal comments on a post group, oldest first: { data: [{ id, groupId, body, author: { id, name } | null, mine, createdAt }] }. Clients on a preview link never see these (their comments come with the approval). 404 not_found if the group isn't yours.
POST /api/v1/post-groups/:id/comments
Add a comment as the calling person: { body } (1–2,000 characters). 201 -> { data: comment }. The post's author and earlier commenters see it in their notifications. 409 limit_reached after 500 comments on one post.
DELETE /api/v1/post-groups/:id/comments/:commentId
Delete a comment. The author, the workspace owner or an admin can; anyone else gets 403 not_author. 204 on success.
GET /api/v1/post-groups/:id/team-approval
Team approval of a post group: { data: { groupId, required, state: 'none' | 'pending' | 'approved' | 'changes_requested', requestedBy, requestedAt, decidedBy, decidedAt, note, notice, canDecide, yourPostsNeedApproval } }. With “Members' posts need approval” on (PATCH /api/v1/account {membersNeedApproval: true}), a member's attempt to queue a post keeps it a draft and returns notice: {code: 'awaiting_team_approval'}; the group becomes pending. If a member changes the caption, settings or accounts of an approved group, it is pending again (moving the time isn't a change). approve puts the drafts the member asked to schedule into the queue (queued in the response) — also after request_changes; if the group was last saved as a draft, its posts stay drafts and notice says so. Members can't use the direct-to-queue POST /api/v1/schedule or series scheduling then (403 approval_required) — use POST /api/v1/posts.
POST /api/v1/post-groups/:id/team-approval
Decide as the workspace owner or an admin: { decision: 'approve' | 'request_changes', note? } (note up to 2,000 characters). approve puts the drafts the member asked to queue into the queue with the usual checks (a time that passed keeps a post a draft, explained in notice); request_changes moves queued posts of the group back to drafts. Returns the approval plus { queued, heldPosts }. Approval never sets a TikTok choice. 403 admin_required for members; 409 not_requested if nobody asked; 409 invalid_state if there is nothing to decide.
POST /api/v1/posts/bulk-failed
Requeue several failed posts at once: { action: 'retry' | 'next_slot', ids: [up to 100 post ids] }. retry puts each back in the queue for right now; next_slot puts it on its account's next free posting slot (each post takes its own slot). Every post is checked on its own, like a single retry — plan lock, client approval, the Free plan quota, a removed video — and the response lists each: { data: { action, requeued, skipped, results: [{ id, ok, scheduledFor, waitsForTikTokChoice, code, message }] } } (codes include no_slots, account_locked, awaiting_approval, not_retryable). Only failed posts: an unconfirmed post may already be live, so check the profile and retry it on its own. A TikTok post keeps its own choice; one without a choice waits for it (waitsForTikTokChoice: true) — no choice is copied or defaulted.
POST /api/v1/schedule/:id/retry
Send a failed or unconfirmed post again, right now. Returns { data: { ok, status: 'queued', wasUnconfirmed } }.
Before retrying an unconfirmed post, ask the person to check their profile. Unconfirmed means the network stopped answering after the video was sent, so it may already be live — a retry then posts it twice. If it is there, cancel the post instead.
| Status | Meaning |
|---|---|
draft | Saved, not queued. Doesn't count toward the monthly limit. |
queued | Waiting for its time (a TikTok post may also be waiting for the person's choice). |
posted | The network accepted it. A TikTok post sent without the person's choice is an upload in their TikTok Inbox; it shows on the profile once they finish it in TikTok. |
failed | Didn't go out — error says why. Fix the cause, then retry or cancel. |
unconfirmed | The network didn't answer after the video was sent; it may be live. Check the profile, then retry or cancel. |
canceled | Canceled by you. Kept for history; left out of lists unless you filter for it. |
Older clip-only endpoints still work: GET /api/v1/schedule lists queued clip posts, POST /api/v1/schedule with {clipId, platform, scheduledFor, connectionId?, options?} queues one rendered clip to one account (options is the person’s TikTok choice, with the same rules as tiktokOptions above), and PATCH / DELETE /api/v1/schedule/:id move or remove it. New integrations should use /api/v1/posts.
GET /api/v1/posts/:id/tiktok-choice
The TikTok choice saved for this one post: { data: { tiktokOptions } } (null — none yet). Never another post's or a default.
GET /api/v1/schedule
Older: your posts for the calendar (filters from, to, status, platform, clientId, tagId, connectionId — one account; 404 if it isn't yours). Use GET /api/v1/posts.
POST /api/v1/schedule
Older: queue one rendered clip to one account. Use POST /api/v1/posts with clipId.
PATCH /api/v1/schedule/:id
Older: move a queued post (scheduledFor; now posts it now).
DELETE /api/v1/schedule/:id
Older: take a queued or failed post off the queue. Published posts are never deleted.
POST /api/v1/schedule/tiktok-options
Apply one TikTok choice to several queued TikTok posts the person selected at once (the TikTok queue screen): each post is checked against its own account's settings and keeps its own caption; posts not listed are untouched.
POST /api/v1/series/:id/schedule
Queue every part of a multi-part clip series in order: { platforms, startAt, gapMinutes?, connectionIds? } (an account per network; required when a network has more than one).
Bulk import (CSV)
Up to 200 posts in one request, from a spreadsheet: one row per post, each row the same as one POST /api/v1/posts (same checks, plan limits and quotas). Each row succeeds or fails on its own — the answer is 200 with a result per row, even when some rows fail. Send the file’s text as csv (header row first; comma, semicolon or Tab separated, quotes for commas and line breaks) or the same posts as JSON rows. ?dryRun=1 checks every row and creates nothing — not even the media imports. A time without an offset is read in the row’s timezone, else the request’s timezone, else the time zone in your settings (UTC if none); a time that falls in a daylight-saving gap moves forward, and the row gets a warning. Media links are imported into your Media library only for rows that pass their checks. Idempotency-Key works as on POST /api/v1/posts. Template: bulk-import-template.csv; in the app: Calendar → Import CSV.
POST /api/v1/posts/bulk
{ csv } or { rows } (+ timezone?), up to 200 posts, body up to 4 MB → { data: { dryRun, total, succeeded, failed, warnings, rows: [{ row, line?, ok, groupId?, posts?, skipped?, mediaIds?, warnings, error? }] } }. 400 invalid_csv, too_many_rows.
| Column | What goes in it |
|---|---|
| date_time | When to post. ISO 8601 with an offset (2026-12-10T09:00:00+02:00, or Z for UTC), or YYYY-MM-DD HH:mm in the row's timezone. Required unless mode is draft. |
| timezone | IANA time zone for a date_time without an offset, e.g. Europe/Kyiv or America/New_York. Empty: the time zone from your settings (UTC if none). |
| networks | Where to post, separated by commas or semicolons: tiktok, youtube, instagram, facebook, threads, linkedin, pinterest, bluesky, x, telegram, discord, slack, mastodon (full names like "YouTube Shorts" work too). |
| accounts | Only if a network has several connected accounts: the handles (@name) or account ids to post from, separated by commas. Prefix with the network to be exact (tiktok:@name). Several accounts of one network = one post to each. |
| caption | The caption, exactly as it should appear. Line breaks are fine inside quotes. |
| caption_<network> | Optional caption for one network instead of caption, e.g. caption_tiktok, caption_linkedin, caption_x. |
| media_url | Public https link to the video or photo, or a Google Drive / Dropbox share link. Several photo links separated by | make a carousel. Empty (and no media_id): a text-only post. |
| media_type | video or photo — only when it can't be told from the link (a Google Drive link has no file name). Empty: photo if the link ends in .jpg, .png, .webp, .gif or .heic, otherwise video. |
| media_id | Instead of media_url: a video or photo already in your Media library (id from GET /api/v1/media). Several ids separated by | make a carousel. |
| mode | schedule (default) or draft. A draft isn't published and can be finished in the post editor. |
| title | YouTube title (up to 100 characters) and Pinterest pin title. Empty: the caption's first line. |
| first_comment | A comment posted under the post right after it goes out — Bluesky, X and LinkedIn. |
| linkedin_visibility | LinkedIn only, needed to schedule: public or connections. There is no default. |
| pinterest_board | Pinterest only, needed to schedule: the board id (GET /api/connections/pinterest/boards). |
| tiktok_privacy | TikTok only: who can see it — everyone, friends, followers or only_me. If set, fill every tiktok_ column; if empty, the TikTok post waits for your choice in the TikTok list before it can go out. |
| tiktok_allow_comments | TikTok: yes or no. |
| tiktok_allow_duet | TikTok: yes or no. |
| tiktok_allow_stitch | TikTok: yes or no. |
| tiktok_your_brand | TikTok disclosure: yes if the video promotes your own business. |
| tiktok_branded_content | TikTok disclosure: yes for a paid partnership with a third party (not with only_me). |
| ai_generated | yes to label the video as made or realistically changed with AI (TikTok with a choice, YouTube, Instagram, Facebook). |
| tags | Names of your ClipEmber tags, separated by commas (create them in the post editor or with POST /api/v1/tags first). |
| external_id | Your own id for this post, returned on every post of the row and in webhooks. |
curl -X POST "$BASE/api/v1/posts/bulk?dryRun=1" -H "X-API-Key: $KEY" -H "Content-Type: application/json" -d "$(jq -Rs '{csv: .}' posts.csv)"
{ "data": { "dryRun": true, "total": 2, "succeeded": 1, "failed": 1, "warnings": [],
"rows": [
{ "row": 1, "line": 2, "ok": true, "warnings": [],
"posts": [{ "platform": "youtube_shorts", "status": "would_queue", "scheduledFor": "2026-12-10T14:00:00.000Z", … }] },
{ "row": 2, "line": 3, "ok": false, "warnings": [],
"error": { "code": "not_connected", "message": "TikTok isn't connected — connect at …" } } ] } }Posting times and repeats
Each account can have preferred posting times (slots): a local time in an IANA time zone on chosen weekdays, up to 24 per account. A slot keeps its local time when clocks change — 10:00 in Europe/Kyiv is 10:00 there in winter and in summer. A newly connected account starts with 09:00, 13:00, 19:00 every day in the owner’s time zone (UTC if unknown); change or delete them like any other slot.
GET /api/v1/slots/next
The nearest slot that is free on every account you pass: ?accounts=<connectionId>,<connectionId> (plus optional after=<ISO 8601> and excludeGroupId=<groupId> to ignore a post you are editing). A slot is taken when the account has a queued post or draft within 30 minutes of it. The search covers 56 days, but never past how far ahead your plan schedules.
curl "$BASE/api/v1/slots/next?accounts=<connectionId>,<connectionId>" -H "X-API-Key: $KEY"
# 200 -> { "data": {
# "at": "2026-11-10T08:00:00.000Z", // one time for all accounts; null if none
# "reason": null, // no_slots | no_common_slot when at is null
# "searchedUntil": "2026-12-08T09:12:00.000Z",
# "accounts": [ { "connectionId": "…", "hasSlots": true, "at": "2026-11-10T08:00:00.000Z" }, … ] } }at is a slot of every account that has slots (an account without slots doesn’t limit the time, it only has to be free). To post then, send it as scheduledFor to POST /api/v1/posts. When no time suits every account, accounts[] still gives each account’s own next free slot.
POST /api/v1/slots/from-best-times
Fill slots from your best times to post: { connectionIds?, perDay? (1–5, default 2), days? ([1..7], default every day), replace? (default false), dryRun? (default false), timezone? } — without connectionIds, every connected account. Per account and weekday it picks up to perDay hours, at least 2 hours apart: that day's best cells first, then your best hours of any day, then the standard starting times 09:00, 13:00, 19:00. source tells where the hours come from — your_posts (this account's own posts with views, 10+), network_average (your posts on that network across your accounts, 10+) or default (standard starting times 09:00, 13:00, 19:00 — not measured); confidence is high from 50 posts, medium from 20, low otherwise (default is always low). Adding skips times at or within 2 hours of a slot the account already has that day (reason exists / too_close) and past 24 slots (limit); replace: true removes the accounts' slots first. dryRun: true (or ?dryRun=1) writes nothing. Idempotency-Key works as on POST /api/v1/posts. 404 account_not_found; 409 not_connected.
curl -X POST "$BASE/api/v1/slots/from-best-times" -H "X-API-Key: $KEY" -H "Content-Type: application/json" -d '{"perDay": 2, "dryRun": true}'
# 200 -> { "data": { "dryRun": true, "timezone": "Europe/Kyiv", "perDay": 2, "replace": false,
# "accounts": [ { "connectionId": "…", "platform": "tiktok", "handle": "@studio",
# "source": "your_posts", "confidence": "medium", "sampleSize": 46,
# "slots": [ { "weekday": 1, "time": "18:00", "basis": "weekday" }, … ], // basis: weekday | any_day | default
# "skipped": [ { "weekday": 1, "time": "12:00", "reason": "too_close", "conflictsWith": "13:00" } ],
# "removed": 0, "created": 3, "updated": 1 } ] } }GET /api/v1/slots
Your slots (?connectionId= for one account): id, connectionId, time (HH:MM), weekdays (1 = Monday … 7 = Sunday), timezone.
POST /api/v1/slots
Add a slot: { connectionId, time: "HH:MM", timezone, weekdays? } — weekdays default to every day. 201 with the slot; 409 duplicate_slot if the account already has that time; 409 too_many_slots.
curl -X POST $BASE/api/v1/slots -H "X-API-Key: $KEY" -H "Content-Type: application/json" -d '{"connectionId": "<connectionId>", "time": "09:30", "timezone": "Europe/Kyiv", "weekdays": [1, 3, 5]}'PATCH /api/v1/slots/:id
Change a slot's time, weekdays or timezone. 404 slot_not_found if it isn't yours.
DELETE /api/v1/slots/:id
Remove a slot. Posts already scheduled at that time don't change.
Repeating a post
A repeat posts the same group again daily, weekly or monthly, at the same local time. Each next post is created once the previous one is out of the queue (and, on a plan that schedules only a few days ahead, once it falls inside that window) — so there is always one upcoming post, and your edits to it (captions, accounts) carry on to the next ones. Each one goes through every check of a new post: your plan, how far ahead it schedules, the Free monthly limit, and client approval (while a shared group waits for approval, no new posts are created). A post whose time was missed is skipped, not posted late. On a monthly repeat from the 31st, shorter months use their last day.
TikTok: the TikTok choice is never copied. Each repeated TikTok post arrives without a choice and waits in the TikTok queue, like any post created without tiktokOptions.
POST /api/v1/repeats
Repeat a group: { groupId, frequency: daily | weekly | monthly, timezone?, until?, count? }. count is how many posts in total, this one included (2–366); until is the last moment a post may go out; without either, it repeats until you stop it. timezone defaults to UTC. 201 with the repeat; 409 already_repeating (with repeatId) or post_canceled.
curl -X POST $BASE/api/v1/repeats -H "X-API-Key: $KEY" -H "Content-Type: application/json" -d '{"groupId": "<groupId>", "frequency": "weekly", "timezone": "Europe/Kyiv", "count": 8}'
# 201 -> { "data": { "id": "…", "groupId": "…", "lastGroupId": "…", "frequency": "weekly",
# "timezone": "Europe/Kyiv", "until": null, "count": 8, "created": 1,
# "nextAt": "2026-11-17T08:00:00.000Z", "active": true, "stopReason": null, "notice": null,
# "createdAt": "2026-11-08T10:05:42.311Z" } }GET /api/v1/repeats
Your repeats; ?groupId= returns the repeat that group belongs to (any of its posts). notice says why the next post isn't created yet (limit, approval).
GET /api/v1/repeats/:id
One repeat.
PATCH /api/v1/repeats/:id
Change future posts: frequency, timezone, until, count (null removes an end). A new frequency counts from the latest post. 409 repeat_stopped if it has ended.
DELETE /api/v1/repeats/:id
Stop repeating. Posts it already created stay scheduled.
A repeat also ends on its own: at until or count, when every post of the latest group is canceled, when the video is deleted, or when none of its accounts is connected any more (stopReason: until, count, canceled, source_deleted, accounts_removed).
Tags, templates & signatures
Editor tools, like tags, sets and signatures elsewhere: they help you write posts and find them later, and never reach the networks on their own. Another account’s tag, template or signature looks like one that doesn’t exist (404).
Tags
A tag is a colored label on a post group (all posts of one POST /api/v1/posts, sharing a groupId). Up to 100 tags per account and 10 per post. Tag a new post with tagIds in POST /api/v1/posts (with groupId they are added to the group’s tags). Posts list their tagIds; filter with GET /api/v1/posts?tagId=<tagId>.
GET /api/v1/tags
Your tags by name, each with postGroups — how many posts carry it.
{ "data": [
{ "id": "<tagId>", "name": "Promo", "color": "#e4572e",
"createdAt": "2026-11-08T10:05:42.311Z", "postGroups": 4 }
] }POST /api/v1/tags
Create a tag: name (1–40 characters, unique per account ignoring case) and an optional color (#rrggbb; one is picked for you). 201; 409 duplicate_name or limit_reached.
GET /api/v1/tags/:id
One tag. 404 tag_not_found.
PATCH /api/v1/tags/:id
Rename a tag or change its color.
GET /api/v1/post-groups/:id/tags
The tags of a post group (:id is the groupId): { data: { groupId, tagIds } }.
DELETE /api/v1/tags/:id
Delete a tag; posts stay, only without it. Returns { data: { deleted: true, untaggedGroups } }.
PUT /api/v1/post-groups/:id/tags
Replace the tags of a post group (:id is the posts' groupId): { tagIds: [...] } (an empty list removes them all). GET on the same path reads them. 404 not_found if the group isn't yours, tag_not_found for a tag that isn't.
PUT /api/v1/post-groups/:id/tags
{ "tagIds": ["<tagId>"] }
# 200 -> { "data": { "groupId": "<groupId>", "tagIds": ["<tagId>"] } }Templates
A template is a saved post setup, made with “Save as template” in the post editor: shared caption, per-network captions, accounts, YouTube and Instagram settings and tags. Up to 50 per account. TikTok’s audience, interaction and disclosure choices are never stored: TikTok asks the person to make them for each post. If a payload carries them, they are removed and the response says so (notice.code: "tiktok_choice_not_saved").
GET /api/v1/templates
Your templates by name.
{ "data": [
{ "id": "<templateId>", "name": "Weekly podcast",
"payload": {
"caption": "New episode is out",
"captions": { "youtube_shorts": "Full episode on the channel" },
"accountIds": ["<connectionId>", "<connectionId>"],
"settings": { "youtube_shorts": { "privacy": "public", "madeForKids": false },
"instagram_reels": { "shareToFeed": true } },
"tagIds": ["<tagId>"] },
"createdAt": "2026-11-08T10:05:42.311Z", "updatedAt": "2026-11-08T10:05:42.311Z" }
] }POST /api/v1/templates
Create a template: { name (1–60), payload }. Account and tag ids must be yours (404 otherwise). 201; 409 duplicate_name or limit_reached.
GET /api/v1/templates/:id
One template with its saved editor state. 404 template_not_found.
PATCH /api/v1/templates/:id
Rename a template and/or replace its payload.
DELETE /api/v1/templates/:id
Delete a template.
Signatures
A signature is text you end captions with (up to 2000 characters, 20 per account). One may have autoAdd: true: the post editor puts it into the caption of every new post, where the person sees it and can change it. The API never adds a signature on its own — not even that one. To add one, pass signatureId to POST /api/v1/posts: it is appended to the end of each target’s caption (after a blank line, unless the caption already contains it), and each network’s caption limit counts it (400 caption_too_long). It can’t be combined with a TikTok target that carries tiktokOptions — that caption was confirmed on the Post to TikTok screen.
GET /api/v1/signatures
Your signatures: the auto-add one first, then by name.
{ "data": [
{ "id": "<signatureId>", "name": "Follow us", "body": "Follow @acme for more",
"autoAdd": true, "createdAt": "2026-11-08T10:05:42.311Z", "updatedAt": "2026-11-08T10:05:42.311Z" }
] }POST /api/v1/signatures
Create a signature: { name (1–60), body, autoAdd? }. autoAdd: true takes it off any other signature. 201; 409 duplicate_name or limit_reached.
GET /api/v1/signatures/:id
One signature. 404 signature_not_found.
PATCH /api/v1/signatures/:id
Change a signature's name, body or autoAdd.
DELETE /api/v1/signatures/:id
Delete a signature. Posts that already include it keep their text.
# Tag a new post and end every caption with a signature
curl -X POST $BASE/api/v1/posts \
-H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"source": { "mediaId": "<mediaId>" }, "mode": "schedule",
"scheduledFor": "2026-12-01T14:00:00Z",
"targets": [{ "platform": "youtube_shorts", "caption": "Three hours → one minute",
"settings": { "madeForKids": false } }],
"tagIds": ["<tagId>"],
"signatureId": "<signatureId>"
}'Analytics
Numbers come from snapshots we take of every published post — your own videos and clips alike — 1 h, 6 h, 24 h, 3 days and 7 days after it goes live. A post’s views are its latest snapshot, never a sum of snapshots. A metric nobody has measured yet is null, not 0. A TikTok upload has no numbers until the person finishes it in the TikTok app.
GET /api/v1/analytics/accounts
Views, likes, comments, shares and posts published per connected account and per network, a daily series and the best posts. Bluesky reports no views (views is null; likes, reposts as shares and replies as comments are counted); LinkedIn numbers are not collected yet. Period: days=7|30|90 (today and the days before it, default 30), or from and to (ISO 8601 with an offset, on postedAt; to is exclusive). History depth follows the plan — maxDays in the response, and clamped: true when the period was cut. Filters: platform, accountId (a connectionId; connectionId works too). tz (IANA, default UTC) sets the day boundaries; top (1–50, default 10) the number of best posts. viewsPerPost averages only the posts that already have numbers. Bluesky has no view counts: its views are null, shares are reposts and comments are replies, and its best posts rank after posts with views, by likes + replies + reposts. Facebook Reels, Threads and LinkedIn numbers are not collected yet. A TikTok best post links to tiktok.com/@username/video/id once TikTok gave us the username at posting. 404 not_found for an account that isn't yours.
curl "$BASE/api/v1/analytics/accounts?days=30&platform=youtube_shorts&tz=Europe/Kyiv" \
-H "X-API-Key: cf_..."
# 200 ->
{ "data": {
"from": "2026-11-08T22:00:00.000Z", "to": "2026-12-08T09:15:00.000Z", "tz": "Europe/Kyiv",
"days": 30, "maxDays": 90, "clamped": false,
"filter": { "platform": "youtube_shorts", "connectionId": null },
"totals": { "posts": 12, "postsWithData": 11, "views": 48210, "likes": 1904,
"comments": 233, "shares": null, "viewsPerPost": 4383 },
"networks": [ { "platform": "youtube_shorts", "posts": 12, ... } ],
"accounts": [ { "connectionId": "…", "platform": "youtube_shorts", "handle": "@studio",
"avatarUrl": "https://…", "state": "connected", // reconnect_required | removed
"posts": 8, "postsWithData": 7, "views": 40100, ... } ],
"accountOptions": [ { "connectionId": "…", "platform": "tiktok", "handle": "@studio",
"state": "connected" } ], // every account, whatever the filter
"daily": [ { "date": "2026-11-09", "posts": 1, "views": 3120 }, ... ], // by publish day
"topPosts": [ { "id": "…", "platform": "youtube_shorts", "connectionId": "…",
"accountHandle": "@studio", "source": "media", "title": "…",
"thumbUrl": "https://…", "link": "https://youtu.be/…",
"postedAt": "2026-12-01T14:00:00.000Z", "views": 15022,
"likes": 610, "comments": 41, "shares": null } ],
"awaiting": { "firstSnapshot": 1, "tiktokNotPublished": 0, "unavailable": 0 },
"truncated": false
} }GET /api/v1/analytics/best-times
The days and hours when your own posts got the most views: { data: { tz, connectionId, platform, from, to, postsWithViews, minPosts, enough, needMore, best: [{ weekday, hour, posts, avgViews, score }], cells: [...] } }. weekday 0 is Monday; hours are in tz (IANA; default your time zone from Account settings, else UTC). Uses published posts of the last 90 days (or less, as your plan's analytics allow) that have view counts; score is the average of each post's views relative to its own account's median (1 = usual), so a big account doesn't drown a small one. best lists up to 3 cells, those with 2+ posts first. Below minPosts (10) posts with views, enough is false, needMore says how many more, and best and cells are empty — no industry averages. source is always your_posts, sampleSize equals postsWithViews, and confidence is high from 50 posts, medium from 20, low from 10 (null below 10). Filters: connectionId, platform. 404 not_found for an account that isn't yours. To turn the best times into posting slots, use POST /api/v1/slots/from-best-times.
POST /api/v1/caption-assist
AI help with a caption, as in the post editor: { action: 'rewrite' | 'shorter' | 'hashtags', caption, platform? }. 202 -> { data: { id, action, status: 'queued', result: null, error: null, createdAt, usedToday, limitPerDay } }; poll GET /api/v1/caption-assist/:id every second or two until status is done (result) or failed (error: unavailable — the AI is off, not counted toward the daily limit; model_error or timeout — counted) — usually a few seconds. The result fits the platform's caption limit (2,200 characters without platform). Nothing is saved to a post — you decide whether to use it. A daily limit per workspace follows the plan (5 / 30 / 100 / 300 a day, UTC days): 429 limit_reached. Not in MCP — an agent writes captions itself.
GET /api/v1/caption-assist/:id
A caption suggestion's state: { data: { id, action, status, result, error, createdAt, usedToday, limitPerDay } }. Only the person who asked sees it; anyone else gets 404 not_found.
POST /api/v1/ai/translate
Translate a caption: { text, targetLang, sourceLang?, platform? } with BCP-47 language codes (en, uk, pt-BR). Links, @mentions and #hashtags stay exactly as they are; with platform the translation fits that network's caption limit (5,000 characters without). 200 -> { data: { id, kind: 'translate', status: 'done', text, detectedSource, hashtags: null, flagged, error: null, createdAt, usedToday, limitPerDay } }. The call waits up to about 25 seconds; if the AI is still working you get 202 with status queued or running — poll GET /api/v1/ai/tasks/:id. Nothing is saved to a post. Uses the same daily AI allowance as caption-assist: 429 limit_reached. 503 ai_unavailable when the AI is off or didn't answer (the message says whether it counted). MCP: clipember_translate_caption.
POST /api/v1/ai/hashtags
Hashtag ideas for one network: { caption, platform, count? }. count is capped to the network's norm — Instagram up to 30 (default 10), TikTok 5 (4), LinkedIn 5 (4), X 2 (2), YouTube 15 (3), Threads 1. 200 -> { data: { kind: 'hashtags', text: '#a #b', hashtags: ['#a', '#b'], flagged: [...] } } — flagged lists tags Instagram is reported to restrict (ClipEmber's own short list; Instagram has no official API for it). 202, limits and errors as for /api/v1/ai/translate. MCP: clipember_suggest_hashtags.
GET /api/v1/ai/tasks/:id
An AI helper request's state after a 202: { data: { id, kind, status, text, detectedSource, hashtags, flagged, error, … } }. status failed carries error: unavailable (AI off, not counted), model_error, timeout or media_gone. Only the person who asked sees it; anyone else gets 404 not_found.
Client approval
Share a post with a client before it goes out. A preview link shows the video, each network’s caption and settings and the time — no login — and the client comments by name and approves or asks for changes. The unit is the post group (groupId): every network of one video. With Publish only approved on (PATCH /api/v1/account {publishOnlyApproved: true}), a shared group that isn’t approved can’t be queued: queuing it keeps the posts as drafts and returns notice: {code: "awaiting_approval"} next to data; when the client approves, they go into the queue with the usual checks (a time that has passed keeps them as drafts). Changing an approved group’s caption, settings or accounts (adding, removing or moving one) resets the approval to none — with Publish only approved on, its queued posts become drafts again until the client approves; changing only the time keeps the approval. The owner (and the teammate who created the post) gets an email about decisions and comments, at most one per group every 15 minutes.
POST /api/v1/approvals/:groupId/link
Create a preview link ({expiresInDays?: 1–90}). Without expiresInDays the link lives 30 days, or until a day after the group's last post if that is later (at most 90 days). Returns { data: { url, expiresAt, heldPosts } } with status 201. The url is shown only here — we store just a hash; a new link revokes the previous one. heldPosts: queued posts that became drafts because Publish only approved is on.
DELETE /api/v1/approvals/:groupId/link
Revoke the live link; the page then shows not found. Decisions and comments are kept. Returns { data: { revoked } }.
GET /api/v1/approvals/:groupId
The decision (state: none | approved | changes_requested, reviewerName, decidedAt), the live link's expiry and views (never the URL), waitingForApproval, notice (why approval couldn't queue a post) and comments [{ kind: comment | approved | changes_requested | approval_reset, authorName, body, createdAt }]. approval_reset is our own line: the group changed after it was approved.
Notifications
What the bell in the app shows, so an agent sees failures too: posts that failed or couldn’t be confirmed, client comments and decisions on preview links, new teammates and invites, and uploaded videos deleted automatically within 3 days — the last 14 days, up to 30 items. A team member sees failures and reviews of the posts they created.
GET /api/v1/notifications
{ data: [{ id, kind, at, title, body, href, helpPath, platform, dueAt, unread }], unread, readAt }. kind: post_failed | post_unconfirmed | review_comment | review_approved | review_changes | team_joined | team_invite | media_expiring | post_comment (a teammate commented on a post you created or commented on) | team_approval_requested (to the owner and admins while a member's post waits) | team_approval_decided (to the member who asked) | product_update (product news, e.g. a launch; links to /changelog). For post_failed and post_unconfirmed, platform is the post's network (tiktok, youtube_shorts, …; null on other kinds). For a failed post, body is the reason in plain words and helpPath the help section (/help/failed-posts#post-failed-<code>) — the same as errorHint and helpUrl in the post.failed webhook.
POST /api/v1/notifications/read
Mark everything up to now as read (what opening the bell does). Read state is per person. Returns the list with unread: 0.
GET /api/v1/getting-started
The Get started checklist: { data: { visible, dismissed, steps: [{ key: connect | upload | post | agent_or_team, done, optional }], done, total } }. Steps tick themselves from what the workspace has done.
POST /api/v1/getting-started/dismiss
Hide the checklist for this person. Calling it again changes nothing.
Webhooks
Get a signed POST when something happens to your posts, connected accounts or clipping requests, instead of polling. Adding an endpoint, or turning a paused one back on, needs Pro and Agency (or the 7-day Pro trial). Listing, changing events, pausing, rotating, testing and deleting work on any plan, and endpoints you already have keep receiving events after a downgrade.
POST /api/v1/webhooks
Add an endpoint: {url, events?}. url must be https on a public address, without user:password@. events defaults to all of post.scheduled, post.published, post.failed, post.unconfirmed, post.first_comment_failed, post.deferred, post.canceled, post.updated, post.deleted_remote, post.remote_action_failed, account.connected, account.disconnected, account.reauth_required, clip.ready, request.failed. The secret (whsec_…) is in this response only — store it. Errors: 403 plan_required, 403 webhook_limit, 403 admin_required (in a team, only the owner or an admin manages webhooks), 400 invalid_url, 409 duplicate_url.
curl -X POST $BASE/api/v1/webhooks \
-H "X-API-Key: cf_..." -H "Content-Type: application/json" \
-d '{"url": "https://your.app/hooks/clipember", "events": ["post.published", "post.failed"]}'
# 201 -> { "data": { "id": "…", "url": "…", "events": [...], "active": true,
# "secret": "whsec_…", "secretHint": "x9Qa", "lastDelivery": null, ... } }GET /api/v1/webhooks
Your endpoints with their last delivery, and endpointLimit { limit, used } (used counts endpoints that are on). The secret is never listed — only secretHint, its last 4 characters.
PATCH /api/v1/webhooks/:id
Change an endpoint without deleting it — the URL, secret and delivery log stay: {events?, active?}. events replaces the subscription (at least one of post.scheduled, post.published, post.failed, post.unconfirmed, post.first_comment_failed, post.deferred, post.canceled, post.updated, post.deleted_remote, post.remote_action_failed, account.connected, account.disconnected, account.reauth_required, clip.ready, request.failed). active: false pauses it: no events are sent while it's off, and deliveries waiting for a retry are dropped. active: true turns it back on and takes a slot again (403 plan_required / webhook_limit if none is free). Returns { data: Endpoint }. The URL can't be changed — add the new one as a new endpoint.
curl -X PATCH $BASE/api/v1/webhooks/<endpointId> \
-H "X-API-Key: cf_..." -H "Content-Type: application/json" \
-d '{"events": ["post.failed", "post.unconfirmed"]}'
# 200 -> { "data": { "id": "…", "events": ["post.failed", "post.unconfirmed"], "active": true, ... } }POST /api/v1/webhooks/:id/rotate
A new secret, shown once. The old one stops working at once, including for retries still waiting — update your receiver first.
POST /api/v1/webhooks/:id/test
Queue a test event (202, { data: { deliveryId } }). It's signed and retried like a real one, usually arrives within a minute, and comes whatever events the endpoint subscribes to. With no body it's webhook.test with data { message, endpointId }. Send {"event": "post.scheduled"} (any event below) to get that event with the sample data shown below and "test": true next to "data". A paused endpoint answers 409 webhook_disabled; an unknown event 400 invalid_request.
GET /api/v1/webhooks/:id/deliveries
Recent deliveries, newest first (?limit= 1–100, default 20): status pending | retrying | delivered | failed, attempts, lastStatus (HTTP), lastError, nextAttemptAt.
DELETE /api/v1/webhooks/:id
Remove an endpoint and any deliveries still waiting.
Events
Endpoints added without events get all of them. Endpoints added before an event existed keep the list they had — add new events with PATCH /api/v1/webhooks/:id.
Posts
EVENT post.scheduled
A post entered the queue: created as scheduled (API, MCP, the app, bulk, autopilot, series, repeats) or a draft was scheduled or approved. Once per scheduling — a retry of a failed post doesn't send it again.
{
"event": "post.scheduled",
"data": {
"postId": "8f14e45f-ceea-467a-9575-2f3c4a1b2c3d",
"groupId": "1679091c-5a88-4faf-afb5-e6087eb1b2dc",
"platform": "youtube_shorts",
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"accountHandle": "@studio",
"externalId": "cms-post-1187",
"scheduledFor": "2026-12-01T14:00:00.000Z",
"clipId": null,
"mediaId": "45c48cce-2e2d-4fbd-aa1a-fc51c7cb84c2",
"contentKind": "video",
"status": "queued"
}
}EVENT post.published
The network accepted the post. Adds platformPostId, privacy and delivery (see below).
{
"event": "post.published",
"data": {
"postId": "8f14e45f-ceea-467a-9575-2f3c4a1b2c3d",
"groupId": "1679091c-5a88-4faf-afb5-e6087eb1b2dc",
"platform": "youtube_shorts",
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"accountHandle": "@studio",
"externalId": "cms-post-1187",
"scheduledFor": "2026-12-01T14:00:00.000Z",
"clipId": null,
"mediaId": "45c48cce-2e2d-4fbd-aa1a-fc51c7cb84c2",
"contentKind": "video",
"status": "posted",
"platformPostId": "dQw4w9WgXcQ",
"privacy": "public",
"delivery": "direct",
"changes": [
"Converted HEVC → H.264",
"Scaled 3840×2160 → 1920×1080"
]
}
}EVENT post.failed
Publishing failed for good. Adds reason or error, and errorCode, errorHint, errorAction and helpUrl (see below).
{
"event": "post.failed",
"data": {
"postId": "8f14e45f-ceea-467a-9575-2f3c4a1b2c3d",
"groupId": "1679091c-5a88-4faf-afb5-e6087eb1b2dc",
"platform": "youtube_shorts",
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"accountHandle": "@studio",
"externalId": "cms-post-1187",
"scheduledFor": "2026-12-01T14:00:00.000Z",
"clipId": null,
"mediaId": "45c48cce-2e2d-4fbd-aa1a-fc51c7cb84c2",
"contentKind": "video",
"status": "failed",
"reason": "reconnect_needed",
"errorCode": "reconnect",
"errorHint": "YouTube no longer accepts ClipEmber's access to this channel. Reconnect it and retry the post.",
"errorAction": "reconnect",
"helpUrl": "https://clipember.com/help/failed-posts#post-failed-reconnect"
}
}EVENT post.unconfirmed
We sent the post, but the network didn't confirm it went out — check the profile before retrying.
{
"event": "post.unconfirmed",
"data": {
"postId": "8f14e45f-ceea-467a-9575-2f3c4a1b2c3d",
"groupId": "1679091c-5a88-4faf-afb5-e6087eb1b2dc",
"platform": "youtube_shorts",
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"accountHandle": "@studio",
"externalId": "cms-post-1187",
"scheduledFor": "2026-12-01T14:00:00.000Z",
"clipId": null,
"mediaId": "45c48cce-2e2d-4fbd-aa1a-fc51c7cb84c2",
"contentKind": "video",
"status": "unconfirmed",
"errorCode": "unknown",
"errorHint": "We sent the video, but YouTube didn't confirm it went out. Check the channel before retrying.",
"errorAction": "check_profile",
"helpUrl": "https://clipember.com/help/failed-posts#post-failed-unknown"
}
}EVENT post.first_comment_failed
The post went out, but its first comment (firstComment) couldn't be posted after retries. The post stays posted; error says why.
{
"event": "post.first_comment_failed",
"data": {
"postId": "8f14e45f-ceea-467a-9575-2f3c4a1b2c3d",
"groupId": "1679091c-5a88-4faf-afb5-e6087eb1b2dc",
"platform": "bluesky",
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"accountHandle": "@studio",
"externalId": "cms-post-1187",
"scheduledFor": "2026-12-01T14:00:00.000Z",
"clipId": null,
"mediaId": "45c48cce-2e2d-4fbd-aa1a-fc51c7cb84c2",
"contentKind": "video",
"status": "posted",
"platformPostId": "at://did:plc:studio/app.bsky.feed.post/3k2a",
"error": "Bluesky rejected the reply: the post is no longer available."
}
}EVENT post.deferred
We moved a queued post because the account hit a daily limit — TikTok's posts per account (reason tiktok_daily_cap) or YouTube's uploads per channel (reason youtube_daily_limit). scheduledFor is the new time, previousScheduledFor the old one; the post stays queued and goes out by itself. Sent on every move.
{
"event": "post.deferred",
"data": {
"postId": "8f14e45f-ceea-467a-9575-2f3c4a1b2c3d",
"groupId": "1679091c-5a88-4faf-afb5-e6087eb1b2dc",
"platform": "tiktok",
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"accountHandle": "@studio",
"externalId": "cms-post-1187",
"scheduledFor": "2026-12-02T09:10:00.000Z",
"clipId": null,
"mediaId": "45c48cce-2e2d-4fbd-aa1a-fc51c7cb84c2",
"contentKind": "video",
"status": "queued",
"previousScheduledFor": "2026-12-01T14:00:00.000Z",
"reason": "tiktok_daily_cap",
"message": "TikTok allows this account about 15 posts a day — we'll send it automatically on Dec 02 09:10 UTC."
}
}EVENT post.canceled
A post was canceled (or deleted) before it went out. previousStatus is draft, queued, failed or unconfirmed; deleted: true when it was removed rather than marked canceled.
{
"event": "post.canceled",
"data": {
"postId": "8f14e45f-ceea-467a-9575-2f3c4a1b2c3d",
"groupId": "1679091c-5a88-4faf-afb5-e6087eb1b2dc",
"platform": "youtube_shorts",
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"accountHandle": "@studio",
"externalId": "cms-post-1187",
"scheduledFor": "2026-12-01T14:00:00.000Z",
"clipId": null,
"mediaId": "45c48cce-2e2d-4fbd-aa1a-fc51c7cb84c2",
"contentKind": "video",
"status": "canceled",
"previousStatus": "queued"
}
}EVENT post.updated
The network accepted a new caption for a published post (PATCH /api/v1/posts/:id with caption). caption is the text now on the network.
{
"event": "post.updated",
"data": {
"postId": "8f14e45f-ceea-467a-9575-2f3c4a1b2c3d",
"groupId": "1679091c-5a88-4faf-afb5-e6087eb1b2dc",
"platform": "linkedin",
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"accountHandle": "@studio",
"externalId": "cms-post-1187",
"scheduledFor": "2026-12-01T14:00:00.000Z",
"clipId": null,
"mediaId": "45c48cce-2e2d-4fbd-aa1a-fc51c7cb84c2",
"contentKind": "video",
"status": "posted",
"platformPostId": "urn:li:share:7140000000000000000",
"caption": "New caption, fixed typo"
}
}EVENT post.deleted_remote
A published post was deleted from the network (DELETE /api/v1/posts/:id?alsoFromNetwork=true). removed counts the post plus its thread parts and first comment. The post stays in ClipEmber with status posted and remoteAction.kind delete.
{
"event": "post.deleted_remote",
"data": {
"postId": "8f14e45f-ceea-467a-9575-2f3c4a1b2c3d",
"groupId": "1679091c-5a88-4faf-afb5-e6087eb1b2dc",
"platform": "x",
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"accountHandle": "@studio",
"externalId": "cms-post-1187",
"scheduledFor": "2026-12-01T14:00:00.000Z",
"clipId": null,
"mediaId": "45c48cce-2e2d-4fbd-aa1a-fc51c7cb84c2",
"contentKind": "video",
"status": "posted",
"platformPostId": "1864000000000000000",
"removed": 3
}
}EVENT post.remote_action_failed
We couldn't edit or delete a published post on the network. action is edit or delete, error says why; the post on the network is unchanged.
{
"event": "post.remote_action_failed",
"data": {
"postId": "8f14e45f-ceea-467a-9575-2f3c4a1b2c3d",
"groupId": "1679091c-5a88-4faf-afb5-e6087eb1b2dc",
"platform": "telegram",
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"accountHandle": "@studio",
"externalId": "cms-post-1187",
"scheduledFor": "2026-12-01T14:00:00.000Z",
"clipId": null,
"mediaId": "45c48cce-2e2d-4fbd-aa1a-fc51c7cb84c2",
"contentKind": "video",
"status": "posted",
"platformPostId": "42",
"action": "delete",
"error": "Telegram lets bots delete messages only within 48 hours of posting — delete it in Telegram."
}
}Accounts
EVENT account.connected
An account was connected, or connected again (reconnected: true) — including re-authorizing an account that was still connected.
{
"event": "account.connected",
"data": {
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"platform": "tiktok",
"accountHandle": "@studio",
"clientId": null,
"status": "connected",
"reconnected": false
}
}EVENT account.disconnected
A connected account stopped being connected: removed by you (reason user_disconnected, reconnectRequired: false) or the network stopped accepting our access (reason token_revoked, bot_removed, …; reconnectRequired: true).
{
"event": "account.disconnected",
"data": {
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"platform": "tiktok",
"accountHandle": "@studio",
"clientId": null,
"status": "disconnected",
"reason": "token_revoked",
"reconnectRequired": true
}
}EVENT account.reauth_required
The account needs you to sign in to the network again. reason token_expiring: its access ends at expiresAt, sent 15 days ahead (TikTok, LinkedIn; for Instagram, Threads and Pinterest we renew access ourselves, so it comes only if that hasn't worked and less than 3 days are left) — once per expiry date. reason access_lost: the network already stopped accepting access (sent together with account.disconnected).
{
"event": "account.reauth_required",
"data": {
"connectionId": "c9f0f895-fb98-4b91-99f5-1b8b4f6c0d1e",
"platform": "tiktok",
"accountHandle": "@studio",
"clientId": null,
"reason": "token_expiring",
"expiresAt": "2026-12-16T08:00:00.000Z"
}
}Clipping
EVENT clip.ready
A clipping request (POST /api/v1/shorts, or a project in the app) finished. clipCount is how many clips rendered; clips lists them, best first. Sent once per request — editing a clip later doesn't send it again.
{
"event": "clip.ready",
"data": {
"requestId": "d3d94468-02a4-4f39-8f5e-5b1d2c3e4f50",
"externalId": "cms-video-42",
"title": "Weekly podcast #42",
"status": "completed",
"clipCount": 2,
"clips": [
{
"id": "6512bd43-d9ca-4e6c-8a1b-2c3d4e5f6a7b",
"title": "The one habit that doubled our output",
"score": 92,
"startMs": 61000,
"endMs": 98500,
"status": "rendered"
},
{
"id": "c20ad4d7-6fe9-4759-aa27-a0c99bff6710",
"title": "Why we stopped hiring generalists",
"score": 87,
"startMs": 412000,
"endMs": 455000,
"status": "rendered"
}
]
}
}EVENT request.failed
A clipping request couldn't be finished. stage is where it stopped, error the reason. Credits for it are refunded.
{
"event": "request.failed",
"data": {
"requestId": "d3d94468-02a4-4f39-8f5e-5b1d2c3e4f50",
"externalId": "cms-video-42",
"title": "Weekly podcast #42",
"status": "failed",
"stage": "ingest",
"error": "the video is private or no longer available"
}
}What we send
POST https://your.app/hooks/clipember
Content-Type: application/json
ClipEmber-Event: post.published
ClipEmber-Delivery: 5b0e… # same as "id" below, and the same on every retry
ClipEmber-Signature: t=1796133605,v1=3f9c…e1
{"id":"5b0e…","createdAt":"2026-12-01T14:00:05.310Z","event":"post.published",
"data":{"postId":"…","groupId":"…","platform":"youtube_shorts","status":"posted",
"connectionId":"…","accountHandle":"@studio","externalId":"cms-post-1187",
"scheduledFor":"2026-12-01T14:00:00.000Z","clipId":null,"mediaId":"…",
"platformPostId":"dQw4w9WgXcQ","privacy":"public","delivery":"direct"}}- Every event has
postId,groupId,platform,connectionIdandaccountHandle(the account the post goes out from),status,scheduledFor,clipId,mediaIdandexternalId(yours fromPOST /api/v1/posts, ornull). For the whole post, callGET /api/v1/posts/:idwithpostId. post.publishedaddsplatformPostId(for TikTok this can be the upload’s id until the video is live),privacy(YouTube: the visibility YouTube actually applied) anddelivery:directon YouTube and Instagram; on TikTokdirect_post(on the profile) orinbox_upload— sent without the person’s choice, the video is waiting in their TikTok Inbox and goes live only when they finish it in the TikTok app.post.failedaddsreason—reconnect_needed(the network revoked access; reconnect the account) orplatform_busy(TikTok kept refusing new posts) — or anerrortext (the raw message). Bothpost.failedandpost.unconfirmedalso carry the plain-language reason shown in the app:errorCode(e.g.reconnect,video_length,rate_limited,unknown),errorHint(one or two sentences),errorAction(reconnect|edit|retry|check_profile|upgrade|none) andhelpUrl.post.unconfirmed— see the retry warning above.post.first_comment_failed— the post is live (status: posted,platformPostId) but its first comment couldn’t be posted;errorsays why. Endpoints added before this event existed aren’t subscribed to it — add it withPATCH /api/v1/webhooks/:id.
Reply with any 2xx within 15 seconds. Anything else — an error, a redirect (we don’t follow them) or no answer — counts as a failed attempt, and we try again after 1 min, 5 min, 30 min, 2 h, 6 h: 6 attempts over about 8.6 hours, then give up (the delivery shows as failed). Retries can arrive out of order and more than once, so use id to skip duplicates.
Verifying the signature
v1 is a hex HMAC-SHA256 of `${t}.${rawBody}` with your endpoint’s secret, where t is the Unix time of that attempt. Compute it over the raw body exactly as received (parsed and re-serialized JSON won’t match), compare in constant time, and reject an old t so a captured request can’t be replayed. Each retry is signed afresh.
// Node.js
import { createHmac, timingSafeEqual } from "node:crypto";
export function verifyClipEmber(rawBody /* Buffer */, header, secret, toleranceSec = 300) {
const parts = Object.fromEntries(
(header ?? "").split(",").map((kv) => kv.trim().split("=")),
);
const t = Number(parts.t);
if (!Number.isInteger(t) || !parts.v1) return false;
if (Math.abs(Date.now() / 1000 - t) > toleranceSec) return false; // stale or replayed
const expected = createHmac("sha256", secret).update(`${t}.`).update(rawBody).digest("hex");
const a = Buffer.from(parts.v1);
const b = Buffer.from(expected);
return a.length === b.length && timingSafeEqual(a, b);
}
// Express: app.post("/hooks/clipember", express.raw({ type: "application/json" }), (req, res) =>
// verifyClipEmber(req.body, req.get("ClipEmber-Signature"), process.env.CLIPEMBER_WEBHOOK_SECRET)
// ? res.sendStatus(200) : res.sendStatus(400));# Python
import hashlib, hmac, time
def verify_clipember(raw_body: bytes, header: str, secret: str, tolerance_sec: int = 300) -> bool:
parts = dict(p.strip().split("=", 1) for p in (header or "").split(",") if "=" in p)
try:
t = int(parts["t"])
except (KeyError, ValueError):
return False
if abs(time.time() - t) > tolerance_sec:
return False # stale or replayed
expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get("v1", ""))
# Flask: verify_clipember(request.get_data(), request.headers.get("ClipEmber-Signature", ""), SECRET)Account, keys & team
GET /api/v1/me
Who you are: email, plan, credit balance and when it renews. publishQuota: { limit, used, resetsOn } of the Free plan's monthly video quota (null on plans without one).
GET /api/v1/account
Settings: name, email, plan, email preferences, publishOnlyApproved, membersNeedApproval (with yourPostsNeedApproval — whether it applies to you), timezone (null — automatic), timeFormat (12h | 24h; null — automatic) and weekStart (sunday | monday).
PATCH /api/v1/account
Change some of { name, emailPrefs, publishOnlyApproved, membersNeedApproval, timezone, timeFormat, weekStart }. timezone is an IANA zone or null for automatic; timeFormat is 12h or 24h (null — automatic, the browser's habit) and sets the clock of the calendar and emails; weekStart (sunday | monday) is the first day of the calendar's week. publishOnlyApproved and membersNeedApproval are workspace settings: the owner or an admin only (403 admin_required); turning publishOnlyApproved on moves queued, unapproved shared posts back to drafts (heldPosts). membersNeedApproval applies to posts members queue from then on.
DELETE /api/v1/account
Delete your account: network tokens are deleted right away and queued posts are taken off the queue; a team you own passes to its longest-serving admin or member. Signed-in session only: an API key or agent gets 403 web_session_required.
GET /api/v1/keys
Your API keys (name and prefix only — the secret is never shown again).
POST /api/v1/keys
Create a key: { name }. The secret is in the response once. New keys need Pro or Agency (or the Pro trial). Signed-in session only: an API key or agent gets 403 web_session_required, so a leaked key can't mint a replacement.
DELETE /api/v1/keys/:id
Revoke a key; it stops working at once. Works with any key or agent.
Personal actions are session-only. Creating API keys, deleting the account and the billing portal answer 403 web_session_required to an API key or an agent (MCP); email, password and sign-in sessions are changed only in the app. Settings (PATCH /api/v1/account) and revoking keys work with a key.
Team (Pro and Agency). Everyone in a workspace works on the owner’s accounts, posts and media, on the owner’s plan; these endpoints answer 403 feature_disabled while teams are off. API keys are personal: a key acts in the workspace its person has chosen and stops working there when they leave. Invites and role changes are made in the app, not with a key.
GET /api/v1/workspaces
Your workspaces (personal first) and currentWorkspaceId.
GET /api/v1/workspaces/current
The workspace you work in now.
POST /api/v1/workspaces/current
Switch: { workspaceId }. 404 workspace_not_found if you aren't a member.
GET /api/v1/workspaces/:id
One of your workspaces.
PATCH /api/v1/workspaces/:id
Rename: { name } (1–60). Admins only.
GET /api/v1/workspaces/:id/members
Members: admins first, then by join date — { userId, email, name, role, isOwner, isYou, joinedAt }.
PATCH /api/v1/workspaces/:id/members/:userId
Change a role: { role: admin | member }. Admins only, in the app. 409 last_admin.
DELETE /api/v1/workspaces/:id/members/:userId
Remove a member (admins), or leave (your own userId). The owner can't be removed.
GET /api/v1/workspaces/:id/invites
Open invites. Admins only.
POST /api/v1/workspaces/:id/invites
Invite by email: { email, role? }. Admins only, in the app. The link in the email works 7 days.
DELETE /api/v1/workspaces/:id/invites/:inviteId
Revoke an open invite. Admins only.
More endpoints
Clipping, autopilot and billing, in short. They take the same X-API-Key and return { data } or { error: { code, message } } like everything above.
| Endpoint | What it does |
|---|---|
| GET /api/v1/openapi.json | This API as an OpenAPI 3.1 document, no key needed. |
| GET /api/v1/requests | Your clipping projects, newest first. |
| POST /api/v1/connections/notify | Ask to be emailed when a network in limited access opens for everyone: { platform } (instagram_reels, facebook_reels, threads). GET /api/v1/connections shows it in notifyRequested. |
| DELETE /api/v1/connections/notify | Stop waiting for that email: ?platform=. |
| GET /api/v1/requests/:id | One project: status, pipeline stages and its clips. |
| PATCH /api/v1/requests/:id | Rename a project: { title }. |
| DELETE /api/v1/requests/:id | Delete a project, its clips and their files. |
| POST /api/v1/requests/:id/retry | Run a failed project again as a new project with the same source and settings; no new credit while the video is paid for. |
| GET /api/v1/requests/:id/export | A zip of every rendered clip in the project. |
| GET /api/v1/clips | Search your clips by title or hook: ?q= (top 50 by score). ?recent=1 instead: your 20 latest rendered clips with a thumbnail (thumbUrl) — what the post editor's Your clips tab shows. |
| GET /api/v1/clips/:id | One clip with its transcript words and saved edit. |
| PATCH /api/v1/clips/:id | Rename a clip ({ title }) and/or add it to Favorites ({ favorite: true }). |
| DELETE /api/v1/clips/:id | Delete a clip, its other ratios and its files. 409 has_posts while a post of the clip is waiting to go out. |
| POST /api/v1/clips/:id/duplicate | Copy a rendered clip — same edit, its own files — to edit the copy without touching the original. Free. |
| GET /api/v1/collections | Your clip collections: [{ id, name, clipCount }]. Favorites is the favorite flag on a clip. |
| POST /api/v1/collections | Create a collection: { name } (1–60 characters, unique). |
| DELETE /api/v1/collections/:id | Delete a collection; its clips stay. |
| POST /api/v1/collections/:id/clips | Add clips to a collection, or remove them with remove: true: { clipIds: [up to 100], remove? }. |
| POST /api/v1/requests/:id/reprompt | Find more moments: search a finished project again with a new prompt ({ prompt }, 2–300 characters). The clips appear under promptRuns / promptRunId of the project; it doesn't use another video from your plan. Up to 5 per project, one at a time. |
| GET /api/v1/requests/:id/transcript | The whole video's subtitles or transcript as a file (format=srt|vtt|txt), within the range picked at creation. |
| GET /api/v1/clips/:id/words | Transcript words of the whole source video around a clip (±10 min by default; fromMs/toMs pick another window of up to 40 min) — for extending a clip with any part of the video. |
| GET /api/v1/clips/:id/peaks | Audio peaks of the clip's source at 50 ms steps for a window of up to 40 min (fromMs/toMs) — the waveform of a section on the editor timeline; peaks is null for older sources. |
| GET /api/v1/clips/:id/draft | The editor's unsaved draft of a clip (ratio=9:16 by default): { draft: { edl, baseVersion, updatedAt } | null }. |
| PUT /api/v1/clips/:id/draft | Autosave the editor's unsaved edit: { edl: EDL v2, baseVersion }. Save & render deletes the draft. |
| DELETE /api/v1/clips/:id/draft | Discard the editor's draft of a clip and ratio. |
| POST /api/v1/clips/:id/track | Track an object through a section (Fill): { segmentId, srcStartMs, srcEndMs ≤ 3 min, seedMs, box: { x, y, w, h } as fractions of the source frame } → 202 { jobId }. |
| GET /api/v1/clips/:id/track | Status of a tracking job (?job=<jobId>): { status: queued | running | succeeded | failed, keyframes?: [{ tMs, x, y }] } — put the keyframes in segments[].crop with tracking: "manual". |
| GET /api/v1/clips/:id/transcript | The clip's subtitles or transcript as a file from its saved edit (format=srt|vtt|txt, ratio=9:16 by default): sections in clip order, cut words left out, word edits applied. |
| GET /api/v1/clips/:id/versions | Every saved version of the clip's edit, newest first: { versions: [{ version, createdAt, edl, summary }] }. To restore one, send its edl to compile — that saves a new version. |
| GET /api/v1/clips/:id/outline | AI titles of the clip's sections for the editor's Outline: { outline: { key, status, titles, error } | null }. |
| POST /api/v1/clips/:id/outline | Ask for AI section titles: { sections: [text] } (1–30). The same texts return the cached titles; new texts queue one AI call. |
| GET /api/v1/clips/:id/export | Latest Export XML package for Premiere Pro / DaVinci Resolve: { export: { id, status, error, downloadUrl, expiresAt } | null }; ?ratio=. |
| POST /api/v1/clips/:id/export | Build an Export XML package from the saved edit (?ratio=): ZIP with the source part (30 s extra each side), clip.xml, captions.srt, B-roll and music. 202; ready in a minute or two, kept 7 days. |
| GET /api/v1/clips/:id/broll-spots | Auto B-roll suggestions: { spots: { key, status, spots: [{ startMs, endMs, query, reason }], error } | null }. |
| POST /api/v1/clips/:id/broll-spots | Ask AI where B-roll fits: { sentences: [{ text, startMs, endMs }] }. You review every spot; the same sentences return the cached spots. |
| GET /api/v1/stock | Search stock videos for B-roll: ?q=, ?orientation=portrait|landscape|square. 503 stock_unavailable when stock isn't enabled. |
| POST /api/v1/stock/import | Copy a stock video into your media library: { id } → { assetId }, then use it in brolls. |
| GET /api/v1/clips/:id/share | The clip's public share links. |
| POST /api/v1/clips/:id/share | Create (or reuse) a public share link for a rendered clip: { token, url }. |
| DELETE /api/v1/shares/:token | Revoke a share link; the page then says the link expired. |
| GET /api/v1/clips/:id/tiktok-preview | What the post editor and the Post to TikTok screen need about a clip: title, score, project, status (rendered or expired), a preview of the exact file and whether TikTok can take it. |
| GET /api/v1/analytics/overview | Views of your published videos overall: ?days=7|30|90. |
| GET /api/v1/analytics/requests/:id | Views of each clip of one project. |
| GET /api/v1/channels | YouTube channels whose new uploads are clipped automatically. |
| DELETE /api/v1/channels/:id | Stop clipping a channel automatically. |
| GET /api/v1/youtube-search | Search public YouTube videos to pick a source: ?q=. |
| GET /api/v1/broll | Your media library (videos and images for B-roll, backgrounds and brand kits); ?kind=image|video|… filters. |
| POST /api/v1/broll | Start a media upload (video, image or audio); returns a presigned upload URL. |
| GET /api/v1/music | Music for clips: tracks with moods and your likes; ?mood=, ?q=, ?liked=1. |
| PUT /api/v1/music/:id/like | Like a music track (shown first and under Liked). |
| DELETE /api/v1/music/:id/like | Remove a like from a music track. |
| DELETE /api/v1/broll/:id | Delete a file from your library. Clips that use it render without it; 404 if it isn't yours. |
| GET /api/v1/autopilot/automations | Autopilot automations with what waits for review. |
| POST /api/v1/autopilot/automations | Create an automation. |
| GET /api/v1/autopilot/automations/:id | One automation: settings, sources, shortlist and log. |
| PATCH /api/v1/autopilot/automations/:id | Change an automation's settings. |
| DELETE /api/v1/autopilot/automations/:id | Delete an automation with its sources. |
| POST /api/v1/autopilot/automations/:id/pause | Pause: { cancelScheduled } — also cancel its approved, queued posts or keep them. |
| POST /api/v1/autopilot/automations/:id/resume | Resume a paused automation. |
| POST /api/v1/autopilot/sources | Add a source; it stays inactive until you confirm the rights to it. type: youtube_channel { channel }, youtube_search { query }, manual_list { urls }, or rss { url, networks?, mode? } — a blog or newsletter feed (Atom too; a Substack or blog page address works). Each new feed post becomes a text post (title, short summary, link) or a photo post when it has a picture, as a draft (mode: draft) or scheduled (mode: queue); posts already in the feed are not posted. networks defaults to your connected networks that take text or photo posts. |
| PATCH /api/v1/autopilot/sources/:id | Confirm the rights to a source (activates it) or pause it. Feed sources also take { networks, mode } and { postLatest: true } to post the newest feed post now. |
| DELETE /api/v1/autopilot/sources/:id | Delete a source. |
| GET /api/v1/autopilot/proposals | Posts autopilot proposes: ?decision=pending|approved|rejected|auto_approved, cursor. |
| POST /api/v1/autopilot/proposals/:id/decision | Approve or reject one proposal. |
| POST /api/v1/autopilot/proposals/bulk | Decide several proposals; each succeeds or fails on its own. |
| GET /api/v1/autopilot/analytics/summary | Autopilot results: ?days=7|30. |
| GET /api/v1/autopilot/analytics/posts | Autopilot's published posts with their numbers, cursor-paged. |
| GET /api/v1/credits | Credit balance and the latest credit movements. |
| GET /api/v1/subscription | Your plan and invoices. |
| GET /api/v1/billing/packs | Plans, prices and credit packs, and whether billing is on. |
| POST /api/v1/billing/subscribe | Start a Stripe checkout for a plan: { plan, interval? } → { url } to open in a browser. Owner only in a team. Already subscribed — 409 already_subscribed (switch with change-plan). |
| POST /api/v1/billing/checkout | Start a Stripe checkout for a credit pack: { pack } → { url }. |
| POST /api/v1/billing/change-plan | Switch the plan inside your current subscription: { plan, interval? }. An upgrade or a monthly → yearly switch starts a new period now and charges the saved card the full price (a declined card answers 402 payment_failed and keeps the old plan); a downgrade starts with your next bill and charges or refunds nothing today (when: period_end) — send your current plan to keep it. Yearly → monthly waits for the paid year to end (409 yearly_term). No subscription — 409 no_subscription (use subscribe). Owner only, signed-in session only. |
| POST /api/v1/billing/portal | A Stripe billing portal link to update the card, see invoices or cancel the plan: { url }. Signed-in session only (403 web_session_required for a key or agent). |
| GET /api/v1/referral | Your referral link and its results. |
| POST /api/v1/referral/claim | Attach the referral code you signed up with. |
| GET /api/v1/identity | Your plan and usage as analytics properties (used by the app once per session). |
Idempotency
Safe retries: send an Idempotency-Key header (1–255 printable ASCII characters, e.g. a UUID) with POST /api/v1/posts, /api/v1/media, /api/v1/media/import, /api/v1/shorts, /api/v1/clips/bulk-posts or /api/v1/media/bulk-posts. A key lives 24 hours, per account and endpoint. Repeat it with the same body and you get the first answer again — same status, same JSON, plus Idempotent-Replayed: true — and nothing is created twice. Successful answers and validation errors (400, 404, 413, 422) are kept; server errors and other refusals are not, so retry those with the same key. Without the header nothing changes; ?dryRun=1 is never kept.
curl -X POST $BASE/api/v1/posts \ -H "X-API-Key: $KEY" -H "Idempotency-Key: 6f1c2a9e-post-launch" \ -H "Content-Type: application/json" -d @post.json // same key, different body 409 idempotency_key_reused // same key, first still running 409 idempotency_in_progress — retry in a few seconds // key empty, too long, non-ASCII 400 invalid_idempotency_key
Errors
Every error has the same shape; some add fields (limit, used, resetsOn, feature, plans). The message is written for a person and says what to do next. retryable says whether the same request can succeed later: every 429 after Retry-After, temporary failures after a short backoff; otherwise change the request first. Branch on code, not on the message. Every code, its status and what to do: error codes.
{ "error": { "code": "publish_limit", "message": "The Free plan publishes 3 videos a month, …",
"retryable": false, "limit": 3, "used": 3, "resetsOn": "2026-12-01" } }
// 429 rate_limited retryable: true — wait Retry-After seconds
// 502 storage_unavailable retryable: true — retry with backoff
// 409 idempotency_key_reused retryable: false — use a new key
// 400 invalid_request retryable: false — fix the field named in messageBuild on the same calendar you post from.
Every new account gets 7 days of Pro, API keys included. No card.