{"openapi":"3.1.0","info":{"title":"Topics.so API","version":"1.0.0","description":"Read your posts and their metrics, manage Create end to end (brand kit, assets, cast members, image generation, series, and autopilot), and manage who is on the brand. Authenticate with a brand API key created in your dashboard.","contact":{"name":"Topics.so support","email":"support@topics.so","url":"https://topics.so/docs/api"}},"servers":[{"url":"https://topics.so/api"}],"security":[{"bearerAuth":[]}],"paths":{"/v1/posts":{"get":{"operationId":"list-posts","tags":["posts"],"summary":"List posts","description":"Every post across your connected accounts, newest first by default. Filter, search, sort, and page through them the same way the dashboard does. Each post carries its latest metrics. Posts deleted, archived, or made private on the platform are left out unless `includeRemoved` is true.","security":[{"bearerAuth":[]}],"x-scopes":["postsRead"],"x-sdk-resource":"posts","x-sdk-method":"list","parameters":[{"name":"page","in":"query","required":false,"description":"Page number, starting at 1.","schema":{"type":"integer","default":1,"minimum":1}},{"name":"perPage","in":"query","required":false,"description":"Posts per page.","schema":{"type":"integer","default":20,"minimum":1,"maximum":100}},{"name":"q","in":"query","required":false,"description":"Free-text search across title, caption, on-screen text, and transcript.","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Only posts published on or after this date (yyyy-mm-dd).","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Only posts published on or before this date (yyyy-mm-dd).","schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"description":"Restrict to one platform.","schema":{"type":"string","enum":["instagram","linkedin","tiktok","youtube"]}},{"name":"format","in":"query","required":false,"description":"Restrict to one content format.","schema":{"type":"string","enum":["carousel","image","reel","story","text","video"]}},{"name":"hashtag","in":"query","required":false,"description":"Restrict to posts carrying this hashtag, without the leading #.","schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"description":"Field to sort on.","schema":{"type":"string","enum":["published","views","impressions","reach","likes","comments","shares","saves","clicks","engagementRate"],"default":"published"}},{"name":"dir","in":"query","required":false,"description":"Sort direction.","schema":{"type":"string","enum":["asc","desc"],"default":"desc"}},{"name":"includeRemoved","in":"query","required":false,"description":"Also list posts that were deleted, archived, or made private on the platform. Their `removedAt` is set.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"List posts","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/posts/{id}":{"get":{"operationId":"get-post","tags":["posts"],"summary":"Retrieve a post","description":"One post by id, with its full metric history and its media, including a post removed from the platform, which has `removedAt` set. Snapshots are cumulative lifetime readings, oldest first, so a daily series is the difference between consecutive entries. Each image or video carries its hook, description, transcript, and on-screen text.","security":[{"bearerAuth":[]}],"x-scopes":["postsRead"],"x-sdk-resource":"posts","x-sdk-method":"get","parameters":[{"name":"id","in":"path","required":true,"description":"The post id, as returned by the list endpoint.","schema":{"type":"string"}}],"responses":{"200":{"description":"Retrieve a post","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDetail"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/accounts":{"get":{"operationId":"list-accounts","tags":["accounts"],"summary":"List accounts","description":"Every social account connected to the brand, oldest connection first, with its handle, profile picture, profile link, and follower count. The count is the newest daily reading, the same one the Followers page shows. An account whose connection has lapsed is still listed, with `needsReconnect` set, and its count stops updating until it is reconnected.","security":[{"bearerAuth":[]}],"x-scopes":["postsRead"],"x-sdk-resource":"accounts","x-sdk-method":"list","parameters":[],"responses":{"200":{"description":"List accounts","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/brand-kit":{"get":{"operationId":"get-brand-kit","tags":["brandKit"],"summary":"Get the brand kit","description":"The brand's Create settings: the base style prompt prepended to every composed prompt, and the Discord webhook for digests and alerts.","security":[{"bearerAuth":[]}],"x-scopes":["studioRead"],"x-sdk-resource":"brandKit","x-sdk-method":"get","parameters":[],"responses":{"200":{"description":"Get the brand kit","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKit"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"put":{"operationId":"update-brand-kit","tags":["brandKit"],"summary":"Update the brand kit","description":"Replaces the brand kit. Send an empty string to clear a field.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"brandKit","x-sdk-method":"update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKitInput"}}}},"responses":{"200":{"description":"Update the brand kit","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandKit"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/credits":{"get":{"operationId":"get-credits","tags":["credits"],"summary":"Get credits","description":"The brand's credit position. One pool pays for analysis and generation: the monthly `allowance` is spent first and resets on the first of the UTC month, then `purchased` credits, which never expire. `byKind` is this month's net spend. Credits are separate from the request quota.","security":[{"bearerAuth":[]}],"x-scopes":["studioRead"],"x-sdk-resource":"credits","x-sdk-method":"get","parameters":[],"responses":{"200":{"description":"Get credits","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credits"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/assets":{"get":{"operationId":"list-assets","tags":["assets"],"summary":"List assets","description":"The brand's Create asset library: logos, inspiration images, cast reference photos, photos, videos, and audio files.","security":[{"bearerAuth":[]}],"x-scopes":["studioRead"],"x-sdk-resource":"assets","x-sdk-method":"list","parameters":[{"name":"kind","in":"query","required":false,"description":"Restrict to one kind.","schema":{"type":"string","enum":["logo","inspiration","castReference","photo","video","audio"]}}],"responses":{"200":{"description":"List assets","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"post":{"operationId":"create-asset","tags":["assets"],"summary":"Add an asset","description":"Adds a file to the library. Send `sourceUrl` and it is fetched server-side from that public URL: an image (JPEG, PNG, or WebP, up to 10 MB), or with kind `video` an MP4 or MOV (up to 200 MB, 3 seconds to 15 minutes; a story takes up to 60 seconds) to post as a reel or a story, or with kind `audio` an MP3, M4A, or WAV (up to 20 MB) for the sound library. Alternatively, finish a presigned upload by sending the `key` and `url` returned by the upload endpoint; a video or audio file is probed for its length on confirm.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"assets","x-sdk-method":"create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetCreateInput"}}}},"responses":{"201":{"description":"Add an asset","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/assets/uploads":{"post":{"operationId":"create-asset-upload","tags":["assets"],"summary":"Start a direct upload","description":"Step 1 of a direct upload: returns a presigned `uploadUrl`. PUT the raw bytes there with the same Content-Type, then POST `/v1/assets` with the returned `key` and `url`. Images up to 10 MB; kind `video` takes MP4 or MOV up to 200 MB; kind `audio` takes MP3, M4A, or WAV up to 20 MB.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"assets","x-sdk-method":"createUpload","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUploadInput"}}}},"responses":{"201":{"description":"Start a direct upload","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUpload"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/assets/{id}":{"delete":{"operationId":"delete-asset","tags":["assets"],"summary":"Delete an asset","description":"Soft-deletes one asset. Cast members and creations that referenced it keep working; the photo simply drops out of their reference sets.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"assets","x-sdk-method":"delete","parameters":[{"name":"id","in":"path","required":true,"description":"The asset id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Delete an asset","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/sounds":{"get":{"operationId":"list-sounds","tags":["sounds"],"summary":"List sounds","description":"The brand's sound library: Instagram catalogue tracks pinned by id and uploaded audio, each with the description the autopilot picks a sound by. Series pin these by id; the animate and add-item endpoints take a `soundId`.","security":[{"bearerAuth":[]}],"x-scopes":["studioRead"],"x-sdk-resource":"sounds","x-sdk-method":"list","parameters":[],"responses":{"200":{"description":"List sounds","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"post":{"operationId":"create-sound","tags":["sounds"],"summary":"Add a sound","description":"Adds a sound to the library: an Instagram track by `audioId` (from the search endpoint), or an uploaded audio asset by `assetId` (kind `audio`). Give it a `description` of mood, tempo, and where it fits; that line is what the autopilot picks by. Upload only music the brand has the rights to: Instagram mutes reels carrying tracks it can't clear.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"sounds","x-sdk-method":"create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundInput"}}}},"responses":{"201":{"description":"Add a sound","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sound"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/sounds/search":{"get":{"operationId":"search-sounds","tags":["sounds"],"summary":"Search Instagram's sounds","description":"Instagram's audio catalogue for the brand's account; an empty `q` lists what is trending. Only tracks licensed for API publishing appear, so a sound saved in the app can be missing. Needs the Instagram account connected through Facebook Login; the other variant has no Audio API. Pin a result with `POST /v1/sounds` and its `audioId`.","security":[{"bearerAuth":[]}],"x-scopes":["studioRead"],"x-sdk-resource":"sounds","x-sdk-method":"search","parameters":[{"name":"q","in":"query","required":false,"description":"Title or artist. Empty lists trending audio.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Music (default) or original sounds.","schema":{"type":"string","enum":["music","originalSound"]}}],"responses":{"200":{"description":"Search Instagram's sounds","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioTrackList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/sounds/{id}":{"patch":{"operationId":"update-sound","tags":["sounds"],"summary":"Edit a sound","description":"Changes a sound's title, description, or whether it is active. Omitted fields keep their stored value. The source is fixed at creation.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"sounds","x-sdk-method":"update","parameters":[{"name":"id","in":"path","required":true,"description":"The sound id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoundPatchInput"}}}},"responses":{"200":{"description":"Edit a sound","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sound"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"delete":{"operationId":"delete-sound","tags":["sounds"],"summary":"Remove a sound","description":"Removes a sound from the library. Series that pinned it stop offering it; reels already made with it keep it.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"sounds","x-sdk-method":"delete","parameters":[{"name":"id","in":"path","required":true,"description":"The sound id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Remove a sound","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/cast-members":{"get":{"operationId":"list-cast-members","tags":["castMembers"],"summary":"List cast members","description":"The recurring people this brand casts in its images, each with their reference photos.","security":[{"bearerAuth":[]}],"x-scopes":["studioRead"],"x-sdk-resource":"castMembers","x-sdk-method":"list","parameters":[],"responses":{"200":{"description":"List cast members","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CastMemberList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"post":{"operationId":"create-cast-member","tags":["castMembers"],"summary":"Create a cast member","description":"A cast member is a name, a look reproduced verbatim in every prompt, an optional lifestyle, and up to four reference photos (assets of kind `castReference`). Pin them to a creation or a series for a consistent face.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"castMembers","x-sdk-method":"create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CastMemberInput"}}}},"responses":{"201":{"description":"Create a cast member","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CastMember"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/cast-members/{id}":{"get":{"operationId":"get-cast-member","tags":["castMembers"],"summary":"Retrieve a cast member","description":"One cast member by id.","security":[{"bearerAuth":[]}],"x-scopes":["studioRead"],"x-sdk-resource":"castMembers","x-sdk-method":"get","parameters":[{"name":"id","in":"path","required":true,"description":"The cast member id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Retrieve a cast member","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CastMember"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"patch":{"operationId":"update-cast-member","tags":["castMembers"],"summary":"Update a cast member","description":"Partial update: fields you omit keep their stored value.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"castMembers","x-sdk-method":"update","parameters":[{"name":"id","in":"path","required":true,"description":"The cast member id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CastMemberPatchInput"}}}},"responses":{"200":{"description":"Update a cast member","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CastMember"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"delete":{"operationId":"delete-cast-member","tags":["castMembers"],"summary":"Delete a cast member","description":"Retires (soft-deletes) a cast member. Past creations keep their snapshots; a series still pointing at them falls back to its own inspiration set.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"castMembers","x-sdk-method":"delete","parameters":[{"name":"id","in":"path","required":true,"description":"The cast member id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Delete a cast member","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/creations":{"get":{"operationId":"list-creations","tags":["creations"],"summary":"List creations","description":"The brand's creations, newest first: generated and uploaded images, and reel clips (`mediaType` video, whose `url` is the cover and `videoUrl` the file).","security":[{"bearerAuth":[]}],"x-scopes":["studioRead"],"x-sdk-resource":"creations","x-sdk-method":"list","parameters":[{"name":"page","in":"query","required":false,"description":"Page number, starting at 1.","schema":{"type":"integer","default":1,"minimum":1}},{"name":"perPage","in":"query","required":false,"description":"Creations per page.","schema":{"type":"integer","default":24,"minimum":1,"maximum":100}}],"responses":{"200":{"description":"List creations","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreationList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"post":{"operationId":"create-creation","tags":["creations"],"summary":"Generate an image or a video","description":"Starts a generation and answers 202 with the pending creation; the brand's base style, cast look, and reference photos are applied server-side. An image debits its model's price in credits. With `mediaType` set to `video` the image is generated and then animated into a clip of the same `aspectRatio` with the brand's video model, both paid up front, and the creation returned is the clip. Prices are in the brand's `models` list. Poll the single-creation endpoint (ideally with `wait`) until `status` is `complete`. Send an `Idempotency-Key` header to make retries safe: a replay returns the original creation instead of debiting again.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"creations","x-sdk-method":"create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreationInput"}}}},"responses":{"202":{"description":"Generate an image or a video","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Creation"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/creations/compose":{"post":{"operationId":"compose-prompt","tags":["creations"],"summary":"Compose a prompt","description":"Expands a rough idea into a full image prompt using the brand's base style and, when given, a cast member's look. Free: credits are only spent when the prompt is generated. Editing the returned prompt before generating is expected.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"creations","x-sdk-method":"compose","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeInput"}}}},"responses":{"200":{"description":"Compose a prompt","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeResult"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/creations/{id}":{"get":{"operationId":"get-creation","tags":["creations"],"summary":"Retrieve a creation","description":"One creation by id. Pass `wait` to long-poll: the response is held until the creation completes or fails, or the wait runs out, so a generation resolves in one request instead of a polling loop.","security":[{"bearerAuth":[]}],"x-scopes":["studioRead"],"x-sdk-resource":"creations","x-sdk-method":"get","parameters":[{"name":"id","in":"path","required":true,"description":"The creation id.","schema":{"type":"string"}},{"name":"wait","in":"query","required":false,"description":"Seconds to hold the response for a terminal status.","schema":{"type":"integer","default":0,"minimum":0,"maximum":60}}],"responses":{"200":{"description":"Retrieve a creation","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Creation"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"delete":{"operationId":"delete-creation","tags":["creations"],"summary":"Delete a creation","description":"Soft-deletes one creation.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"creations","x-sdk-method":"delete","parameters":[{"name":"id","in":"path","required":true,"description":"The creation id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Delete a creation","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/creations/{id}/retry":{"post":{"operationId":"retry-creation","tags":["creations"],"summary":"Retry a creation","description":"Re-runs a failed creation. Free while attempts remain; once they're spent, it debits a fresh credit and resets the attempt budget.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"creations","x-sdk-method":"retry","parameters":[{"name":"id","in":"path","required":true,"description":"The creation id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"responses":{"202":{"description":"Retry a creation","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Creation"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/creations/{id}/animate":{"post":{"operationId":"animate-creation","tags":["creations"],"summary":"Animate into a reel","description":"Animates a finished image into a 9:16 reel clip with the brand's video model (image-to-video, so the cast member and style carry over) and answers 202 with the pending clip. The clip takes the still's overlay and, with `soundId`, a library sound: an Instagram track is attached when the reel posts, an upload is mixed in. Debits credits by model and length; prices are in the brand's `models` list. Generation takes minutes: poll `GET /v1/creations/{id}` with `wait`, then add the clip to a reel slot with `creationId`.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"creations","x-sdk-method":"animate","parameters":[{"name":"id","in":"path","required":true,"description":"The still's creation id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnimateInput"}}}},"responses":{"202":{"description":"Animate into a reel","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Creation"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/creations/{id}/overlay":{"post":{"operationId":"rerender-overlay","tags":["creations"],"summary":"Re-render the overlay","description":"Swaps or removes a creation's overlay, re-rendered from the stored raw image. Free: no model call, no credits. Send `\"overlay\": null` to remove it.","security":[{"bearerAuth":[]}],"x-scopes":["studioWrite"],"x-sdk-resource":"creations","x-sdk-method":"rerenderOverlay","parameters":[{"name":"id","in":"path","required":true,"description":"The creation id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverlayPatchInput"}}}},"responses":{"200":{"description":"Re-render the overlay","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Creation"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/series":{"get":{"operationId":"list-series","tags":["series"],"summary":"List series","description":"Every series, manual and autopilot, including each autopilot's current playbook.","security":[{"bearerAuth":[]}],"x-scopes":["seriesRead"],"x-sdk-resource":"series","x-sdk-method":"list","parameters":[],"responses":{"200":{"description":"List series","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"post":{"operationId":"create-series","tags":["series"],"summary":"Create a series","description":"A `manual` series runs a fixed recipe and requires `theme`, `format` (post, carousel, story, or reel), and `cadenceDays`. An `autopilot` series requires a `goal` (with optional `guidance`, `formats`, `maxPerWeek`, `postsPerWeek`, `weekdaysUtc`, `hourPinned`, and `creditBudgetMonthly`) and plans its own content from measured results. A reel is a short 9:16 video animated from a generated still; `audioMode` and `soundIds` decide its sound and `videoModel` overrides the brand's default. `socialAccountId` names the connected Instagram or TikTok account to publish to; an empty string stops items at ready. `delivery` decides who makes the post: `auto` posts it, `handoff` gives it to the operator (a draft in TikTok's inbox, or a Discord message with the file, caption, and sound for Instagram) and the slot waits as `handedOff` until the post appears on the account. TikTok's API attaches no sound and has no stories, so a TikTok series defaults to `handoff`, mixes in uploaded sounds only, and on autopilot plans reels only; `auto` on TikTok needs the `tiktok` settings and TikTok's approval of the app. `crosspostAccountIds` also sends every slot to other connected accounts. Without `publishWrite` the new series starts paused, since an active series posts on its own.","security":[{"bearerAuth":[]}],"x-scopes":["seriesWrite"],"x-sdk-resource":"series","x-sdk-method":"create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesInput"}}}},"responses":{"201":{"description":"Create a series","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Series"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/series/{id}":{"get":{"operationId":"get-series","tags":["series"],"summary":"Retrieve a series","description":"One series with its recent slots (each carrying its images) and, on autopilot, its strategy history.","security":[{"bearerAuth":[]}],"x-scopes":["seriesRead"],"x-sdk-resource":"series","x-sdk-method":"get","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Retrieve a series","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesDetail"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"patch":{"operationId":"update-series","tags":["series"],"summary":"Update a series","description":"Partial update: fields you omit keep their stored value, and the merged result is validated by the same mode-dependent rules as create. Include `active` to pause or resume; that also needs `publishWrite`. Send `\"castMemberId\": null` to clear the cast, or `\"postsPerWeek\": null` to hand cadence back to the strategist.","security":[{"bearerAuth":[]}],"x-scopes":["seriesWrite"],"x-sdk-resource":"series","x-sdk-method":"update","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesPatchInput"}}}},"responses":{"200":{"description":"Update a series","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Series"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"delete":{"operationId":"delete-series","tags":["series"],"summary":"Delete a series","description":"Soft-deletes a series and stops its planning. Published history and images remain.","security":[{"bearerAuth":[]}],"x-scopes":["seriesWrite"],"x-sdk-resource":"series","x-sdk-method":"delete","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Delete a series","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/series/{id}/reviews":{"post":{"operationId":"run-series-review","tags":["series"],"summary":"Run the strategist now","description":"Runs the autopilot strategist immediately instead of waiting for its weekly turn, and answers with the review it produced. Not-yet-generated slots are dropped so the new playbook takes effect from the next cron pass. Autopilot series only.","security":[{"bearerAuth":[]}],"x-scopes":["seriesWrite"],"x-sdk-resource":"series","x-sdk-method":"runReview","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"responses":{"201":{"description":"Run the strategist now","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesReview"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/series/{id}/items":{"post":{"operationId":"add-series-item","tags":["series"],"summary":"Add a post to a series","description":"Adds one slot on top of what the series plans, on autopilot as much as on a manual series; the scheduler never drops it. Give it at most one media source: `creationId` (a finished image, or a clip from the animate endpoint for a reel), `assetId` (a photo, or a kind `video` asset, which makes the slot a reel, or a story when `format` is `story`), `sourceUrl` (a public image or video URL, imported like `POST /v1/assets`), or `assetIds` (2 to 10 photo assets, in order, posted as a carousel of the operator's own slides). A supplied photo is cropped to the slot's shape, analyzed so the autopilot knows what it shows, captioned on an autopilot series, and the slot answers `ready`; a supplied video is rendered to the 9:16 spec with the series' overlay and a sound (`soundId`, or the series' first allowed sound) after the response, so the slot answers `generating` and turns `ready` on `GET /v1/series/{id}` once rendered (or `failed` with the reason). A story video runs up to 60 seconds and publishes without a caption or an Instagram sound. Without media the slot is planned around `idea` (or invents one); `generateNow` generates its images inline, one credit each; a reel slot generates a still, reviews it, then animates it. Omit `scheduledFor` for the series' next free posting hour. A not-yet-generated planned slot at the same time is taken over.","security":[{"bearerAuth":[]}],"x-scopes":["seriesWrite"],"x-sdk-resource":"series.items","x-sdk-method":"create","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesItemInput"}}}},"responses":{"201":{"description":"Add a post to a series","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesItem"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/series/{id}/items/{itemId}/skip":{"post":{"operationId":"skip-item","tags":["series"],"summary":"Skip a slot","description":"Opts one scheduled slot out permanently. Planning never resurrects a skipped slot.","security":[{"bearerAuth":[]}],"x-scopes":["seriesWrite"],"x-sdk-resource":"series.items","x-sdk-method":"skip","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"description":"The slot id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"responses":{"204":{"description":"Skip a slot","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/series/{id}/items/{itemId}/regenerate":{"post":{"operationId":"regenerate-item","tags":["series"],"summary":"Regenerate a slot","description":"Sends a slot back to planned so the next cron pass generates a fresh image. The old images stay in the brand's history.","security":[{"bearerAuth":[]}],"x-scopes":["seriesWrite"],"x-sdk-resource":"series.items","x-sdk-method":"regenerate","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"description":"The slot id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"responses":{"204":{"description":"Regenerate a slot","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/series/{id}/items/{itemId}":{"patch":{"operationId":"update-item","tags":["series"],"summary":"Edit a slot","description":"Changes a slot's caption, hashtags, time, format, or its video's sound; fields you omit keep their stored value. Caption and hashtags take on a ready or held slot, since generation writes them. The format changes only while the slot has no images, which are cropped to it, except between `reel` and `story`, which share the 9:16 frame (a reel needs a clip). A moved slot becomes the operator's, so the scheduler never drops it; a not-yet-generated planned slot at the new time is taken over.","security":[{"bearerAuth":[]}],"x-scopes":["seriesWrite"],"x-sdk-resource":"series.items","x-sdk-method":"update","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"description":"The slot id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesItemPatchInput"}}}},"responses":{"200":{"description":"Edit a slot","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesItem"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"delete":{"operationId":"delete-item","tags":["series"],"summary":"Delete a slot","description":"Takes a slot out of the queue for good. Its images stay in the brand's history. A published slot can't be deleted; it is the record of what went out.","security":[{"bearerAuth":[]}],"x-scopes":["seriesWrite"],"x-sdk-resource":"series.items","x-sdk-method":"delete","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"description":"The slot id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Delete a slot","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/series/{id}/items/{itemId}/caption":{"post":{"operationId":"rewrite-item-caption","tags":["series"],"summary":"Rewrite a slot's caption","description":"Writes a generated slot's caption and hashtags again from the series' current goal and guidance, keeping its images. For ready or held slots. Costs no image credit.","security":[{"bearerAuth":[]}],"x-scopes":["seriesWrite"],"x-sdk-resource":"series.items","x-sdk-method":"rewriteCaption","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"description":"The slot id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"Rewrite a slot's caption","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemCaption"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/series/{id}/items/{itemId}/publish":{"post":{"operationId":"publish-item","tags":["series"],"summary":"Publish a slot now","description":"Delivers a ready or held slot to the series' account and its cross-posts immediately instead of waiting for its scheduled time, as a feed post, carousel, story, or reel per its format. A series on `handoff` hands the slot over instead (a TikTok draft, or the Instagram hand-off message) and the slot turns `handedOff`. A reel's Instagram sound is attached by id when the account is connected through Facebook Login; otherwise it posts with the clip's own audio. One of the endpoints behind `publishWrite`, with marking a hand-off posted and pausing or resuming a series.","security":[{"bearerAuth":[]}],"x-scopes":["publishWrite"],"x-sdk-resource":"series.items","x-sdk-method":"publish","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"description":"The slot id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"responses":{"204":{"description":"Publish a slot now","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/series/{id}/items/{itemId}/posted":{"post":{"operationId":"mark-item-posted","tags":["series"],"summary":"Mark a hand-off as posted","description":"Closes a `handedOff` slot once the operator has posted it. `postId` (from `GET /v1/posts`) joins the slot to that post, so it is scored like one that published itself; the post's account decides whether it settles the series' own delivery or one of its cross-posts. Without `postId` the slot is only marked done. Ingestion usually makes this join on its own from the caption; this is for the posts it couldn't place.","security":[{"bearerAuth":[]}],"x-scopes":["publishWrite"],"x-sdk-resource":"series.items","x-sdk-method":"markPosted","parameters":[{"name":"id","in":"path","required":true,"description":"The series id.","schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"description":"The slot id.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesItemPostedInput"}}}},"responses":{"200":{"description":"Mark a hand-off as posted","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesItem"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/members":{"get":{"operationId":"list-members","tags":["members"],"summary":"List members","description":"Everyone in the brand, longest-standing first, with their role. A `member` role is the dashboard's Editor. `planHolder` marks the earliest owner, whose plan sets the brand's limits.","security":[{"bearerAuth":[]}],"x-scopes":["membersRead"],"x-sdk-resource":"members","x-sdk-method":"list","parameters":[],"responses":{"200":{"description":"List members","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/members/{id}":{"patch":{"operationId":"update-member-role","tags":["members"],"summary":"Change a member's role","description":"Gives a member one new role, acting as the key's creator. Only an owner can make someone an owner or change an owner's role. A change that would leave the brand with no owner, or move a paid plan holder off the owner role, is refused with `409 conflict`. The change applies on the member's next request, their API keys included. Members cannot be removed over the API.","security":[{"bearerAuth":[]}],"x-scopes":["membersWrite"],"x-sdk-resource":"members","x-sdk-method":"updateRole","parameters":[{"name":"id","in":"path","required":true,"description":"The member id, from the members list.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberRoleInput"}}}},"responses":{"200":{"description":"Change a member's role","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/invitations":{"get":{"operationId":"list-invitations","tags":["invitations"],"summary":"List invitations","description":"Invitations nobody has accepted yet, newest first. Each holds a seat until it is accepted, cancelled, or expires.","security":[{"bearerAuth":[]}],"x-scopes":["membersRead"],"x-sdk-resource":"invitations","x-sdk-method":"list","parameters":[],"responses":{"200":{"description":"List invitations","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"post":{"operationId":"create-invitation","tags":["invitations"],"summary":"Invite someone","description":"Emails a link to join the brand as a role, acting as the key's creator. The link lasts 7 days and works for whoever signs in with it. Inviting an address that already has a pending invitation replaces it with a fresh link. Members and pending invitations together count against the plan's seats (Free 1, Creator 3, Studio unlimited); past that the request answers `403 planRequired`. Only an owner can invite an owner.","security":[{"bearerAuth":[]}],"x-scopes":["membersWrite"],"x-sdk-resource":"invitations","x-sdk-method":"create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationInput"}}}},"responses":{"201":{"description":"Invite someone","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invitation"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/invitations/{id}":{"delete":{"operationId":"cancel-invitation","tags":["invitations"],"summary":"Cancel an invitation","description":"Cancels a pending invitation. Its link stops working and its seat comes back.","security":[{"bearerAuth":[]}],"x-scopes":["membersWrite"],"x-sdk-resource":"invitations","x-sdk-method":"cancel","parameters":[{"name":"id","in":"path","required":true,"description":"The invitation id.","schema":{"type":"string"}}],"responses":{"204":{"description":"Cancel an invitation","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/brands":{"get":{"operationId":"list-brands","tags":["brands"],"summary":"List brands","description":"Every brand the key's creator belongs to, oldest first, with their role in each. `current` marks the key's own brand. A key still acts on one brand only: to work in another, use a key made for it.","security":[{"bearerAuth":[]}],"x-scopes":["brandWrite"],"x-sdk-resource":"brands","x-sdk-method":"list","parameters":[],"responses":{"200":{"description":"List brands","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandList"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}},"post":{"operationId":"create-brand","tags":["brands"],"summary":"Create a brand","description":"Creates a brand owned by the key's creator. A taken slug gets a numeric suffix. Set `createApiKey` to also mint a key for the new brand with this key's scopes: its `secret` is in this response and never again.","security":[{"bearerAuth":[]}],"x-scopes":["brandWrite"],"x-sdk-resource":"brands","x-sdk-method":"create","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string up to 200 characters. A retry with the same key and body replays the first response instead of running again, for 24 hours. The same key with a different body is a `409`, as is a retry while the first request is still running (with `Retry-After`).","schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandInput"}}}},"responses":{"201":{"description":"Create a brand","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandCreated"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}},"/v1/brands/{id}":{"patch":{"operationId":"update-brand","tags":["brands"],"summary":"Update a brand","description":"Renames a brand or changes its slug or logo, as the key's creator, who must be an owner or admin there. Any of their brands works, not only the key's. Omitted fields keep their stored value.","security":[{"bearerAuth":[]}],"x-scopes":["brandWrite"],"x-sdk-resource":"brands","x-sdk-method":"update","parameters":[{"name":"id","in":"path","required":true,"description":"The brand id, from the brands list.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandPatchInput"}}}},"responses":{"200":{"description":"Update a brand","headers":{"X-RateLimit-Limit":{"description":"Requests allowed in one second.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current second.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time, in seconds, when the current window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Requests allowed this calendar month.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this calendar month.","schema":{"type":"integer"}},"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brand"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"402":{"$ref":"#/components/responses/402"},"403":{"$ref":"#/components/responses/403"},"404":{"$ref":"#/components/responses/404"},"409":{"$ref":"#/components/responses/409"},"429":{"$ref":"#/components/responses/429"},"503":{"$ref":"#/components/responses/503"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your API key, sent as `Authorization: Bearer <key>`. Keys are secrets: call the API from your server, never from browser code."}},"schemas":{"Overlay":{"type":"object","description":"A preset overlay composited onto the generated image.","required":["template"],"properties":{"template":{"type":"string","enum":["logoCorner","captionBar","centeredTitle","headline"]},"text":{"type":"string","maxLength":200,"description":"Words wrapped in *asterisks* render in accentColor."},"showLogo":{"type":"boolean"},"logoAssetId":{"type":"string","description":"A logo asset to place instead of the brand's primary (ids from the assets list)."},"accentColor":{"type":"string","description":"Hex colour (#rrggbb) for the text's *marked* words."}}},"BrandKit":{"type":"object","required":["baseStylePrompt","discordWebhookUrl","imageModel","videoModel"],"properties":{"baseStylePrompt":{"type":["string","null"],"description":"Prepended to every composed prompt."},"discordWebhookUrl":{"type":["string","null"]},"imageModel":{"type":["string","null"],"enum":["openai:gpt-image-2.5-sunburst",null],"description":"The image model the brand generates with; null means the default."},"videoModel":{"type":["string","null"],"enum":["klingai:kling-v2.6-i2v","klingai:kling-v3.0-i2v",null],"description":"The video model reels are animated with; null means the default."}}},"BrandKitInput":{"type":"object","description":"Any subset; omitted fields keep their stored value.","properties":{"baseStylePrompt":{"type":"string","maxLength":2000,"description":"Empty string clears it."},"discordWebhookUrl":{"type":"string","description":"A Discord webhook URL, or empty string to clear."},"imageModel":{"type":"string","enum":["","openai:gpt-image-2.5-sunburst"],"description":"Empty string returns to the default."},"videoModel":{"type":"string","enum":["","klingai:kling-v2.6-i2v","klingai:kling-v3.0-i2v"],"description":"Empty string returns to the default."}}},"Sound":{"type":"object","required":["id","source","title","artist","description","durationSeconds","audioId","audioType","coverArtworkUrl","url","active","createdAt"],"properties":{"id":{"type":"string"},"source":{"type":"string","enum":["instagram","upload"]},"title":{"type":"string"},"artist":{"type":["string","null"]},"description":{"type":["string","null"],"description":"Mood, tempo, and where it fits; what the autopilot picks a sound by."},"durationSeconds":{"type":"number"},"audioId":{"type":["string","null"],"description":"Instagram's audio id, for a catalogue track."},"audioType":{"type":["string","null"],"enum":["music","originalSound",null]},"coverArtworkUrl":{"type":["string","null"],"format":"uri"},"url":{"type":["string","null"],"format":"uri","description":"The uploaded file, for an uploaded sound."},"active":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}}},"Member":{"type":"object","required":["id","name","email","role","joinedAt","planHolder"],"properties":{"id":{"type":"string","description":"The membership id."},"name":{"type":"string"},"email":{"type":"string","format":"email"},"role":{"type":"string","enum":["owner","admin","member","viewer"],"description":"`member` is the dashboard's Editor."},"joinedAt":{"type":"string","format":"date-time"},"planHolder":{"type":"boolean","description":"The earliest owner, whose plan sets the brand's limits."}}},"MemberList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Member"}}}},"MemberRoleInput":{"type":"object","required":["role"],"properties":{"role":{"type":"string","enum":["owner","admin","member","viewer"]}}},"Invitation":{"type":"object","required":["id","email","role","invitedBy","expiresAt"],"properties":{"id":{"type":"string"},"email":{"type":"string","format":"email"},"role":{"type":"string","enum":["owner","admin","member","viewer"]},"invitedBy":{"type":"string","description":"The inviter's name."},"expiresAt":{"type":"string","format":"date-time"}}},"InvitationList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Invitation"}}}},"InvitationInput":{"type":"object","required":["email","role"],"properties":{"email":{"type":"string","format":"email"},"role":{"type":"string","enum":["owner","admin","member","viewer"]}}},"Brand":{"type":"object","required":["id","name","slug","logo","role","createdAt","current"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"logo":{"type":["string","null"],"format":"uri"},"role":{"type":"string","enum":["owner","admin","member","viewer"],"description":"The key creator's role in this brand."},"createdAt":{"type":"string","format":"date-time"},"current":{"type":"boolean","description":"True for the brand the key belongs to."}}},"BrandList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Brand"}}}},"BrandCreated":{"allOf":[{"$ref":"#/components/schemas/Brand"},{"type":"object","properties":{"apiKey":{"type":"object","description":"Present when `createApiKey` was set. The secret is shown once.","required":["secret","prefix","scopes"],"properties":{"secret":{"type":"string"},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["postsRead","studioRead","studioWrite","seriesRead","seriesWrite","publishWrite","brandWrite","accountsWrite","membersRead","membersWrite","apiKeysWrite"]}}}}}}]},"BrandInput":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","maxLength":60,"description":"Defaults to the name, lowercased and hyphenated."},"createApiKey":{"type":"boolean","description":"Also mint a key for the new brand with the calling key's scopes."}}},"BrandPatchInput":{"type":"object","description":"Any subset; omitted fields keep their stored value.","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","maxLength":60},"logo":{"type":["string","null"],"format":"uri","description":"A public image URL, or null to clear it."}}},"SoundList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Sound"}}}},"SoundInput":{"type":"object","description":"Either `audioId` (an Instagram track) or `assetId` (an uploaded audio asset).","properties":{"audioId":{"type":"string","maxLength":64,"description":"From the search endpoint."},"assetId":{"type":"string","description":"A brand asset of kind `audio`."},"title":{"type":"string","maxLength":200,"description":"Defaults to the track's or file's name."},"description":{"type":"string","maxLength":500},"active":{"type":"boolean","description":"Default true."}}},"SoundPatchInput":{"type":"object","description":"Any subset; omitted fields keep their stored value.","properties":{"title":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"active":{"type":"boolean"}}},"AudioTrack":{"type":"object","description":"A track in Instagram's audio catalogue, as the search endpoint returns it.","required":["audioId","title","durationSeconds","audioType"],"properties":{"audioId":{"type":"string"},"title":{"type":"string"},"artist":{"type":"string"},"durationSeconds":{"type":"number"},"audioType":{"type":"string","enum":["music","originalSound"]},"coverArtworkUrl":{"type":"string","format":"uri"},"previewUrl":{"type":"string","format":"uri","description":"Expires after about a day and a half."}}},"AudioTrackList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AudioTrack"}}}},"AnimateInput":{"type":"object","properties":{"motionPrompt":{"type":"string","maxLength":1000,"description":"What moves and how. Never adds people or objects the still lacks."},"durationSeconds":{"type":"integer","minimum":3,"maximum":15,"description":"Snapped to the nearest length the model offers."},"soundId":{"type":"string","description":"A library sound. Omitted keeps the model's own audio."},"videoModel":{"type":"string","enum":["klingai:kling-v2.6-i2v","klingai:kling-v3.0-i2v"],"description":"Overrides the brand's default for this clip."}}},"Credits":{"type":"object","required":["allowance","used","remaining","purchased","available","byKind"],"properties":{"allowance":{"type":"integer","description":"The plan's monthly allowance. Does not roll over."},"used":{"type":"integer"},"remaining":{"type":"integer","description":"Allowance credits left this month."},"purchased":{"type":"integer","description":"Purchased credits. They never expire and are spent after the allowance."},"available":{"type":"integer","description":"`remaining` plus `purchased`."},"byKind":{"type":"array","description":"Net credits spent this month, by kind of work.","items":{"type":"object","required":["kind","amount"],"properties":{"kind":{"type":"string","enum":["analyzeImage","analyzeVideo","generateImage","generateVideo","castPhoto","purchase"]},"amount":{"type":"integer"}}}}}},"Asset":{"type":"object","required":["id","kind","name","contentType","url","width","height","durationSeconds","isPrimary","createdAt"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["logo","inspiration","castReference","photo","video","audio"]},"name":{"type":"string"},"contentType":{"type":"string"},"url":{"type":"string","format":"uri","description":"Permanent CDN URL."},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]},"durationSeconds":{"type":["number","null"],"description":"Length of an audio or video asset; null for images."},"isPrimary":{"type":"boolean","description":"True for the one logo overlays place. Without a choice, that is the newest logo."},"createdAt":{"type":"string","format":"date-time"}}},"AssetList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}}}},"AssetCreateInput":{"type":"object","required":["kind","name"],"properties":{"kind":{"type":"string","enum":["logo","inspiration","castReference","photo","video","audio"]},"name":{"type":"string","maxLength":200},"sourceUrl":{"type":"string","format":"uri","description":"Public URL to fetch: an image up to 10 MB, a video up to 200 MB (kind `video`), or audio up to 20 MB (kind `audio`)."},"contentType":{"type":"string","description":"Confirm variant: as returned by the upload endpoint."},"key":{"type":"string","description":"Confirm variant: as returned by the upload endpoint."},"url":{"type":"string","format":"uri","description":"Confirm variant: as returned by the upload endpoint."}},"description":"Either `sourceUrl`, or the `contentType`/`key`/`url` trio from `POST /v1/assets/uploads`."},"AssetUploadInput":{"type":"object","required":["kind","name","contentType","size"],"properties":{"kind":{"type":"string","enum":["logo","inspiration","castReference","photo","video","audio"]},"name":{"type":"string","maxLength":200},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp","video/mp4","video/quicktime","audio/mpeg","audio/mp4","audio/x-m4a","audio/wav","audio/x-wav"],"description":"Images for image kinds, video types for kind `video`, audio types for kind `audio`."},"size":{"type":"integer","minimum":1,"description":"Bytes; at most 10 MB for an image, 200 MB for a video, 20 MB for audio."}}},"AssetUpload":{"type":"object","required":["uploadUrl","url","key","kind","name","contentType"],"properties":{"uploadUrl":{"type":"string","format":"uri","description":"Presigned PUT URL; send the raw bytes here with the same Content-Type."},"url":{"type":"string","format":"uri"},"key":{"type":"string"},"kind":{"type":"string","enum":["logo","inspiration","castReference","photo","video","audio"]},"name":{"type":"string"},"contentType":{"type":"string"}}},"CastMember":{"type":"object","required":["id","name","lookPrompt","lifestylePrompt","references","active","createdAt"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"lookPrompt":{"type":"string","description":"Reproduced verbatim in every composed prompt."},"lifestylePrompt":{"type":["string","null"]},"references":{"type":"array","items":{"$ref":"#/components/schemas/Asset"},"description":"Reference photos, in model order."},"active":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}}},"CastMemberList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CastMember"}}}},"CastMemberInput":{"type":"object","required":["name","lookPrompt","lifestylePrompt","referenceAssetIds"],"properties":{"name":{"type":"string","maxLength":120},"lookPrompt":{"type":"string","maxLength":1000,"description":"Reproduced verbatim in every composed prompt; keep it stable or the face drifts."},"lifestylePrompt":{"type":"string","maxLength":1000,"description":"Context the composer may draw on. Empty string clears it."},"referenceAssetIds":{"type":"array","items":{"type":"string"},"maxItems":4,"description":"Ids of assets with kind `castReference`, in the order they are passed to the model."}}},"CastMemberPatchInput":{"type":"object","description":"Any subset of the create fields; omitted fields keep their stored value.","properties":{"name":{"type":"string","maxLength":120},"lookPrompt":{"type":"string","maxLength":1000,"description":"Reproduced verbatim in every composed prompt; keep it stable or the face drifts."},"lifestylePrompt":{"type":"string","maxLength":1000,"description":"Context the composer may draw on. Empty string clears it."},"referenceAssetIds":{"type":"array","items":{"type":"string"},"maxItems":4,"description":"Ids of assets with kind `castReference`, in the order they are passed to the model."}}},"ComposeInput":{"type":"object","properties":{"idea":{"type":"string","maxLength":500,"description":"Rough idea to expand; omit to let the composer invent one."},"castMemberId":{"type":"string"}}},"ComposeResult":{"type":"object","required":["idea","prompt"],"properties":{"idea":{"type":"string"},"prompt":{"type":"string","description":"Editable; pass to `POST /v1/creations` as `prompt`."}}},"Creation":{"type":"object","required":["id","mediaType","status","aspectRatio","idea","prompt","overlay","url","rawUrl","videoUrl","durationSeconds","motionPrompt","soundId","sourceCreationId","error","creditCost","castMemberId","createdAt","completedAt"],"properties":{"id":{"type":"string"},"mediaType":{"type":"string","enum":["image","video"],"description":"An image, or a video whose `url` is its cover frame."},"status":{"type":"string","enum":["pending","generating","complete","failed"]},"aspectRatio":{"type":"string","enum":["square","portrait","landscape","story"]},"idea":{"type":["string","null"]},"prompt":{"type":"string"},"overlay":{"oneOf":[{"$ref":"#/components/schemas/Overlay"},{"type":"null"}]},"url":{"type":["string","null"],"format":"uri","description":"Final (overlaid) image, or a video's cover; null until complete."},"rawUrl":{"type":["string","null"],"format":"uri","description":"Un-overlaid image; enables free overlay re-renders."},"videoUrl":{"type":["string","null"],"format":"uri","description":"The rendered reel, for a video; null until the clip lands."},"durationSeconds":{"type":["number","null"]},"motionPrompt":{"type":["string","null"]},"soundId":{"type":["string","null"]},"sourceCreationId":{"type":["string","null"],"description":"The still a clip was animated from."},"error":{"type":["string","null"]},"creditCost":{"type":"integer"},"castMemberId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}}},"CreationList":{"type":"object","required":["data","pagination"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Creation"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"CreationInput":{"type":"object","required":["prompt","aspectRatio"],"properties":{"prompt":{"type":"string","maxLength":4000,"description":"The full image prompt, typically from the compose endpoint."},"idea":{"type":"string","maxLength":500},"aspectRatio":{"type":"string","enum":["square","portrait","landscape","story"]},"overlay":{"$ref":"#/components/schemas/Overlay"},"inspirationAssetIds":{"type":"array","items":{"type":"string"},"maxItems":4,"description":"Ignored when `castMemberId` is set."},"castMemberId":{"type":"string","description":"Conditions the image on this member's reference photos and look."},"mediaType":{"type":"string","enum":["image","video"],"description":"Defaults to `image`. `video` generates the image at `aspectRatio`, then animates it into a clip of the same shape. A reel slot wants `story`."},"motionPrompt":{"type":"string","maxLength":1000,"description":"Video only. What moves and how."},"durationSeconds":{"type":"integer","minimum":3,"maximum":15,"description":"Video only. Snapped to the nearest length the model offers."},"soundId":{"type":"string","description":"Video only. A library sound. Omitted keeps the model's own audio."}}},"OverlayPatchInput":{"type":"object","required":["overlay"],"properties":{"overlay":{"oneOf":[{"$ref":"#/components/schemas/Overlay"},{"type":"null","description":"Removes the overlay."}]}}},"Playbook":{"type":"object","description":"An autopilot series' current strategy, rewritten by each review.","required":["cadencePerWeek","formatWeights","postHoursUtc","directions","experiments","summary"],"properties":{"cadencePerWeek":{"type":"integer"},"formatWeights":{"type":"array","items":{"type":"object","required":["format","weight"],"properties":{"format":{"type":"string","enum":["post","carousel","story","reel"]},"weight":{"type":"number"}}}},"postHoursUtc":{"type":"array","items":{"type":"integer"}},"directions":{"type":"array","items":{"type":"object","required":["direction","action","rationale"],"properties":{"direction":{"type":"string"},"action":{"type":"string","enum":["push","keep","retire"]},"rationale":{"type":"string"}}}},"overlayGuidance":{"type":"string"},"experiments":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"}}},"Series":{"type":"object","required":["id","name","mode","active","theme","goal","guidance","caption","format","formats","generateHashtags","hashtags","aspectRatio","cadenceDays","hourUtc","hourPinned","maxPerWeek","postsPerWeek","weekdaysUtc","creditBudgetMonthly","castMemberId","inspirationAssetIds","playbook","overlay","socialAccountId","delivery","crosspostAccountIds","tiktok","audioMode","soundIds","videoModel","createdAt"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"mode":{"type":"string","enum":["manual","autopilot"]},"active":{"type":"boolean"},"theme":{"type":["string","null"]},"goal":{"type":["string","null"]},"guidance":{"type":["string","null"]},"caption":{"type":["string","null"]},"format":{"type":["string","null"],"enum":["post","carousel","story","reel",null]},"formats":{"type":"array","items":{"type":"string","enum":["post","carousel","story","reel"]}},"generateHashtags":{"type":"boolean"},"hashtags":{"type":"array","items":{"type":"string"}},"aspectRatio":{"type":"string","enum":["square","portrait","landscape","story"]},"cadenceDays":{"type":["integer","null"]},"hourUtc":{"type":"integer"},"hourPinned":{"type":"boolean"},"maxPerWeek":{"type":["integer","null"]},"postsPerWeek":{"type":["integer","null"]},"weekdaysUtc":{"type":"array","items":{"type":"integer"}},"creditBudgetMonthly":{"type":["integer","null"]},"castMemberId":{"type":["string","null"]},"inspirationAssetIds":{"type":"array","items":{"type":"string"}},"playbook":{"oneOf":[{"$ref":"#/components/schemas/Playbook"},{"type":"null"}]},"overlay":{"oneOf":[{"$ref":"#/components/schemas/Overlay"},{"type":"null"}]},"socialAccountId":{"type":["string","null"]},"delivery":{"type":"string","enum":["auto","handoff"]},"crosspostAccountIds":{"type":"array","items":{"type":"string"}},"tiktok":{"oneOf":[{"$ref":"#/components/schemas/TiktokSettings"},{"type":"null"}]},"audioMode":{"type":"string","enum":["off","library","trending"]},"soundIds":{"type":"array","items":{"type":"string"}},"videoModel":{"type":["string","null"],"enum":["klingai:kling-v2.6-i2v","klingai:kling-v3.0-i2v",null]},"createdAt":{"type":"string","format":"date-time"}}},"SeriesList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Series"}}}},"SeriesInput":{"type":"object","required":["name","mode","aspectRatio","hourUtc"],"description":"Manual mode additionally requires `theme`, `format`, and `cadenceDays`; autopilot requires `goal`.","properties":{"name":{"type":"string","maxLength":120},"mode":{"type":"string","enum":["manual","autopilot"]},"theme":{"type":"string","maxLength":1000,"description":"Manual mode: what the series is about."},"caption":{"type":"string","maxLength":2200,"description":"Manual mode: caption used when publishing. Empty publishes without one."},"format":{"type":"string","enum":["post","carousel","story","reel"],"description":"Manual mode: the fixed format."},"formats":{"type":"array","items":{"type":"string","enum":["post","carousel","story","reel"]},"description":"Autopilot: the formats it may plan. Empty allows every format."},"cadenceDays":{"type":"integer","minimum":1,"maximum":30,"description":"Manual mode: days between posts."},"goal":{"type":"string","maxLength":1000,"description":"Autopilot: what the series should achieve."},"guidance":{"type":"string","maxLength":2000,"description":"Autopilot: product context the strategist leans on."},"generateHashtags":{"type":"boolean","description":"Autopilot: write hashtags for each post beyond the pinned ones. Default true; false posts the pinned ones alone, or none."},"hashtags":{"type":"array","items":{"type":"string"},"maxItems":5,"description":"Hashtags on every post, without the `#`. Instagram allows five in all."},"maxPerWeek":{"type":"integer","minimum":1,"maximum":21,"description":"Autopilot: hard ceiling on posts per week."},"postsPerWeek":{"type":"integer","minimum":1,"maximum":21,"description":"Autopilot: post exactly this many per week, at or under `maxPerWeek`. Omit to let the strategist choose."},"weekdaysUtc":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"description":"Autopilot: the UTC weekdays it posts on, 0 is Sunday. Empty or omitted posts on any day. Series plan independently, so give each series on one account its own days to keep the account to one post a day."},"creditBudgetMonthly":{"type":"integer","minimum":1,"maximum":100000,"description":"Hard ceiling on credits per month for this series."},"aspectRatio":{"type":"string","enum":["square","portrait","landscape","story"]},"hourUtc":{"type":"integer","minimum":0,"maximum":23},"hourPinned":{"type":"boolean","description":"Autopilot: post at `hourUtc` every day instead of the strategist's hours. Omit or false to let the strategist choose."},"socialAccountId":{"type":"string","description":"Connected Instagram or TikTok account to publish to. Empty string stops items at ready."},"delivery":{"type":"string","enum":["auto","handoff"],"description":"`auto` posts each slot through the platform's API. `handoff` gives it to the operator instead: a draft in TikTok's inbox, or a Discord message with the file, caption, and sound for Instagram. Omitted posts on Instagram and hands off on TikTok."},"crosspostAccountIds":{"type":"array","items":{"type":"string"},"maxItems":5,"description":"Other connected accounts each slot is also sent to, after the series' own. Stories are never sent on."},"tiktok":{"oneOf":[{"$ref":"#/components/schemas/TiktokSettings"},{"type":"null"}],"description":"Settings for posting straight to TikTok. Null sends TikTok drafts, which set all of this in the app."},"castMemberId":{"type":"string","description":"The person every slot casts."},"inspirationAssetIds":{"type":"array","items":{"type":"string"},"maxItems":4,"description":"Reference images used when no cast member is set."},"overlay":{"$ref":"#/components/schemas/Overlay"},"audioMode":{"type":"string","enum":["off","library","trending"],"description":"Where a reel's sound comes from: `off` keeps the clip's own audio, `library` picks from `soundIds`, `trending` adds the account's trending Instagram tracks."},"soundIds":{"type":"array","items":{"type":"string"},"maxItems":50,"description":"Library sounds this series may use. Empty allows the whole active library."},"videoModel":{"type":"string","enum":["","klingai:kling-v2.6-i2v","klingai:kling-v3.0-i2v"],"description":"The video model reels are animated with. Empty uses the brand's default."}}},"SeriesPatchInput":{"type":"object","description":"Any subset of the create fields plus `active`; omitted fields keep their stored value.","properties":{"name":{"type":"string","maxLength":120},"mode":{"type":"string","enum":["manual","autopilot"]},"theme":{"type":"string","maxLength":1000,"description":"Manual mode: what the series is about."},"caption":{"type":"string","maxLength":2200,"description":"Manual mode: caption used when publishing. Empty publishes without one."},"format":{"type":"string","enum":["post","carousel","story","reel"],"description":"Manual mode: the fixed format."},"formats":{"type":"array","items":{"type":"string","enum":["post","carousel","story","reel"]},"description":"Autopilot: the formats it may plan. Empty allows every format."},"cadenceDays":{"type":"integer","minimum":1,"maximum":30,"description":"Manual mode: days between posts."},"goal":{"type":"string","maxLength":1000,"description":"Autopilot: what the series should achieve."},"guidance":{"type":"string","maxLength":2000,"description":"Autopilot: product context the strategist leans on."},"generateHashtags":{"type":"boolean","description":"Autopilot: write hashtags for each post beyond the pinned ones. Default true; false posts the pinned ones alone, or none."},"hashtags":{"type":"array","items":{"type":"string"},"maxItems":5,"description":"Hashtags on every post, without the `#`. Instagram allows five in all."},"maxPerWeek":{"type":"integer","minimum":1,"maximum":21,"description":"Autopilot: hard ceiling on posts per week."},"postsPerWeek":{"type":["integer","null"],"minimum":1,"maximum":21,"description":"Null hands cadence back to the strategist."},"weekdaysUtc":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"description":"Autopilot: the UTC weekdays it posts on, 0 is Sunday. Empty or omitted posts on any day. Series plan independently, so give each series on one account its own days to keep the account to one post a day."},"creditBudgetMonthly":{"type":"integer","minimum":1,"maximum":100000,"description":"Hard ceiling on credits per month for this series."},"aspectRatio":{"type":"string","enum":["square","portrait","landscape","story"]},"hourUtc":{"type":"integer","minimum":0,"maximum":23},"hourPinned":{"type":"boolean","description":"Autopilot: post at `hourUtc` every day instead of the strategist's hours. Omit or false to let the strategist choose."},"socialAccountId":{"type":"string","description":"Connected Instagram or TikTok account to publish to. Empty string stops items at ready."},"delivery":{"type":"string","enum":["auto","handoff"],"description":"`auto` posts each slot through the platform's API. `handoff` gives it to the operator instead: a draft in TikTok's inbox, or a Discord message with the file, caption, and sound for Instagram. Omitted posts on Instagram and hands off on TikTok."},"crosspostAccountIds":{"type":"array","items":{"type":"string"},"maxItems":5,"description":"Other connected accounts each slot is also sent to, after the series' own. Stories are never sent on."},"tiktok":{"oneOf":[{"$ref":"#/components/schemas/TiktokSettings"},{"type":"null"}],"description":"Settings for posting straight to TikTok. Null sends TikTok drafts, which set all of this in the app."},"castMemberId":{"type":["string","null"],"description":"Null clears the cast."},"inspirationAssetIds":{"type":"array","items":{"type":"string"},"maxItems":4,"description":"Reference images used when no cast member is set."},"overlay":{"$ref":"#/components/schemas/Overlay"},"audioMode":{"type":"string","enum":["off","library","trending"],"description":"Where a reel's sound comes from: `off` keeps the clip's own audio, `library` picks from `soundIds`, `trending` adds the account's trending Instagram tracks."},"soundIds":{"type":"array","items":{"type":"string"},"maxItems":50,"description":"Library sounds this series may use. Empty allows the whole active library."},"videoModel":{"type":"string","enum":["","klingai:kling-v2.6-i2v","klingai:kling-v3.0-i2v"],"description":"The video model reels are animated with. Empty uses the brand's default."},"active":{"type":"boolean"}}},"ItemCaption":{"type":"object","required":["id","caption","hashtags"],"properties":{"id":{"type":"string"},"caption":{"type":"string"},"hashtags":{"type":"array","items":{"type":"string"},"maxItems":5,"description":"Without the leading #."}}},"SeriesItemInput":{"type":"object","description":"At most one of `creationId`, `assetId`, `sourceUrl`, and `assetIds`; `idea` only without them.","properties":{"scheduledFor":{"type":"string","format":"date-time","description":"When to publish. Omitted takes the series' next free posting hour."},"format":{"type":"string","enum":["post","carousel","story","reel"],"description":"Defaults to the series' format on a manual series and to `post` on autopilot. A single supplied image can't be a carousel; `assetIds` makes one."},"idea":{"type":"string","maxLength":500,"description":"What the post should be about; the brief is built on it instead of inventing one."},"creationId":{"type":"string","description":"A finished creation no other slot uses."},"assetId":{"type":"string","description":"A photo to publish as it is, cropped to the slot's shape, or a kind `video` asset, which makes the slot a reel."},"sourceUrl":{"type":"string","format":"uri","description":"A public image URL, imported as an asset of kind `photo` first; a video URL makes a reel."},"assetIds":{"type":"array","items":{"type":"string"},"minItems":2,"maxItems":10,"description":"A carousel's slides in order, each a kind `photo` asset, posted as they are after a crop to the slot's shape."},"soundId":{"type":"string","description":"A library sound for a supplied video. Omitted takes the series' first allowed sound."},"generateNow":{"type":"boolean","description":"Generate the slot's images inline instead of waiting for the scheduler. Ignored with an image."}}},"SeriesItemPatchInput":{"type":"object","description":"Any subset of a slot's editable fields; omitted fields keep their stored value.","properties":{"caption":{"type":"string","maxLength":2200,"description":"Empty falls back to the series' caption at publish time."},"hashtags":{"type":"array","items":{"type":"string"},"maxItems":5,"description":"Without the leading #. Instagram allows five."},"scheduledFor":{"type":"string","format":"date-time","description":"A future time no other slot of the series holds."},"format":{"type":"string","enum":["post","carousel","story","reel"],"description":"Only while the slot has no images."},"soundId":{"type":"string","description":"A library sound for the slot's finished video. Moving between Instagram tracks is instant; an uploaded track renders the video again, and the slot reads `generating` until it is `ready`."}}},"TiktokSettings":{"type":"object","required":["privacy","allowComments","allowDuet","allowStitch","brandContent","brandOrganic"],"properties":{"privacy":{"type":"string","enum":["everyone","friends","followers","onlyMe"],"description":"Who can see the post. Must be one the account allows."},"allowComments":{"type":"boolean"},"allowDuet":{"type":"boolean"},"allowStitch":{"type":"boolean"},"brandContent":{"type":"boolean","description":"A paid partnership promoting someone else's business."},"brandOrganic":{"type":"boolean","description":"The post promotes the account's own business."}}},"SeriesItemPostedInput":{"type":"object","properties":{"postId":{"type":"string","description":"The ingested post that came of the hand-off, from `GET /v1/posts`."},"socialAccountId":{"type":"string","description":"Which of the slot's accounts it went out on. Omitted takes the post's own, or the first still waiting."}}},"SeriesItem":{"type":"object","required":["id","status","scheduledFor","format","origin","idea","caption","hashtags","decision","error","publishedAt","handedOffAt","externalPostId","creations"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["planned","generating","ready","held","publishing","handedOff","published","failed","skipped"]},"scheduledFor":{"type":"string","format":"date-time"},"format":{"type":"string","enum":["post","carousel","story","reel"]},"origin":{"type":"string","enum":["scheduler","operator"],"description":"`scheduler` when planning laid the slot down, `operator` when a person added it. Planning never drops an operator's slot."},"idea":{"type":["string","null"],"description":"What the person who added the slot asked it to be about."},"caption":{"type":["string","null"]},"hashtags":{"type":"array","items":{"type":"string"}},"decision":{"type":["object","null"],"description":"The creative brief the playbook chose for this slot, with `review` holding the quality review's verdict, problems, and retries, and `review.rejected` the images it turned down and why."},"error":{"type":["string","null"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"handedOffAt":{"type":["string","null"],"format":"date-time","description":"When the slot was handed to a person to post. A `handedOff` slot turns `published` once its post appears on the account."},"externalPostId":{"type":["string","null"],"description":"The ingested post's id once published; joinable to `GET /v1/posts/{id}`."},"creations":{"type":"array","items":{"$ref":"#/components/schemas/Creation"},"description":"Slide order; one, or several for a carousel."}}},"SeriesReview":{"type":"object","required":["id","rationale","scoredItems","playbook","periodStart","periodEnd","createdAt"],"properties":{"id":{"type":"string"},"rationale":{"type":"string"},"scoredItems":{"type":"integer"},"playbook":{"$ref":"#/components/schemas/Playbook"},"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"}}},"SeriesDetail":{"allOf":[{"$ref":"#/components/schemas/Series"},{"type":"object","required":["items","reviews"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SeriesItem"},"description":"Upcoming and recent slots, soonest first."},"reviews":{"type":"array","items":{"$ref":"#/components/schemas/SeriesReview"},"description":"Strategy history, newest first."}}}]},"PostMetrics":{"type":"object","description":"A post's numbers at one reading. A null means the platform does not report that metric, which is not the same as zero.","required":["views","impressions","reach","likes","comments","shares","saves","clicks","engagementRate","capturedAt"],"properties":{"views":{"type":"integer"},"impressions":{"type":"integer"},"reach":{"type":["integer","null"],"description":"Unique accounts reached. Null on platforms with no equivalent."},"likes":{"type":"integer"},"comments":{"type":"integer"},"shares":{"type":"integer"},"saves":{"type":["integer","null"],"description":"Instagram only."},"clicks":{"type":["integer","null"],"description":"Link clicks. Null where the post carries no link."},"engagementRate":{"type":"number","description":"(likes + comments + shares + saves) / impressions, as a fraction."},"capturedAt":{"type":"string","format":"date-time"}}},"Account":{"type":"object","required":["id","platform","handle","displayName","avatarUrl","profileUrl","followerCount","followersUpdatedAt","needsReconnect"],"properties":{"id":{"type":"string"},"platform":{"type":"string","enum":["instagram","linkedin","tiktok","youtube"]},"handle":{"type":"string","description":"Without the leading @."},"displayName":{"type":"string"},"avatarUrl":{"type":["string","null"],"format":"uri","description":"Null when the platform doesn't expose a profile picture or the account has none."},"profileUrl":{"type":"string","format":"uri","description":"The public profile on the platform."},"followerCount":{"type":"integer"},"followersUpdatedAt":{"type":["string","null"],"format":"date-time","description":"When `followerCount` was read. Null before the first daily reading, when the count is the one taken at connect."},"needsReconnect":{"type":"boolean","description":"The connection has lapsed, so the count has stopped updating."}}},"AccountList":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Account"}}}},"Post":{"type":"object","required":["id","platform","format","title","url","caption","hashtags","thumbnailUrl","mediaUrls","publishedAt","removedAt","metrics"],"properties":{"id":{"type":"string"},"platform":{"type":"string","enum":["instagram","linkedin","tiktok","youtube"]},"format":{"type":"string","enum":["carousel","image","reel","story","text","video"]},"title":{"type":["string","null"],"description":"Null where the platform has no native title."},"url":{"type":"string","format":"uri"},"caption":{"type":"string"},"hashtags":{"type":"array","items":{"type":"string"},"description":"Normalized keys, without the leading #."},"thumbnailUrl":{"type":["string","null"],"format":"uri"},"mediaUrls":{"type":"array","items":{"type":"string","format":"uri"},"description":"Every image of the post in order, cover first."},"publishedAt":{"type":"string","format":"date-time"},"removedAt":{"type":["string","null"],"format":"date-time","description":"When the platform stopped serving the post: deleted, archived, or made private. Null while it is live."},"metrics":{"$ref":"#/components/schemas/PostMetrics"}}},"PostMedia":{"type":"object","description":"One image or video of a post, with what analysis found in it. An analysis field is null until it has run, or when it found nothing.","required":["mediaType","position","url","thumbnailUrl","hook","description","transcript","onScreenText"],"properties":{"mediaType":{"type":"string","enum":["image","video"]},"position":{"type":"integer","description":"Slide order; 0 is the cover."},"url":{"type":["string","null"],"format":"uri"},"thumbnailUrl":{"type":["string","null"],"format":"uri","description":"The image itself, or a video's poster frame."},"hook":{"type":["string","null"],"description":"What the viewer reads or hears in the first seconds, verbatim."},"description":{"type":["string","null"],"description":"What happens, start to end. For a video, its clips in order."},"transcript":{"type":["string","null"],"description":"Speech-to-text of a video, as the transcriber returned it."},"onScreenText":{"type":["string","null"],"description":"Every distinct line of text the creator put on the image or video, one per line, in order of first appearance."}}},"PostDetail":{"allOf":[{"$ref":"#/components/schemas/Post"},{"type":"object","required":["snapshots","media"],"properties":{"snapshots":{"type":"array","items":{"$ref":"#/components/schemas/PostMetrics"},"description":"Cumulative lifetime readings, oldest first."},"media":{"type":"array","items":{"$ref":"#/components/schemas/PostMedia"},"description":"Every image and video of the post in slide order, with its analysis."}}}]},"Pagination":{"type":"object","required":["page","perPage","total","pageCount"],"properties":{"page":{"type":"integer"},"perPage":{"type":"integer"},"total":{"type":"integer"},"pageCount":{"type":"integer"}}},"PostList":{"type":"object","required":["data","pagination"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Post"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized","forbidden","notFound","validationError","rateLimitExceeded","quotaExceeded","creditsExhausted","planRequired","conflict","serviceUnavailable"]},"message":{"type":"string","description":"Human-readable detail. Branch on `code`, not on this."}}}}}},"responses":{"400":{"description":"A parameter or body field is missing, malformed, or out of range.","headers":{"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key was sent, or the key is unknown or revoked.","headers":{"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The brand is out of credits: the month's allowance is spent and no purchased credits remain.","headers":{"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key is valid but lacks a scope the endpoint requires. The request uses something the brand's plan does not include, such as a video model reserved for a higher plan.","headers":{"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Nothing with that id exists in this brand.","headers":{"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The resource isn't in a state that allows this (already publishing, not failed, and so on), or an `Idempotency-Key` was reused with a different body or while its first request is still running.","headers":{"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests in one minute. Retry after the window resets. The monthly request quota is used up. It resets at the start of next month.","headers":{"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"An upstream dependency didn't answer. Safe to retry shortly.","headers":{"X-Request-Id":{"description":"Identifies this request. Quote it when you contact support.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"x-rateLimits":{"free":{"requestsPerSecond":1,"requestsPerMonth":500,"maxKeys":1,"creditsPerMonth":300},"creator":{"requestsPerSecond":5,"requestsPerMonth":25000,"maxKeys":5,"creditsPerMonth":3000},"studio":{"requestsPerSecond":20,"requestsPerMonth":250000,"maxKeys":20,"creditsPerMonth":8000}}}