{"openapi":"3.1.0","info":{"title":"Postkea API","version":"1.0.0","description":"One API to publish, schedule and analyze posts on every social network, read public social data, download videos, and run automations. Authenticate with `Authorization: Bearer <API key>` (or `x-api-key`). Responses use `{ success, data }`; errors use `{ success: false, error: { code, message } }`. Failed requests cost no credits.","contact":{"name":"Postkea","url":"https://postkea.com"}},"servers":[{"url":"https://postkea.com/api"}],"security":[{"bearer":[]},{"apiKeyHeader":[]}],"tags":[{"name":"System","description":"Health, account info, usage and the platform catalog."},{"name":"Accounts","description":"Connect social accounts with managed OAuth or credentials, and manage posting schedules."},{"name":"Profiles","description":"Group accounts by client, bring your own OAuth apps, and share connect links."},{"name":"Posts","description":"Publish, schedule, queue, draft, approve and retry posts across platforms."},{"name":"Media","description":"Upload, import and transform images and videos."},{"name":"Scrape","description":"Public data from YouTube, TikTok, Instagram, Facebook, X, LinkedIn, Reddit, Bluesky and more."},{"name":"Downloads","description":"Download videos and audio from 1,000+ sites. Async jobs."},{"name":"Repurpose","description":"Turn a post from anywhere into posts on your accounts."},{"name":"AI","description":"Captions, rewrites, translation, hashtags, replies, summaries and images."},{"name":"Analytics","description":"Performance, best times to post and exports."},{"name":"Inbox","description":"Comments, mentions, direct messages and comment-to-DM automations."},{"name":"Ideas","description":"Ideas board, templates, hashtag groups, tags and RSS feeds."},{"name":"Automations","description":"Workflows that run on schedules, feeds, monitors, webhooks and events."},{"name":"Monitors","description":"Track competitor accounts, keywords and posts over time."},{"name":"Plugs","description":"Repost, reply or engage from your other accounts when a post gets traction."},{"name":"Links","description":"Short links with click analytics and link-in-bio pages."},{"name":"Webhooks","description":"Signed event notifications."},{"name":"Developers","description":"API keys, request logs and the audit log."},{"name":"Workspace","description":"Workspace settings, team and notifications."},{"name":"Billing","description":"Plans, credits and payments."}],"paths":{"/v1/posts":{"post":{"operationId":"postsCreate","summary":"Create, publish or schedule a post","description":"One request publishes to many accounts. Choose one mode: `publishNow`, `scheduledFor` (+ `timezone`), `addToQueue` (next free slot of each account) or `saveAsDraft`.\nEach platform entry can override `content` and pass `platformSpecificData` (see GET /v1/platforms). Results come back per platform; a post with some failures has status `partial` and failed platforms cost no credits.\nSend `dryRun: true` to validate against every platform's limits without saving. Send an `idempotencyKey` to make retries safe.\nAPI keys with the `approval` policy put posts in the approval queue, keys with the `draft` policy only create drafts.\n\n**Credits:** 1 per platform that publishes","tags":["Posts"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"post":{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"published","scheduledFor":null,"timezone":"Europe/Berlin","publishedAt":"2026-11-03T09:00:04.000Z","source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"published","success":true,"platformPostId":"1853920467781234688","platformPostUrl":"https://x.com/examplecafe/status/1853920467781234688","error":null,"errorCode":null,"warnings":[],"attempts":1,"publishedAt":"2026-11-03T09:00:04.000Z","metrics":null,"creditsCharged":1}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"},"issues":[]}}}}},"202":{"description":"Accepted: the work continues in the background","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"post":{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"published","scheduledFor":null,"timezone":"Europe/Berlin","publishedAt":"2026-11-03T09:00:04.000Z","source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"published","success":true,"platformPostId":"1853920467781234688","platformPostUrl":"https://x.com/examplecafe/status/1853920467781234688","error":null,"errorCode":null,"warnings":[],"attempts":1,"publishedAt":"2026-11-03T09:00:04.000Z","metrics":null,"creditsCharged":1}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"},"issues":[]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"default":"","description":"Post text","type":"string"},"platforms":{"minItems":1,"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string","description":"Connected account id from GET /v1/accounts"},"platform":{"description":"Optional; taken from the account when omitted","type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]},"content":{"description":"Text for this platform only. Replaces the top-level content.","type":"string"},"platformSpecificData":{"description":"Platform options, see GET /v1/platforms","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["accountId"]},"description":"Accounts to publish to"},"mediaItems":{"default":[],"maxItems":35,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video","gif","document"]},"url":{"type":"string","format":"uri"},"mediaId":{"type":"string"},"altText":{"type":"string","minLength":1,"maxLength":1000},"thumbnail":{"type":"string","format":"uri"},"mimeType":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"durationSec":{"type":"number","exclusiveMinimum":0},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","url"]}},"publishNow":{"description":"Publish immediately","type":"boolean"},"scheduledFor":{"description":"ISO 8601 date-time. Without an offset it is read in `timezone`.","type":"string"},"timezone":{"description":"IANA timezone, e.g. America/New_York. Defaults to the workspace time zone.","type":"string"},"addToQueue":{"description":"Put the post in the next free queue slot of each account","type":"boolean"},"saveAsDraft":{"type":"boolean"},"requireApproval":{"description":"Send to the approval queue instead of scheduling","type":"boolean"},"dryRun":{"description":"Validate only. Nothing is saved or published.","type":"boolean"},"idempotencyKey":{"type":"string","maxLength":200},"firstComment":{"type":"string","maxLength":10000},"threadItems":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"content":{"type":"string"},"mediaItems":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video","gif","document"]},"url":{"type":"string","format":"uri"},"mediaId":{"type":"string"},"altText":{"type":"string","minLength":1,"maxLength":1000},"thumbnail":{"type":"string","format":"uri"},"mimeType":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"durationSec":{"type":"number","exclusiveMinimum":0},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","url"]}},"delayMinutes":{"description":"Wait this many minutes after the previous part before posting this one","type":"integer","minimum":0,"maximum":1440}},"required":["content"]}},"firstCommentDelayMinutes":{"description":"Wait this many minutes after the post before the first comment","type":"integer","minimum":0,"maximum":1440},"autoThread":{"description":"Split text that is too long into a thread on X, Threads, Bluesky and Mastodon","type":"boolean"},"tags":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"profileId":{"type":"string"},"ideaId":{"type":"string"},"notes":{"type":"string","maxLength":5000},"evergreen":{"type":"object","properties":{"everyDays":{"type":"integer","minimum":1,"maximum":365,"description":"Days between copies"},"months":{"description":"Repeat every N calendar months instead of everyDays","type":"integer","minimum":1,"maximum":12},"maxRepeats":{"description":"Stop after this many copies; repeats until stopped when omitted","type":"integer","minimum":1,"maximum":100}},"required":["everyDays"],"description":"Repeat the post: a copy is scheduled one interval after each run"},"skipValidation":{"description":"Publish even when preflight finds errors","type":"boolean"},"wait":{"description":"With publishNow, wait up to 25 seconds for platform results","type":"boolean"},"origin":{"type":"object","properties":{"url":{"type":"string"},"platform":{"type":"string"},"author":{"type":"string"},"repurposeJobId":{"type":"string"}}}},"required":["platforms"]}}}}},"get":{"operationId":"postsList","summary":"List posts","description":"Filter by status, platform, account, profile, tag, text or date range. Paginate with `cursor`.","tags":["Posts"],"parameters":[{"name":"status","in":"query","required":false,"schema":{"description":"Comma-separated: draft, pending_approval, scheduled, publishing, published, partial, failed","type":"string"},"description":"Comma-separated: draft, pending_approval, scheduled, publishing, published, partial, failed"},{"name":"platform","in":"query","required":false,"schema":{"type":"string"}},{"name":"accountId","in":"query","required":false,"schema":{"type":"string"}},{"name":"profileId","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"description":"Search in the text","type":"string"},"description":"Search in the text"},{"name":"from","in":"query","required":false,"schema":{"description":"Scheduled or published after (ISO)","type":"string"},"description":"Scheduled or published after (ISO)"},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"source","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"schema":{"default":"newest","type":"string","enum":["newest","oldest","scheduled"]}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"items":[{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"published","scheduledFor":null,"timezone":"Europe/Berlin","publishedAt":"2026-11-03T09:00:04.000Z","source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"published","success":true,"platformPostId":"1853920467781234688","platformPostUrl":"https://x.com/examplecafe/status/1853920467781234688","error":null,"errorCode":null,"warnings":[],"attempts":1,"publishedAt":"2026-11-03T09:00:04.000Z","metrics":null,"creditsCharged":1}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"},{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"scheduled","scheduledFor":"2026-11-10T08:00:00.000Z","timezone":"Europe/Berlin","publishedAt":null,"source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"pending","success":null,"platformPostId":null,"platformPostUrl":null,"error":null,"errorCode":null,"warnings":[],"attempts":0,"publishedAt":null,"metrics":null,"creditsCharged":0}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"}],"nextCursor":"post_1Vb6Lq3Wx8Nk2Rt7Mp4G"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/posts/validate":{"post":{"operationId":"postsValidate","summary":"Validate a post (preflight)","description":"Same body as creating a post. Returns errors and warnings per platform: character limits, media counts, durations, sizes, aspect ratios and required options. Free.","tags":["Posts"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"dryRun":true,"valid":false,"issues":[{"level":"error","platform":"x","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","code":"text_too_long","message":"X: the text has 312 characters and the limit is 280. Shorten it, or split it into a thread."},{"level":"warning","platform":"linkedin","accountId":"acc_7Fb2Ns5Kd8Qw3Jy6Lp4C","code":"aspect_ratio","message":"LinkedIn: the image ratio 0.50 is outside 0.56 to 1.91 and may be cropped."}],"policy":"auto","targets":[{"accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x"},{"accountId":"acc_7Fb2Ns5Kd8Qw3Jy6Lp4C","platform":"linkedin"}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"default":"","description":"Post text","type":"string"},"platforms":{"minItems":1,"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string","description":"Connected account id from GET /v1/accounts"},"platform":{"description":"Optional; taken from the account when omitted","type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]},"content":{"description":"Text for this platform only. Replaces the top-level content.","type":"string"},"platformSpecificData":{"description":"Platform options, see GET /v1/platforms","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["accountId"]},"description":"Accounts to publish to"},"mediaItems":{"default":[],"maxItems":35,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video","gif","document"]},"url":{"type":"string","format":"uri"},"mediaId":{"type":"string"},"altText":{"type":"string","minLength":1,"maxLength":1000},"thumbnail":{"type":"string","format":"uri"},"mimeType":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"durationSec":{"type":"number","exclusiveMinimum":0},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","url"]}},"publishNow":{"description":"Publish immediately","type":"boolean"},"scheduledFor":{"description":"ISO 8601 date-time. Without an offset it is read in `timezone`.","type":"string"},"timezone":{"description":"IANA timezone, e.g. America/New_York. Defaults to the workspace time zone.","type":"string"},"addToQueue":{"description":"Put the post in the next free queue slot of each account","type":"boolean"},"saveAsDraft":{"type":"boolean"},"requireApproval":{"description":"Send to the approval queue instead of scheduling","type":"boolean"},"dryRun":{"description":"Validate only. Nothing is saved or published.","type":"boolean"},"idempotencyKey":{"type":"string","maxLength":200},"firstComment":{"type":"string","maxLength":10000},"threadItems":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"content":{"type":"string"},"mediaItems":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video","gif","document"]},"url":{"type":"string","format":"uri"},"mediaId":{"type":"string"},"altText":{"type":"string","minLength":1,"maxLength":1000},"thumbnail":{"type":"string","format":"uri"},"mimeType":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"durationSec":{"type":"number","exclusiveMinimum":0},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","url"]}},"delayMinutes":{"description":"Wait this many minutes after the previous part before posting this one","type":"integer","minimum":0,"maximum":1440}},"required":["content"]}},"firstCommentDelayMinutes":{"description":"Wait this many minutes after the post before the first comment","type":"integer","minimum":0,"maximum":1440},"autoThread":{"description":"Split text that is too long into a thread on X, Threads, Bluesky and Mastodon","type":"boolean"},"tags":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"profileId":{"type":"string"},"ideaId":{"type":"string"},"notes":{"type":"string","maxLength":5000},"evergreen":{"type":"object","properties":{"everyDays":{"type":"integer","minimum":1,"maximum":365,"description":"Days between copies"},"months":{"description":"Repeat every N calendar months instead of everyDays","type":"integer","minimum":1,"maximum":12},"maxRepeats":{"description":"Stop after this many copies; repeats until stopped when omitted","type":"integer","minimum":1,"maximum":100}},"required":["everyDays"],"description":"Repeat the post: a copy is scheduled one interval after each run"},"skipValidation":{"description":"Publish even when preflight finds errors","type":"boolean"},"wait":{"description":"With publishNow, wait up to 25 seconds for platform results","type":"boolean"},"origin":{"type":"object","properties":{"url":{"type":"string"},"platform":{"type":"string"},"author":{"type":"string"},"repurposeJobId":{"type":"string"}}}},"required":["platforms"]}}}}}},"/v1/posts/calendar":{"get":{"operationId":"postsCalendar","summary":"Posts in a date range","tags":["Posts"],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string"}},{"name":"to","in":"query","required":true,"schema":{"type":"string"}},{"name":"accountId","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"items":[{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"published","scheduledFor":null,"timezone":"Europe/Berlin","publishedAt":"2026-11-03T09:00:04.000Z","source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"published","success":true,"platformPostId":"1853920467781234688","platformPostUrl":"https://x.com/examplecafe/status/1853920467781234688","error":null,"errorCode":null,"warnings":[],"attempts":1,"publishedAt":"2026-11-03T09:00:04.000Z","metrics":null,"creditsCharged":1}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"},{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"scheduled","scheduledFor":"2026-11-10T08:00:00.000Z","timezone":"Europe/Berlin","publishedAt":null,"source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"pending","success":null,"platformPostId":null,"platformPostUrl":null,"error":null,"errorCode":null,"warnings":[],"attempts":0,"publishedAt":null,"metrics":null,"creditsCharged":0}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"}],"nextCursor":null}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/queue":{"get":{"operationId":"postsQueue","summary":"Upcoming queue","description":"Scheduled posts plus the free and taken queue slots of each account for the next days.","tags":["Posts"],"parameters":[{"name":"days","in":"query","required":false,"schema":{"default":14,"type":"integer","minimum":1,"maximum":60}},{"name":"accountId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"posts":[{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"scheduled","scheduledFor":"2026-11-10T08:00:00.000Z","timezone":"Europe/Berlin","publishedAt":null,"source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"pending","success":null,"platformPostId":null,"platformPostUrl":null,"error":null,"errorCode":null,"warnings":[],"attempts":0,"publishedAt":null,"metrics":null,"creditsCharged":0}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"}],"slots":[{"accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","at":"2026-11-10T08:00:00.000Z","taken":true},{"accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","at":"2026-11-12T11:30:00.000Z","taken":false}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/posts/scheduled":{"get":{"operationId":"postsScheduled","summary":"List scheduled posts","tags":["Posts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"items":[{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"scheduled","scheduledFor":"2026-11-10T08:00:00.000Z","timezone":"Europe/Berlin","publishedAt":null,"source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"pending","success":null,"platformPostId":null,"platformPostUrl":null,"error":null,"errorCode":null,"warnings":[],"attempts":0,"publishedAt":null,"metrics":null,"creditsCharged":0}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"}],"nextCursor":null}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/posts/{id}":{"get":{"operationId":"postsGet","summary":"Get a post","description":"Includes the status, URL, error and metrics of each platform target.","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"published","scheduledFor":null,"timezone":"Europe/Berlin","publishedAt":"2026-11-03T09:00:04.000Z","source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":{"impressions":2140,"reach":1765,"views":2390,"likes":128,"comments":14,"shares":9,"saves":21,"clicks":37,"engagement":172},"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"published","success":true,"platformPostId":"1853920467781234688","platformPostUrl":"https://x.com/examplecafe/status/1853920467781234688","error":null,"errorCode":null,"warnings":[],"attempts":1,"publishedAt":"2026-11-03T09:00:04.000Z","metrics":{"impressions":2140,"reach":1765,"views":2390,"likes":128,"comments":14,"shares":9,"saves":21,"clicks":37,"engagement":172},"creditsCharged":1}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"put":{"operationId":"postsUpdate","summary":"Edit a draft or scheduled post","description":"Change text, media, accounts or time. Set `status: \"draft\"` to unschedule or `\"scheduled\"` to schedule a draft, `publishNow: true` to publish it right away, or `addToQueue: true` to move it into the next free queue slot. `skipValidation` saves even when preflight finds errors.","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew and maple scones are back.","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"scheduled","scheduledFor":"2026-11-10T08:00:00.000Z","timezone":"Europe/Berlin","publishedAt":null,"source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"pending","success":null,"platformPostId":null,"platformPostUrl":null,"error":null,"errorCode":null,"warnings":[],"attempts":0,"publishedAt":null,"metrics":null,"creditsCharged":0}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T10:30:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string"},"platforms":{"minItems":1,"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string","description":"Connected account id from GET /v1/accounts"},"platform":{"description":"Optional; taken from the account when omitted","type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]},"content":{"description":"Text for this platform only. Replaces the top-level content.","type":"string"},"platformSpecificData":{"description":"Platform options, see GET /v1/platforms","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["accountId"]}},"mediaItems":{"maxItems":35,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video","gif","document"]},"url":{"type":"string","format":"uri"},"mediaId":{"type":"string"},"altText":{"type":"string","minLength":1,"maxLength":1000},"thumbnail":{"type":"string","format":"uri"},"mimeType":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"durationSec":{"type":"number","exclusiveMinimum":0},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","url"]}},"scheduledFor":{"type":["string","null"]},"timezone":{"type":"string"},"firstComment":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"threadItems":{"anyOf":[{"maxItems":25,"type":"array","items":{"type":"object","properties":{"content":{"type":"string"},"mediaItems":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video","gif","document"]},"url":{"type":"string","format":"uri"},"mediaId":{"type":"string"},"altText":{"type":"string","minLength":1,"maxLength":1000},"thumbnail":{"type":"string","format":"uri"},"mimeType":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"durationSec":{"type":"number","exclusiveMinimum":0},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","url"]}},"delayMinutes":{"description":"Wait this many minutes after the previous part before posting this one","type":"integer","minimum":0,"maximum":1440}},"required":["content"]}},{"type":"null"}]},"firstCommentDelayMinutes":{"anyOf":[{"type":"integer","minimum":0,"maximum":1440},{"type":"null"}]},"evergreen":{"description":"Set or change the repeat rule; null stops repeating","anyOf":[{"type":"object","properties":{"everyDays":{"type":"integer","minimum":1,"maximum":365,"description":"Days between copies"},"months":{"description":"Repeat every N calendar months instead of everyDays","type":"integer","minimum":1,"maximum":12},"maxRepeats":{"description":"Stop after this many copies; repeats until stopped when omitted","type":"integer","minimum":1,"maximum":100}},"required":["everyDays"],"description":"Repeat the post: a copy is scheduled one interval after each run"},{"type":"null"}]},"tags":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"status":{"description":"Move a draft to scheduled or a scheduled post back to draft","type":"string","enum":["draft","scheduled"]},"publishNow":{"description":"Publish right away instead of at scheduledFor","type":"boolean"},"addToQueue":{"description":"Move into the next free queue slot. With several accounts, the latest of their next free slots is used.","type":"boolean"},"skipValidation":{"description":"Save even when preflight finds errors","type":"boolean"}}}}}}},"delete":{"operationId":"postsDelete","summary":"Delete a post","description":"Deletes it from Postkea. With `fromPlatforms=true`, also deletes the published copies where the platform allows it.","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"fromPlatforms","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"deleted":true,"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","platforms":[]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/posts/{id}/schedule":{"patch":{"operationId":"postsReschedule","summary":"Reschedule a post","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"scheduled","scheduledFor":"2026-11-12T16:00:00.000Z","timezone":"Europe/Berlin","publishedAt":null,"source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"pending","success":null,"platformPostId":null,"platformPostUrl":null,"error":null,"errorCode":null,"warnings":[],"attempts":0,"publishedAt":null,"metrics":null,"creditsCharged":0}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T10:31:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduledFor":{"type":"string"},"timezone":{"type":"string"}},"required":["scheduledFor"]}}}}}},"/v1/posts/{id}/cancel":{"post":{"operationId":"postsCancel","summary":"Cancel a scheduled post","description":"The post goes back to drafts.","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"draft","scheduledFor":"2026-11-10T08:00:00.000Z","timezone":"Europe/Berlin","publishedAt":null,"source":"api","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":null,"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"draft","success":null,"platformPostId":null,"platformPostUrl":null,"error":null,"errorCode":null,"warnings":[],"attempts":0,"publishedAt":null,"metrics":null,"creditsCharged":0}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/posts/{id}/retry":{"post":{"operationId":"postsRetry","summary":"Retry failed platforms","description":"Publishes the failed targets again, now or at `scheduledFor`.","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduledFor":{"type":"string"},"timezone":{"type":"string"}}}}}}}},"/v1/posts/{id}/approve":{"post":{"operationId":"postsApprove","summary":"Approve a post","description":"Schedules (or publishes, when its time has passed) a post waiting for approval.","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"scheduled","scheduledFor":"2026-11-10T08:00:00.000Z","timezone":"Europe/Berlin","publishedAt":null,"source":"mcp","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":{"requestedAt":"2026-11-03T10:12:00.000Z","requestedBy":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","decision":"approved","decidedAt":"2026-11-03T10:40:00.000Z","decidedBy":"usr_Jx7Lq2Vb9Nw4Rt6Ym3Pd","note":"Looks good"},"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"pending","success":null,"platformPostId":null,"platformPostUrl":null,"error":null,"errorCode":null,"warnings":[],"attempts":0,"publishedAt":null,"metrics":null,"creditsCharged":0}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","maxLength":1000}}}}}}}},"/v1/posts/{id}/reject":{"post":{"operationId":"postsReject","summary":"Reject a post","description":"Sends the post back to drafts with an optional note.","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here. Pumpkin spice cold brew is back from today. https://example.com/menu","mediaItems":[{"type":"image","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.jpg","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","altText":"Cold brew on a wooden table","width":1080,"height":1350}],"status":"draft","scheduledFor":"2026-11-10T08:00:00.000Z","timezone":"Europe/Berlin","publishedAt":null,"source":"mcp","tags":["menu"],"profileId":null,"firstComment":null,"threadItems":[],"evergreen":null,"approval":{"requestedAt":"2026-11-03T10:12:00.000Z","requestedBy":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","decision":"rejected","decidedAt":"2026-11-03T10:40:00.000Z","decidedBy":"usr_Jx7Lq2Vb9Nw4Rt6Ym3Pd","note":"Use the new photo"},"notes":null,"origin":null,"metrics":null,"idempotencyKey":null,"createdBy":null,"apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","platforms":[{"id":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","account":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"content":null,"platformSpecificData":{},"status":"draft","success":null,"platformPostId":null,"platformPostUrl":null,"error":null,"errorCode":null,"warnings":[],"attempts":0,"publishedAt":null,"metrics":null,"creditsCharged":0}],"createdAt":"2026-11-03T09:00:01.000Z","updatedAt":"2026-11-03T09:00:04.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","maxLength":1000}}}}}}}},"/v1/posts/{id}/duplicate":{"post":{"operationId":"postsDuplicate","summary":"Duplicate a post as a draft","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/posts/{id}/notes":{"get":{"operationId":"postsNotesList","summary":"List team notes on a post","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"postsNotesAdd","summary":"Add a team note to a post","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["body"]}}}}}},"/v1/posts/bulk":{"post":{"operationId":"postsBulk","summary":"Create many posts at once","description":"Up to 200 posts per request, each with the same body as POST /v1/posts. Use it for CSV imports. Each item reports its own result.","tags":["Posts"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"posts":{"minItems":1,"maxItems":200,"type":"array","items":{}},"stopOnError":{"default":false,"type":"boolean"}},"required":["posts"]}}}}}},"/v1/posts/thread-split":{"post":{"operationId":"postsSplit","summary":"Split long text into a thread","description":"Breaks text into parts that fit a platform's limit, on paragraph, sentence and word boundaries. Free.","tags":["Posts"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1},"platform":{"default":"x","type":"string"},"numbered":{"default":true,"type":"boolean"}},"required":["text"]}}}}}},"/v1/scrape":{"get":{"operationId":"scrapeCatalog","summary":"List scraping operations","description":"Every scraping operation with its input schema and an example. Free.","tags":["Scrape"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]}},"/v1/scrape/auto":{"post":{"operationId":"scrapeAuto","summary":"Scrape any link","description":"Detects the platform and content type of a URL and runs the right operation: details (default), transcript, summary or comments.","tags":["Scrape"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"platform":"youtube","operation":"youtube.stats","data":{"id":"Xm3Qe7Lp2Vb","url":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","title":"How we make our cold brew","description":"Twelve hours, cold water and good beans.","views":48213,"likes":1920,"comments":134,"durationSec":58,"width":1920,"height":1080,"isLive":false,"isShort":false,"language":"en","tags":["cold brew","coffee"],"categories":["Howto & Style"],"chapters":[{"start":0,"end":22,"title":"Beans and grind"},{"start":22,"end":58,"title":"Steeping"}],"thumbnail":"https://i.ytimg.com/vi/Xm3Qe7Lp2Vb/hqdefault.jpg","channel":{"id":"UCexampleChannelId123456","url":"https://www.youtube.com/@examplecafe","name":"Example Cafe","handle":"@examplecafe","verified":false,"subscribers":12400},"publishedAt":"2026-10-28T15:00:00.000Z"},"credits":1,"cached":false}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"want":{"default":"details","type":"string","enum":["details","transcript","summary","comments"]},"options":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["url"]}}}}}},"/v1/scrape/batch":{"post":{"operationId":"scrapeBatch","summary":"Run one operation on many URLs","description":"Creates an async job that runs the operation on up to 500 URLs. Poll GET /v1/jobs/{id}; each URL becomes a child job with its own result and cost.","tags":["Scrape"],"parameters":[],"responses":{"202":{"description":"Accepted: the work continues in the background","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"jobId":"job_2Rw7Kp4Nx9Lb3Qt6Vm8D","type":"batch","operation":"youtube.stats","platform":"youtube","status":"queued","progress":0,"input":{"operation":"youtube.stats","urls":["https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","https://www.youtube.com/watch?v=a1B2c3D4e5F"]},"creditsCost":0,"billed":false,"error":null,"errorCode":null,"retryable":null,"createdAt":"2026-11-03T11:00:00.000Z","startedAt":null,"finishedAt":null,"statusUrl":"/v1/jobs/job_2Rw7Kp4Nx9Lb3Qt6Vm8D"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"string","description":"e.g. tiktok.stats"},"urls":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string"}},"options":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"webhookUrl":{"type":"string","format":"uri"}},"required":["operation","urls"]}}}}}},"/v1/scrape/pipeline":{"post":{"operationId":"scrapePipeline","summary":"Discover URLs, then run an action on each","description":"Two steps in one job. `discover` lists content (for example youtube.videos of a channel, tiktok.search), then `action` runs on every discovered URL (for example youtube.transcript). Poll GET /v1/jobs/{id}.","tags":["Scrape"],"parameters":[],"responses":{"202":{"description":"Accepted: the work continues in the background","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"discover":{"type":"object","properties":{"operation":{"type":"string"},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["operation","input"]},"action":{"type":"object","properties":{"operation":{"type":"string"},"options":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["operation"]},"limit":{"default":10,"type":"integer","minimum":1,"maximum":200}},"required":["discover","action"]}}}}}},"/v1/downloads":{"post":{"operationId":"downloadsCreate","summary":"Download a video or audio","description":"Starts a download job for a video from YouTube, TikTok, Instagram, Facebook, X, Reddit, Vimeo and 1,000+ other sites. Poll GET /v1/downloads/{id} until `status` is `ready`, then fetch `downloadUrl` (valid 1 hour; polling again returns a fresh link for free, while the file is kept for 24 hours).\nCost per started minute: 1 credit for audio or video up to 480p, 3 for 720p and above. Failed jobs are free. `maxDuration` (seconds) rejects longer videos before downloading. `saveToLibrary` also adds the file to the media library for posting.\n\n**Credits:** 1 or 3 per minute","tags":["Downloads"],"parameters":[],"responses":{"202":{"description":"Accepted: the work continues in the background","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"jobId":"job_2Rw7Kp4Nx9Lb3Qt6Vm8D","type":"download","operation":null,"platform":"youtube","status":"queued","progress":0,"input":{"url":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","format":"mp4","quality":"720p","saveToLibrary":false},"creditsCost":0,"billed":false,"error":null,"errorCode":null,"retryable":null,"createdAt":"2026-11-03T11:00:00.000Z","startedAt":null,"finishedAt":null,"statusUrl":"/v1/jobs/job_2Rw7Kp4Nx9Lb3Qt6Vm8D"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"quality":{"default":"720p","type":"string","enum":["240p","360p","480p","720p","1080p","1440p","2160p"]},"format":{"default":"mp4","type":"string","enum":["mp4","webm","avi","m4a","mp3","ogg","wav","opus","flac"]},"maxDuration":{"type":"integer","minimum":1,"maximum":9007199254740991},"saveToLibrary":{"default":false,"type":"boolean"}},"required":["url"]}}}}},"get":{"operationId":"downloadsList","summary":"List downloads","tags":["Downloads"],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"jobId":"job_2Rw7Kp4Nx9Lb3Qt6Vm8D","type":"download","operation":null,"platform":"youtube","status":"ready","progress":100,"input":{"url":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","format":"mp4","quality":"720p","saveToLibrary":false},"creditsCost":3,"billed":true,"error":null,"errorCode":null,"retryable":null,"createdAt":"2026-11-03T11:00:00.000Z","startedAt":"2026-11-03T11:00:01.000Z","finishedAt":"2026-11-03T11:00:19.000Z","statusUrl":"/v1/jobs/job_2Rw7Kp4Nx9Lb3Qt6Vm8D","result":{"media":null,"title":"How we make our cold brew","author":"Example Cafe","authorHandle":"@examplecafe","platform":"Youtube","format":"mp4","quality":"720p","durationSec":58,"fileSize":14310522,"fileSizeMB":"13.65 MB","filename":"How we make our cold brew.mp4","thumbnail":"https://i.ytimg.com/vi/Xm3Qe7Lp2Vb/hqdefault.jpg","description":"Twelve hours, cold water and good beans.","downloadUrl":"https://api.example.com/files/downloads/org_4dQm8RtYw2Lx9KpN3vBc/job_2Rw7Kp4Nx9Lb3Qt6Vm8D.mp4?exp=1793000000&sig=3f9c0e&dl=cold-brew.mp4","expiresIn":3600,"unbilled":false}}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/downloads/{id}":{"get":{"operationId":"downloadsGet","summary":"Get a download","description":"Polling is free. Ready jobs include `downloadUrl`, `title`, `durationSec`, `fileSize` and `thumbnail`.","tags":["Downloads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"jobId":"job_2Rw7Kp4Nx9Lb3Qt6Vm8D","type":"download","operation":null,"platform":"youtube","status":"ready","progress":100,"input":{"url":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","format":"mp4","quality":"720p","saveToLibrary":false},"creditsCost":3,"billed":true,"error":null,"errorCode":null,"retryable":null,"createdAt":"2026-11-03T11:00:00.000Z","startedAt":"2026-11-03T11:00:01.000Z","finishedAt":"2026-11-03T11:00:19.000Z","statusUrl":"/v1/jobs/job_2Rw7Kp4Nx9Lb3Qt6Vm8D","result":{"media":null,"title":"How we make our cold brew","author":"Example Cafe","authorHandle":"@examplecafe","platform":"Youtube","format":"mp4","quality":"720p","durationSec":58,"fileSize":14310522,"fileSizeMB":"13.65 MB","filename":"How we make our cold brew.mp4","thumbnail":"https://i.ytimg.com/vi/Xm3Qe7Lp2Vb/hqdefault.jpg","description":"Twelve hours, cold water and good beans.","downloadUrl":"https://api.example.com/files/downloads/org_4dQm8RtYw2Lx9KpN3vBc/job_2Rw7Kp4Nx9Lb3Qt6Vm8D.mp4?exp=1793000000&sig=3f9c0e&dl=cold-brew.mp4","expiresIn":3600,"unbilled":false}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/jobs/{id}":{"get":{"operationId":"jobsGet","summary":"Get a job","description":"Status and result of any async job: downloads, batch scrapes, pipelines, repurposing. Free.","tags":["Downloads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"jobId":"job_2Rw7Kp4Nx9Lb3Qt6Vm8D","type":"download","operation":null,"platform":"youtube","status":"ready","progress":100,"input":{"url":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","format":"mp4","quality":"720p","saveToLibrary":false},"creditsCost":3,"billed":true,"error":null,"errorCode":null,"retryable":null,"createdAt":"2026-11-03T11:00:00.000Z","startedAt":"2026-11-03T11:00:01.000Z","finishedAt":"2026-11-03T11:00:19.000Z","statusUrl":"/v1/jobs/job_2Rw7Kp4Nx9Lb3Qt6Vm8D","result":{"media":null,"title":"How we make our cold brew","author":"Example Cafe","authorHandle":"@examplecafe","platform":"Youtube","format":"mp4","quality":"720p","durationSec":58,"fileSize":14310522,"fileSizeMB":"13.65 MB","filename":"How we make our cold brew.mp4","thumbnail":"https://i.ytimg.com/vi/Xm3Qe7Lp2Vb/hqdefault.jpg","description":"Twelve hours, cold water and good beans.","downloadUrl":"https://api.example.com/files/downloads/org_4dQm8RtYw2Lx9KpN3vBc/job_2Rw7Kp4Nx9Lb3Qt6Vm8D.mp4?exp=1793000000&sig=3f9c0e&dl=cold-brew.mp4","expiresIn":3600,"unbilled":false}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/jobs":{"get":{"operationId":"jobsList","summary":"List jobs","tags":["Downloads"],"parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["scrape","download","batch","pipeline","repurpose","export"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"jobId":"job_2Rw7Kp4Nx9Lb3Qt6Vm8D","type":"download","operation":null,"platform":"youtube","status":"ready","progress":100,"input":{"url":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","format":"mp4","quality":"720p","saveToLibrary":false},"creditsCost":3,"billed":true,"error":null,"errorCode":null,"retryable":null,"createdAt":"2026-11-03T11:00:00.000Z","startedAt":"2026-11-03T11:00:01.000Z","finishedAt":"2026-11-03T11:00:19.000Z","statusUrl":"/v1/jobs/job_2Rw7Kp4Nx9Lb3Qt6Vm8D","result":{"media":null,"title":"How we make our cold brew","author":"Example Cafe","authorHandle":"@examplecafe","platform":"Youtube","format":"mp4","quality":"720p","durationSec":58,"fileSize":14310522,"fileSizeMB":"13.65 MB","filename":"How we make our cold brew.mp4","thumbnail":"https://i.ytimg.com/vi/Xm3Qe7Lp2Vb/hqdefault.jpg","description":"Twelve hours, cold water and good beans.","downloadUrl":"https://api.example.com/files/downloads/org_4dQm8RtYw2Lx9KpN3vBc/job_2Rw7Kp4Nx9Lb3Qt6Vm8D.mp4?exp=1793000000&sig=3f9c0e&dl=cold-brew.mp4","expiresIn":3600,"unbilled":false}},{"jobId":"job_7Vn2Lq9Wx4Kb3Rt8Mp5C","type":"repurpose","operation":null,"platform":"youtube","status":"processing","progress":60,"input":{"sourceUrl":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","accountIds":["acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","acc_7Fb2Ns5Kd8Qw3Jy6Lp4C"],"captionMode":"ai","format":"vertical","quality":"1080p","credit":true,"saveAsDraft":true,"rightsConfirmed":true},"creditsCost":3,"billed":true,"error":null,"errorCode":null,"retryable":null,"createdAt":"2026-11-03T11:00:00.000Z","startedAt":"2026-11-03T11:00:01.000Z","finishedAt":null,"statusUrl":"/v1/jobs/job_7Vn2Lq9Wx4Kb3Rt8Mp5C"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/repurpose":{"post":{"operationId":"repurposeCreate","summary":"Repurpose a post to your accounts","description":"Downloads the video or images of a post (TikTok, YouTube, Instagram, X...), converts the format for each target (for example 9:16 for Reels, TikTok and Shorts), writes the caption (keep the original, rewrite with AI, or your own text), credits the original creator, then publishes, schedules, queues or drafts it.\nYou must confirm you own the content or have permission to reuse it (`rightsConfirmed: true`). Costs the download plus 1 credit per platform that publishes.","tags":["Repurpose"],"parameters":[],"responses":{"202":{"description":"Accepted: the work continues in the background","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"jobId":"job_2Rw7Kp4Nx9Lb3Qt6Vm8D","type":"repurpose","operation":null,"platform":"youtube","status":"queued","progress":0,"input":{"sourceUrl":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","accountIds":["acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","acc_7Fb2Ns5Kd8Qw3Jy6Lp4C"],"captionMode":"ai","format":"vertical","quality":"1080p","credit":true,"saveAsDraft":true,"rightsConfirmed":true},"creditsCost":0,"billed":false,"error":null,"errorCode":null,"retryable":null,"createdAt":"2026-11-03T11:00:00.000Z","startedAt":null,"finishedAt":null,"statusUrl":"/v1/jobs/job_2Rw7Kp4Nx9Lb3Qt6Vm8D"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceUrl":{"type":"string","minLength":4},"accountIds":{"minItems":1,"type":"array","items":{"type":"string"}},"captionMode":{"default":"ai","type":"string","enum":["original","ai","custom"]},"caption":{"description":"Used when captionMode is custom","type":"string"},"tone":{"type":"string"},"credit":{"default":true,"description":"Add 'Credit: @author' to the caption","type":"boolean"},"creditTemplate":{"description":"Wording of the credit line, with {author} for the creator's handle. Default: Credit: @{author}","type":"string","maxLength":200},"quality":{"default":"1080p","type":"string","enum":["480p","720p","1080p"]},"format":{"default":"original","type":"string","enum":["original","vertical","square"]},"publishNow":{"type":"boolean"},"scheduledFor":{"type":"string"},"timezone":{"type":"string"},"addToQueue":{"type":"boolean"},"saveAsDraft":{"type":"boolean"},"platformSpecificData":{"description":"Options per platform id","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"rightsConfirmed":{"type":"boolean","const":true,"description":"You own this content or have permission to reuse it"}},"required":["sourceUrl","accountIds","rightsConfirmed"]}}}}}},"/v1/agent/conversations":{"get":{"operationId":"agentConversationsList","summary":"List agent conversations","description":"Conversations with the in-app agent, most recent first. A session sees its own conversations; an API key sees every conversation of the workspace.","tags":["Agent"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/agent/conversations/{id}":{"get":{"operationId":"agentConversationsGet","summary":"Get an agent conversation","description":"The conversation with its messages: user messages, the agent's replies, and a summary of each tool it ran with any post, image or proposal it produced.","tags":["Agent"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"agentConversationsUpdate","summary":"Rename an agent conversation","description":"Change the title, or the channels the agent may act on (null for all channels).","tags":["Agent"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"channelIds":{"anyOf":[{"maxItems":200,"type":"array","items":{"type":"string"}},{"type":"null"}]}}}}}}},"delete":{"operationId":"agentConversationsDelete","summary":"Delete an agent conversation","description":"Deletes the conversation and its messages. Posts the agent created stay.","tags":["Agent"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/analytics":{"get":{"operationId":"analyticsOverview","summary":"Analytics overview","description":"Totals with change against the previous period, per platform breakdown, daily series, top posts and follower growth. Free.","tags":["Analytics"],"parameters":[{"name":"from","in":"query","required":false,"schema":{"description":"ISO date; defaults to 30 days ago","type":"string"},"description":"ISO date; defaults to 30 days ago"},{"name":"to","in":"query","required":false,"schema":{"description":"ISO date; defaults to now","type":"string"},"description":"ISO date; defaults to now"},{"name":"accountIds","in":"query","required":false,"schema":{"description":"Comma-separated account ids","type":"string"},"description":"Comma-separated account ids"},{"name":"platform","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"range":{"from":"2026-10-04T00:00:00.000Z","to":"2026-11-03T00:00:00.000Z","timezone":"Europe/Berlin"},"summary":{"posts":42,"impressions":58210,"reach":47120,"views":66480,"likes":3210,"comments":288,"shares":174,"saves":402,"clicks":951,"engagement":4074,"engagementRate":7,"change":{"posts":16.7,"engagement":22.4,"impressions":9.8,"likes":18.1,"comments":30.2,"shares":-4.4},"previous":{"posts":36,"impressions":53010,"reach":43800,"views":60100,"likes":2718,"comments":221,"shares":182,"saves":350,"clicks":870,"engagement":3329,"engagementRate":6.28}},"byPlatform":[{"platform":"instagram","posts":18,"engagement":2650,"impressions":31200,"likes":2140,"comments":190,"shares":96},{"platform":"x","posts":24,"engagement":1424,"impressions":27010,"likes":1070,"comments":98,"shares":78}],"timeseries":[{"date":"2026-11-01","posts":2,"engagement":211,"impressions":2980},{"date":"2026-11-02","posts":1,"engagement":96,"impressions":1460}],"topPosts":[{"targetId":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","postId":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","platform":"x","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","publishedAt":"2026-11-03T09:00:04.000Z","url":"https://x.com/examplecafe/status/1853920467781234688","content":"Our autumn menu is here.","thumbnail":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","metrics":{"impressions":2140,"reach":1765,"views":2390,"likes":128,"comments":14,"shares":9,"saves":21,"clicks":37,"engagement":172},"engagement":172}],"followers":[{"accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","username":"examplecafe","current":4820,"change":112,"series":[{"date":"2026-11-02","followers":4790},{"date":"2026-11-03","followers":4820}]}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/analytics/posts/{id}":{"get":{"operationId":"analyticsPost","summary":"Analytics of one post","description":"Aggregated and per platform metrics with their history over time.","tags":["Analytics"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"postId":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","aggregated":{"impressions":2140,"reach":1765,"views":2390,"likes":128,"comments":14,"shares":9,"saves":21,"clicks":37,"engagement":172},"platforms":[{"targetId":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","platform":"x","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","url":"https://x.com/examplecafe/status/1853920467781234688","metrics":{"impressions":2140,"reach":1765,"views":2390,"likes":128,"comments":14,"shares":9,"saves":21,"clicks":37,"engagement":172},"syncedAt":"2026-11-03T15:00:00.000Z","history":[{"at":"2026-11-03T12:00:00.000Z","metrics":{"impressions":1480,"reach":1765,"views":2390,"likes":92,"comments":14,"shares":9,"saves":21,"clicks":37,"engagement":121}}]}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/analytics/best-times":{"get":{"operationId":"analyticsBestTimes","summary":"Best times to post","description":"Heatmap of average engagement by weekday and hour, from your own posts when there are enough, otherwise from general benchmarks.","tags":["Analytics"],"parameters":[{"name":"accountId","in":"query","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"default":180,"type":"integer","minimum":7,"maximum":400}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"timezone":"Europe/Berlin","basedOn":"your_posts","posts":42,"cells":[{"day":2,"hour":12,"posts":6,"engagement":940,"score":1},{"day":4,"hour":18,"posts":5,"engagement":702,"score":0.75}],"recommended":[{"day":2,"time":"12:00","score":1},{"day":4,"time":"18:00","score":0.75}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/analytics/takeaways":{"get":{"operationId":"analyticsTakeaways","summary":"Suggestions from your results","tags":["Analytics"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"takeaways":[{"kind":"repost","params":{"text":"Our autumn menu is here.","engagement":172},"title":"Repost your best performer","body":"\"Our autumn menu is here.\" got 172 engagements. Share it again or turn it into a new format.","action":{"label":"Duplicate it","href":"/app/publish/posts/post_9Xc4Lm2Qv7Kt3Nw8Rb5J"}},{"kind":"queue","params":{"count":2},"title":"Your queue is almost empty","body":"Fewer than 3 posts are scheduled. Fill the next free slots so you keep posting.","action":{"label":"Open the queue","href":"/app/publish"}}],"streak":{"weeks":6,"thisWeek":3,"goal":5}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/analytics/refresh":{"post":{"operationId":"analyticsRefresh","summary":"Refresh post metrics now","description":"Queues a metrics update for posts published in the last 30 days. Numbers update within a minute or two.","tags":["Analytics"],"parameters":[],"responses":{"202":{"description":"Accepted: the work continues in the background","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/analytics/export":{"get":{"operationId":"analyticsExport","summary":"Export published posts as CSV","tags":["Analytics"],"parameters":[{"name":"from","in":"query","required":false,"schema":{"description":"ISO date; defaults to 30 days ago","type":"string"},"description":"ISO date; defaults to 30 days ago"},{"name":"to","in":"query","required":false,"schema":{"description":"ISO date; defaults to now","type":"string"},"description":"ISO date; defaults to now"},{"name":"accountIds","in":"query","required":false,"schema":{"description":"Comma-separated account ids","type":"string"},"description":"Comma-separated account ids"},{"name":"platform","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/ideas":{"get":{"operationId":"ideasList","summary":"List ideas","description":"Ideas grouped in board columns, plus the column definitions.","tags":["Ideas"],"parameters":[{"name":"column","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"columns":[{"id":"unassigned","name":"Unassigned"},{"id":"todo","name":"To do"},{"id":"in_progress","name":"In progress"},{"id":"done","name":"Done"}],"items":[{"id":"idea_5Rk9Lq2Wx7Nb4Vt8Mp3C","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","title":"Behind the scenes video","body":"Film the morning prep and post it as a Reel.","media":[],"column":"todo","position":0,"tags":["video"],"sourceUrl":null,"createdBy":"usr_Jx7Lq2Vb9Nw4Rt6Ym3Pd","createdAt":"2026-11-01T15:00:00.000Z","updatedAt":"2026-11-01T15:00:00.000Z"}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"ideasCreate","summary":"Save an idea","tags":["Ideas"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"idea_5Rk9Lq2Wx7Nb4Vt8Mp3C","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","title":"Behind the scenes video","body":"Film the morning prep and post it as a Reel.","media":[],"column":"todo","position":0,"tags":["video"],"sourceUrl":null,"createdBy":"usr_Jx7Lq2Vb9Nw4Rt6Ym3Pd","createdAt":"2026-11-01T15:00:00.000Z","updatedAt":"2026-11-01T15:00:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"body":{"default":"","type":"string","maxLength":20000},"media":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video","gif","document"]},"url":{"type":"string","format":"uri"},"mediaId":{"type":"string"},"altText":{"type":"string","minLength":1,"maxLength":1000},"thumbnail":{"type":"string","format":"uri"},"mimeType":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"durationSec":{"type":"number","exclusiveMinimum":0},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","url"]}},"column":{"default":"unassigned","type":"string","maxLength":60},"tags":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"sourceUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}}}}}}}},"/v1/ideas/{id}":{"get":{"operationId":"ideasGet","summary":"Get an idea","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"ideasUpdate","summary":"Update or move an idea","description":"Move between columns by setting `column` and `position`.","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"body":{"type":"string","maxLength":20000},"media":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video","gif","document"]},"url":{"type":"string","format":"uri"},"mediaId":{"type":"string"},"altText":{"type":"string","minLength":1,"maxLength":1000},"thumbnail":{"type":"string","format":"uri"},"mimeType":{"type":"string"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"durationSec":{"type":"number","exclusiveMinimum":0},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","url"]}},"column":{"type":"string","maxLength":60},"tags":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"sourceUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"position":{"type":"number"}}}}}}},"delete":{"operationId":"ideasDelete","summary":"Delete an idea","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/ideas/columns":{"put":{"operationId":"ideasColumns","summary":"Set the board columns","tags":["Ideas"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"columns":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60},"name":{"type":"string","minLength":1,"maxLength":60}},"required":["id","name"]}}},"required":["columns"]}}}}}},"/v1/templates":{"get":{"operationId":"templatesList","summary":"List post templates","description":"Built-in templates plus the workspace's own.","tags":["Ideas"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"tpl_2Wq7Lx4Nk9Rb3Vt8Mp5F","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","name":"Weekly roundup","body":"This week at {brand}:\n\n- {highlight 1}\n- {highlight 2}\n\nRead more: {link}","category":"Newsletter","createdAt":"2026-10-20T11:00:00.000Z","builtin":false}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"templatesCreate","summary":"Create a template","tags":["Ideas"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"tpl_2Wq7Lx4Nk9Rb3Vt8Mp5F","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","name":"Weekly roundup","body":"This week at {brand}:\n\n- {highlight 1}\n- {highlight 2}\n\nRead more: {link}","category":"Newsletter","createdAt":"2026-10-20T11:00:00.000Z","builtin":false}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"body":{"type":"string","minLength":1,"maxLength":10000},"category":{"type":"string","maxLength":60}},"required":["name","body"]}}}}}},"/v1/templates/{id}":{"patch":{"operationId":"templatesUpdate","summary":"Update a template","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"body":{"type":"string","minLength":1,"maxLength":10000},"category":{"type":"string","maxLength":60}}}}}}},"delete":{"operationId":"templatesDelete","summary":"Delete a template","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/hashtag-groups":{"get":{"operationId":"hashtagsList","summary":"List hashtag groups","tags":["Ideas"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"hashtagsCreate","summary":"Create a hashtag group","tags":["Ideas"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"hashtags":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}},"required":["name","hashtags"]}}}}}},"/v1/hashtag-groups/{id}":{"patch":{"operationId":"hashtagsUpdate","summary":"Update a hashtag group","description":"Rename a group or replace its hashtags. The id stays the same.","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"hashtags":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}}}}}}},"delete":{"operationId":"hashtagsDelete","summary":"Delete a hashtag group","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/tags":{"get":{"operationId":"tagsList","summary":"List tags","tags":["Ideas"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"tagsCreate","summary":"Create a tag","tags":["Ideas"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40},"color":{"default":"#2B59D9","type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["name"]}}}}}},"/v1/tags/{id}":{"delete":{"operationId":"tagsDelete","summary":"Delete a tag","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/feeds":{"get":{"operationId":"feedsList","summary":"List RSS feeds","tags":["Ideas"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"feedsCreate","summary":"Follow an RSS or Atom feed","description":"Pass a feed URL or any website URL with a feed. New articles appear as feed items, and as ideas when `autoIdea` is on.","tags":["Ideas"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"autoIdea":{"default":false,"type":"boolean"}},"required":["url"]}}}}}},"/v1/feeds/items":{"get":{"operationId":"feedsItems","summary":"Latest feed items","tags":["Ideas"],"parameters":[{"name":"feedId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/feeds/{id}/refresh":{"post":{"operationId":"feedsRefresh","summary":"Fetch a feed now","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/feeds/{id}":{"patch":{"operationId":"feedsUpdate","summary":"Update a feed","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"autoIdea":{"type":"boolean"},"title":{"type":"string","maxLength":200}}}}}}},"delete":{"operationId":"feedsDelete","summary":"Unfollow a feed","tags":["Ideas"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/links":{"post":{"operationId":"linksCreate","summary":"Shorten a link","description":"Creates a short link with optional UTM parameters and click tracking (country, device, browser, referrer).","tags":["Links"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"lnk_6Rb2Qw9Lx4Nm7Kt3Vp8H","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","slug":"fall26","destination":"https://example.com/menu","title":"Autumn menu","utm":{"source":"postkea","medium":"social","campaign":"autumn-menu"},"clicks":0,"postId":null,"expiresAt":null,"createdAt":"2026-11-01T12:00:00.000Z","shortUrl":"https://mgpc.st/l/fall26","finalUrl":"https://example.com/menu?utm_source=postkea&utm_medium=social&utm_campaign=autumn-menu"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"string","format":"uri"},"slug":{"description":"Custom back-half; random when omitted","type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9_-]{1,40}$"},"title":{"type":"string","maxLength":200},"utm":{"type":"object","properties":{"source":{"type":"string","maxLength":100},"medium":{"type":"string","maxLength":100},"campaign":{"type":"string","maxLength":100},"term":{"type":"string","maxLength":100},"content":{"type":"string","maxLength":100}}},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["destination"]}}}}},"get":{"operationId":"linksList","summary":"List short links","tags":["Links"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"lnk_6Rb2Qw9Lx4Nm7Kt3Vp8H","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","slug":"fall26","destination":"https://example.com/menu","title":"Autumn menu","utm":{"source":"postkea","medium":"social","campaign":"autumn-menu"},"clicks":342,"postId":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","expiresAt":null,"createdAt":"2026-11-01T12:00:00.000Z","shortUrl":"https://mgpc.st/l/fall26","finalUrl":"https://example.com/menu?utm_source=postkea&utm_medium=social&utm_campaign=autumn-menu"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/links/{id}/stats":{"get":{"operationId":"linksStats","summary":"Click stats of a link","tags":["Links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"days","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":365}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"link":{"id":"lnk_6Rb2Qw9Lx4Nm7Kt3Vp8H","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","slug":"fall26","destination":"https://example.com/menu","title":"Autumn menu","utm":{"source":"postkea","medium":"social","campaign":"autumn-menu"},"clicks":342,"postId":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","expiresAt":null,"createdAt":"2026-11-01T12:00:00.000Z","shortUrl":"https://mgpc.st/l/fall26","finalUrl":"https://example.com/menu?utm_source=postkea&utm_medium=social&utm_campaign=autumn-menu"},"total":342,"daily":[{"date":"2026-11-02","clicks":128},{"date":"2026-11-03","clicks":214}],"countries":[{"key":"DE","clicks":201},{"key":"AT","clicks":64}],"devices":[{"key":"mobile","clicks":268},{"key":"desktop","clicks":74}],"browsers":[{"key":"Safari","clicks":170},{"key":"Chrome","clicks":152}],"referrers":[{"key":"x.com","clicks":190},{"key":"instagram.com","clicks":121}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/links/{id}":{"patch":{"operationId":"linksUpdate","summary":"Update a link","tags":["Links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"string","format":"uri"},"title":{"type":"string","maxLength":200},"utm":{"type":"object","properties":{"source":{"type":"string","maxLength":100},"medium":{"type":"string","maxLength":100},"campaign":{"type":"string","maxLength":100},"term":{"type":"string","maxLength":100},"content":{"type":"string","maxLength":100}}},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}}}}},"delete":{"operationId":"linksDelete","summary":"Delete a link","tags":["Links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/bio-pages":{"get":{"operationId":"bioList","summary":"List link-in-bio pages","tags":["Links"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"bio_3Wn7Kq2Lx9Rb5Vt8Mp4C","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","slug":"examplecafe","title":"Example Cafe","bio":"Coffee, pastries and slow mornings since 2019.","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg","theme":{"preset":"plume"},"blocks":[{"id":"b1","type":"link","label":"Order online","url":"https://example.com/order"},{"id":"b2","type":"link","label":"Autumn menu","url":"https://example.com/menu"}],"published":true,"views":1873,"createdAt":"2026-10-05T10:00:00.000Z","updatedAt":"2026-11-01T12:30:00.000Z","url":"https://mgpc.st/b/examplecafe"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"bioCreate","summary":"Create a link-in-bio page","tags":["Links"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"bio_3Wn7Kq2Lx9Rb5Vt8Mp4C","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","slug":"examplecafe","title":"Example Cafe","bio":"Coffee, pastries and slow mornings since 2019.","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg","theme":{"preset":"plume"},"blocks":[{"id":"b1","type":"link","label":"Order online","url":"https://example.com/order"},{"id":"b2","type":"link","label":"Autumn menu","url":"https://example.com/menu"}],"published":true,"views":0,"createdAt":"2026-10-05T10:00:00.000Z","updatedAt":"2026-11-01T12:30:00.000Z","url":"https://mgpc.st/b/examplecafe"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9_-]{1,40}$"},"title":{"type":"string","minLength":1,"maxLength":120},"bio":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"theme":{"default":{"preset":"plume"},"type":"object","properties":{"preset":{"type":"string","maxLength":40},"accent":{"type":"string","maxLength":20},"background":{"type":"string","maxLength":200},"font":{"type":"string","maxLength":40},"buttonStyle":{"type":"string","maxLength":20}},"required":["preset"]},"blocks":{"default":[],"maxItems":60,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"type":{"type":"string","enum":["link","header","text","image","video","social","email"]},"label":{"type":"string","maxLength":200},"url":{"type":"string","maxLength":2000},"text":{"type":"string","maxLength":2000},"imageUrl":{"type":"string","maxLength":2000},"hidden":{"type":"boolean"}},"required":["id","type"]}},"published":{"default":true,"type":"boolean"}},"required":["slug","title"]}}}}}},"/v1/bio-pages/{id}":{"get":{"operationId":"bioGet","summary":"Get a link-in-bio page","tags":["Links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"bio_3Wn7Kq2Lx9Rb5Vt8Mp4C","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","slug":"examplecafe","title":"Example Cafe","bio":"Coffee, pastries and slow mornings since 2019.","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg","theme":{"preset":"plume"},"blocks":[{"id":"b1","type":"link","label":"Order online","url":"https://example.com/order"},{"id":"b2","type":"link","label":"Autumn menu","url":"https://example.com/menu"}],"published":true,"views":1873,"createdAt":"2026-10-05T10:00:00.000Z","updatedAt":"2026-11-01T12:30:00.000Z","url":"https://mgpc.st/b/examplecafe","subscribers":57,"stats":{"total":538,"daily":[{"date":"2026-11-03","clicks":41}],"countries":[{"key":"DE","clicks":312}],"devices":[{"key":"mobile","clicks":470}],"browsers":[{"key":"Safari","clicks":260}],"referrers":[{"key":"instagram.com","clicks":401}],"blocks":[{"key":"b1","clicks":412},{"key":"b2","clicks":126}]}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"bioUpdate","summary":"Update a link-in-bio page","tags":["Links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9_-]{1,40}$"},"title":{"type":"string","minLength":1,"maxLength":120},"bio":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"avatarUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"theme":{"type":"object","properties":{"preset":{"type":"string","maxLength":40},"accent":{"type":"string","maxLength":20},"background":{"type":"string","maxLength":200},"font":{"type":"string","maxLength":40},"buttonStyle":{"type":"string","maxLength":20}},"required":["preset"]},"blocks":{"maxItems":60,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"type":{"type":"string","enum":["link","header","text","image","video","social","email"]},"label":{"type":"string","maxLength":200},"url":{"type":"string","maxLength":2000},"text":{"type":"string","maxLength":2000},"imageUrl":{"type":"string","maxLength":2000},"hidden":{"type":"boolean"}},"required":["id","type"]}},"published":{"type":"boolean"}}}}}}},"delete":{"operationId":"bioDelete","summary":"Delete a link-in-bio page","tags":["Links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/bio-pages/{id}/subscribers":{"get":{"operationId":"bioSubscribers","summary":"Emails collected by a bio page","tags":["Links"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/public/bio/{slug}/subscribe":{"post":{"operationId":"bioSubscribe","summary":"Join a bio page's email list (public)","tags":["Links"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}}}},"/v1/posts/counts":{"get":{"operationId":"postsCounts","summary":"Count posts by status","description":"Number of posts in each status, with the same channel, tag and text filters as GET /v1/posts. Used for the tab counts on the Publish screen. Free.","tags":["Posts"],"parameters":[{"name":"accountId","in":"query","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"draft":6,"pending_approval":2,"scheduled":14,"publishing":0,"published":87,"partial":1,"failed":3}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/media/summary":{"get":{"operationId":"mediaSummary","summary":"Media library totals and folders","description":"Number of files and bytes stored, counts per type, and every folder with its file count. Used by the media library filters. Free.","tags":["Media"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"total":148,"bytes":2318840112,"byType":{"image":96,"video":41,"gif":6,"audio":3,"document":2},"folders":[{"name":"Autumn launch","count":18},{"name":"Product shots","count":42}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/ui/streak":{"get":{"operationId":"uiStreak","summary":"Publishing streak in days","description":"Consecutive days, in the workspace time zone, with at least one published post. A streak not yet extended today still counts until the day ends; `today` says whether something went out today. Free.","tags":["Analytics"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/ui/activity":{"get":{"operationId":"uiActivity","summary":"Recent post activity","description":"The posts that changed most recently (published, failed, scheduled, waiting for approval, drafted by an agent), newest first, with the platforms they target. Free.","tags":["Posts"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":10,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/oauth-apps":{"get":{"operationId":"oauthAppsList","summary":"List OAuth apps","description":"Apps this workspace registered to let Postkea users sign in and grant access.\n\nDashboard session only; not available to API keys.","tags":["Developers"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"oauthAppsCreate","summary":"Create an OAuth app","description":"Confidential apps get a client secret, shown once in `clientSecret`.\n\nDashboard session only; not available to API keys.","tags":["Developers"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"iconUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"websiteUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"redirectUris":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}},"type":{"default":"confidential","description":"confidential apps also authenticate with a client secret","type":"string","enum":["public","confidential"]}},"required":["name","redirectUris"]}}}}}},"/v1/oauth-apps/{id}":{"patch":{"operationId":"oauthAppsUpdate","summary":"Update an OAuth app","description":"Dashboard session only; not available to API keys.","tags":["Developers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"iconUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"websiteUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"redirectUris":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}}}}}}}},"delete":{"operationId":"oauthAppsDelete","summary":"Delete an OAuth app","description":"Disconnects the app from every workspace that granted it access.\n\nDashboard session only; not available to API keys.","tags":["Developers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/oauth-apps/{id}/secret":{"post":{"operationId":"oauthAppsRotateSecret","summary":"Rotate an OAuth app's client secret","description":"Issues a new client secret and invalidates the old one immediately. Existing tokens keep working.\n\nDashboard session only; not available to API keys.","tags":["Developers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/connected-apps":{"get":{"operationId":"connectedAppsList","summary":"List connected apps","description":"Apps you allowed to act for you, in every workspace. Admins also see the apps other members connected to this workspace.\n\nDashboard session only; not available to API keys.","tags":["Workspace"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/connected-apps/{id}":{"delete":{"operationId":"connectedAppsRevoke","summary":"Disconnect an app","description":"Revokes the app's access and refresh tokens at once. The app has to ask for access again.\n\nDashboard session only; not available to API keys.","tags":["Workspace"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/plugs":{"get":{"operationId":"plugsList","summary":"List plugs","description":"Plugs act on posts Postkea published once they get traction: repost from the same account, reply with a follow-up, or have other accounts of the workspace like and repost them. Channel plugs watch every post of a channel for 7 days; per-post plugs (postId) replace them for one post.","tags":["Plugs"],"parameters":[{"name":"accountId","in":"query","required":false,"schema":{"type":"string"}},{"name":"postId","in":"query","required":false,"schema":{"description":"Per-post plugs of this post","type":"string"},"description":"Per-post plugs of this post"},{"name":"scope","in":"query","required":false,"schema":{"default":"channel","type":"string","enum":["channel","post","all"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"plug_8Qn2vR4kT7mWx1Lp3Zc9","type":"follow_up","accountId":"acc_x_8f2k","postId":null,"enabled":true,"metric":"likes","threshold":50,"text":"Thanks for the love. The full guide is here: {link}","link":"https://example.com/guide","shortenLink":true,"engageAccountIds":[],"engageActions":[],"delayMinutes":0,"maxPerDay":10,"executed":3,"lastExecutedAt":"2026-11-24T10:15:00.000Z","createdAt":"2026-11-20T09:00:00.000Z","updatedAt":"2026-11-20T09:00:00.000Z"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"plugsCreate","summary":"Create a plug","description":"Examples: repost at 100 likes {type:\"repost\", accountId, threshold:100}; reply with a link at 50 likes {type:\"follow_up\", accountId, threshold:50, text:\"The full guide: {link}\", link:\"https://...\"}; other X accounts like and repost 30 minutes after each post {type:\"engage\", accountId, engageAccountIds:[...], engageActions:[\"like\",\"repost\"], delayMinutes:30}. Each action costs credits. Supported networks: X, Bluesky, Threads (no likes), LinkedIn, Mastodon.\n\n**Credits:** 1 per action","tags":["Plugs"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"plug_8Qn2vR4kT7mWx1Lp3Zc9","type":"follow_up","accountId":"acc_x_8f2k","postId":null,"enabled":true,"metric":"likes","threshold":50,"text":"Thanks for the love. The full guide is here: {link}","link":"https://example.com/guide","shortenLink":true,"engageAccountIds":[],"engageActions":[],"delayMinutes":0,"maxPerDay":10,"executed":3,"lastExecutedAt":"2026-11-24T10:15:00.000Z","createdAt":"2026-11-20T09:00:00.000Z","updatedAt":"2026-11-20T09:00:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["repost","follow_up","engage"],"description":"repost: repost the post from the same account; follow_up: reply to it from the same account; engage: other accounts like or repost it"},"accountId":{"description":"The channel whose posts the plug watches. Optional for per-post plugs (then every channel of the post)","type":["string","null"]},"postId":{"description":"Set for a per-post plug, which replaces the channel plugs of the same type for that post","type":["string","null"]},"enabled":{"default":true,"type":"boolean"},"metric":{"default":"likes","description":"likes, or engagement (likes, comments, shares and saves together)","type":"string","enum":["likes","engagement"]},"threshold":{"description":"repost and follow_up: act once the post reaches this many likes (or engagement) within 7 days","anyOf":[{"type":"integer","minimum":1,"maximum":10000000},{"type":"null"}]},"text":{"description":"follow_up: the reply text. {link} is replaced by `link`, otherwise the link goes on its own line","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"link":{"description":"follow_up: optional link added to the reply","anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"shortenLink":{"default":false,"description":"follow_up: use a Postkea short link with click tracking","type":"boolean"},"engageAccountIds":{"default":[],"description":"engage: other connected accounts on the same network that like or repost the post","maxItems":50,"type":"array","items":{"type":"string"}},"engageActions":{"default":[],"description":"engage: like, repost or both","maxItems":2,"type":"array","items":{"type":"string","enum":["like","repost"]}},"delayMinutes":{"description":"Minutes to wait after the trigger. engage: 5 to 1440 after publishing (default 15); others: 0 to 1440 after the threshold","type":"integer","minimum":0,"maximum":1440},"maxPerDay":{"default":10,"description":"At most this many actions of this plug in 24 hours","type":"integer","minimum":1,"maximum":100}},"required":["type"]}}}}}},"/v1/plugs/summary":{"get":{"operationId":"plugsSummary","summary":"Plug limits and network support","description":"Active channel plugs against the plan limit, the credit cost of an action, and which actions each network allows.","tags":["Plugs"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/plugs/activity":{"get":{"operationId":"plugsActivity","summary":"Plug activity","description":"Every action plugs started, newest first, with its outcome (queued, running, done, failed, skipped) and the credits it used.","tags":["Plugs"],"parameters":[{"name":"plugId","in":"query","required":false,"schema":{"type":"string"}},{"name":"postId","in":"query","required":false,"schema":{"type":"string"}},{"name":"accountId","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["queued","running","done","failed","skipped"]}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/plugs/{id}":{"get":{"operationId":"plugsGet","summary":"Get a plug","tags":["Plugs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"plug_8Qn2vR4kT7mWx1Lp3Zc9","type":"follow_up","accountId":"acc_x_8f2k","postId":null,"enabled":true,"metric":"likes","threshold":50,"text":"Thanks for the love. The full guide is here: {link}","link":"https://example.com/guide","shortenLink":true,"engageAccountIds":[],"engageActions":[],"delayMinutes":0,"maxPerDay":10,"executed":3,"lastExecutedAt":"2026-11-24T10:15:00.000Z","createdAt":"2026-11-20T09:00:00.000Z","updatedAt":"2026-11-20T09:00:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"plugsUpdate","summary":"Update a plug","description":"Changes settings or turns the plug on or off. The type and post of a plug stay as created.","tags":["Plugs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"plug_8Qn2vR4kT7mWx1Lp3Zc9","type":"follow_up","accountId":"acc_x_8f2k","postId":null,"enabled":true,"metric":"likes","threshold":50,"text":"Thanks for the love. The full guide is here: {link}","link":"https://example.com/guide","shortenLink":true,"engageAccountIds":[],"engageActions":[],"delayMinutes":0,"maxPerDay":10,"executed":3,"lastExecutedAt":"2026-11-24T10:15:00.000Z","createdAt":"2026-11-20T09:00:00.000Z","updatedAt":"2026-11-20T09:00:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["repost","follow_up","engage"],"description":"repost: repost the post from the same account; follow_up: reply to it from the same account; engage: other accounts like or repost it"},"accountId":{"description":"The channel whose posts the plug watches. Optional for per-post plugs (then every channel of the post)","type":["string","null"]},"postId":{"description":"Set for a per-post plug, which replaces the channel plugs of the same type for that post","type":["string","null"]},"enabled":{"type":"boolean"},"metric":{"type":"string","enum":["likes","engagement"]},"threshold":{"description":"repost and follow_up: act once the post reaches this many likes (or engagement) within 7 days","anyOf":[{"type":"integer","minimum":1,"maximum":10000000},{"type":"null"}]},"text":{"description":"follow_up: the reply text. {link} is replaced by `link`, otherwise the link goes on its own line","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"link":{"description":"follow_up: optional link added to the reply","anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"shortenLink":{"type":"boolean"},"engageAccountIds":{"maxItems":50,"type":"array","items":{"type":"string"}},"engageActions":{"maxItems":2,"type":"array","items":{"type":"string","enum":["like","repost"]}},"delayMinutes":{"description":"Minutes to wait after the trigger. engage: 5 to 1440 after publishing (default 15); others: 0 to 1440 after the threshold","type":"integer","minimum":0,"maximum":1440},"maxPerDay":{"type":"integer","minimum":1,"maximum":100}}}}}}},"delete":{"operationId":"plugsDelete","summary":"Delete a plug","description":"Deletes the plug and its activity. Actions that already ran stay on the networks.","tags":["Plugs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/posts/{id}/plugs":{"get":{"operationId":"plugsPostGet","summary":"Plugs of a post","description":"The post's own plugs, the channel plugs of its channels, and what they did on this post.","tags":["Plugs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"put":{"operationId":"plugsPostSet","summary":"Set the plugs of a post","description":"Replaces the post's own plugs, one per type: an entry overrides the channel plugs of that type for this post, a disabled entry turns the type off, and types left out use the channel plugs. Existing plugs keep their activity, so a plug that already acted does not act again.","tags":["Plugs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plugs":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["repost","follow_up","engage"]},"accountId":{"type":["string","null"]},"enabled":{"default":true,"type":"boolean"},"metric":{"default":"likes","description":"likes, or engagement (likes, comments, shares and saves together)","type":"string","enum":["likes","engagement"]},"threshold":{"description":"repost and follow_up: act once the post reaches this many likes (or engagement) within 7 days","anyOf":[{"type":"integer","minimum":1,"maximum":10000000},{"type":"null"}]},"text":{"description":"follow_up: the reply text. {link} is replaced by `link`, otherwise the link goes on its own line","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"link":{"description":"follow_up: optional link added to the reply","anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"shortenLink":{"default":false,"description":"follow_up: use a Postkea short link with click tracking","type":"boolean"},"engageAccountIds":{"default":[],"description":"engage: other connected accounts on the same network that like or repost the post","maxItems":50,"type":"array","items":{"type":"string"}},"engageActions":{"default":[],"description":"engage: like, repost or both","maxItems":2,"type":"array","items":{"type":"string","enum":["like","repost"]}},"delayMinutes":{"description":"Minutes to wait after the trigger. engage: 5 to 1440 after publishing (default 15); others: 0 to 1440 after the threshold","type":"integer","minimum":0,"maximum":1440},"maxPerDay":{"default":10,"description":"At most this many actions of this plug in 24 hours","type":"integer","minimum":1,"maximum":100}},"required":["type"]},"description":"Per-post plugs. A disabled entry turns that plug type off for this post; types left out use the channel plugs."}},"required":["plugs"]}}}}}},"/v1/health":{"get":{"operationId":"systemHealth","summary":"Health check","tags":["System"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"status":"ok","database":true,"queue":true,"latencyMs":6,"time":"2026-11-03T12:00:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]}},"/v1/me":{"get":{"operationId":"systemMe","summary":"Current workspace, key and credit balance","description":"Use it to check that a key works. Free.","tags":["System"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"workspace":{"id":"org_4dQm8RtYw2Lx9KpN3vBc","name":"Example Cafe","slug":"example-cafe"},"plan":{"id":"pro","name":"Pro","rateLimitPerMinute":400,"channels":60},"credits":{"plan":"pro","monthly":{"limit":25000,"used":3140,"remaining":21860,"cycleStart":"2026-10-20T00:00:00.000Z","cycleEnd":"2026-11-20T00:00:00.000Z"},"purchased":{"total":5000,"used":0,"remaining":5000},"remaining":26860},"connectedAccounts":4,"actor":{"type":"api_key","id":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","name":"Claude agent","postPolicy":"approval","scopes":["posts:read","posts:write","media:write","scrape"],"allowedPlatforms":["x","linkedin"],"creditLimit":2000,"creditsUsed":312}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/usage":{"get":{"operationId":"systemUsage","summary":"Credit usage and balance","description":"Monthly credit history (oldest first) split by platform and reason, plus the live balance. Filter by profile, account or API key.","tags":["System"],"parameters":[{"name":"profileId","in":"query","required":false,"schema":{"type":"string"}},{"name":"accountId","in":"query","required":false,"schema":{"type":"string"}},{"name":"apiKeyId","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"description":"YYYY-MM","type":"string","pattern":"^\\d{4}-\\d{2}$"},"description":"YYYY-MM"},{"name":"to","in":"query","required":false,"schema":{"description":"YYYY-MM","type":"string","pattern":"^\\d{4}-\\d{2}$"},"description":"YYYY-MM"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"totalUsage":3140,"history":[{"month":"2026-10","credits":2410,"platforms":{"youtube":1320,"x":640,"linkedin":450},"reasons":{"publish":610,"scrape:youtube.stats":900,"scrape:youtube.transcript":420,"download":480}},{"month":"2026-11","credits":730,"platforms":{"youtube":300,"x":280,"linkedin":150},"reasons":{"publish":430,"scrape:youtube.stats":300}}],"balance":{"plan":"pro","monthly":{"limit":25000,"used":3140,"remaining":21860,"cycleStart":"2026-10-20T00:00:00.000Z","cycleEnd":"2026-11-20T00:00:00.000Z"},"purchased":{"total":5000,"used":0,"remaining":5000},"remaining":26860},"costs":{"publish":1,"scrape":1,"scrapePage":1,"transcript":1,"transcriptSpeechPerMinute":1,"summarize":2,"downloadSdPerMinute":1,"downloadHdPerMinute":3,"aiWrite":1,"aiImage":5,"monitorCheck":1,"repurpose":1}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/platforms":{"get":{"operationId":"systemPlatforms","summary":"Platforms, capabilities and limits","description":"Every supported platform with how it connects, what it supports, its publishing limits, and whether this server has its app keys configured.","tags":["System"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"x","name":"X","color":"#0F1419","connect":"oauth","available":true,"configured":true,"credentialFields":null,"capabilities":{"publish":true,"schedule":true,"analytics":true,"comments":true,"messages":true,"firstComment":true,"scrape":true,"download":true},"limits":{"text":280,"maxImages":4,"maxVideos":1,"mixedMedia":false,"maxVideoSeconds":140,"maxVideoMb":512,"maxImageMb":5,"threads":true},"helpers":[],"docsUrl":"https://docs.x.com/x-api/posts/creation-of-a-post"},{"id":"bluesky","name":"Bluesky","color":"#1185FE","connect":"app_password","available":true,"configured":true,"credentialFields":[{"name":"handle","label":"Handle","placeholder":"yourname.bsky.social","required":true},{"name":"appPassword","label":"App password","type":"password","placeholder":"xxxx-xxxx-xxxx-xxxx","required":true}],"capabilities":{"publish":true,"schedule":true,"analytics":true,"comments":true,"scrape":true},"limits":{"text":300,"maxImages":4,"maxVideos":1,"mixedMedia":false,"maxVideoSeconds":180,"maxImageMb":1,"threads":true},"helpers":[],"docsUrl":null}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]}},"/v1/health/auth":{"get":{"operationId":"systemKeyCheck","summary":"Verify an API key","tags":["System"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"valid":true,"keyName":"Claude agent","workspaceId":"org_4dQm8RtYw2Lx9KpN3vBc"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/accounts":{"get":{"operationId":"accountsList","summary":"List connected accounts","description":"Accounts (channels) connected to the workspace. Use an account `id` as `accountId` when posting.","tags":["Accounts"],"parameters":[{"name":"platform","in":"query","required":false,"schema":{"type":"string"}},{"name":"profileId","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","reauth_required"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","platformUserId":"1450239876543210","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg","accountType":"personal","profileId":null,"status":"active","statusReason":null,"followers":4820,"schedule":null,"oauthAppId":null,"meta":{},"lastSyncedAt":"2026-11-02T08:15:00.000Z","createdAt":"2026-10-01T09:30:00.000Z"},{"id":"acc_7Fb2Ns5Kd8Qw3Jy6Lp4C","platform":"linkedin","platformUserId":"urn:li:organization:81234567","username":"example-cafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg","accountType":"organization","profileId":null,"status":"active","statusReason":null,"followers":1290,"schedule":null,"oauthAppId":null,"meta":{},"lastSyncedAt":"2026-11-02T08:15:00.000Z","createdAt":"2026-10-01T09:30:00.000Z"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/accounts/{id}":{"get":{"operationId":"accountsGet","summary":"Get an account","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","platform":"x","platformUserId":"1450239876543210","username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg","accountType":"personal","profileId":null,"status":"active","statusReason":null,"followers":4820,"schedule":null,"oauthAppId":null,"meta":{},"lastSyncedAt":"2026-11-02T08:15:00.000Z","createdAt":"2026-10-01T09:30:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"accountsUpdate","summary":"Move an account to a profile or rename it","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":["string","null"]},"displayName":{"type":"string","maxLength":120}}}}}}},"delete":{"operationId":"accountsDelete","summary":"Disconnect an account","description":"Removes the account and its stored tokens. Scheduled posts to it are cancelled.","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/accounts/{id}/sync":{"post":{"operationId":"accountsSync","summary":"Refresh account stats","description":"Fetches the latest follower count and profile details from the platform.","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/accounts/{id}/schedule":{"get":{"operationId":"accountsGetSchedule","summary":"Get an account's posting schedule","description":"Queue time slots used by `addToQueue`, with the next upcoming slot times.","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"schedule":{"timezone":"Europe/Berlin","slots":[{"day":1,"time":"09:00"},{"day":3,"time":"12:30"},{"day":5,"time":"17:00"}]},"isDefault":false,"next":["2026-11-05T11:30:00.000Z","2026-11-07T16:00:00.000Z","2026-11-10T08:00:00.000Z"]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"put":{"operationId":"accountsSetSchedule","summary":"Set an account's posting schedule","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"timezone":{"type":"string","minLength":1},"slots":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"day":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string","pattern":"^\\d{2}:\\d{2}$"}},"required":["day","time"]}},"paused":{"type":"boolean"}},"required":["timezone","slots"]}}}}},"delete":{"operationId":"accountsResetSchedule","summary":"Reset an account's posting schedule to the default","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/accounts/{id}/helpers/{name}":{"get":{"operationId":"accountsHelper","summary":"Run a platform helper","description":"Platform lookups needed to post: Pinterest `boards`, YouTube `playlists`, TikTok `creatorInfo`. Extra query parameters are passed to the helper.","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/connect/{platform}":{"post":{"operationId":"connectStart","summary":"Start connecting an account (OAuth)","description":"Returns the platform authorization `url`. Send the user there; after they approve, the account appears in GET /v1/accounts.","tags":["Accounts"],"parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"url":"https://twitter.com/i/oauth2/authorize?response_type=code&client_id=example-client-id&redirect_uri=https%3A%2F%2Fapi.example.com%2Fapi%2Foauth%2Fcallback%2Fx&scope=tweet.read+tweet.write+users.read+offline.access&state=cs_7Lq2Wn9Rx4Kb3Vt8Mp5D&code_challenge=example&code_challenge_method=S256","state":"cs_7Lq2Wn9Rx4Kb3Vt8Mp5D"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string"},"oauthAppId":{"description":"Use your own registered OAuth app (white-label)","type":"string"},"redirectUrl":{"description":"Where the user lands after connecting","type":"string","format":"uri"},"instance":{"description":"Mastodon instance, e.g. mastodon.social","type":"string"}}}}}}},"get":{"operationId":"connectStartGet","summary":"Start connecting an account (GET)","tags":["Accounts"],"parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]}},{"name":"profileId","in":"query","required":false,"schema":{"type":"string"}},{"name":"oauthAppId","in":"query","required":false,"schema":{"description":"Use your own registered OAuth app (white-label)","type":"string"},"description":"Use your own registered OAuth app (white-label)"},{"name":"redirectUrl","in":"query","required":false,"schema":{"description":"Where the user lands after connecting","type":"string","format":"uri"},"description":"Where the user lands after connecting"},{"name":"instance","in":"query","required":false,"schema":{"description":"Mastodon instance, e.g. mastodon.social","type":"string"},"description":"Mastodon instance, e.g. mastodon.social"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/connect/{platform}/credentials":{"post":{"operationId":"connectCredentials","summary":"Connect with credentials","description":"For platforms that connect with a token instead of OAuth: Bluesky (handle + app password), Telegram (bot token + chat), Discord and Slack (webhook URL), Mastodon (instance + access token), custom webhooks. GET /v1/platforms lists the fields.","tags":["Accounts"],"parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"acc_9Lm4Qx7Wn2Rb5Vt8Kp3C","platform":"bluesky","platformUserId":"did:plc:example123abc","username":"examplecafe.bsky.social","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg","accountType":"personal","profileId":null,"status":"active","statusReason":null,"followers":860,"schedule":null,"oauthAppId":null,"meta":{},"lastSyncedAt":"2026-11-02T08:15:00.000Z","createdAt":"2026-10-01T09:30:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"profileId":{"type":"string"}},"required":["values"]}}}}}},"/v1/connect/selection/{id}":{"get":{"operationId":"connectPending","summary":"Accounts waiting to be chosen","description":"After an OAuth login that returned several pages or organizations, lists them so the user can pick.","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]},"post":{"operationId":"connectSelect","summary":"Choose which pages or organizations to connect","tags":["Accounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platformUserIds":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["platformUserIds"]}}}}}},"/v1/profiles":{"post":{"operationId":"profilesCreate","summary":"Create a profile","description":"Profiles group accounts by client, brand or end user. Pass `profileId` when connecting to put the new account in it.","tags":["Profiles"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"color":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"externalId":{"description":"Your own id for this client or end user","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["name"]}}}}},"get":{"operationId":"profilesList","summary":"List profiles","tags":["Profiles"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/profiles/{id}":{"get":{"operationId":"profilesGet","summary":"Get a profile","tags":["Profiles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"profilesUpdate","summary":"Update a profile","tags":["Profiles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"color":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"externalId":{"description":"Your own id for this client or end user","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}}}}}}},"delete":{"operationId":"profilesDelete","summary":"Delete a profile","description":"Accounts in the profile stay connected and move to no profile.","tags":["Profiles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/apps":{"post":{"operationId":"appsCreate","summary":"Register your own OAuth app","description":"White-label connections: users see your app name on the consent screen. Set the app's redirect URI to the `redirectUri` in the response.\n\nDashboard session only; not available to API keys.","tags":["Profiles"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]},"name":{"type":"string","minLength":1,"maxLength":120},"clientId":{"type":"string","minLength":1},"clientSecret":{"type":"string","minLength":1},"extra":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["platform","name","clientId","clientSecret"]}}}}},"get":{"operationId":"appsList","summary":"List your OAuth apps","tags":["Profiles"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/apps/{id}":{"patch":{"operationId":"appsUpdate","summary":"Update an OAuth app","description":"Dashboard session only; not available to API keys.","tags":["Profiles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"clientId":{"type":"string","minLength":1},"clientSecret":{"type":"string","minLength":1},"extra":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}}}}}},"delete":{"operationId":"appsDelete","summary":"Delete an OAuth app","description":"Accounts connected through it fall back to the shared app and may need to reconnect.\n\nDashboard session only; not available to API keys.","tags":["Profiles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/connect-links":{"post":{"operationId":"connectLinksCreate","summary":"Create a connect link","description":"A shareable page where your client connects their own accounts into a profile, without a Postkea account.","tags":["Profiles"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"cl_4Nx8Lq2Wk7Rb3Vt9Mp6H","url":"https://app.example.com/connect/Xy7Lq2Wn9Rx4Kb3Vt8Mp5DaB1cD2eF3g","profileId":"prof_2Kq7Lx4Wn9Rb3Vt8Mp5C","platforms":["instagram","tiktok"],"title":"Connect your accounts","message":"Connect the accounts you want us to post to.","redirectUrl":null,"expiresAt":"2026-11-10T09:00:00.000Z","uses":0,"maxUses":1,"revoked":false,"createdAt":"2026-11-03T09:00:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string"},"platforms":{"description":"Limit which platforms the page offers","type":"array","items":{"type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]}},"title":{"type":"string","maxLength":120},"message":{"type":"string","maxLength":1000},"redirectUrl":{"type":"string","format":"uri"},"expiresInDays":{"default":14,"type":"integer","minimum":1,"maximum":365},"maxUses":{"type":"integer","minimum":1,"maximum":1000}}}}}}},"get":{"operationId":"connectLinksList","summary":"List connect links","tags":["Profiles"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/connect-links/{id}":{"delete":{"operationId":"connectLinksRevoke","summary":"Revoke a connect link","tags":["Profiles"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/public/connect/{token}":{"get":{"operationId":"publicConnectGet","summary":"Read a connect link (public)","tags":["Profiles"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]}},"/v1/public/connect/{token}/{platform}":{"post":{"operationId":"publicConnectStart","summary":"Start a connection from a connect link (public)","tags":["Profiles"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}},{"name":"platform","in":"path","required":true,"schema":{"type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"instance":{"type":"string"}}}}}}}},"/v1/media":{"post":{"operationId":"mediaUpload","summary":"Upload media","description":"Multipart upload (field `file`, up to 20 files and 1 GB each). Returns library items with a `mediaItem` you can put straight into a post's `mediaItems`. Dimensions, duration and a thumbnail are extracted automatically.","tags":["Media"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","type":"video","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.mp4","thumbnailUrl":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.thumb.jpg","filename":"latte-art.mp4","mimeType":"video/mp4","size":18432077,"width":1920,"height":1080,"durationSec":24.5,"altText":null,"source":"upload","sourceUrl":null,"folder":"Autumn launch","tags":null,"createdAt":"2026-11-02T14:20:00.000Z","mediaItem":{"type":"video","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.mp4","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","thumbnail":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.thumb.jpg","mimeType":"video/mp4","width":1920,"height":1080,"durationSec":24.5,"size":18432077}}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"folder":{"type":"string"},"altText":{"type":"string"}},"required":["file"]}}}}},"get":{"operationId":"mediaList","summary":"List media","tags":["Media"],"parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["image","video","gif","document","audio"]}},{"name":"folder","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":40,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"items":[{"id":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","type":"video","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.mp4","thumbnailUrl":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.thumb.jpg","filename":"latte-art.mp4","mimeType":"video/mp4","size":18432077,"width":1920,"height":1080,"durationSec":24.5,"altText":null,"source":"upload","sourceUrl":null,"folder":"Autumn launch","tags":null,"createdAt":"2026-11-02T14:20:00.000Z","mediaItem":{"type":"video","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.mp4","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","thumbnail":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.thumb.jpg","mimeType":"video/mp4","width":1920,"height":1080,"durationSec":24.5,"size":18432077}},{"id":"med_1Pk6Vr3Nw9Lq4Ht7Xb2S","type":"image","url":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","thumbnailUrl":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","filename":"cold-brew.jpg","mimeType":"image/jpeg","size":412880,"width":1080,"height":1350,"durationSec":null,"altText":"Cold brew on a wooden table","source":"upload","sourceUrl":null,"folder":"Autumn launch","tags":null,"createdAt":"2026-11-02T14:20:00.000Z","mediaItem":{"type":"image","url":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","mediaId":"med_1Pk6Vr3Nw9Lq4Ht7Xb2S","altText":"Cold brew on a wooden table","thumbnail":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","mimeType":"image/jpeg","width":1080,"height":1350,"size":412880}}],"nextCursor":"med_6Hb2Lq8Wx3Nk7Rt4Vp9M"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/media/import":{"post":{"operationId":"mediaImport","summary":"Import media from a URL","description":"Downloads an image, video, audio file or PDF from a direct URL into the library. To save a video from a social post page, use POST /v1/downloads with `saveToLibrary: true`.","tags":["Media"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"med_1Pk6Vr3Nw9Lq4Ht7Xb2S","type":"image","url":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","thumbnailUrl":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","filename":"cold-brew.jpg","mimeType":"image/jpeg","size":412880,"width":1080,"height":1350,"durationSec":null,"altText":"Cold brew on a wooden table","source":"upload","sourceUrl":null,"folder":"Autumn launch","tags":null,"createdAt":"2026-11-02T14:20:00.000Z","mediaItem":{"type":"image","url":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","mediaId":"med_1Pk6Vr3Nw9Lq4Ht7Xb2S","altText":"Cold brew on a wooden table","thumbnail":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","mimeType":"image/jpeg","width":1080,"height":1350,"size":412880}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"folder":{"type":"string","maxLength":100},"altText":{"type":"string","maxLength":1000}},"required":["url"]}}}}}},"/v1/media/{id}":{"get":{"operationId":"mediaGet","summary":"Get a media item","tags":["Media"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","type":"video","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.mp4","thumbnailUrl":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.thumb.jpg","filename":"latte-art.mp4","mimeType":"video/mp4","size":18432077,"width":1920,"height":1080,"durationSec":24.5,"altText":null,"source":"upload","sourceUrl":null,"folder":"Autumn launch","tags":null,"createdAt":"2026-11-02T14:20:00.000Z","mediaItem":{"type":"video","url":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.mp4","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","thumbnail":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.thumb.jpg","mimeType":"video/mp4","width":1920,"height":1080,"durationSec":24.5,"size":18432077}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"mediaUpdate","summary":"Update alt text, folder or tags","tags":["Media"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"med_1Pk6Vr3Nw9Lq4Ht7Xb2S","type":"image","url":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","thumbnailUrl":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","filename":"cold-brew.jpg","mimeType":"image/jpeg","size":412880,"width":1080,"height":1350,"durationSec":null,"altText":"Iced cold brew in a glass on a wooden table","source":"upload","sourceUrl":null,"folder":"Autumn launch","tags":null,"createdAt":"2026-11-02T14:20:00.000Z","mediaItem":{"type":"image","url":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","mediaId":"med_1Pk6Vr3Nw9Lq4Ht7Xb2S","altText":"Cold brew on a wooden table","thumbnail":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","mimeType":"image/jpeg","width":1080,"height":1350,"size":412880}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"altText":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"folder":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"tags":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}}}}}}}},"delete":{"operationId":"mediaDelete","summary":"Delete a media item","tags":["Media"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"deleted":true,"id":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/media/{id}/transform":{"post":{"operationId":"mediaTransform","summary":"Transform media for a platform","description":"Creates a new library item: `vertical` (9:16 for Reels, TikTok, Shorts), `square`, `landscape`, `compress` (to `maxMb`), `thumbnail` (frame at `at` seconds), `audio` (extract m4a), `mute`, `gif` (from `start` to `end`), `trim`, `jpeg`. `fit` chooses crop or pad for aspect changes. Free.","tags":["Media"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"med_8Wd3Lp6Qx2Nk9Rv4Tb7F","type":"video","url":"https://cdn.example.com/files/med_8Wd3Lp6Qx2Nk9Rv4Tb7F.mp4","thumbnailUrl":"https://cdn.example.com/files/med_8Wd3Lp6Qx2Nk9Rv4Tb7F.thumb.jpg","filename":"latte-art-vertical.mp4","mimeType":"video/mp4","size":9874120,"width":1080,"height":1920,"durationSec":24.5,"altText":null,"source":"transform","sourceUrl":"https://cdn.example.com/files/med_5Tn8Wq2Lx6Hb9Rk3Pv7M.mp4","folder":null,"tags":null,"createdAt":"2026-11-02T14:20:00.000Z","mediaItem":{"type":"video","url":"https://cdn.example.com/files/med_8Wd3Lp6Qx2Nk9Rv4Tb7F.mp4","mediaId":"med_8Wd3Lp6Qx2Nk9Rv4Tb7F","thumbnail":"https://cdn.example.com/files/med_8Wd3Lp6Qx2Nk9Rv4Tb7F.thumb.jpg","mimeType":"video/mp4","width":1080,"height":1920,"durationSec":24.5,"size":9874120}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"string","enum":["vertical","square","landscape","compress","thumbnail","audio","mute","gif","trim","jpeg"]},"fit":{"type":"string","enum":["crop","pad"]},"start":{"type":"number","minimum":0},"end":{"type":"number","minimum":0},"at":{"type":"number","minimum":0},"maxMb":{"type":"number","minimum":1,"maximum":4000}},"required":["operation"]}}}}}},"/v1/designs":{"get":{"operationId":"designsList","summary":"List designs","description":"Designs made in the design editor, most recently edited first. `mediaId` finds the design an exported image came from. Free.","tags":["Media"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120}},{"name":"mediaId","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"limit","in":"query","required":false,"schema":{"default":40,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"designsCreate","summary":"Create a design","tags":["Media"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"document":{"type":"object","properties":{"version":{"default":1,"type":"number","const":1},"width":{"type":"integer","minimum":100,"maximum":4096},"height":{"type":"integer","minimum":100,"maximum":4096},"pages":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"background":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"solid"},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["kind","color"]},{"type":"object","properties":{"kind":{"type":"string","const":"linear"},"angle":{"type":"number","minimum":-360,"maximum":720},"stops":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"object","properties":{"offset":{"type":"number","minimum":0,"maximum":1},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["offset","color"]}}},"required":["kind","angle","stops"]},{"type":"object","properties":{"kind":{"type":"string","const":"radial"},"stops":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"object","properties":{"offset":{"type":"number","minimum":0,"maximum":1},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["offset","color"]}}},"required":["kind","stops"]},{"type":"object","properties":{"kind":{"type":"string","const":"image"},"src":{"type":"string","maxLength":2000},"mediaId":{"type":"string","maxLength":64},"fit":{"default":"cover","type":"string","enum":["cover","contain","fill"]},"overlay":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},{"type":"null"}]},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["kind","src"]}]},"layers":{"maxItems":300,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","maxLength":80},"x":{"type":"number","minimum":-20000,"maximum":20000},"y":{"type":"number","minimum":-20000,"maximum":20000},"width":{"type":"number","minimum":1,"maximum":20000},"height":{"type":"number","minimum":1,"maximum":20000},"rotation":{"default":0,"type":"number","minimum":-360,"maximum":360},"opacity":{"default":1,"type":"number","minimum":0,"maximum":1},"locked":{"type":"boolean"},"hidden":{"type":"boolean"},"type":{"type":"string","const":"text"},"text":{"type":"string","maxLength":5000},"fontFamily":{"type":"string","minLength":1,"maxLength":60},"fontSize":{"type":"number","minimum":4,"maximum":1000},"fontWeight":{"default":400,"type":"integer","minimum":100,"maximum":900},"italic":{"type":"boolean"},"uppercase":{"type":"boolean"},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},"align":{"default":"left","type":"string","enum":["left","center","right"]},"lineHeight":{"default":1.2,"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"default":0,"type":"number","minimum":-50,"maximum":200},"highlight":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},"padding":{"type":"number","minimum":0,"maximum":200},"radius":{"type":"number","minimum":0,"maximum":200}},"required":["color","padding","radius"]},{"type":"null"}]},"shadow":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},"blur":{"type":"number","minimum":0,"maximum":200},"x":{"type":"number","minimum":-200,"maximum":200},"y":{"type":"number","minimum":-200,"maximum":200}},"required":["color","blur","x","y"]},{"type":"null"}]}},"required":["id","x","y","width","height","type","text","fontFamily","fontSize","color"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","maxLength":80},"x":{"type":"number","minimum":-20000,"maximum":20000},"y":{"type":"number","minimum":-20000,"maximum":20000},"width":{"type":"number","minimum":1,"maximum":20000},"height":{"type":"number","minimum":1,"maximum":20000},"rotation":{"default":0,"type":"number","minimum":-360,"maximum":360},"opacity":{"default":1,"type":"number","minimum":0,"maximum":1},"locked":{"type":"boolean"},"hidden":{"type":"boolean"},"type":{"type":"string","const":"image"},"src":{"type":"string","maxLength":2000},"mediaId":{"type":"string","maxLength":64},"naturalWidth":{"type":"number","minimum":1,"maximum":100000},"naturalHeight":{"type":"number","minimum":1,"maximum":100000},"fit":{"default":"cover","type":"string","enum":["cover","contain","fill"]},"focusX":{"default":0.5,"type":"number","minimum":0,"maximum":1},"focusY":{"default":0.5,"type":"number","minimum":0,"maximum":1},"zoom":{"default":1,"type":"number","minimum":1,"maximum":5},"radius":{"default":0,"type":"number","minimum":0,"maximum":5000},"stroke":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},{"type":"null"}]},"strokeWidth":{"default":0,"type":"number","minimum":0,"maximum":200},"shadow":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},"blur":{"type":"number","minimum":0,"maximum":200},"x":{"type":"number","minimum":-200,"maximum":200},"y":{"type":"number","minimum":-200,"maximum":200}},"required":["color","blur","x","y"]},{"type":"null"}]}},"required":["id","x","y","width","height","type","src"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","maxLength":80},"x":{"type":"number","minimum":-20000,"maximum":20000},"y":{"type":"number","minimum":-20000,"maximum":20000},"width":{"type":"number","minimum":1,"maximum":20000},"height":{"type":"number","minimum":1,"maximum":20000},"rotation":{"default":0,"type":"number","minimum":-360,"maximum":360},"opacity":{"default":1,"type":"number","minimum":0,"maximum":1},"locked":{"type":"boolean"},"hidden":{"type":"boolean"},"type":{"type":"string","const":"shape"},"shape":{"type":"string","enum":["rect","ellipse","line"]},"fill":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"solid"},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["kind","color"]},{"type":"object","properties":{"kind":{"type":"string","const":"linear"},"angle":{"type":"number","minimum":-360,"maximum":720},"stops":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"object","properties":{"offset":{"type":"number","minimum":0,"maximum":1},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["offset","color"]}}},"required":["kind","angle","stops"]},{"type":"object","properties":{"kind":{"type":"string","const":"radial"},"stops":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"object","properties":{"offset":{"type":"number","minimum":0,"maximum":1},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["offset","color"]}}},"required":["kind","stops"]}]},{"type":"null"}]},"stroke":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},{"type":"null"}]},"strokeWidth":{"default":0,"type":"number","minimum":0,"maximum":500},"radius":{"default":0,"type":"number","minimum":0,"maximum":5000},"dashed":{"type":"boolean"},"shadow":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},"blur":{"type":"number","minimum":0,"maximum":200},"x":{"type":"number","minimum":-200,"maximum":200},"y":{"type":"number","minimum":-200,"maximum":200}},"required":["color","blur","x","y"]},{"type":"null"}]}},"required":["id","x","y","width","height","type","shape","fill"]}]}}},"required":["id","background","layers"]}}},"required":["width","height","pages"]}},"required":["name","document"]}}}}}},"/v1/designs/brand-kit":{"get":{"operationId":"designsBrandKitGet","summary":"Get the brand kit","description":"Colors, fonts and logo the design editor offers as quick picks.","tags":["Media"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"put":{"operationId":"designsBrandKitSet","summary":"Save the brand kit","tags":["Media"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"colors":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"fonts":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"logo":{"default":null,"anyOf":[{"type":"object","properties":{"mediaId":{"type":"string","maxLength":64},"url":{"type":"string","maxLength":2000},"width":{"type":"number","minimum":1},"height":{"type":"number","minimum":1}},"required":["url"]},{"type":"null"}]}}}}}}}},"/v1/designs/{id}":{"get":{"operationId":"designsGet","summary":"Get a design","description":"Includes the full design document.","tags":["Media"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"designsUpdate","summary":"Edit a design","tags":["Media"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"document":{"type":"object","properties":{"version":{"default":1,"type":"number","const":1},"width":{"type":"integer","minimum":100,"maximum":4096},"height":{"type":"integer","minimum":100,"maximum":4096},"pages":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"background":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"solid"},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["kind","color"]},{"type":"object","properties":{"kind":{"type":"string","const":"linear"},"angle":{"type":"number","minimum":-360,"maximum":720},"stops":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"object","properties":{"offset":{"type":"number","minimum":0,"maximum":1},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["offset","color"]}}},"required":["kind","angle","stops"]},{"type":"object","properties":{"kind":{"type":"string","const":"radial"},"stops":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"object","properties":{"offset":{"type":"number","minimum":0,"maximum":1},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["offset","color"]}}},"required":["kind","stops"]},{"type":"object","properties":{"kind":{"type":"string","const":"image"},"src":{"type":"string","maxLength":2000},"mediaId":{"type":"string","maxLength":64},"fit":{"default":"cover","type":"string","enum":["cover","contain","fill"]},"overlay":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},{"type":"null"}]},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["kind","src"]}]},"layers":{"maxItems":300,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","maxLength":80},"x":{"type":"number","minimum":-20000,"maximum":20000},"y":{"type":"number","minimum":-20000,"maximum":20000},"width":{"type":"number","minimum":1,"maximum":20000},"height":{"type":"number","minimum":1,"maximum":20000},"rotation":{"default":0,"type":"number","minimum":-360,"maximum":360},"opacity":{"default":1,"type":"number","minimum":0,"maximum":1},"locked":{"type":"boolean"},"hidden":{"type":"boolean"},"type":{"type":"string","const":"text"},"text":{"type":"string","maxLength":5000},"fontFamily":{"type":"string","minLength":1,"maxLength":60},"fontSize":{"type":"number","minimum":4,"maximum":1000},"fontWeight":{"default":400,"type":"integer","minimum":100,"maximum":900},"italic":{"type":"boolean"},"uppercase":{"type":"boolean"},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},"align":{"default":"left","type":"string","enum":["left","center","right"]},"lineHeight":{"default":1.2,"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"default":0,"type":"number","minimum":-50,"maximum":200},"highlight":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},"padding":{"type":"number","minimum":0,"maximum":200},"radius":{"type":"number","minimum":0,"maximum":200}},"required":["color","padding","radius"]},{"type":"null"}]},"shadow":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},"blur":{"type":"number","minimum":0,"maximum":200},"x":{"type":"number","minimum":-200,"maximum":200},"y":{"type":"number","minimum":-200,"maximum":200}},"required":["color","blur","x","y"]},{"type":"null"}]}},"required":["id","x","y","width","height","type","text","fontFamily","fontSize","color"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","maxLength":80},"x":{"type":"number","minimum":-20000,"maximum":20000},"y":{"type":"number","minimum":-20000,"maximum":20000},"width":{"type":"number","minimum":1,"maximum":20000},"height":{"type":"number","minimum":1,"maximum":20000},"rotation":{"default":0,"type":"number","minimum":-360,"maximum":360},"opacity":{"default":1,"type":"number","minimum":0,"maximum":1},"locked":{"type":"boolean"},"hidden":{"type":"boolean"},"type":{"type":"string","const":"image"},"src":{"type":"string","maxLength":2000},"mediaId":{"type":"string","maxLength":64},"naturalWidth":{"type":"number","minimum":1,"maximum":100000},"naturalHeight":{"type":"number","minimum":1,"maximum":100000},"fit":{"default":"cover","type":"string","enum":["cover","contain","fill"]},"focusX":{"default":0.5,"type":"number","minimum":0,"maximum":1},"focusY":{"default":0.5,"type":"number","minimum":0,"maximum":1},"zoom":{"default":1,"type":"number","minimum":1,"maximum":5},"radius":{"default":0,"type":"number","minimum":0,"maximum":5000},"stroke":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},{"type":"null"}]},"strokeWidth":{"default":0,"type":"number","minimum":0,"maximum":200},"shadow":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},"blur":{"type":"number","minimum":0,"maximum":200},"x":{"type":"number","minimum":-200,"maximum":200},"y":{"type":"number","minimum":-200,"maximum":200}},"required":["color","blur","x","y"]},{"type":"null"}]}},"required":["id","x","y","width","height","type","src"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","maxLength":80},"x":{"type":"number","minimum":-20000,"maximum":20000},"y":{"type":"number","minimum":-20000,"maximum":20000},"width":{"type":"number","minimum":1,"maximum":20000},"height":{"type":"number","minimum":1,"maximum":20000},"rotation":{"default":0,"type":"number","minimum":-360,"maximum":360},"opacity":{"default":1,"type":"number","minimum":0,"maximum":1},"locked":{"type":"boolean"},"hidden":{"type":"boolean"},"type":{"type":"string","const":"shape"},"shape":{"type":"string","enum":["rect","ellipse","line"]},"fill":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"solid"},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["kind","color"]},{"type":"object","properties":{"kind":{"type":"string","const":"linear"},"angle":{"type":"number","minimum":-360,"maximum":720},"stops":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"object","properties":{"offset":{"type":"number","minimum":0,"maximum":1},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["offset","color"]}}},"required":["kind","angle","stops"]},{"type":"object","properties":{"kind":{"type":"string","const":"radial"},"stops":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"object","properties":{"offset":{"type":"number","minimum":0,"maximum":1},"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"}},"required":["offset","color"]}}},"required":["kind","stops"]}]},{"type":"null"}]},"stroke":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},{"type":"null"}]},"strokeWidth":{"default":0,"type":"number","minimum":0,"maximum":500},"radius":{"default":0,"type":"number","minimum":0,"maximum":5000},"dashed":{"type":"boolean"},"shadow":{"anyOf":[{"type":"object","properties":{"color":{"type":"string","maxLength":40,"pattern":"^(#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|#[0-9a-fA-F]{8}|rgba?\\(\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*,\\s*\\d{1,3}\\s*(,\\s*(0|1|0?\\.\\d+)\\s*)?\\)|transparent)$"},"blur":{"type":"number","minimum":0,"maximum":200},"x":{"type":"number","minimum":-200,"maximum":200},"y":{"type":"number","minimum":-200,"maximum":200}},"required":["color","blur","x","y"]},{"type":"null"}]}},"required":["id","x","y","width","height","type","shape","fill"]}]}}},"required":["id","background","layers"]}}},"required":["width","height","pages"]}}}}}}},"delete":{"operationId":"designsDelete","summary":"Delete a design","description":"Images exported from the design stay in the media library.","tags":["Media"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/designs/{id}/export":{"post":{"operationId":"designsExport","summary":"Store rendered pages","description":"Multipart upload of the rendered pages (PNG or JPEG, field `file`, in page order). Each page becomes a media library image; the design remembers them so it can be reopened from the library. Returns the media items, ready for a post's `mediaItems`.","tags":["Media"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"folder":{"type":"string"},"altText":{"type":"string"}},"required":["file"]}}}}}},"/v1/designs/assets/{id}":{"get":{"operationId":"designsAsset","summary":"Image for the design canvas","description":"Serves a library image from the app's own origin so the editor can draw and export it.","tags":["Media"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/ai/write":{"post":{"operationId":"aiWrite","summary":"Write captions","description":"Writes a caption per platform from a short brief, in each platform's style and within its limits.\n\n**Credits:** 1","tags":["AI"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"captions":[{"platform":"instagram","text":"Pumpkin spice cold brew is back 🎃 Slow-steeped for 12 hours and finished with a little cinnamon. Which autumn drink should we bring back next?\n\n#coldbrew #autumnmenu #coffeelover"},{"platform":"x","text":"Pumpkin spice cold brew is back today. 12 hours of steeping, one very good autumn. #coldbrew"}],"engine":"ai","credits":1}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brief":{"type":"string","minLength":3,"maxLength":20000},"platforms":{"default":["x"],"type":"array","items":{"type":"string"}},"tone":{"type":"string","maxLength":100},"language":{"type":"string","maxLength":20},"hashtags":{"default":true,"type":"boolean"},"emojis":{"default":true,"type":"boolean"},"length":{"default":"medium","type":"string","enum":["short","medium","long"]},"variants":{"default":1,"type":"integer","minimum":1,"maximum":5}},"required":["brief"]}}}}}},"/v1/ai/rewrite":{"post":{"operationId":"aiRewrite","summary":"Rewrite text","description":"Shorten, expand, change tone (casual, formal, punchier), fix grammar, add a hook, simplify, add emojis, or follow a custom instruction.\n\n**Credits:** 1","tags":["AI"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"text":"Our new calendar view is live for everyone today.","engine":"ai","credits":1}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":30000},"action":{"type":"string","enum":["shorten","expand","casual","formal","fix","punchier","hook","simplify","emoji","custom"]},"instruction":{"type":"string","maxLength":1000},"platform":{"type":"string"}},"required":["text","action"]}}}}}},"/v1/ai/repurpose":{"post":{"operationId":"aiRepurpose","summary":"Adapt a post for each platform","description":"**Credits:** 1","tags":["AI"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"versions":[{"platform":"x","text":"Second cafe, open downtown today. Longer hours, same beans. See you there."},{"platform":"linkedin","text":"We opened our second cafe downtown today. Longer opening hours mean more space for early meetings and late study sessions. Thank you to everyone who made it happen."}],"engine":"ai","credits":1}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":30000},"platforms":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string"}},"tone":{"type":"string","maxLength":100}},"required":["text","platforms"]}}}}}},"/v1/ai/translate":{"post":{"operationId":"aiTranslate","summary":"Translate a post","description":"Translates into one or more languages, keeping hashtags, mentions, links and emojis.\n\n**Credits:** 1","tags":["AI"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"translations":[{"language":"es","text":"Nuestro nuevo calendario ya está disponible."},{"language":"de","text":"Unser neuer Kalender ist jetzt live."}],"engine":"ai","credits":1}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":60000},"languages":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":2,"maxLength":20}},"platform":{"type":"string"}},"required":["text","languages"]}}}}}},"/v1/ai/hashtags":{"post":{"operationId":"aiHashtags","summary":"Suggest hashtags","description":"**Credits:** 1","tags":["AI"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"hashtags":["#sourdough","#freshbread","#bakery","#morningcoffee","#cafelife"],"engine":"ai","credits":1}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":10000},"count":{"default":10,"type":"integer","minimum":1,"maximum":30},"platform":{"type":"string"}},"required":["text"]}}}}}},"/v1/ai/replies":{"post":{"operationId":"aiReplies","summary":"Suggest replies to a comment","description":"**Credits:** 1","tags":["AI"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"replies":["Yes, we ship to Canada. Delivery takes 5 to 7 business days.","We do. Shipping to Canada is a flat 9 dollars, and you can track the parcel all the way."],"engine":"ai","credits":1}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"type":"string","minLength":1,"maxLength":4000},"post":{"type":"string","maxLength":4000},"tone":{"type":"string","maxLength":100},"brandVoice":{"type":"string","maxLength":500},"count":{"default":3,"type":"integer","minimum":1,"maximum":5}},"required":["comment"]}}}}}},"/v1/ai/ideas":{"post":{"operationId":"aiIdeas","summary":"Brainstorm post ideas","description":"**Credits:** 1","tags":["AI"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"ideas":[{"title":"Meet the roaster","body":"A 30 second video of the person who roasts your beans, with one tip for brewing at home.","format":"short video"},{"title":"Autumn menu ranking","body":"Ask followers to rank the four new drinks, then share the results next week.","format":"carousel"}],"engine":"ai","credits":1}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","minLength":2,"maxLength":500},"count":{"default":8,"type":"integer","minimum":1,"maximum":20},"platform":{"type":"string"},"audience":{"type":"string","maxLength":200}},"required":["topic"]}}}}}},"/v1/ai/summarize":{"post":{"operationId":"aiSummarize","summary":"Summarize text","description":"Summary, key points, topics, takeaways and sentiment of any text. To summarize a video, use the platform's summarize operation.\n\n**Credits:** 2","tags":["AI"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"summary":"The video shows how the cafe makes cold brew: coarse beans, cold water and a 12 hour steep, then filtering twice.","keyPoints":["Use a coarse grind","Steep for 12 hours in the fridge","Filter twice for a clean taste"],"topics":["cold brew","coffee","recipe"],"takeaways":["Cold brew keeps for about a week in the fridge"],"sentiment":"positive","language":"en","chapters":[{"start":0,"title":"Beans and grind"},{"start":22,"title":"Steeping"}],"engine":"ai","credits":2}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":20,"maxLength":400000},"title":{"type":"string","maxLength":300},"prompt":{"type":"string","maxLength":2000},"language":{"type":"string"}},"required":["text"]}}}}}},"/v1/ai/alt-text":{"post":{"operationId":"aiAltText","summary":"Describe an image (alt text)","description":"**Credits:** 1","tags":["AI"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"altText":"A glass of iced cold brew with a cinnamon stick on a wooden table, next to a small pumpkin.","engine":"ai","credits":1}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"imageUrl":{"type":"string","format":"uri"}},"required":["imageUrl"]}}}}}},"/v1/ai/image":{"post":{"operationId":"aiImage","summary":"Generate an image","description":"Generates an image from a description and saves it to the media library.\n\n**Credits:** 5","tags":["AI"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"media":{"id":"med_9Qw4Lx2Nk7Rb3Vt8Mp6D","type":"image","url":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","thumbnailUrl":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","filename":"ai-latte.png","mimeType":"image/png","size":412880,"width":1080,"height":1350,"durationSec":null,"altText":null,"source":"ai","sourceUrl":null,"folder":"Autumn launch","tags":null,"createdAt":"2026-11-02T14:20:00.000Z","mediaItem":{"type":"image","url":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","mediaId":"med_1Pk6Vr3Nw9Lq4Ht7Xb2S","altText":"Cold brew on a wooden table","thumbnail":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","mimeType":"image/jpeg","width":1080,"height":1350,"size":412880}},"credits":5}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":3,"maxLength":4000},"size":{"default":"1024x1024","type":"string","enum":["1024x1024","1024x1536","1536x1024"]}},"required":["prompt"]}}}}}},"/v1/ai/status":{"get":{"operationId":"aiStatus","summary":"Which AI features are available","tags":["AI"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"text":"ai","images":true,"speechToText":true}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/clips":{"post":{"operationId":"clipsCreate","summary":"Clip a long video","description":"Turns a long video (a link or a media library video, up to 180 minutes) into 1 to 10 short vertical clips (1080x1920) with burned-in captions. The transcript comes from the video's captions, or speech to text. The best moments are picked by AI and cut at sentence boundaries. Each clip is saved to the media library; with `accountIds`, a draft post is created per clip in the next free slots.\nRuns as a background job: poll GET /v1/clips/{id} (free) or subscribe to the `clips.ready` webhook. Costs 2 credits per started minute of the source, charged when rendering starts and refunded if no clip comes out. One clipping job runs at a time per workspace.\n\n**Credits:** 2 per source minute","tags":["Clips"],"parameters":[],"responses":{"202":{"description":"Accepted: the work continues in the background","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"clj_4Rp8Wn2Kx7Lb5Qt9Vm3D","status":"queued","progress":0,"source":{"type":"url","url":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","mediaId":null,"title":"How we grew a cafe to 40k followers","thumbnailUrl":"https://cdn.example.com/thumbs/xm3q.jpg","durationSec":1834},"options":{"count":3,"lengthSec":45,"layout":"crop","captions":true,"captionStyle":"bold","accountIds":[],"aiCaption":true},"transcriptSource":null,"language":"en","engine":null,"warnings":[],"creditsCost":0,"billed":false,"refunded":false,"clipCount":0,"postIds":[],"error":null,"errorCode":null,"createdAt":"2026-11-24T09:12:03.000Z","startedAt":null,"finishedAt":null,"statusUrl":"/v1/clips/clj_4Rp8Wn2Kx7Lb5Qt9Vm3D","clips":[]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"description":"YouTube or any other video link yt-dlp supports","type":"string","minLength":4},"mediaId":{"description":"A video from the media library instead of a link","type":"string"},"count":{"default":3,"description":"Number of clips, 1 to 10","type":"integer","minimum":1,"maximum":10},"lengthSec":{"default":45,"description":"Target clip length in seconds, 15 to 90","type":"integer","minimum":15,"maximum":90},"layout":{"default":"crop","description":"crop: fill 9:16 from the center. blur: fit the whole frame on a blurred background","type":"string","enum":["crop","blur"]},"captions":{"default":true,"description":"Burn in captions","type":"boolean"},"captionStyle":{"default":"bold","description":"bold: big uppercase words, yellow highlight. clean: sentence case on a dark box. pop: two words at a time with a coral pop","type":"string","enum":["bold","clean","pop"]},"language":{"description":"Spoken language (e.g. en, vi). Picks the caption track and the language of titles","type":"string","maxLength":10},"accountIds":{"description":"Channels to create draft posts for, one per clip, planned in their next free slots","maxItems":20,"type":"array","items":{"type":"string"}},"aiCaption":{"default":false,"description":"Write a post caption for each clip","type":"boolean"},"rightsConfirmed":{"description":"Required with url: you own the video or have permission to reuse it","type":"boolean"}}}}}}},"get":{"operationId":"clipsList","summary":"List clipping jobs","tags":["Clips"],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"items":[{"id":"clj_4Rp8Wn2Kx7Lb5Qt9Vm3D","status":"ready","progress":100,"source":{"type":"url","url":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","mediaId":null,"title":"How we grew a cafe to 40k followers","thumbnailUrl":"https://cdn.example.com/thumbs/xm3q.jpg","durationSec":1834},"options":{"count":3,"lengthSec":45,"layout":"crop","captions":true,"captionStyle":"bold","accountIds":[],"aiCaption":true},"transcriptSource":"captions","language":"en","engine":"ai","warnings":[],"creditsCost":62,"billed":true,"refunded":false,"clipCount":3,"postIds":[],"error":null,"errorCode":null,"createdAt":"2026-11-24T09:12:03.000Z","startedAt":"2026-11-24T09:12:04.000Z","finishedAt":"2026-11-24T09:16:41.000Z","statusUrl":"/v1/clips/clj_4Rp8Wn2Kx7Lb5Qt9Vm3D"}],"nextCursor":null}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/clips/{id}":{"get":{"operationId":"clipsGet","summary":"Get a clipping job","description":"Status (queued, downloading, transcribing, picking, rendering, ready, failed, cancelled), progress and the clips with their media items. Free. `waitSeconds` (up to 25) holds the request until the status or progress changes.","tags":["Clips"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"waitSeconds","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":25}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"clj_4Rp8Wn2Kx7Lb5Qt9Vm3D","status":"ready","progress":100,"source":{"type":"url","url":"https://www.youtube.com/watch?v=Xm3Qe7Lp2Vb","mediaId":null,"title":"How we grew a cafe to 40k followers","thumbnailUrl":"https://cdn.example.com/thumbs/xm3q.jpg","durationSec":1834},"options":{"count":3,"lengthSec":45,"layout":"crop","captions":true,"captionStyle":"bold","accountIds":[],"aiCaption":true},"transcriptSource":"captions","language":"en","engine":"ai","warnings":[],"creditsCost":62,"billed":true,"refunded":false,"clipCount":3,"postIds":[],"error":null,"errorCode":null,"createdAt":"2026-11-24T09:12:03.000Z","startedAt":"2026-11-24T09:12:04.000Z","finishedAt":"2026-11-24T09:16:41.000Z","statusUrl":"/v1/clips/clj_4Rp8Wn2Kx7Lb5Qt9Vm3D","clips":[{"id":"clip_8Nw3Lq5Vx2Rb7Tc4Mh9P","position":0,"title":"The one menu change that doubled our mornings","caption":"We cut the menu in half and mornings doubled. Here is why it worked.","start":412.4,"end":459.1,"durationSec":46.7,"hookScore":88,"reason":"Opens with a surprising result and explains it in one breath.","text":"We cut the menu in half...","mediaId":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","media":{"id":"med_5Tn8Wq2Lx6Hb9Rk3Pv7M","type":"video","url":"https://cdn.example.com/files/media/clip-1.mp4","thumbnailUrl":"https://cdn.example.com/files/media/clip-1.thumb.jpg","width":1080,"height":1920,"durationSec":46.7},"postIds":[]}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/clips/{id}/cancel":{"post":{"operationId":"clipsCancel","summary":"Cancel a clipping job","description":"Stops a queued or running job. Clips already saved stay in the media library. A job cancelled before any clip was made is not charged.","tags":["Clips"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/clips/{id}/items/{clipId}":{"patch":{"operationId":"clipsUpdate","summary":"Edit a clip","description":"Changes the title or post caption of one clip. The video is not rendered again.","tags":["Clips"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"clipId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"caption":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]}}}}}}}},"/v1/clips/{id}/posts":{"post":{"operationId":"clipsPost","summary":"Post clips to channels","description":"Creates one post per clip for the given accounts. `mode: queue` schedules each clip in the next free queue slot of every account; `mode: draft` saves drafts planned in the next free slots. Optional `clipIds` limits it to some clips. Publishing costs the usual credits when the posts go out.","tags":["Clips"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountIds":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string"}},"mode":{"default":"queue","type":"string","enum":["queue","draft"]},"clipIds":{"type":"array","items":{"type":"string"}}},"required":["accountIds"]}}}}}},"/v1/inbox":{"get":{"operationId":"inboxList","summary":"List comments and mentions","description":"All comments across channels, newest first. Filter by status (open, replied, archived), account, platform, sentiment, text or post.","tags":["Inbox"],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["comment","mention","review"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"accountId","in":"query","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string"}},{"name":"sentiment","in":"query","required":false,"schema":{"type":"string","enum":["positive","neutral","negative"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"targetId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"items":[{"id":"cmt_8Nq3Lx7Wk2Rb9Vt4Mp6J","kind":"comment","platform":"x","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","account":{"username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"platformItemId":"1853931122334455667","parentPlatformId":null,"platformPostId":"1853920467781234688","targetId":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","postPreview":"Our autumn menu is here. Pumpkin spice cold brew is back from today.","author":{"name":"Alex Doe","handle":"alexdoe","avatar":"https://cdn.example.com/avatars/alexdoe.jpg"},"text":"Is the cold brew dairy free?","sentiment":"neutral","status":"open","hidden":false,"likes":3,"permalink":"https://x.com/alexdoe/status/1853931122334455667","repliedAt":null,"replyText":null,"receivedAt":"2026-11-03T09:41:00.000Z"}],"nextCursor":"cmt_2Lq7Wn4Rx9Kb3Vt8Mp5D"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/inbox/stats":{"get":{"operationId":"inboxStats","summary":"Inbox stats and comment score","tags":["Inbox"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"last30Days":{"total":312,"open":41,"replied":248,"answeredWithin24h":221},"commentScore":82,"sentiment":{"positive":190,"neutral":98,"negative":24},"openByPlatform":{"instagram":29,"x":12},"unreadMessages":3}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/inbox/sync":{"post":{"operationId":"inboxSync","summary":"Fetch new comments and messages now","description":"The inbox also refreshes automatically every 10 minutes.","tags":["Inbox"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"}}}}}}}},"/v1/inbox/{id}/reply":{"post":{"operationId":"inboxReply","summary":"Reply to a comment","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"replied":true,"replyId":"1853934455667788990","url":"https://x.com/examplecafe/status/1853934455667788990"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":5000}},"required":["text"]}}}}}},"/v1/inbox/{id}":{"patch":{"operationId":"inboxUpdate","summary":"Mark, archive or hide a comment","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","replied","archived"]},"hidden":{"type":"boolean"}}}}}}},"delete":{"operationId":"inboxDelete","summary":"Delete a comment on the platform","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"get":{"operationId":"inboxGet","summary":"Get a comment with its post","description":"One inbox item with the post it was left on (text, first image, link) and the other comments on the same post. Free.","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"item":{"id":"cmt_8Nq3Lx7Wk2Rb9Vt4Mp6J","kind":"comment","platform":"x","accountId":"acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","account":{"username":"examplecafe","displayName":"Example Cafe","avatarUrl":"https://cdn.example.com/avatars/examplecafe.jpg"},"platformItemId":"1853931122334455667","parentPlatformId":null,"platformPostId":"1853920467781234688","targetId":"tgt_6Mv3Qx8Lk2Wn5Rb9Tp4H","postPreview":"Our autumn menu is here. Pumpkin spice cold brew is back from today.","author":{"name":"Alex Doe","handle":"alexdoe","avatar":"https://cdn.example.com/avatars/alexdoe.jpg"},"text":"Is the cold brew dairy free?","sentiment":"neutral","status":"open","hidden":false,"likes":3,"permalink":"https://x.com/alexdoe/status/1853931122334455667","repliedAt":null,"replyText":null,"receivedAt":"2026-11-03T09:41:00.000Z"},"post":{"postId":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","content":"Our autumn menu is here.","url":"https://x.com/examplecafe/status/1853920467781234688","publishedAt":"2026-11-03T09:00:04.000Z","thumbnail":"https://cdn.example.com/files/med_1Pk6Vr3Nw9Lq4Ht7Xb2S.jpg","mediaCount":1},"thread":[]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/inbox/{id}/idea":{"post":{"operationId":"inboxToIdea","summary":"Turn a comment into a post idea","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/conversations":{"get":{"operationId":"conversationsList","summary":"List direct message conversations","tags":["Inbox"],"parameters":[{"name":"accountId","in":"query","required":false,"schema":{"type":"string"}},{"name":"unread","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/conversations/{id}":{"get":{"operationId":"conversationsGet","summary":"Get messages of a conversation","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/conversations/{id}/messages":{"post":{"operationId":"conversationsSend","summary":"Send a direct message","description":"Platforms limit when you may reply (for example Instagram and Facebook within 24 hours of the person's last message).","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":5000}},"required":["text"]}}}}}},"/v1/saved-replies":{"get":{"operationId":"savedRepliesList","summary":"List saved replies","tags":["Inbox"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"savedRepliesCreate","summary":"Create a saved reply","tags":["Inbox"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["title","body"]}}}}}},"/v1/saved-replies/{id}":{"delete":{"operationId":"savedRepliesDelete","summary":"Delete a saved reply","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"savedRepliesUpdate","summary":"Update a saved reply","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"body":{"type":"string","minLength":1,"maxLength":5000}}}}}}}},"/v1/comment-automations":{"get":{"operationId":"commentAutomationsList","summary":"List comment automations","description":"Rules that send a DM and/or a public reply when a comment contains a keyword.","tags":["Inbox"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"commentAutomationsCreate","summary":"Create a comment automation","tags":["Inbox"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":120},"platformPostId":{"description":"Only this post; omit for every post of the account","type":["string","null"]},"keywords":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"matchMode":{"default":"contains","type":"string","enum":["contains","exact"]},"dmMessage":{"description":"Use {name} or {handle} to personalize","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"publicReply":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"active":{"default":true,"type":"boolean"}},"required":["accountId","name","keywords"]}}}}}},"/v1/comment-automations/{id}":{"patch":{"operationId":"commentAutomationsUpdate","summary":"Update a comment automation","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"platformPostId":{"description":"Only this post; omit for every post of the account","type":["string","null"]},"keywords":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"matchMode":{"type":"string","enum":["contains","exact"]},"dmMessage":{"description":"Use {name} or {handle} to personalize","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"publicReply":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"active":{"type":"boolean"}}}}}}},"delete":{"operationId":"commentAutomationsDelete","summary":"Delete a comment automation","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/comment-automations/{id}/logs":{"get":{"operationId":"commentAutomationsLogs","summary":"Comment automation activity","tags":["Inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/automations":{"get":{"operationId":"automationsList","summary":"List automations","description":"Workflows that run steps when a trigger fires. Step types: scrape, download, ai_rewrite, ai_caption, translate, summarize, filter, create_post, create_idea, webhook, notify. Step configs can use {{trigger.*}} and {{steps.<id>.*}} placeholders.","tags":["Automations"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"auto_7Kx2Nq9Lw4Rb6Vt3Mp8F","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","name":"Share new blog posts","description":"When the blog feed has a new article, write a caption and save a draft for X and LinkedIn.","trigger":{"type":"rss","feedId":"feed_2Lq7Wn4Rx9Kb3Vt8Mp5D"},"steps":[{"id":"caption","type":"ai_caption","config":{"brief":"Share {{trigger.item.title}} in one friendly sentence. Link: {{trigger.item.link}}","platforms":["x","linkedin"]}},{"id":"draft","type":"create_post","config":{"accountIds":["acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","acc_7Fb2Ns5Kd8Qw3Jy6Lp4C"],"content":"{{steps.caption.captions.0.text}}","mode":"draft"}}],"active":true,"webhookToken":null,"nextRunAt":null,"lastRunAt":"2026-11-02T07:30:00.000Z","runCount":12,"createdBy":"usr_Jx7Lq2Vb9Nw4Rt6Ym3Pd","createdAt":"2026-10-12T09:00:00.000Z","updatedAt":"2026-11-02T07:30:00.000Z","webhookUrl":null}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"automationsCreate","summary":"Create an automation","description":"Example: every new article of an RSS feed becomes a scheduled post: trigger {type:\"rss\", feedId}, steps [{id:\"cap\", type:\"ai_caption\", config:{brief:\"{{trigger.item.title}} {{trigger.item.link}}\", platforms:[\"x\",\"linkedin\"]}}, {id:\"post\", type:\"create_post\", config:{accountIds:[...], content:\"{{steps.cap.captions[0].text}}\", mode:\"queue\"}}].","tags":["Automations"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"auto_7Kx2Nq9Lw4Rb6Vt3Mp8F","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","name":"Share new blog posts","description":"When the blog feed has a new article, write a caption and save a draft for X and LinkedIn.","trigger":{"type":"rss","feedId":"feed_2Lq7Wn4Rx9Kb3Vt8Mp5D"},"steps":[{"id":"caption","type":"ai_caption","config":{"brief":"Share {{trigger.item.title}} in one friendly sentence. Link: {{trigger.item.link}}","platforms":["x","linkedin"]}},{"id":"draft","type":"create_post","config":{"accountIds":["acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","acc_7Fb2Ns5Kd8Qw3Jy6Lp4C"],"content":"{{steps.caption.captions.0.text}}","mode":"draft"}}],"active":true,"webhookToken":null,"nextRunAt":null,"lastRunAt":"2026-11-02T07:30:00.000Z","runCount":12,"createdBy":"usr_Jx7Lq2Vb9Nw4Rt6Ym3Pd","createdAt":"2026-10-12T09:00:00.000Z","updatedAt":"2026-11-02T07:30:00.000Z","webhookUrl":null}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"trigger":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"schedule"},"everyMinutes":{"type":"integer","minimum":5,"maximum":43200},"cron":{"description":"\"HH:MM\" daily, or \"HH:MM 1,3,5\" on weekdays (0 = Sunday)","type":"string","pattern":"^\\d{1,2}:\\d{2}(\\s+[0-6,]+)?$"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"rss"},"feedId":{"type":"string"}},"required":["type","feedId"]},{"type":"object","properties":{"type":{"type":"string","const":"monitor"},"monitorId":{"type":"string"}},"required":["type","monitorId"]},{"type":"object","properties":{"type":{"type":"string","const":"webhook"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"post_published"},"platforms":{"type":"array","items":{"type":"string"}}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"new_comment"},"accountId":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}}},"required":["type"]}]},"steps":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[\\w-]+$"},"type":{"type":"string","enum":["scrape","download","ai_rewrite","ai_caption","translate","summarize","filter","create_post","create_idea","webhook","notify"]},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","type"]}},"active":{"default":true,"type":"boolean"}},"required":["name","trigger","steps"]}}}}}},"/v1/automations/{id}":{"get":{"operationId":"automationsGet","summary":"Get an automation","tags":["Automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"auto_7Kx2Nq9Lw4Rb6Vt3Mp8F","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","name":"Share new blog posts","description":"When the blog feed has a new article, write a caption and save a draft for X and LinkedIn.","trigger":{"type":"rss","feedId":"feed_2Lq7Wn4Rx9Kb3Vt8Mp5D"},"steps":[{"id":"caption","type":"ai_caption","config":{"brief":"Share {{trigger.item.title}} in one friendly sentence. Link: {{trigger.item.link}}","platforms":["x","linkedin"]}},{"id":"draft","type":"create_post","config":{"accountIds":["acc_3Hk9Pq2Wx7Lm4Vn8Rt1Z","acc_7Fb2Ns5Kd8Qw3Jy6Lp4C"],"content":"{{steps.caption.captions.0.text}}","mode":"draft"}}],"active":true,"webhookToken":null,"nextRunAt":null,"lastRunAt":"2026-11-02T07:30:00.000Z","runCount":12,"createdBy":"usr_Jx7Lq2Vb9Nw4Rt6Ym3Pd","createdAt":"2026-10-12T09:00:00.000Z","updatedAt":"2026-11-02T07:30:00.000Z","webhookUrl":null}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"automationsUpdate","summary":"Update an automation","tags":["Automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"trigger":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"schedule"},"everyMinutes":{"type":"integer","minimum":5,"maximum":43200},"cron":{"description":"\"HH:MM\" daily, or \"HH:MM 1,3,5\" on weekdays (0 = Sunday)","type":"string","pattern":"^\\d{1,2}:\\d{2}(\\s+[0-6,]+)?$"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"rss"},"feedId":{"type":"string"}},"required":["type","feedId"]},{"type":"object","properties":{"type":{"type":"string","const":"monitor"},"monitorId":{"type":"string"}},"required":["type","monitorId"]},{"type":"object","properties":{"type":{"type":"string","const":"webhook"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"post_published"},"platforms":{"type":"array","items":{"type":"string"}}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"new_comment"},"accountId":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}}},"required":["type"]}]},"steps":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[\\w-]+$"},"type":{"type":"string","enum":["scrape","download","ai_rewrite","ai_caption","translate","summarize","filter","create_post","create_idea","webhook","notify"]},"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","type"]}},"active":{"type":"boolean"}}}}}}},"delete":{"operationId":"automationsDelete","summary":"Delete an automation","tags":["Automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/automations/{id}/run":{"post":{"operationId":"automationsRun","summary":"Run an automation now","description":"Runs the steps right away with an optional test trigger payload and returns each step's output.","tags":["Automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"202":{"description":"Accepted: the work continues in the background","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trigger":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"background":{"default":false,"type":"boolean"}}}}}}}},"/v1/automations/{id}/runs":{"get":{"operationId":"automationsRuns","summary":"Run history","tags":["Automations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"run_3Kq8Lx2Wn7Rb4Vt9Mp6C","automationId":"auto_7Kx2Nq9Lw4Rb6Vt3Mp8F","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","status":"succeeded","trigger":{"type":"rss","feedId":"feed_2Lq7Wn4Rx9Kb3Vt8Mp5D","item":{"title":"How we pick our beans","link":"https://example.com/blog/beans","summary":"A visit to our roaster.","imageUrl":null}},"steps":[{"id":"caption","type":"ai_caption","status":"succeeded","output":{"engine":"ai","captions":[{"platform":"x","text":"How we pick our beans, from farm to cup: https://example.com/blog/beans"}]}},{"id":"draft","type":"create_post","status":"succeeded","output":{"postId":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","status":"draft"}}],"error":null,"startedAt":"2026-11-02T07:30:00.000Z","finishedAt":"2026-11-02T07:30:04.000Z"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/monitors":{"get":{"operationId":"monitorsList","summary":"List monitors","description":"Monitors watch competitor accounts, keywords or posts, keep their numbers over time and alert you about new content. Each check costs 1 credit.","tags":["Monitors"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"mon_4Vb8Lq2Nx6Rk9Wt3Mp7H","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","name":"Competitor channel","platform":"youtube","kind":"profile","target":"https://www.youtube.com/@examplecompetitor","intervalMinutes":360,"active":true,"notify":{"inApp":true,"email":false},"lastCheckedAt":"2026-11-03T06:00:00.000Z","nextCheckAt":"2026-11-03T12:00:00.000Z","lastError":null,"latest":{"profile":{"name":"Example Competitor","handle":"@examplecompetitor","url":"https://www.youtube.com/@examplecompetitor","subscribers":48200,"verified":false},"metrics":{"followers":48200,"subscribers":48200},"items":[{"id":"a1B2c3D4e5F","url":"https://www.youtube.com/watch?v=a1B2c3D4e5F","title":"Five autumn drinks to try","thumbnail":"https://i.ytimg.com/vi/a1B2c3D4e5F/hqdefault.jpg","durationSec":312,"publishedAt":"2026-11-02T16:00:00.000Z","views":12840}]},"createdAt":"2026-10-15T08:00:00.000Z"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"monitorsCreate","summary":"Create a monitor","description":"The first check runs right away and records what exists; alerts start from the next check.","tags":["Monitors"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"mon_4Vb8Lq2Nx6Rk9Wt3Mp7H","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","name":"Competitor channel","platform":"youtube","kind":"profile","target":"https://www.youtube.com/@examplecompetitor","intervalMinutes":360,"active":true,"notify":{"inApp":true,"email":false},"lastCheckedAt":"2026-11-03T06:00:00.000Z","nextCheckAt":"2026-11-03T12:00:00.000Z","lastError":null,"latest":{"profile":{"name":"Example Competitor","handle":"@examplecompetitor","url":"https://www.youtube.com/@examplecompetitor","subscribers":48200,"verified":false},"metrics":{"followers":48200,"subscribers":48200},"items":[{"id":"a1B2c3D4e5F","url":"https://www.youtube.com/watch?v=a1B2c3D4e5F","title":"Five autumn drinks to try","thumbnail":"https://i.ytimg.com/vi/a1B2c3D4e5F/hqdefault.jpg","durationSec":312,"publishedAt":"2026-11-02T16:00:00.000Z","views":12840}]},"createdAt":"2026-10-15T08:00:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"platform":{"type":"string","enum":["youtube","tiktok","instagram","facebook","x","linkedin","reddit","bluesky","threads","pinterest","mastodon","telegram","web"]},"kind":{"type":"string","enum":["profile","keyword","post"],"description":"profile: a competitor account; keyword: search results; post: one post's numbers over time"},"target":{"type":"string","minLength":1,"maxLength":500,"description":"Profile URL or @handle, search keyword, or post URL"},"intervalMinutes":{"default":360,"type":"integer","minimum":15,"maximum":10080},"notify":{"default":{"inApp":true},"type":"object","properties":{"email":{"type":"boolean"},"webhook":{"type":"boolean"},"inApp":{"type":"boolean"}}},"active":{"default":true,"type":"boolean"}},"required":["name","platform","kind","target"]}}}}}},"/v1/monitors/support":{"get":{"operationId":"monitorsSupport","summary":"Which monitor kinds each platform supports","tags":["Monitors"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]}},"/v1/monitors/{id}":{"get":{"operationId":"monitorsGet","summary":"Get a monitor with its history","tags":["Monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"mon_4Vb8Lq2Nx6Rk9Wt3Mp7H","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","name":"Competitor channel","platform":"youtube","kind":"profile","target":"https://www.youtube.com/@examplecompetitor","intervalMinutes":360,"active":true,"notify":{"inApp":true,"email":false},"lastCheckedAt":"2026-11-03T06:00:00.000Z","nextCheckAt":"2026-11-03T12:00:00.000Z","lastError":null,"latest":{"profile":{"name":"Example Competitor","handle":"@examplecompetitor","url":"https://www.youtube.com/@examplecompetitor","subscribers":48200,"verified":false},"metrics":{"followers":48200,"subscribers":48200},"items":[{"id":"a1B2c3D4e5F","url":"https://www.youtube.com/watch?v=a1B2c3D4e5F","title":"Five autumn drinks to try","thumbnail":"https://i.ytimg.com/vi/a1B2c3D4e5F/hqdefault.jpg","durationSec":312,"publishedAt":"2026-11-02T16:00:00.000Z","views":12840}]},"createdAt":"2026-10-15T08:00:00.000Z","snapshots":[{"id":"snap_6Wq2Lx8Nk3Rb7Vt4Mp9D","monitorId":"mon_4Vb8Lq2Nx6Rk9Wt3Mp7H","capturedAt":"2026-11-03T06:00:00.000Z","metrics":{"followers":48200,"subscribers":48200},"newItems":[{"id":"a1B2c3D4e5F","url":"https://www.youtube.com/watch?v=a1B2c3D4e5F","title":"Five autumn drinks to try","thumbnail":"https://i.ytimg.com/vi/a1B2c3D4e5F/hqdefault.jpg","durationSec":312,"publishedAt":"2026-11-02T16:00:00.000Z","views":12840}]}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"monitorsUpdate","summary":"Update a monitor","tags":["Monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"intervalMinutes":{"type":"integer","minimum":15,"maximum":10080},"notify":{"type":"object","properties":{"email":{"type":"boolean"},"webhook":{"type":"boolean"},"inApp":{"type":"boolean"}}},"active":{"type":"boolean"}}}}}}},"delete":{"operationId":"monitorsDelete","summary":"Delete a monitor","tags":["Monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/monitors/{id}/check":{"post":{"operationId":"monitorsCheck","summary":"Check a monitor now","description":"**Credits:** 1","tags":["Monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/api-keys":{"get":{"operationId":"keysList","summary":"List API keys","description":"Dashboard session only; not available to API keys.","tags":["Developers"],"parameters":[{"name":"includeApps","in":"query","required":false,"schema":{"description":"Also list the hidden keys of connected OAuth apps (for log filters)","type":"string","enum":["true","false"]},"description":"Also list the hidden keys of connected OAuth apps (for log filters)"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","name":"Claude agent","prefix":"kea_live_4fQ2a","scopes":["posts:read","posts:write","media:write","scrape"],"postPolicy":"approval","allowedPlatforms":["x","linkedin"],"creditLimit":2000,"creditsUsed":312,"kind":"agent","lastUsedAt":"2026-11-03T10:12:00.000Z","expiresAt":"2027-02-01T00:00:00.000Z","revoked":false,"createdAt":"2026-11-01T09:00:00.000Z"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"keysCreate","summary":"Create an API key","description":"The full key is shown once in `key`. Store it in a secret manager.\n\nDashboard session only; not available to API keys.","tags":["Developers"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","name":"Claude agent","prefix":"kea_live_4fQ2a","scopes":["posts:read","posts:write","media:write","scrape"],"postPolicy":"approval","allowedPlatforms":["x","linkedin"],"creditLimit":2000,"creditsUsed":0,"kind":"agent","lastUsedAt":null,"expiresAt":"2027-02-01T00:00:00.000Z","revoked":false,"createdAt":"2026-11-01T09:00:00.000Z","key":"kea_live_4fQ2aB7cD9eF1gH3jK5mN8pR2sT6vW0xY4z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"default":[],"description":"Empty means full access","type":"array","items":{"type":"string","enum":["posts:read","posts:write","accounts:read","accounts:write","media:write","scrape","download","analytics:read","inbox:read","inbox:write","ai","automations","webhooks","links"]}},"postPolicy":{"default":"auto","description":"auto publishes, approval sends posts to the approval queue, draft only creates drafts","type":"string","enum":["auto","approval","draft"]},"allowedPlatforms":{"anyOf":[{"type":"array","items":{"type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]}},{"type":"null"}]},"creditLimit":{"description":"Lifetime credit budget for this key","anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"expiresInDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":3650},{"type":"null"}]},"kind":{"default":"standard","type":"string","enum":["standard","agent"]}},"required":["name"]}}}}}},"/v1/api-keys/{id}":{"patch":{"operationId":"keysUpdate","summary":"Update an API key's policy","description":"Dashboard session only; not available to API keys.","tags":["Developers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","name":"Claude agent","prefix":"kea_live_4fQ2a","scopes":["posts:read","posts:write","media:write","scrape"],"postPolicy":"draft","allowedPlatforms":["x","linkedin"],"creditLimit":2000,"creditsUsed":312,"kind":"agent","lastUsedAt":"2026-11-03T10:12:00.000Z","expiresAt":"2027-02-01T00:00:00.000Z","revoked":false,"createdAt":"2026-11-01T09:00:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"type":"array","items":{"type":"string","enum":["posts:read","posts:write","accounts:read","accounts:write","media:write","scrape","download","analytics:read","inbox:read","inbox:write","ai","automations","webhooks","links"]}},"postPolicy":{"type":"string","enum":["auto","approval","draft"]},"allowedPlatforms":{"anyOf":[{"type":"array","items":{"type":"string","enum":["x","instagram","facebook","threads","tiktok","youtube","linkedin","pinterest","bluesky","mastodon","googlebusiness","reddit","telegram","discord","slack","tumblr","devto","hashnode","wordpress","ghost","medium","lemmy","nostr","listmonk","farcaster","twitch","kick","dribbble","webhook","sandbox"]}},{"type":"null"}]},"creditLimit":{"description":"Lifetime credit budget for this key","anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]}}}}}}},"delete":{"operationId":"keysRevoke","summary":"Revoke an API key","description":"Dashboard session only; not available to API keys.","tags":["Developers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"revoked":true,"id":"key_8sLw2Qn5Vx1Rb7Tc4Mh9"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/api-keys/{id}/rotate":{"post":{"operationId":"keysRotate","summary":"Rotate an API key","description":"Issues a new secret with the same settings and revokes the old one immediately.\n\nDashboard session only; not available to API keys.","tags":["Developers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","name":"Claude agent","prefix":"kea_live_7Hk3m","scopes":["posts:read","posts:write","media:write","scrape"],"postPolicy":"approval","allowedPlatforms":["x","linkedin"],"creditLimit":2000,"creditsUsed":312,"kind":"agent","lastUsedAt":"2026-11-03T10:12:00.000Z","expiresAt":"2027-02-01T00:00:00.000Z","revoked":false,"createdAt":"2026-11-01T09:00:00.000Z","key":"kea_live_7Hk3mQ9wE2rT5yU8iO1pA4sD6fG0hJ3kL7z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/webhooks/events":{"get":{"operationId":"webhooksEvents","summary":"Event types","tags":["Webhooks"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":["post.scheduled","post.published","post.partial","post.failed","post.approval_requested","account.disconnected","job.completed","credits.low"]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]}},"/v1/webhooks":{"get":{"operationId":"webhooksList","summary":"List webhook endpoints","tags":["Webhooks"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"whk_5Lq8Vn2Rx7Kb3Wt9Pm4D","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","url":"https://example.com/hooks/postkea","description":"Publishing alerts","secret":"whsec_4fQ2••••••••","events":["post.published","post.failed"],"profileId":null,"active":true,"failureCount":0,"createdAt":"2026-11-01T09:05:00.000Z"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"webhooksCreate","summary":"Add a webhook endpoint","description":"Events are POSTed as JSON with headers X-Postkea-Event-Id, -Event-Type, -Timestamp and -Signature (sha256= HMAC-SHA256 of `timestamp.rawBody` with the signing secret). Return 2xx within 10 seconds. Failed deliveries are retried after 1 min, 5 min, 30 min and 2 h. The secret is shown in full only in this response.","tags":["Webhooks"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"whk_5Lq8Vn2Rx7Kb3Wt9Pm4D","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","url":"https://example.com/hooks/postkea","description":"Publishing alerts","secret":"whsec_4fQ2aB7cD9eF1gH3jK5mN8pR","events":["post.published","post.failed"],"profileId":null,"active":true,"failureCount":0,"createdAt":"2026-11-01T09:05:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"description":{"type":"string","maxLength":200},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["post.scheduled","post.published","post.partial","post.failed","post.approval_requested","post.approved","post.rejected","account.connected","account.disconnected","account.reauthorization_required","job.completed","job.failed","clips.ready","clips.failed","comment.received","comments.negative_wave","message.received","monitor.new_items","automation.run_failed","plug.executed","credits.low","*"]}},"profileId":{"description":"Only events about accounts in this profile","type":["string","null"]},"active":{"default":true,"type":"boolean"}},"required":["url","events"]}}}}}},"/v1/webhooks/{id}":{"patch":{"operationId":"webhooksUpdate","summary":"Update a webhook endpoint","tags":["Webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"description":{"type":"string","maxLength":200},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["post.scheduled","post.published","post.partial","post.failed","post.approval_requested","post.approved","post.rejected","account.connected","account.disconnected","account.reauthorization_required","job.completed","job.failed","clips.ready","clips.failed","comment.received","comments.negative_wave","message.received","monitor.new_items","automation.run_failed","plug.executed","credits.low","*"]}},"profileId":{"description":"Only events about accounts in this profile","type":["string","null"]},"active":{"type":"boolean"}}}}}}},"delete":{"operationId":"webhooksDelete","summary":"Delete a webhook endpoint","tags":["Webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/webhooks/{id}/secret":{"post":{"operationId":"webhooksSecret","summary":"Roll the signing secret","tags":["Webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"whk_5Lq8Vn2Rx7Kb3Wt9Pm4D","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","url":"https://example.com/hooks/postkea","description":"Publishing alerts","secret":"whsec_9Lm2Qx7Wn4Rb8Vt3Kp6CdF1","events":["post.published","post.failed"],"profileId":null,"active":true,"failureCount":0,"createdAt":"2026-11-01T09:05:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/webhooks/test":{"post":{"operationId":"webhooksTest","summary":"Send a test event","description":"Send to a saved endpoint (`webhookId`) or to any URL before saving it.","tags":["Webhooks"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"ok":true,"status":200,"body":"{\"received\":true}","durationMs":184}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"webhookId":{"type":"string"},"url":{"type":"string","format":"uri"}}}}}}}},"/v1/webhooks/{id}/deliveries":{"get":{"operationId":"webhooksDeliveries","summary":"Delivery history","tags":["Webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","succeeded","retrying","failed","cancelled"]}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":[{"id":"dlv_7Nq2Lx9Wk4Rb3Vt8Mp5H","webhookId":"whk_5Lq8Vn2Rx7Kb3Wt9Pm4D","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","eventId":"evt_3Lq8Wn2Rx7Kb4Vt9Mp6D","eventType":"post.published","payload":{"id":"evt_3Lq8Wn2Rx7Kb4Vt9Mp6D","type":"post.published","createdAt":"2026-11-03T09:00:05.000Z","data":{"post":{"id":"post_9Xc4Lm2Qv7Kt3Nw8Rb5J","status":"published"}}},"status":"succeeded","attempts":1,"responseStatus":200,"responseBody":"{\"received\":true}","durationMs":142,"nextAttemptAt":null,"createdAt":"2026-11-03T09:00:05.000Z"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/webhooks/deliveries/{id}/redeliver":{"post":{"operationId":"webhooksRedeliver","summary":"Send a delivery again","tags":["Webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"queued":true,"id":"dlv_7Nq2Lx9Wk4Rb3Vt8Mp5H"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/logs":{"get":{"operationId":"logsList","summary":"API request logs","description":"Every API and MCP request, with status, credits and duration. Kept for 30 days.","tags":["Developers"],"parameters":[{"name":"apiKeyId","in":"query","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["success","error"]}},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["api","mcp","dashboard"]}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"items":[{"id":"log_5Wn8Lq2Rx7Kb3Vt9Mp4C","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","userId":null,"source":"mcp","method":"TOOL","path":"mcp/create_post","operation":"create_post","platform":"x","status":202,"durationMs":412,"credits":0,"ip":null,"userAgent":"claude-code/2.1","request":null,"errorCode":null,"createdAt":"2026-11-03T10:12:00.000Z"},{"id":"log_2Kq7Lx4Wn9Rb3Vt8Mp5D","orgId":"org_4dQm8RtYw2Lx9KpN3vBc","apiKeyId":"key_8sLw2Qn5Vx1Rb7Tc4Mh9","userId":null,"source":"api","method":"POST","path":"/v1/scrape/youtube/stats","operation":"scrape.run","platform":"youtube","status":200,"durationMs":1290,"credits":1,"ip":"203.0.113.24","userAgent":"node","request":null,"errorCode":null,"createdAt":"2026-11-03T10:10:00.000Z"}],"nextCursor":"log_2Kq7Lx4Wn9Rb3Vt8Mp5D"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/audit-log":{"get":{"operationId":"auditList","summary":"Audit log","description":"Security-relevant changes: keys, webhooks, members, billing.\n\nDashboard session only; not available to API keys.","tags":["Developers"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":100,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/workspace":{"get":{"operationId":"workspaceGet","summary":"Workspace details and settings","tags":["Workspace"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"id":"org_4dQm8RtYw2Lx9KpN3vBc","name":"Example Cafe","slug":"example-cafe","logo":"https://cdn.example.com/logos/example-cafe.png","plan":"pro","planDetails":{"id":"pro","name":"Pro","monthlyPrice":49,"yearlyPrice":39,"credits":25000,"channels":60,"members":15,"apiKeys":50,"rateLimitPerMinute":400,"historyDays":null,"features":{"approvals":true,"automations":50,"monitors":100,"byoOAuth":true,"connectLinks":true,"brandedReports":true,"prioritySupport":true,"removeBranding":true},"highlight":true},"role":"owner","settings":{"timezone":"Europe/Berlin","weekStartsOn":1,"postingGoalPerWeek":5,"requireApproval":true,"defaultUtm":{"source":"postkea","medium":"social"},"notify":{"usage80":true,"usage100":true,"postFailed":true,"weeklyDigest":true}},"usage":{"channels":4,"members":3},"createdAt":"2026-10-01T09:00:00.000Z"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"patch":{"operationId":"workspaceUpdate","summary":"Update workspace name and settings","description":"Dashboard session only; not available to API keys.","tags":["Workspace"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"settings":{"timezone":"Europe/Berlin","weekStartsOn":1,"postingGoalPerWeek":7,"requireApproval":true,"defaultUtm":{"source":"postkea","medium":"social"},"notify":{"usage80":true,"usage100":true,"postFailed":true,"weeklyDigest":false}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"logo":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"settings":{"type":"object","properties":{"timezone":{"type":"string","maxLength":60},"locale":{"type":"string","maxLength":10},"weekStartsOn":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"postingGoalPerWeek":{"type":"integer","minimum":0,"maximum":200},"requireApproval":{"type":"boolean"},"shortenLinks":{"type":"boolean"},"shortLinks":{"description":"Composer short links: ask offers to shorten links, always shortens every link on save, never leaves links alone","type":"string","enum":["ask","always","never"]},"defaultUtm":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"reportTitle":{"description":"Title on branded insights reports; null clears it","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"reportLogoUrl":{"description":"Logo on branded insights reports; null falls back to the workspace logo","anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"notify":{"type":"object","properties":{"usage80":{"type":"boolean"},"usage100":{"type":"boolean"},"postFailed":{"type":"boolean"},"weeklyDigest":{"type":"boolean"},"negativeWave":{"type":"boolean"}}}}}}}}}}}},"/v1/workspaces":{"get":{"operationId":"workspaceMine","summary":"Workspaces you belong to","description":"Dashboard session only; not available to API keys.","tags":["Workspace"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/members":{"get":{"operationId":"membersList","summary":"Team members and pending invitations","description":"Dashboard session only; not available to API keys.","tags":["Workspace"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"members":[{"id":"mem_3Lq8Wn2Rx7Kb4Vt9Mp6D","role":"owner","joinedAt":"2026-10-01T09:00:00.000Z","userId":"usr_Jx7Lq2Vb9Nw4Rt6Ym3Pd","name":"Sam Example","email":"sam@example.com","image":null},{"id":"mem_8Vb2Lq7Wx4Nk9Rt3Mp5C","role":"contributor","joinedAt":"2026-10-14T13:00:00.000Z","userId":"usr_4Kq9Lx2Wn7Rb3Vt8Mp6D","name":"Robin Example","email":"robin@example.com","image":null}],"invitations":[{"id":"inv_6Wq3Lx8Nk2Rb7Vt4Mp9D","organizationId":"org_4dQm8RtYw2Lx9KpN3vBc","email":"kim@example.com","role":"editor","status":"pending","expiresAt":"2026-11-10T09:00:00.000Z","inviterId":"usr_Jx7Lq2Vb9Nw4Rt6Ym3Pd","createdAt":"2026-11-03T09:00:00.000Z"}],"roles":["owner","admin","editor","contributor","viewer"],"limit":15}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/members/invite":{"post":{"operationId":"membersInvite","summary":"Invite a team member","description":"Dashboard session only; not available to API keys.","tags":["Workspace"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"default":"editor","type":"string","enum":["admin","editor","contributor","viewer"]}},"required":["email"]}}}}}},"/v1/members/invitations/{id}":{"delete":{"operationId":"membersCancelInvite","summary":"Cancel an invitation","description":"Dashboard session only; not available to API keys.","tags":["Workspace"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/members/{id}":{"patch":{"operationId":"membersUpdate","summary":"Change a member's role","description":"Dashboard session only; not available to API keys.","tags":["Workspace"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["owner","admin","editor","contributor","viewer"]}},"required":["role"]}}}}},"delete":{"operationId":"membersRemove","summary":"Remove a member","description":"Dashboard session only; not available to API keys.","tags":["Workspace"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/notifications":{"get":{"operationId":"notificationsList","summary":"In-app notifications","tags":["Workspace"],"parameters":[{"name":"unread","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"limit","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/notifications/read":{"post":{"operationId":"notificationsRead","summary":"Mark notifications as read","tags":["Workspace"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"Omit to mark all as read","type":"array","items":{"type":"string"}}}}}}}}},"/v1/billing":{"get":{"operationId":"billingGet","summary":"Plan, credits and invoices","tags":["Billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"plan":{"id":"pro","name":"Pro","monthlyPrice":49,"yearlyPrice":39,"credits":25000,"channels":60,"members":15,"apiKeys":50,"rateLimitPerMinute":400,"historyDays":null,"features":{"approvals":true,"automations":50,"monitors":100,"byoOAuth":true,"connectLinks":true,"brandedReports":true,"prioritySupport":true,"removeBranding":true},"highlight":true},"interval":"year","status":"active","cancelAtPeriodEnd":false,"balance":{"plan":"pro","monthly":{"limit":25000,"used":3140,"remaining":21860,"cycleStart":"2026-10-20T00:00:00.000Z","cycleEnd":"2026-11-20T00:00:00.000Z"},"purchased":{"total":5000,"used":0,"remaining":5000},"remaining":26860},"daily":[{"day":"2026-11-02","credits":186},{"day":"2026-11-03","credits":240}],"plans":[{"id":"pro","name":"Pro","monthlyPrice":49,"yearlyPrice":39,"credits":25000,"channels":60,"members":15,"apiKeys":50,"rateLimitPerMinute":400,"historyDays":null,"features":{"approvals":true,"automations":50,"monitors":100,"byoOAuth":true,"connectLinks":true,"brandedReports":true,"prioritySupport":true,"removeBranding":true},"highlight":true}],"creditPacks":[{"id":"pack_5k","credits":5000,"price":12},{"id":"pack_25k","credits":25000,"price":49}],"paymentsEnabled":true,"simulateAllowed":false,"invoices":[{"id":"txn_01jexample2invoice3abc","number":"1234-10007","status":"paid","total":468,"currency":"usd","createdAt":"2026-10-01T09:00:00.000Z","pdf":true}]}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/billing/checkout":{"post":{"operationId":"billingCheckout","summary":"Start a plan checkout","description":"Returns the Paddle.js overlay checkout settings (price, customer email, custom data). With an existing subscription the plan changes in place with proration and `updated` is true.\n\nDashboard session only; not available to API keys.","tags":["Billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"updated":false,"checkout":{"token":"test_0123456789abcdef0123456789a","environment":"sandbox","items":[{"priceId":"pri_01jexampleproyearly000000","quantity":1}],"customer":{"email":"you@example.com"},"customData":{"orgId":"org_4dQm8RtYw2Lx9KpN3vBc","kind":"plan","plan":"pro","interval":"year"},"successUrl":"https://postkea.com/app/settings/billing?upgraded=pro"}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["creator","pro","business"]},"interval":{"default":"month","type":"string","enum":["month","year"]}},"required":["plan"]}}}}}},"/v1/billing/credits":{"post":{"operationId":"billingCredits","summary":"Buy a credit pack","description":"Returns the Paddle.js overlay checkout settings for a credit pack. Purchased credits never expire and are used after the monthly credits.\n\nDashboard session only; not available to API keys.","tags":["Billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"checkout":{"token":"test_0123456789abcdef0123456789a","environment":"sandbox","items":[{"priceId":"pri_01jexamplepack25k00000000","quantity":1}],"customer":{"email":"you@example.com"},"customData":{"orgId":"org_4dQm8RtYw2Lx9KpN3vBc","kind":"credits","packId":"pack_25k"},"successUrl":"https://postkea.com/app/settings/billing?credits=1"}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"packId":{"type":"string","enum":["pack_5k","pack_25k","pack_100k"]}},"required":["packId"]}}}}}},"/v1/billing/portal":{"post":{"operationId":"billingPortal","summary":"Open the billing portal","description":"Manage payment methods, invoices and the subscription in Paddle's customer portal.\n\nDashboard session only; not available to API keys.","tags":["Billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"url":"https://customer-portal.paddle.com/cpl_01jexampleportal"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/billing/cancel":{"post":{"operationId":"billingCancel","summary":"Cancel the subscription","description":"The plan stays active until the end of the paid period, then the workspace moves to Free.\n\nDashboard session only; not available to API keys.","tags":["Billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/billing/resume":{"post":{"operationId":"billingResume","summary":"Keep the subscription","description":"Takes back a cancellation that is scheduled for the end of the paid period.\n\nDashboard session only; not available to API keys.","tags":["Billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"resumed":true}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/billing/invoices/{id}/pdf":{"post":{"operationId":"billingInvoice","summary":"Get an invoice PDF link","description":"Returns a short-lived download link for the invoice of a completed payment.\n\nDashboard session only; not available to API keys.","tags":["Billing"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}},"example":{"success":true,"data":{"url":"https://paddle-production-invoice-service-pdfs.s3.amazonaws.com/example.pdf"}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/billing/simulate":{"post":{"operationId":"billingSimulate","summary":"Switch plan without payment (development)","description":"Only available when payments are not configured, or outside production.\n\nDashboard session only; not available to API keys.","tags":["Billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["free","creator","pro","business"]},"interval":{"default":"month","type":"string","enum":["month","year"]}},"required":["plan"]}}}}}},"/v1/comment-automations/activity":{"get":{"operationId":"commentAutomationsActivity","summary":"Recent comment automation activity","description":"The latest runs of every comment automation in the workspace, newest first, with the rule name.","tags":["Inbox"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/inbox/pulse":{"get":{"operationId":"inboxPulse","summary":"Sentiment of the last 24 hours","description":"Comments received in the last 24 hours by sentiment, against the daily average of the 7 days before. `wave` is true when negative comments spike.","tags":["Inbox"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/comment-automations/posts":{"get":{"operationId":"commentAutomationsPosts","summary":"Recent posts an automation can watch","description":"Posts published to an account in the last 90 days, with the platform post id to use as `platformPostId`.","tags":["Inbox"],"parameters":[{"name":"accountId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/public/roadmap":{"get":{"operationId":"roadmapList","summary":"List roadmap items (public)","description":"Feature requests with their status and vote count. Signed-in visitors also see which items they voted for and their own requests waiting for review.","tags":["Roadmap"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]},"post":{"operationId":"roadmapSubmit","summary":"Suggest a feature","description":"Needs a signed-in session. New requests are reviewed before they show up for everyone; the author sees them right away. Up to 5 a day.","tags":["Roadmap"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":4,"maxLength":120},"body":{"type":"string","maxLength":2000}},"required":["title"]}}}}}},"/v1/public/roadmap/{id}/vote":{"post":{"operationId":"roadmapVote","summary":"Vote for a roadmap item","description":"Needs a signed-in session. Voting twice keeps one vote.","tags":["Roadmap"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]},"delete":{"operationId":"roadmapUnvote","summary":"Remove your vote","tags":["Roadmap"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]}},"/v1/public/tools/scrape/{tool}":{"post":{"operationId":"toolsScrape","summary":"Run a free tool (public)","description":"Powers the free tools on the website: YouTube transcript, summary and video data, TikTok video data, Instagram post data and Reddit post data. No API key and no credits; 15 requests a day per IP across all tools, failed lookups are given back. With an API key, use the matching /v1/scrape operation.","tags":["Free tools"],"parameters":[{"name":"tool","in":"path","required":true,"schema":{"type":"string","enum":["youtube-transcript","youtube-summary","youtube-video-data","tiktok-video-data","instagram-post-data","reddit-post-data"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"maxLength":2000}},"required":["url"]}}}}}},"/v1/public/tools/formats":{"post":{"operationId":"toolsFormats","summary":"List direct download links (public)","description":"Powers the free video downloaders. Returns the title, thumbnail, duration and direct media links (the best single-file video per resolution, and audio only) for TikTok, X, Instagram, Reddit or any page yt-dlp supports. Links come from the site and expire; nothing is stored. 15 requests a day per IP across all tools. With an API key, POST /v1/downloads keeps the file for 24 hours, merges HD video and audio and converts formats.","tags":["Free tools"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"maxLength":2000},"platform":{"default":"any","description":"tiktok only accepts TikTok links","type":"string","enum":["tiktok","any"]}},"required":["url"]}}}}}},"/v1/public/tools/hashtags":{"post":{"operationId":"toolsHashtags","summary":"Suggest hashtags (public)","description":"Powers the free hashtag generator. 15 requests a day per IP across all tools. With an API key, use POST /v1/ai/hashtags.","tags":["Free tools"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":3,"maxLength":5000},"count":{"default":15,"type":"integer","minimum":3,"maximum":30},"platform":{"type":"string","maxLength":40}},"required":["text"]}}}}}},"/v1/signatures":{"get":{"operationId":"signaturesList","summary":"List signatures","description":"Reusable text blocks of the workspace. The one with `isDefault` is added to every new post in the composer. Free.","tags":["Content"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"signaturesCreate","summary":"Create a signature","tags":["Content"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"body":{"type":"string","minLength":1,"maxLength":2000},"isDefault":{"default":false,"description":"Add it automatically to every new post in the composer. Only one signature can be the default.","type":"boolean"}},"required":["name","body"]}}}}}},"/v1/signatures/{id}":{"patch":{"operationId":"signaturesUpdate","summary":"Edit a signature","description":"Setting `isDefault: true` removes the mark from the previous default signature.","tags":["Content"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"body":{"type":"string","minLength":1,"maxLength":2000},"isDefault":{"type":"boolean"}}}}}}},"delete":{"operationId":"signaturesDelete","summary":"Delete a signature","tags":["Content"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/sets":{"get":{"operationId":"setsList","summary":"List sets","description":"Saved channel selections with their per-platform and per-account options. Start a post from one in the composer, or pass its accountIds and options to POST /v1/posts. Free.","tags":["Content"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}},"post":{"operationId":"setsCreate","summary":"Create a set","tags":["Content"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"accountIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string"},"description":"Connected account ids from GET /v1/accounts"},"platformOptions":{"default":{},"description":"Options per platform, the same keys as platformSpecificData","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"accountOptions":{"default":{},"description":"Options per account id (Pinterest board, YouTube playlist, TikTok privacy)","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","accountIds"]}}}}}},"/v1/sets/{id}":{"patch":{"operationId":"setsUpdate","summary":"Edit a set","tags":["Content"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"accountIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string"},"description":"Connected account ids from GET /v1/accounts"},"platformOptions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"accountOptions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}}},"delete":{"operationId":"setsDelete","summary":"Delete a set","tags":["Content"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/links/shorten-text":{"post":{"operationId":"linksShortenText","summary":"Shorten every link in some texts","description":"Replaces each link in the texts with a trackable short link of the workspace and returns the texts in the same order. Links that are already short stay. Free.","tags":["Links"],"parameters":[],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"texts":{"minItems":1,"maxItems":40,"type":"array","items":{"type":"string","maxLength":30000}}},"required":["texts"]}}}}}},"/v1/posts/{id}/repeat":{"delete":{"operationId":"postsStopRepeat","summary":"Stop repeating a post","description":"Removes the repeat rule from the post and its series, and deletes copies the rule scheduled that have not gone out yet.","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/posts/{id}/preview-links":{"post":{"operationId":"previewsCreate","summary":"Share a preview link","description":"Returns the post's active public preview link, or creates one. Anyone with the link sees the post as each network shows it and can comment without an account; while the post waits for approval they can approve it or ask for changes. Send `fresh: true` to turn off the old link and get a new one.","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fresh":{"type":"boolean"}}}}}}},"get":{"operationId":"previewsList","summary":"Active preview links of a post","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/preview-links/{id}":{"delete":{"operationId":"previewsRevoke","summary":"Turn off a preview link","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/posts/{id}/preview-comments":{"get":{"operationId":"previewsComments","summary":"Comments from preview links","description":"Comments, approvals and change requests left by reviewers on the post's public preview links.","tags":["Posts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/public/preview/{token}":{"get":{"operationId":"previewsPublicGet","summary":"Read a post preview (public)","tags":["Posts"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[]}},"/v1/public/preview/{token}/comments":{"post":{"operationId":"previewsPublicComment","summary":"Comment on a post preview (public)","tags":["Posts"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":80},"body":{"type":"string","maxLength":4000}},"required":["name","body"]}}}}}},"/v1/public/preview/{token}/decision":{"post":{"operationId":"previewsPublicDecide","summary":"Approve a post or ask for changes (public)","description":"Only while the post waits for approval. Approving schedules it (or publishes it when its time has passed); asking for changes sends it back to drafts.","tags":["Posts"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":true},"data":{}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":80},"decision":{"type":"string","enum":["approved","rejected"]},"note":{"type":"string","maxLength":2000}},"required":["name","decision"]}}}}}},"/v1/scrape/web/auto":{"post":{"operationId":"scrape_web_auto","summary":"Any link details","description":"Detects the platform and page type of any URL and returns the matching details (video stats, post, tweet, pin, profile, channel or page metadata).\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.tiktok.com/@nasa"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/youtube/stats":{"post":{"operationId":"scrape_youtube_stats","summary":"YouTube video details","description":"Title, description, views, likes, comment count, duration, tags, chapters and channel of a video or Short.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.youtube.com/watch?v=jNQXAC9IVRw"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/youtube/transcript":{"post":{"operationId":"scrape_youtube_transcript","summary":"YouTube transcript","description":"Full transcript with timestamps from captions, or from speech to text when the video has none.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Preferred caption language, e.g. en, vi","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.youtube.com/watch?v=jNQXAC9IVRw","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/youtube/summarize":{"post":{"operationId":"scrape_youtube_summarize","summary":"YouTube summary","description":"Summary, key points, topics, takeaways, sentiment and chapters of a video.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Language of the summary","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"},"prompt":{"description":"Extra instructions, e.g. 'focus on pricing'","type":"string","maxLength":2000}},"required":["url"]},"example":{"url":"https://www.youtube.com/watch?v=jNQXAC9IVRw","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/youtube/comments":{"post":{"operationId":"scrape_youtube_comments","summary":"YouTube comments","description":"Top or newest comments of a video with authors, likes and reply counts.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"limit":{"default":50,"description":"Comments to return; every 20 comments cost 1 credit","type":"integer","minimum":1,"maximum":2000},"sort":{"default":"top","type":"string","enum":["top","new"]},"sentiment":{"default":false,"description":"Label every comment positive, neutral or negative and add a summary (no extra credits)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.youtube.com/watch?v=jNQXAC9IVRw","limit":20,"sort":"top","sentiment":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/youtube/channel":{"post":{"operationId":"scrape_youtube_channel","summary":"YouTube channel details","description":"Name, handle, subscribers, description, avatar and video count of a channel.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.youtube.com/@YouTube"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/youtube/videos":{"post":{"operationId":"scrape_youtube_videos","summary":"YouTube channel videos","description":"Latest videos, Shorts or streams of a channel.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500},"type":{"default":"videos","type":"string","enum":["videos","shorts","streams"]}},"required":["url"]},"example":{"url":"@YouTube","limit":10,"type":"videos"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/youtube/playlist":{"post":{"operationId":"scrape_youtube_playlist","summary":"YouTube playlist videos","description":"Videos in a playlist, in order.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500}},"required":["url"]},"example":{"url":"https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI","limit":10}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/youtube/search":{"post":{"operationId":"scrape_youtube_search","summary":"YouTube search","description":"Search YouTube videos by keyword.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"description":"Search terms"},"limit":{"default":20,"type":"integer","minimum":1,"maximum":200},"shorts":{"default":false,"description":"Return Shorts only","type":"boolean"}},"required":["query"]},"example":{"query":"social media tips","limit":10,"shorts":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/tiktok/stats":{"post":{"operationId":"scrape_tiktok_stats","summary":"TikTok video details","description":"Caption, views, likes, comments, shares, saves, hashtags, music, media URLs and author (with followers) of a TikTok video or photo post.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.tiktok.com/@nasa/video/7697300954667994381"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/tiktok/transcript":{"post":{"operationId":"scrape_tiktok_transcript","summary":"TikTok transcript","description":"Timestamped transcript of a TikTok video from its captions, or from speech to text when it has none.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Preferred caption language, e.g. en, vi","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.tiktok.com/@nasa/video/7697300954667994381","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/tiktok/summarize":{"post":{"operationId":"scrape_tiktok_summarize","summary":"TikTok summary","description":"Summary, key points, topics, takeaways and sentiment of a TikTok video (falls back to the caption when there is no speech).\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Language of the summary","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"},"prompt":{"description":"Extra instructions, e.g. 'focus on pricing'","type":"string","maxLength":2000}},"required":["url"]},"example":{"url":"https://www.tiktok.com/@nasa/video/7697300954667994381","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/tiktok/comments":{"post":{"operationId":"scrape_tiktok_comments","summary":"TikTok comments","description":"Comments of a TikTok video with authors, likes and reply counts, optionally with their replies.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"limit":{"default":50,"description":"Comments to return; every 20 comments cost 1 credit","type":"integer","minimum":1,"maximum":2000},"sort":{"default":"top","type":"string","enum":["top","new"]},"sentiment":{"default":false,"description":"Label every comment positive, neutral or negative and add a summary (no extra credits)","type":"boolean"},"replies":{"default":false,"description":"Also fetch replies (they count toward the limit)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.tiktok.com/@nasa/video/7697300954667994381","limit":20,"sort":"top","sentiment":false,"replies":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/tiktok/profile":{"post":{"operationId":"scrape_tiktok_profile","summary":"TikTok profile","description":"Name, bio, avatar, followers, following, total likes, video count and verification of a TikTok account.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.tiktok.com/@nasa"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/tiktok/videos":{"post":{"operationId":"scrape_tiktok_videos","summary":"TikTok account videos","description":"Latest videos of a TikTok account with views, likes, comments, shares and captions.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500}},"required":["url"]},"example":{"url":"@nasa","limit":10}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/tiktok/search":{"post":{"operationId":"scrape_tiktok_search","summary":"TikTok search","description":"Search TikTok videos by keyword (TikTok serves search only to signed, logged-in sessions, so this usually reports unsupported).\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"description":"Search terms"},"limit":{"default":20,"type":"integer","minimum":1,"maximum":200}},"required":["query"]},"example":{"query":"space exploration","limit":10}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/tiktok/hashtag":{"post":{"operationId":"scrape_tiktok_hashtag","summary":"TikTok hashtag","description":"Views, video count and description of a TikTok hashtag, plus its videos when TikTok serves them anonymously.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hashtag":{"type":"string","minLength":1,"description":"Hashtag with or without #, or a tiktok.com/tag/ URL"},"limit":{"default":20,"type":"integer","minimum":1,"maximum":200}},"required":["hashtag"]},"example":{"hashtag":"nasa","limit":10}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/instagram/stats":{"post":{"operationId":"scrape_instagram_stats","summary":"Instagram post details","description":"Caption, likes, comments, views, owner, every carousel image and video URL, music, location and date of a post or reel.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.instagram.com/p/DeaMlUSEpgs/"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/instagram/transcript":{"post":{"operationId":"scrape_instagram_transcript","summary":"Instagram transcript","description":"Transcript with timestamps of a reel or video post, made with speech to text.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Preferred caption language, e.g. en, vi","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.instagram.com/reel/DesCx16hQLn/","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/instagram/summarize":{"post":{"operationId":"scrape_instagram_summarize","summary":"Instagram summary","description":"Summary, key points, topics and sentiment of a reel or post, from its speech or, for photos, its caption.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Language of the summary","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"},"prompt":{"description":"Extra instructions, e.g. 'focus on pricing'","type":"string","maxLength":2000}},"required":["url"]},"example":{"url":"https://www.instagram.com/reel/DesCx16hQLn/","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/instagram/comments":{"post":{"operationId":"scrape_instagram_comments","summary":"Instagram comments","description":"Comments of a post or reel with authors, likes, reply counts and dates.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"limit":{"default":50,"description":"Comments to return; every 20 comments cost 1 credit","type":"integer","minimum":1,"maximum":2000},"sort":{"default":"top","type":"string","enum":["top","new"]},"sentiment":{"default":false,"description":"Label every comment positive, neutral or negative and add a summary (no extra credits)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.instagram.com/p/DeaMlUSEpgs/","limit":20,"sort":"top","sentiment":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/instagram/profile":{"post":{"operationId":"scrape_instagram_profile","summary":"Instagram profile","description":"Name, bio, links, followers, following, post count, avatar and verified status of a public account.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.instagram.com/nasa/"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/instagram/posts":{"post":{"operationId":"scrape_instagram_posts","summary":"Instagram recent posts","description":"The latest posts of a public account (about 12 without login) with captions, counts and dates.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500}},"required":["url"]},"example":{"url":"@nasa","limit":12}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/instagram/reels":{"post":{"operationId":"scrape_instagram_reels","summary":"Instagram recent reels","description":"The latest reels of a public account (about 12 without login) with views, likes and comments.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500}},"required":["url"]},"example":{"url":"@nasa","limit":12}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/facebook/stats":{"post":{"operationId":"scrape_facebook_stats","summary":"Facebook post or video details","description":"Text, reactions (with breakdown), comments, shares, views, media URLs and author of a public Facebook post, video or reel.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.facebook.com/reel/1557618349384047"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/facebook/transcript":{"post":{"operationId":"scrape_facebook_transcript","summary":"Facebook video transcript","description":"Timestamped transcript of a public Facebook video or reel from its captions, or from speech to text when it has none.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Preferred caption language, e.g. en, vi","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.facebook.com/reel/1557618349384047","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/facebook/summarize":{"post":{"operationId":"scrape_facebook_summarize","summary":"Facebook video summary","description":"Summary, key points, topics, takeaways and sentiment of a public Facebook video or reel (falls back to the post text when there is no speech).\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Language of the summary","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"},"prompt":{"description":"Extra instructions, e.g. 'focus on pricing'","type":"string","maxLength":2000}},"required":["url"]},"example":{"url":"https://www.facebook.com/reel/1557618349384047","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/facebook/comments":{"post":{"operationId":"scrape_facebook_comments","summary":"Facebook comments","description":"Top comments of a public Facebook post, video or reel that Facebook shows to logged-out visitors (usually up to 10), with the total count.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"limit":{"default":50,"description":"Comments to return; every 20 comments cost 1 credit","type":"integer","minimum":1,"maximum":2000},"sort":{"default":"top","type":"string","enum":["top","new"]},"sentiment":{"default":false,"description":"Label every comment positive, neutral or negative and add a summary (no extra credits)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.facebook.com/NASA/posts/1658876782274358","limit":20,"sort":"top","sentiment":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/facebook/page":{"post":{"operationId":"scrape_facebook_page","summary":"Facebook page details","description":"Name, category, bio, followers, following, website, email, avatar, cover and verification of a public Facebook page or profile.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.facebook.com/NASA"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/x/tweet":{"post":{"operationId":"scrape_x_tweet","summary":"X post details","description":"Text, author, views, likes, reposts, replies, quotes, bookmarks, photos, video variants, poll and quoted post of an X post.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://x.com/elonmusk/status/1585341984679469056"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/x/thread":{"post":{"operationId":"scrape_x_thread","summary":"X thread","description":"All consecutive posts of the author in a thread, in order, with the joined text.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://x.com/elonmusk/status/1585341984679469056"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/x/comments":{"post":{"operationId":"scrape_x_comments","summary":"X post replies","description":"Replies to an X post, ranked by likes or newest first, with authors and like counts.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"limit":{"default":50,"description":"Comments to return; every 20 comments cost 1 credit","type":"integer","minimum":1,"maximum":2000},"sort":{"default":"top","type":"string","enum":["top","new"]},"sentiment":{"default":false,"description":"Label every comment positive, neutral or negative and add a summary (no extra credits)","type":"boolean"}},"required":["url"]},"example":{"url":"https://x.com/elonmusk/status/1585341984679469056","limit":20,"sort":"top","sentiment":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/x/profile":{"post":{"operationId":"scrape_x_profile","summary":"X profile","description":"Name, bio, avatar, banner, website, location, followers, following, post and like counts and join date of an X account.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://x.com/NASA"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/x/tweets":{"post":{"operationId":"scrape_x_tweets","summary":"X profile posts","description":"Latest posts of an X account with text, media and engagement counts.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500},"replies":{"default":false,"description":"Include the account's replies","type":"boolean"},"reposts":{"default":true,"description":"Include reposts of other accounts' posts","type":"boolean"}},"required":["url"]},"example":{"url":"@NASA","limit":20,"replies":false,"reposts":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/x/article":{"post":{"operationId":"scrape_x_article","summary":"X Article to Markdown","description":"Title, cover image, author, engagement and the full body of an X Article as Markdown.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://x.com/X/status/2007184284944322584"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/x/transcript":{"post":{"operationId":"scrape_x_transcript","summary":"X video transcript","description":"Transcript with timestamps of the video in an X post, from X captions or speech to text.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Preferred caption language, e.g. en, vi","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"}},"required":["url"]},"example":{"url":"https://x.com/elonmusk/status/1585341984679469056","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/linkedin/post":{"post":{"operationId":"scrape_linkedin_post","summary":"LinkedIn post details","description":"Text, author, reactions, comment count, images, video and publish date of a public LinkedIn post or article.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.linkedin.com/posts/nasa_the-aircraft-lineup-just-keeps-getting-bigger-activity-7516947214028664833-bmkC"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/linkedin/comments":{"post":{"operationId":"scrape_linkedin_comments","summary":"LinkedIn post comments","description":"Comments shown on the public page of a LinkedIn post (usually the first 10) with authors, likes and dates.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"limit":{"default":50,"description":"Comments to return; every 20 comments cost 1 credit","type":"integer","minimum":1,"maximum":2000},"sort":{"default":"top","type":"string","enum":["top","new"]},"sentiment":{"default":false,"description":"Label every comment positive, neutral or negative and add a summary (no extra credits)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.linkedin.com/posts/nasa_the-aircraft-lineup-just-keeps-getting-bigger-activity-7516947214028664833-bmkC","limit":20,"sort":"top","sentiment":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/linkedin/profile":{"post":{"operationId":"scrape_linkedin_profile","summary":"LinkedIn profile","description":"Name, headline, location, followers, about, current positions, education and recent posts of a public LinkedIn member profile.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.linkedin.com/in/williamhgates"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/linkedin/company":{"post":{"operationId":"scrape_linkedin_company","summary":"LinkedIn company page","description":"Name, tagline, description, logo, website, industry, size, headquarters, founding year, followers, specialties and recent posts of a company page.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.linkedin.com/company/nasa"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/linkedin/transcript":{"post":{"operationId":"scrape_linkedin_transcript","summary":"LinkedIn video transcript","description":"Transcript with timestamps of a LinkedIn video post, from LinkedIn captions or speech to text.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Preferred caption language, e.g. en, vi","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.linkedin.com/posts/nasa_the-aircraft-lineup-just-keeps-getting-bigger-activity-7516947214028664833-bmkC","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/reddit/post":{"post":{"operationId":"scrape_reddit_post","summary":"Reddit post details","description":"Title, text, score, upvote ratio, comment count, author, subreddit, flair and every image, gallery item or video of a post.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/reddit/comments":{"post":{"operationId":"scrape_reddit_comments","summary":"Reddit comments","description":"Comments of a post, flattened in thread order with parent ids, depth, scores and authors.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"limit":{"default":50,"description":"Comments to return; every 20 comments cost 1 credit","type":"integer","minimum":1,"maximum":2000},"sort":{"default":"top","type":"string","enum":["top","new"]},"sentiment":{"default":false,"description":"Label every comment positive, neutral or negative and add a summary (no extra credits)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/","limit":50,"sort":"top","sentiment":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/reddit/subreddit":{"post":{"operationId":"scrape_reddit_subreddit","summary":"Subreddit details","description":"Title, description, subscribers, active users, icon, banner and creation date of a subreddit.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.reddit.com/r/videos/"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/reddit/posts":{"post":{"operationId":"scrape_reddit_posts","summary":"Subreddit posts","description":"Hot, new, top, rising or controversial posts of a subreddit.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500},"sort":{"default":"hot","type":"string","enum":["hot","new","top","rising","controversial"]},"time":{"default":"day","description":"Time range for top and controversial","type":"string","enum":["hour","day","week","month","year","all"]}},"required":["url"]},"example":{"url":"r/videos","limit":25,"sort":"hot","time":"day"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/reddit/search":{"post":{"operationId":"scrape_reddit_search","summary":"Reddit search","description":"Search Reddit posts by keyword, across Reddit or inside one subreddit.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"description":"Search terms"},"limit":{"default":20,"type":"integer","minimum":1,"maximum":200},"subreddit":{"description":"Limit the search to this subreddit, e.g. videos","type":"string"},"sort":{"default":"relevance","type":"string","enum":["relevance","hot","top","new","comments"]},"time":{"default":"all","type":"string","enum":["hour","day","week","month","year","all"]}},"required":["query"]},"example":{"query":"nasa artemis","limit":20,"sort":"relevance","time":"all"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/reddit/user":{"post":{"operationId":"scrape_reddit_user","summary":"Reddit user profile","description":"Karma, avatar, banner, bio, account age and the latest posts of a Reddit user.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":10,"description":"Recent posts to include; the first 20 are included in the price","type":"integer","minimum":0,"maximum":100}},"required":["url"]},"example":{"url":"u/spez","limit":10}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/bluesky/post":{"post":{"operationId":"scrape_bluesky_post","summary":"Bluesky post details","description":"Text, likes, reposts, quotes, replies, images, video, link card, quoted post and author of a Bluesky post.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/bluesky/thread":{"post":{"operationId":"scrape_bluesky_thread","summary":"Bluesky thread","description":"All posts of a thread written by its author, in order, from any post of the thread.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/bluesky/comments":{"post":{"operationId":"scrape_bluesky_comments","summary":"Bluesky replies","description":"Replies of a Bluesky post, nested replies included, with authors and like counts.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"limit":{"default":50,"description":"Comments to return; every 20 comments cost 1 credit","type":"integer","minimum":1,"maximum":2000},"sort":{"default":"top","type":"string","enum":["top","new"]},"sentiment":{"default":false,"description":"Label every comment positive, neutral or negative and add a summary (no extra credits)","type":"boolean"}},"required":["url"]},"example":{"url":"https://bsky.app/profile/bsky.app/post/3l6oveex3ii2l","limit":20,"sort":"top","sentiment":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/bluesky/profile":{"post":{"operationId":"scrape_bluesky_profile","summary":"Bluesky profile","description":"Name, bio, avatar, banner, followers, following, post count, verification and join date of a Bluesky account.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://bsky.app/profile/bsky.app"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/bluesky/posts":{"post":{"operationId":"scrape_bluesky_posts","summary":"Bluesky posts of an account","description":"Latest posts of a Bluesky account, with reposts flagged, filtered to originals, replies, media or videos.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500},"filter":{"default":"posts_no_replies","description":"Which posts to include","type":"string","enum":["posts_no_replies","posts_with_replies","posts_with_media","posts_with_video","posts_and_author_threads"]},"includeReposts":{"default":true,"type":"boolean"}},"required":["url"]},"example":{"url":"https://bsky.app/profile/bsky.app","limit":20,"filter":"posts_no_replies","includeReposts":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/bluesky/search":{"post":{"operationId":"scrape_bluesky_search","summary":"Bluesky search","description":"Search Bluesky posts (top or latest) or accounts by keyword.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"description":"Search terms"},"limit":{"default":25,"description":"Up to 100: anonymous search returns one page","type":"integer","minimum":1,"maximum":100},"type":{"default":"posts","type":"string","enum":["posts","users"]},"sort":{"default":"top","type":"string","enum":["top","latest"]},"lang":{"description":"Only posts in this language, e.g. en","type":"string"}},"required":["query"]},"example":{"query":"social media marketing","limit":25,"type":"posts","sort":"top"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/bluesky/transcript":{"post":{"operationId":"scrape_bluesky_transcript","summary":"Bluesky video transcript","description":"Transcript of a Bluesky video post from its captions, or from speech to text when it has none.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Preferred caption language, e.g. en, vi","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"}},"required":["url"]},"example":{"url":"https://bsky.app/profile/bsky.app/post/3mxyyerrxak2m","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/threads/post":{"post":{"operationId":"scrape_threads_post","summary":"Threads post details","description":"Text, likes, replies, reposts, quotes, shares, images, videos, links and author of a Threads post, plus the author's follow-up posts.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.threads.com/@nasa/post/Decc755lYhC"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/threads/comments":{"post":{"operationId":"scrape_threads_comments","summary":"Threads replies","description":"The first public replies of a Threads post (about 10 to 20 without login) with nested answers, likes and dates.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"limit":{"default":50,"description":"Comments to return; every 20 comments cost 1 credit","type":"integer","minimum":1,"maximum":2000},"sort":{"default":"top","type":"string","enum":["top","new"]},"sentiment":{"default":false,"description":"Label every comment positive, neutral or negative and add a summary (no extra credits)","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.threads.com/@nasa/post/Decc755lYhC","limit":20,"sort":"top","sentiment":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/threads/profile":{"post":{"operationId":"scrape_threads_profile","summary":"Threads profile","description":"Name, bio, links, followers, post count, avatar and verified status of a Threads account.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.threads.com/@nasa"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/threads/posts":{"post":{"operationId":"scrape_threads_posts","summary":"Threads recent posts","description":"The latest posts of a Threads account shown to logged out visitors (pinned posts included) with likes, replies and reposts.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500}},"required":["url"]},"example":{"url":"@nasa","limit":10}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/pinterest/pin":{"post":{"operationId":"scrape_pinterest_pin","summary":"Pinterest pin details","description":"Title, description, saves, reactions, comments, views for videos, images, video URL, outbound link, board and creator of a pin.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.pinterest.com/pin/142567144448951872/"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/pinterest/board":{"post":{"operationId":"scrape_pinterest_board","summary":"Pinterest board pins","description":"Board details (name, description, pin and follower counts, owner) and its pins with titles, images, videos, saves and links.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500}},"required":["url"]},"example":{"url":"https://www.pinterest.com/nasa/hubble-space-telescope/","limit":25}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/pinterest/profile":{"post":{"operationId":"scrape_pinterest_profile","summary":"Pinterest profile","description":"Name, bio, avatar, cover, website, followers, following, pin and board counts, monthly views and verification of a Pinterest account.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.pinterest.com/nasa/"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/mastodon/post":{"post":{"operationId":"scrape_mastodon_post","summary":"Mastodon post details","description":"Text, author, likes, boosts, replies, media, poll and link card of a post on any Mastodon server.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://mastodon.social/@Mastodon/117466985005297414"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/mastodon/comments":{"post":{"operationId":"scrape_mastodon_comments","summary":"Mastodon replies","description":"Replies to a post, flattened in thread order with parent ids, likes and authors.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"limit":{"default":50,"description":"Comments to return; every 20 comments cost 1 credit","type":"integer","minimum":1,"maximum":2000},"sort":{"default":"top","type":"string","enum":["top","new"]},"sentiment":{"default":false,"description":"Label every comment positive, neutral or negative and add a summary (no extra credits)","type":"boolean"}},"required":["url"]},"example":{"url":"https://mastodon.social/@Mastodon/117466985005297414","limit":50,"sort":"top","sentiment":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/mastodon/profile":{"post":{"operationId":"scrape_mastodon_profile","summary":"Mastodon profile","description":"Name, bio, avatar, header, followers, following, post count and profile links of an account.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://mastodon.social/@Mastodon"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/mastodon/posts":{"post":{"operationId":"scrape_mastodon_posts","summary":"Mastodon account posts","description":"Latest public posts of an account, optionally with replies, boosts or media only.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500},"replies":{"default":false,"description":"Include replies","type":"boolean"},"boosts":{"default":true,"description":"Include boosts","type":"boolean"},"mediaOnly":{"default":false,"description":"Only posts with media","type":"boolean"}},"required":["url"]},"example":{"url":"https://mastodon.social/@Mastodon","limit":20,"replies":false,"boosts":true,"mediaOnly":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/mastodon/hashtag":{"post":{"operationId":"scrape_mastodon_hashtag","summary":"Mastodon hashtag posts","description":"Latest public posts with a hashtag on a Mastodon server.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tag":{"type":"string","minLength":1,"description":"Hashtag with or without #, or a tag URL such as https://mastodon.social/tags/photography"},"instance":{"default":"mastodon.social","description":"Server to read the tag timeline from, when tag is not a URL","type":"string"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500},"local":{"default":false,"description":"Only posts from accounts on that server","type":"boolean"}},"required":["tag"]},"example":{"tag":"photography","instance":"mastodon.social","limit":20,"local":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/telegram/channel":{"post":{"operationId":"scrape_telegram_channel","summary":"Telegram channel details","description":"Title, description, avatar, exact subscriber count, verification and media counters of a public Telegram channel.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://t.me/telegram"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/telegram/posts":{"post":{"operationId":"scrape_telegram_posts","summary":"Telegram channel posts","description":"Latest messages of a public Telegram channel with text, views, reactions, date, photos, videos and link previews, optionally filtered by a search query.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":2,"description":"Channel, profile or playlist URL (or @handle)"},"limit":{"default":20,"description":"Items to return; every 20 items cost 1 credit","type":"integer","minimum":1,"maximum":500},"query":{"description":"Only messages matching this text","type":"string"},"before":{"description":"Start with messages older than this message id","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["url"]},"example":{"url":"https://t.me/s/telegram","limit":20}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/telegram/post":{"post":{"operationId":"scrape_telegram_post","summary":"Telegram post details","description":"Text, views, reactions, date, media, link preview, poll and forward source of one public Telegram channel post.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://t.me/telegram/441"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/web/metadata":{"post":{"operationId":"scrape_web_metadata","summary":"Link metadata","description":"Title, description, images, favicon, Open Graph, Twitter card, oEmbed, JSON-LD, feeds and language of any URL.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"},"oembed":{"default":true,"description":"Also fetch the page's oEmbed data when it advertises one","type":"boolean"}},"required":["url"]},"example":{"url":"https://www.nasa.gov/news/","oembed":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/web/article":{"post":{"operationId":"scrape_web_article","summary":"Article text","description":"Readable main text of an article or blog post as Markdown and plain text, with title, author, dates, images and reading time.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.nasa.gov/missions/artemis/"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/web/transcript":{"post":{"operationId":"scrape_web_transcript","summary":"Video file transcript","description":"Timestamped transcript of a direct video or audio file URL, or of a video on any of the 1,000+ sites yt-dlp supports.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Preferred caption language, e.g. en, vi","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"}},"required":["url"]},"example":{"url":"https://images-assets.nasa.gov/video/jsc2023m000094-Victor_Glover_Artemis_II_Crew_Announcement_Resource_Reel/jsc2023m000094-Victor_Glover_Artemis_II_Crew_Announcement_Resource_Reel~mobile.mp4","speechToText":true}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/web/summarize":{"post":{"operationId":"scrape_web_summarize","summary":"Video or page summary","description":"Summary, key points, topics, takeaways and sentiment of a video file, a video on any yt-dlp site, or the article on a web page.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4},"language":{"description":"Language of the summary","type":"string"},"translateTo":{"description":"Translate the transcript into this language (needs the AI service)","type":"string"},"speechToText":{"default":true,"description":"Transcribe the audio when the video has no captions (1 extra credit per minute)","type":"boolean"},"prompt":{"description":"Extra instructions, e.g. 'focus on pricing'","type":"string","maxLength":2000},"source":{"default":"auto","description":"What to summarize: the video, the article text, or detect it","type":"string","enum":["auto","video","article"]}},"required":["url"]},"example":{"url":"https://www.nasa.gov/missions/artemis/","speechToText":true,"source":"auto"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}},"/v1/scrape/web/formats":{"post":{"operationId":"scrape_web_formats","summary":"Video formats","description":"Every downloadable format and quality (resolution, codecs, bitrate, size) of a video on any yt-dlp supported site or a direct media URL.\n\nAlso available as GET with the same fields as query parameters.","tags":["Scrape"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"description":"Post, video or profile URL"}},"required":["url"]},"example":{"url":"https://www.youtube.com/watch?v=jNQXAC9IVRw"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","properties":{"data":{},"credits":{"type":"integer"},"cached":{"type":"boolean"},"operation":{"type":"string"}}}}}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{},"retryable":{"type":"boolean"}},"required":["code","message"]},"requestId":{"type":"string"}}}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key from Developers, API keys"},"apiKeyHeader":{"type":"apiKey","in":"header","name":"x-api-key"}}}}