{"openapi":"3.1.0","info":{"title":"cuil.si API","version":"1.0.0","description":"The cuil.si API lets your own apps and servers do what people do in cuil.si: make images and videos,\nwrite and schedule social posts, manage the Library, brands, films, edits and automations, and get webhooks when\nthings happen.\n\nSend your API key in every request: `Authorization: Bearer gin_live_...`. Keys are made by workspace admins in\nSettings > Developers. Call the API from your server, never from a web page, because the key is a secret.\n\nGuides, examples, error codes, rate limits and the versioning promise: https://cuil.si/developers","termsOfService":"https://cuil.si/terms","contact":{"name":"cuil.si developers","url":"https://cuil.si/developers"}},"servers":[{"url":"https://ginie.lokaverse.ai","description":"cuil.si"}],"externalDocs":{"description":"Guides and examples","url":"https://cuil.si/developers"},"tags":[{"name":"account","x-displayName":"Account","description":"Who the API key acts as, and the workspace's credits."},{"name":"create","x-displayName":"Create","description":"Images, videos, voice-overs, transcripts and written posts. These use credits."},{"name":"library","x-displayName":"Library","description":"Upload, find, rename, tag and delete the files in your Library."},{"name":"brand","x-displayName":"Brands and characters","description":"Brand kits and the characters that appear in your images and films."},{"name":"social","x-displayName":"Social posts","description":"Schedule and publish posts to the social accounts connected in cuil.si. Posts to YouTube come only from people in cuil.si and the automations they set up there, and posts to TikTok only from people in cuil.si."},{"name":"analytics","x-displayName":"Analytics","description":"How your published posts are doing."},{"name":"movies","x-displayName":"Films","description":"Make a short film from an idea: script, shots and the final cut."},{"name":"editor","x-displayName":"Editor","description":"Timelines, exports and automatic captions."},{"name":"automations","x-displayName":"Automations","description":"Run, follow and approve your automations, and build new ones. A key can't make, change, switch on, run or approve one that posts to YouTube (403 youtube_in_automation)."},{"name":"webhooks","x-displayName":"Webhooks","description":"Get a signed request on your server when something happens in cuil.si."},{"name":"leads","x-displayName":"Leads","description":"People and companies from your website forms and outreach."}],"security":[{"bearerAuth":[]}],"paths":{"/api/v1/auth/me":{"get":{"operationId":"getMe","summary":"The person the key acts as, their role and the key's workspace.","tags":["account"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"account:read"}},"/api/v1/credits":{"get":{"operationId":"getCredits","summary":"The workspace's credit balance and when credits next expire.","tags":["account"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditsOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"account:read"}},"/api/v1/credits/ledger":{"get":{"operationId":"listCreditHistory","summary":"Credits added and used, newest first.","tags":["account"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Ledger Api V1 Credits Ledger Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"account:read"}},"/api/v1/company":{"get":{"operationId":"getEnterprise","summary":"Enterprise workspaces: their Enterprise tools, and how many people have two-step sign-in on (403 enterprise_only in other workspaces).","tags":["account"],"description":"Your cuil.si Enterprise: until when, its tools, and how many people here have two-step sign-in on. Enterprise\nworkspaces only (403 enterprise_only elsewhere); owners and admins.","responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"account:read"}},"/api/v1/company/audit-log":{"get":{"operationId":"listAuditLog","summary":"Enterprise workspaces: who did what, people and AI alike (sign-ins, the team and roles, API keys, downloads, settings and AI jobs), newest first, a page at a time. A key with Team access (403 enterprise_only in other workspaces).","tags":["account"],"description":"Who did what in this workspace, people and AI alike, newest first: sign-ins, the team and roles, Enterprise,\nAPI keys, downloads, settings and AI jobs. Enterprise workspaces only; owners and admins.","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"User Id"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Kind"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"To"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Audit Log Api V1 Company Audit Log Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"account:read"}},"/api/v1/ai/models":{"get":{"operationId":"listModels","summary":"The AI models you can use, grouped by kind and mode.","tags":["create"],"description":"Available models grouped by kind and mode, with the model each quality level uses.","responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"additionalProperties":{"additionalProperties":{"$ref":"#/components/schemas/ModelGroupOut"},"type":"object"},"type":"object","title":"Response List Models Api V1 Ai Models Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:read"}},"/api/v1/ai/styles":{"get":{"operationId":"listStyles","summary":"The styles you can ask for instead of a model, with about what each quality costs.","tags":["create"],"description":"The styles you can ask for instead of a model (pass `style` to POST /generations or /generations/estimate),\nby kind and mode, Auto first: each style's key, label, what it is best at, about how many credits one request costs\nat each quality (one picture, or a 5 s clip; the estimate gives the exact price) and what it can take.","responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"additionalProperties":{"additionalProperties":{"items":{"$ref":"#/components/schemas/StyleOut"},"type":"array"},"type":"object"},"type":"object","title":"Response List Styles Api V1 Ai Styles Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:read"}},"/api/v1/ai/enhance":{"post":{"operationId":"enhancePrompt","summary":"Rewrite a short idea into a detailed prompt.","tags":["create"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnhanceRequest"}}},"required":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnhanceOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:write"}},"/api/v1/generations/estimate":{"post":{"operationId":"estimateGeneration","summary":"How many credits a generation would use.","tags":["create"],"parameters":[{"name":"options","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Options"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationCreate"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:write"}},"/api/v1/generations":{"post":{"operationId":"createGeneration","summary":"Start an image, video, voice-over or transcript. Answers at once with its id.","tags":["create"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationCreate"}}}},"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:write"},"get":{"operationId":"listGenerations","summary":"Your generations, newest first.","tags":["create"],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["image","video","tts","stt","music","sfx","voice_change","upscale","lipsync"],"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["create","movie","workflow","editor","api","presentation","long_video"],"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["queued","running","succeeded","failed","active"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:read"}},"/api/v1/generations/{generation_id}":{"get":{"operationId":"getGeneration","summary":"One generation, with its status and files.","tags":["create"],"parameters":[{"name":"generation_id","in":"path","required":true,"schema":{"type":"string","title":"Generation Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:read"}},"/api/v1/create/networks":{"get":{"operationId":"listNetworks","summary":"The social networks posts can be written for.","tags":["create"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/NetworkOut"},"type":"array","title":"Response List Networks Api V1 Create Networks Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:read"}},"/api/v1/create/posts/write":{"post":{"operationId":"writePost","summary":"Write a social post with AI, in your brand's voice.","tags":["create"],"description":"Write one post per network from a brief (1 credit) and save it as a draft.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WritePostRequest"}}},"required":true},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDraftOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:write"}},"/api/v1/create/posts":{"get":{"operationId":"listPostDrafts","summary":"Written post drafts, newest first.","tags":["create"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDraftPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:read"}},"/api/v1/create/posts/{draft_id}":{"get":{"operationId":"getPostDraft","summary":"One post draft.","tags":["create"],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDraftOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:read"},"patch":{"operationId":"updatePostDraft","summary":"Change a post draft.","tags":["create"],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDraftUpdate"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDraftOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:write"},"delete":{"operationId":"deletePostDraft","summary":"Delete a post draft.","tags":["create"],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:write"}},"/api/v1/create/posts/{draft_id}/rewrite":{"post":{"operationId":"rewritePost","summary":"Rewrite a post draft (shorter, friendlier, and so on).","tags":["create"],"description":"Rewrite one network's post with an instruction (1 credit). The other networks stay the same.","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RewriteRequest"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostDraftOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"create:write"}},"/api/v1/create/videos/extend":{"post":{"operationId":"extendVideo","summary":"Make a video longer by continuing its last scene.","tags":["create"],"description":"Make a video longer with any video model: the same shot carries on with no cut (\"continue\", a new video\nholding the whole shot), or a new part starts from the clip's last frame, its last seconds or pictures from its\nend and is joined after it (\"<clip> (extended)\"). Returns the generation.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtendVideoRequest"}}},"required":true},"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:write"}},"/api/v1/presentations/setup":{"get":{"operationId":"getPresentationSetup","summary":"What a presentation video can use here: the limits, the looks, the voices and the lengths.","tags":["create"],"description":"Whether presentation videos can be made here, the limits and the choices (voices, looks, lengths).","responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Presentation Setup Api V1 Presentations Setup Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:read"}},"/api/v1/presentations":{"post":{"operationId":"createPresentation","summary":"Start a narrated, animated video from a PDF of slides in your Library. Reading the slides and writing the words is free.","tags":["create"],"description":"Start from a PDF in the Library: the slides are read and their words written (free).","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationCreate"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Presentation Api V1 Presentations Post"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:write"},"get":{"operationId":"listPresentations","summary":"Your presentation videos, newest first.","tags":["create"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Presentations Api V1 Presentations Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:read"}},"/api/v1/presentations/{presentation_id}":{"get":{"operationId":"getPresentation","summary":"One presentation video: each slide's words, the progress, what to check and the video.","tags":["create"],"parameters":[{"name":"presentation_id","in":"path","required":true,"schema":{"type":"string","title":"Presentation Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Presentation Api V1 Presentations  Presentation Id  Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:read"},"patch":{"operationId":"updatePresentation","summary":"Change a presentation video's look, length, voice, music, captions or pictures. Free.","tags":["create"],"description":"The title, the look, the length, the voice, music, captions, style and pictures. Free.","parameters":[{"name":"presentation_id","in":"path","required":true,"schema":{"type":"string","title":"Presentation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationPatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Presentation Api V1 Presentations  Presentation Id  Patch"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:write"},"delete":{"operationId":"deletePresentation","summary":"Delete a presentation video. The PDF and the finished videos stay in your Library.","tags":["create"],"description":"Delete it. The PDF and the finished videos stay in the Library.","parameters":[{"name":"presentation_id","in":"path","required":true,"schema":{"type":"string","title":"Presentation Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:write"}},"/api/v1/presentations/{presentation_id}/slides/{slide_id}":{"patch":{"operationId":"updatePresentationSlide","summary":"Change what the voice says on a slide, or leave the slide out. Free.","tags":["create"],"description":"A slide's words (what the voice says, and how to say a word), its headline and points, its look, or leave it\nout. Free.","parameters":[{"name":"presentation_id","in":"path","required":true,"schema":{"type":"string","title":"Presentation Id"}},{"name":"slide_id","in":"path","required":true,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"The slide's number in the deck, from 1.","title":"Slide Id"},"description":"The slide's number in the deck, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationSlidePatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Slide Api V1 Presentations  Presentation Id  Slides  Slide Id  Patch"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:write"}},"/api/v1/presentations/{presentation_id}/write":{"post":{"operationId":"rewritePresentationWords","summary":"Write the slides' words again. Free; slides you wrote yourself keep your words.","tags":["create"],"description":"Write the words again (free). Slides you wrote yourself keep your words.","parameters":[{"name":"presentation_id","in":"path","required":true,"schema":{"type":"string","title":"Presentation Id"}}],"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Write Again Api V1 Presentations  Presentation Id  Write Post"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:write"}},"/api/v1/presentations/{presentation_id}/estimate":{"get":{"operationId":"estimatePresentation","summary":"The price of making the video (or one slide again), and the most it can use.","tags":["create"],"description":"One total before anything is made (or for one slide made again), and the most it can use. Free.","parameters":[{"name":"presentation_id","in":"path","required":true,"schema":{"type":"string","title":"Presentation Id"}},{"name":"slide","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"title":"Slide"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Presentation Estimate Api V1 Presentations  Presentation Id  Estimate Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:read"}},"/api/v1/presentations/{presentation_id}/make":{"post":{"operationId":"makePresentation","summary":"Make the video for the total estimatePresentation showed. It is checked and fixed before it's ready.","tags":["create"],"description":"Make the video for the total shown: each slide's voice, picture and scene, then the video, checked and\nfixed before it is shown.","parameters":[{"name":"presentation_id","in":"path","required":true,"schema":{"type":"string","title":"Presentation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationMake"}}}},"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Make Presentation Api V1 Presentations  Presentation Id  Make Post"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:write"}},"/api/v1/presentations/{presentation_id}/slides/{slide_id}/remake":{"post":{"operationId":"remakePresentationSlide","summary":"Make one slide again with its new words, then the video again.","tags":["create"],"description":"Make one slide again with its new words, then the video again.","parameters":[{"name":"presentation_id","in":"path","required":true,"schema":{"type":"string","title":"Presentation Id"}},{"name":"slide_id","in":"path","required":true,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"The slide's number in the deck, from 1.","title":"Slide Id"},"description":"The slide's number in the deck, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationMake"}}}},"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remake Slide Api V1 Presentations  Presentation Id  Slides  Slide Id  Remake Post"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:write"}},"/api/v1/presentations/{presentation_id}/stop":{"post":{"operationId":"stopPresentation","summary":"Stop making a presentation video. What was made is kept.","tags":["create"],"description":"Stop making it. What was made is kept; nothing more is spent.","parameters":[{"name":"presentation_id","in":"path","required":true,"schema":{"type":"string","title":"Presentation Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Stop Presentation Api V1 Presentations  Presentation Id  Stop Post"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"create:write"}},"/api/v1/assets/upload":{"post":{"operationId":"uploadAsset","summary":"Upload an image, video or audio file (up to 500 MB).","tags":["library"],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UploadAssetBody"}}},"required":true},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"library:write"}},"/api/v1/assets":{"get":{"operationId":"listAssets","summary":"Files in your Library, newest first. Filter by kind, tag or search.","tags":["library"],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"include_hidden","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Hidden"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","oldest","name","size"],"type":"string","default":"newest","title":"Sort"}},{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Added on or after this day (UTC).","title":"Since"},"description":"Added on or after this day (UTC)."},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Added on or before this day (UTC).","title":"Until"},"description":"Added on or before this day (UTC)."},{"name":"made_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"\"me\" or a person's id.","title":"Made By"},"description":"\"me\" or a person's id."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"library:read"}},"/api/v1/assets/{asset_id}":{"get":{"operationId":"getAsset","summary":"One file, with a link to download it.","tags":["library"],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"library:read"},"patch":{"operationId":"updateAsset","summary":"Rename a file or change its tags.","tags":["library"],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUpdate"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"library:write"},"delete":{"operationId":"deleteAsset","summary":"Delete a file from your Library.","tags":["library"],"description":"Delete one file for good (no Trash for Library files): refused under a legal hold (GIN-560, 409 legal_hold).","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"library:write"}},"/api/v1/brands":{"get":{"operationId":"listBrands","summary":"Your brand kits.","tags":["brand"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BrandOut"},"type":"array","title":"Response List Brands Api V1 Brands Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:read"},"post":{"operationId":"createBrand","summary":"Add a brand kit.","tags":["brand"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandCreate"}}},"required":true},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:write"}},"/api/v1/brands/{brand_id}":{"get":{"operationId":"getBrand","summary":"One brand kit.","tags":["brand"],"parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","title":"Brand Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:read"},"patch":{"operationId":"updateBrand","summary":"Change a brand kit.","tags":["brand"],"parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","title":"Brand Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandUpdate"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:write"},"delete":{"operationId":"deleteBrand","summary":"Delete a brand kit.","tags":["brand"],"parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","title":"Brand Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:write"}},"/api/v1/brands/{brand_id}/default":{"post":{"operationId":"setDefaultBrand","summary":"Make this the workspace's main brand.","tags":["brand"],"parameters":[{"name":"brand_id","in":"path","required":true,"schema":{"type":"string","title":"Brand Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:write"}},"/api/v1/characters":{"get":{"operationId":"listCharacters","summary":"Your characters.","tags":["brand"],"parameters":[{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only this brand's characters (a brand id from GET /api/v1/brands), or \"none\" for the characters with no brand. Left out: every brand's.","title":"Brand Id"},"description":"Only this brand's characters (a brand id from GET /api/v1/brands), or \"none\" for the characters with no brand. Left out: every brand's."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CharacterOut"},"title":"Response List Characters Api V1 Characters Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:read"},"post":{"operationId":"createCharacter","summary":"Add a character.","tags":["brand"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacterCreate"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacterOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:write"}},"/api/v1/characters/voices":{"get":{"operationId":"listVoices","summary":"The voices a character can speak with.","tags":["brand"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/VoiceOut"},"type":"array","title":"Response List Voices Api V1 Characters Voices Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:read"}},"/api/v1/characters/{character_id}":{"get":{"operationId":"getCharacter","summary":"One character.","tags":["brand"],"parameters":[{"name":"character_id","in":"path","required":true,"schema":{"type":"string","title":"Character Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacterOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:read"},"patch":{"operationId":"updateCharacter","summary":"Change a character.","tags":["brand"],"parameters":[{"name":"character_id","in":"path","required":true,"schema":{"type":"string","title":"Character Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacterUpdate"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacterOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:write"},"delete":{"operationId":"deleteCharacter","summary":"Delete a character.","tags":["brand"],"parameters":[{"name":"character_id","in":"path","required":true,"schema":{"type":"string","title":"Character Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"brand:write"}},"/api/v1/brands/import":{"post":{"operationId":"importBrandFromWebsite","summary":"Fill in a brand kit from a website: name, colours, logo and voice.","tags":["brand"],"description":"Read a website into a brand draft (not saved). The logo, when found, is saved to the Library.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandImportIn"}}},"required":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandImportOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"brand:write"}},"/api/v1/characters/{character_id}/voice-preview":{"post":{"operationId":"previewCharacterVoice","summary":"Make a short sample of the character's voice.","tags":["brand"],"parameters":[{"name":"character_id","in":"path","required":true,"schema":{"type":"string","title":"Character Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VoicePreviewIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"brand:write"}},"/api/v1/characters/{character_id}/generate-look":{"post":{"operationId":"generateCharacterLook","summary":"Make a picture of the character from its description.","tags":["brand"],"parameters":[{"name":"character_id","in":"path","required":true,"schema":{"type":"string","title":"Character Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GenerateLookIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"brand:write"}},"/api/v1/social/accounts":{"get":{"operationId":"listSocialAccounts","summary":"Social accounts connected in cuil.si.","tags":["social"],"description":"The connected accounts, each with its brand (brand_name \"Another brand\" for one you may not use). brand_id:\nthat brand's accounts and those with no brand.","parameters":[{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"The brand switcher (GIN-574): only this brand's items. 404 for a brand of another workspace or one you may not use (brand access).","title":"Brand Id"},"description":"The brand switcher (GIN-574): only this brand's items. 404 for a brand of another workspace or one you may not use (brand access)."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Accounts Api V1 Social Accounts Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:read"}},"/api/v1/social/validate":{"post":{"operationId":"checkPost","summary":"Check a post against each network's rules before sending it.","tags":["social"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateIn"}}},"required":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Validate Api V1 Social Validate Post"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:write"}},"/api/v1/social/posts":{"post":{"operationId":"createSocialPost","summary":"Publish a post now or schedule it for later.","tags":["social"],"description":"Publish a post now (leave out scheduled_at) or schedule it. Each account gets its own publication with its own status. With draft true it is saved as a draft instead: nothing goes out until it is scheduled. With repeat_weeks, a scheduled post is also saved for each of the next weeks (their ids are in repeat_post_ids).\n\nPosting is free, except an X post whose text has a link (https://... with a real domain, or a bare domain such as cuil.si or shop.com): it uses 20 credits for each X account (each X account's capabilities.link_post_credits in listSocialAccounts says the current number), charged when it goes out and given back if it fails. When the workspace's credits don't cover the X posts with a link, the answer is 402 insufficient_credits, with needed and available, and nothing changes.\n\nAPI keys can't post to YouTube or TikTok: those posts come only from people in cuil.si (and, for YouTube, the automations they set up there). With a key, a YouTube or TikTok account in a post that would go out answers 422 invalid_post, and moving such a post answers 422 youtube_needs_you or tiktok_needs_you. A key may still save a YouTube post as a draft, for a person to post in cuil.si.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCreate"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Post Api V1 Social Posts Post"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:publish"},"get":{"operationId":"listSocialPosts","summary":"Drafts, scheduled and published posts, newest first.","tags":["social"],"description":"Posts, newest first: drafts, scheduled, published, failed and unscheduled (cancelled) ones. brand_id: the\nbrand's posts and the posts on its accounts.","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One status or several, comma separated (e.g. published,partially_published).","title":"Status"},"description":"One status or several, comma separated (e.g. published,partially_published)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"Only posts whose text has these words.","title":"Q"},"description":"Only posts whose text has these words."},{"name":"approval","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"description":"Only posts that wait for an OK (waiting), were sent back (sent_back) or got an OK (approved).","title":"Approval"},"description":"Only posts that wait for an OK (waiting), were sent back (sent_back) or got an OK (approved)."},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"The brand switcher (GIN-574): only this brand's items. 404 for a brand of another workspace or one you may not use (brand access).","title":"Brand Id"},"description":"The brand switcher (GIN-574): only this brand's items. 404 for a brand of another workspace or one you may not use (brand access)."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Posts Api V1 Social Posts Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:read"}},"/api/v1/social/posts/{post_id}":{"get":{"operationId":"getSocialPost","summary":"One post, with where and when it goes out.","tags":["social"],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Post Api V1 Social Posts  Post Id  Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:read"},"patch":{"operationId":"updateSocialPost","summary":"Change a post that hasn't gone out yet.","tags":["social"],"description":"Change the text, files, accounts or time of a post that hasn't started going out.\n\nPosting is free, except an X post whose text has a link (https://... with a real domain, or a bare domain such as cuil.si or shop.com): it uses 20 credits for each X account (each X account's capabilities.link_post_credits in listSocialAccounts says the current number), charged when it goes out and given back if it fails. When the workspace's credits don't cover the X posts with a link, the answer is 402 insufficient_credits, with needed and available, and nothing changes.\n\nAPI keys can't post to YouTube or TikTok: those posts come only from people in cuil.si (and, for YouTube, the automations they set up there). With a key, a YouTube or TikTok account in a post that would go out answers 422 invalid_post, and moving such a post answers 422 youtube_needs_you or tiktok_needs_you. A key may still save a YouTube post as a draft, for a person to post in cuil.si.","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostUpdate"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Post Api V1 Social Posts  Post Id  Patch"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:write"},"delete":{"operationId":"cancelSocialPost","summary":"Cancel a post that hasn't gone out yet.","tags":["social"],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}},{"name":"remove","in":"query","required":false,"schema":{"type":"boolean","description":"Also delete the post itself (when none of it went out). Without it, a scheduled post is unscheduled and stays in the list; a draft is always deleted.","default":false,"title":"Remove"},"description":"Also delete the post itself (when none of it went out). Without it, a scheduled post is unscheduled and stays in the list; a draft is always deleted."}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:write"}},"/api/v1/social/posts/{post_id}/publish-now":{"post":{"operationId":"publishPostNow","summary":"Publish a scheduled post right away.","tags":["social"],"description":"Publish everything in the post that hasn't gone out yet (scheduled or failed), right away.\n\nPosting is free, except an X post whose text has a link (https://... with a real domain, or a bare domain such as cuil.si or shop.com): it uses 20 credits for each X account (each X account's capabilities.link_post_credits in listSocialAccounts says the current number), charged when it goes out and given back if it fails. When the workspace's credits don't cover the X posts with a link, the answer is 402 insufficient_credits, with needed and available, and nothing changes.\n\nAPI keys can't post to YouTube or TikTok: those posts come only from people in cuil.si (and, for YouTube, the automations they set up there). With a key, a YouTube or TikTok account in a post that would go out answers 422 invalid_post, and moving such a post answers 422 youtube_needs_you or tiktok_needs_you. A key may still save a YouTube post as a draft, for a person to post in cuil.si.","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Now Api V1 Social Posts  Post Id  Publish Now Post"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:publish"}},"/api/v1/social/publications/{publication_id}":{"get":{"operationId":"getPublication","summary":"How a post did on one account: status, link and error.","tags":["social"],"parameters":[{"name":"publication_id","in":"path","required":true,"schema":{"type":"string","title":"Publication Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Publication Api V1 Social Publications  Publication Id  Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:read"},"patch":{"operationId":"reschedulePublication","summary":"Move one account's copy of a post to another time.","tags":["social"],"description":"Move a scheduled post on one account to another time.\n\nAPI keys can't post to YouTube or TikTok: those posts come only from people in cuil.si (and, for YouTube, the automations they set up there). With a key, a YouTube or TikTok account in a post that would go out answers 422 invalid_post, and moving such a post answers 422 youtube_needs_you or tiktok_needs_you. A key may still save a YouTube post as a draft, for a person to post in cuil.si.","parameters":[{"name":"publication_id","in":"path","required":true,"schema":{"type":"string","title":"Publication Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationUpdate"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reschedule Publication Api V1 Social Publications  Publication Id  Patch"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:write"},"delete":{"operationId":"deletePublishedPost","summary":"Delete a live Facebook Page or Instagram post. It stays in your calendar, marked deleted.","tags":["social"],"description":"Delete a live Facebook Page post, or a live Instagram post, reel or carousel. It stays in the calendar with\nstatus \"deleted\" (and deleted_at), and its results are no longer read. Only Facebook and Instagram posts can be\ndeleted after publishing (409 not_changeable for other networks); a post already deleted there is marked deleted\ntoo. Instagram needs the instagram_manage_contents permission on the connection (409 missing_permission\nwithout it).","parameters":[{"name":"publication_id","in":"path","required":true,"schema":{"type":"string","title":"Publication Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Published Post Api V1 Social Publications  Publication Id  Delete"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"social:publish"}},"/api/v1/social/publications/{publication_id}/retry":{"post":{"operationId":"retryPublication","summary":"Try again to publish on an account where it failed.","tags":["social"],"description":"Try a failed publication again.\n\nPosting is free, except an X post whose text has a link (https://... with a real domain, or a bare domain such as cuil.si or shop.com): it uses 20 credits for each X account (each X account's capabilities.link_post_credits in listSocialAccounts says the current number), charged when it goes out and given back if it fails. When the workspace's credits don't cover the X posts with a link, the answer is 402 insufficient_credits, with needed and available, and nothing changes.\n\nAPI keys can't post to YouTube or TikTok: those posts come only from people in cuil.si (and, for YouTube, the automations they set up there). With a key, a YouTube or TikTok account in a post that would go out answers 422 invalid_post, and moving such a post answers 422 youtube_needs_you or tiktok_needs_you. A key may still save a YouTube post as a draft, for a person to post in cuil.si.","parameters":[{"name":"publication_id","in":"path","required":true,"schema":{"type":"string","title":"Publication Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retry Publication Api V1 Social Publications  Publication Id  Retry Post"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:publish"}},"/api/v1/social/calendar":{"get":{"operationId":"getCalendar","summary":"Posts between two dates, for a calendar view.","tags":["social"],"description":"The range's posts, one per account. brand_id: the brand's posts and the posts on its accounts.","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"End"}},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"The brand switcher (GIN-574): only this brand's items. 404 for a brand of another workspace or one you may not use (brand access).","title":"Brand Id"},"description":"The brand switcher (GIN-574): only this brand's items. 404 for a brand of another workspace or one you may not use (brand access)."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Calendar Api V1 Social Calendar Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"social:read"}},"/api/v1/social/publications/{publication_id}/edit":{"post":{"operationId":"editPublishedPost","summary":"Change the text of a Facebook Page post that is already live.","tags":["social"],"description":"Change the text of a Facebook Page post that is already live (a video's description). Only Facebook posts\ncan be edited after publishing (409 not_changeable for other networks). The new text becomes this account's own\ntext; the post's text for other accounts stays as it was. When Facebook says the post was deleted there, it is\nmarked deleted and the answer is 409 deleted_on_facebook.","parameters":[{"name":"publication_id","in":"path","required":true,"schema":{"type":"string","title":"Publication Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishedTextIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Published Post Api V1 Social Publications  Publication Id  Edit Post"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"social:publish"}},"/api/v1/analytics/overview":{"get":{"operationId":"getAnalyticsOverview","summary":"Totals for your published posts.","tags":["analytics"],"description":"Totals, change vs the previous period, networks, daily series, top posts and best times. With an API key,\nYouTube is left out (see the youtube note).","parameters":[{"name":"range","in":"query","required":false,"schema":{"enum":["7d","30d","90d"],"type":"string","default":"30d","title":"Range"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Account Id"}},{"name":"network","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Network"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"}},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"Only this brand's accounts and those with no brand. 404 for a brand of another workspace or one you may not use (brand access).","title":"Brand Id"},"description":"Only this brand's accounts and those with no brand. 404 for a brand of another workspace or one you may not use (brand access)."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Overview Api V1 Analytics Overview Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"analytics:read"}},"/api/v1/analytics/posts":{"get":{"operationId":"listPostResults","summary":"Results for each published post.","tags":["analytics"],"description":"Published posts in the period with their results, newest first or by a number. With an API key, YouTube\nposts are left out (see the youtube note).","parameters":[{"name":"range","in":"query","required":false,"schema":{"enum":["7d","30d","90d"],"type":"string","default":"30d","title":"Range"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["recent","engagements","views","engagement_rate"],"type":"string","default":"recent","title":"Sort"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Account Id"}},{"name":"network","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Network"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Cursor"}},{"name":"brand_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"Only this brand's accounts and those with no brand. 404 for a brand of another workspace or one you may not use (brand access).","title":"Brand Id"},"description":"Only this brand's accounts and those with no brand. 404 for a brand of another workspace or one you may not use (brand access)."}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Posts Api V1 Analytics Posts Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"analytics:read"}},"/api/v1/analytics/publications/{publication_id}":{"get":{"operationId":"getPublicationResults","summary":"Results for a post on one account.","tags":["analytics"],"description":"One published post's latest results and how they grew. With an API key, a YouTube post's results answer 403\nyoutube_not_in_api: they are shown only in cuil.si.","parameters":[{"name":"publication_id","in":"path","required":true,"schema":{"type":"string","title":"Publication Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publication Results Api V1 Analytics Publications  Publication Id  Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"analytics:read"}},"/api/v1/movies":{"post":{"operationId":"createMovie","summary":"Start a film from an idea. It waits for your approval before the shots.","tags":["movies"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovieCreate"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovieOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"},"get":{"operationId":"listMovies","summary":"Your films, newest first.","tags":["movies"],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["movie","short"],"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoviePage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:read"}},"/api/v1/movies/{movie_id}":{"get":{"operationId":"getMovie","summary":"One film, with its script, shots and status.","tags":["movies"],"parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovieOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:read"},"delete":{"operationId":"deleteMovie","summary":"Delete a film.","tags":["movies"],"parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"}},"/api/v1/movies/{movie_id}/estimate":{"get":{"operationId":"estimateMovie","summary":"How many credits the film's shots will use.","tags":["movies"],"parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovieEstimate"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:read"}},"/api/v1/movies/{movie_id}/approve":{"post":{"operationId":"approveMovie","summary":"Approve the script and start making the shots.","tags":["movies"],"parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovieOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"}},"/api/v1/movies/{movie_id}/story/rewrite":{"post":{"operationId":"rewriteMovieStory","summary":"Write the film's story again before you approve it, with an optional note on what should change. It costs what writing the story costs.","tags":["movies"],"description":"Write the film's whole story again while it waits at the Story step (written, not approved yet): the same\nidea, scripts and choices, with `note` (what should change) when given, else a fresh take. It costs what writing\nthe story costs (MovieOut.story_rewrite.credits): held now, charged when the new story is saved, given back when it\ncan't be written. The story shown now is kept as an earlier version (POST .../story/use-earlier brings it back).\n409 when the film isn't at the Story step or a new story is being written already, 409 price_changed when it costs\nanother price than `shown_credits`, 402 without enough credits. A Studio film: only for a person who can use\nStudio models here now; the note and the new story pass the Studio checks first.","parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoryRewriteIn"}}}},"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovieOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"}},"/api/v1/movies/{movie_id}/story/use-earlier":{"post":{"operationId":"useEarlierMovieStory","summary":"Bring back an earlier version of the film's story before you approve it. Free.","tags":["movies"],"description":"Bring back an earlier version of the story (MovieOut.story_versions) while the film waits at the Story step.\nFree; the story shown now becomes an earlier version. A Studio film: only for a person who can use Studio models\nhere now (as approving it).","parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoryUseEarlierIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovieOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"}},"/api/v1/movies/{movie_id}/pause":{"post":{"operationId":"pauseMovie","summary":"Pause a film that is being made.","tags":["movies"],"parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovieOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"}},"/api/v1/movies/{movie_id}/resume":{"post":{"operationId":"resumeMovie","summary":"Carry on with a paused film.","tags":["movies"],"parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovieOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"}},"/api/v1/movies/{movie_id}/assemble":{"post":{"operationId":"assembleMovie","summary":"Put the finished shots together into the film.","tags":["movies"],"parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovieOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"}},"/api/v1/movies/plans/format":{"get":{"operationId":"getFilmPlanFormat","summary":"The film plan's format: the schema, a guide, two examples, the limits and today's prices.","tags":["movies"],"description":"The film plan's format for your assistant: the schema, the guide \"How to write a cuil.si film plan\", two\nexamples, the limits (each camera's shot lengths) and today's credits per second for each quality.","responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilmPlanFormat"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:read"}},"/api/v1/movies/plans/check":{"post":{"operationId":"checkFilmPlan","summary":"Check a film plan for free: its problems, about what it costs and its sound. Saves nothing.","tags":["movies"],"description":"Check a film plan, free: each problem with its path in the plan, plain words, a fix and whether it blocks\nsaving; about how many credits it uses; and when words, sound and music are heard. Saves nothing. At most 30\nchecks in 10 minutes per key (or person) and 300 a day per workspace (429 too_many_checks).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilmPlanIn"}}},"required":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanReport"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:read"}},"/api/v1/movies/plans":{"post":{"operationId":"createMovieFromPlan","summary":"Save a film plan as a film. Nothing is made until someone presses Make on its page.","tags":["movies"],"description":"Save a film plan as a film. It is checked first (422 plan_has_problems, with the report, when something blocks\nit: nothing is saved). The film waits at the Story step: nothing is made or charged until someone presses Make on\nits page in cuil.si.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilmPlanIn"}}},"required":true},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCreateOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"}},"/api/v1/movies/{movie_id}/shots/{shot_id}":{"get":{"operationId":"getMovieShot","summary":"One shot: its words, status, clip, stills and notes.","tags":["movies"],"description":"One shot: its words, status, a signed link to its clip, up to 4 stills, and its check results and notes\n(film plans, FILM_PLANS_ENABLED).","parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}},{"name":"shot_id","in":"path","required":true,"schema":{"type":"string","title":"Shot Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShotView"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:read"}},"/api/v1/movies/{movie_id}/shots/{shot_id}/words":{"patch":{"operationId":"changeMovieShot","summary":"Change one shot's words for free. Nothing is made again until someone presses it.","tags":["movies"],"description":"Change one shot's words, free, and get the difference back. Nothing is made again until someone presses that\non the film page; 409 being_made while the film is being made (film plans, FILM_PLANS_ENABLED).","parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}},{"name":"shot_id","in":"path","required":true,"schema":{"type":"string","title":"Shot Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShotWordsIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShotChangeOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"}},"/api/v1/movies/{movie_id}/shots/{shot_id}/remake-suggestions":{"post":{"operationId":"suggestMovieRemake","summary":"Suggest making a shot again. A person presses it on the film page.","tags":["movies"],"description":"Suggest making a shot again: \"Re-make shot 4: ...\" on the film page, which a person presses (with its credits)\nor dismisses. Free: nothing is made (film plans, FILM_PLANS_ENABLED).","parameters":[{"name":"movie_id","in":"path","required":true,"schema":{"type":"string","title":"Movie Id"}},{"name":"shot_id","in":"path","required":true,"schema":{"type":"string","title":"Shot Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemakeIn"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemakeOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"movies:write"}},"/api/v1/editor/timelines":{"post":{"operationId":"createTimeline","summary":"Start an edit (a timeline) from your files.","tags":["editor"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimelineCreate"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimelineOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"editor:write"},"get":{"operationId":"listTimelines","summary":"Your timelines, newest first.","tags":["editor"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimelinePage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"editor:read"}},"/api/v1/editor/timelines/{timeline_id}":{"get":{"operationId":"getTimeline","summary":"One timeline.","tags":["editor"],"parameters":[{"name":"timeline_id","in":"path","required":true,"schema":{"type":"string","title":"Timeline Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimelineOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"editor:read"},"patch":{"operationId":"updateTimeline","summary":"Change a timeline.","tags":["editor"],"parameters":[{"name":"timeline_id","in":"path","required":true,"schema":{"type":"string","title":"Timeline Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimelineUpdate"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimelineOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"editor:write"}},"/api/v1/editor/timelines/{timeline_id}/render":{"post":{"operationId":"renderTimeline","summary":"Export the timeline as a video in your Library.","tags":["editor"],"parameters":[{"name":"timeline_id","in":"path","required":true,"schema":{"type":"string","title":"Timeline Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RenderCreate"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"editor:write"}},"/api/v1/editor/renders/{render_id}":{"get":{"operationId":"getRender","summary":"One export, with its status and file.","tags":["editor"],"parameters":[{"name":"render_id","in":"path","required":true,"schema":{"type":"string","title":"Render Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"editor:read"}},"/api/v1/editor/timelines/{timeline_id}/captions/auto":{"post":{"operationId":"addAutoCaptions","summary":"Add captions from the timeline's speech.","tags":["editor"],"parameters":[{"name":"timeline_id","in":"path","required":true,"schema":{"type":"string","title":"Timeline Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"editor:write"}},"/api/v1/editor/tasks/{task_id}":{"get":{"operationId":"getEditorTask","summary":"The status of a caption task.","tags":["editor"],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"editor:read"}},"/api/v1/workflows":{"get":{"operationId":"listWorkflows","summary":"Your automations.","tags":["automations"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"automations:read"},"post":{"operationId":"createWorkflow","summary":"Make an automation from steps.","tags":["automations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowCreate"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"automations:write"}},"/api/v1/workflows/{workflow_id}":{"get":{"operationId":"getWorkflow","summary":"One automation.","tags":["automations"],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"automations:read"},"patch":{"operationId":"updateWorkflow","summary":"Change an automation.","tags":["automations"],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUpdate"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"automations:write"},"delete":{"operationId":"deleteWorkflow","summary":"Delete an automation.","tags":["automations"],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"automations:write"}},"/api/v1/workflows/{workflow_id}/run":{"post":{"operationId":"runWorkflow","summary":"Run an automation now.","tags":["automations"],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"automations:write"}},"/api/v1/workflows/{workflow_id}/runs":{"get":{"operationId":"listWorkflowRuns","summary":"An automation's runs, newest first.","tags":["automations"],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"automations:read"}},"/api/v1/workflows/runs/{run_id}":{"get":{"operationId":"getWorkflowRun","summary":"One run, with each step's result.","tags":["automations"],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"automations:read"}},"/api/v1/workflows/runs/{run_id}/cancel":{"post":{"operationId":"cancelWorkflowRun","summary":"Stop a run.","tags":["automations"],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"automations:write"}},"/api/v1/workflows/runs/{run_id}/steps/{step_id}/approve":{"post":{"operationId":"approveWorkflowStep","summary":"Approve a step that waits for a person.","tags":["automations"],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DecisionIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"automations:write"}},"/api/v1/workflows/runs/{run_id}/steps/{step_id}/reject":{"post":{"operationId":"rejectWorkflowStep","summary":"Reject a step that waits for a person.","tags":["automations"],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DecisionIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"automations:write"}},"/api/v1/workflows/{workflow_id}/enable":{"post":{"operationId":"enableWorkflow","summary":"Switch an automation on.","tags":["automations"],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"automations:write"}},"/api/v1/workflows/{workflow_id}/disable":{"post":{"operationId":"disableWorkflow","summary":"Switch an automation off.","tags":["automations"],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"automations:write"}},"/api/v1/hooks/workflows/{workflow_id}":{"post":{"operationId":"triggerWorkflowHook","summary":"Start an automation from another app. No API key: send the automation's own secret.","tags":["automations"],"description":"Webhook trigger: no sign-in. Send the workflow's secret in the X-Ginie-Secret header (or as\n\"Authorization: Bearer <secret>\") and any JSON body (up to 256 KB).","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookAccepted"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"automationSecret":[]}],"x-cuilsi-stability":"stable"}},"/api/v1/workflows/{workflow_id}/validate":{"post":{"operationId":"validateWorkflow","summary":"Check an automation for problems.","tags":["automations"],"description":"Problems to fix before turning it on; ?for_run=true: before a test run with example data.","parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}},{"name":"for_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"For Run"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"automations:write"}},"/api/v1/workflows/catalog":{"get":{"operationId":"listWorkflowSteps","summary":"The steps and triggers an automation can use.","tags":["automations"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"automations:read"}},"/api/v1/workflows/templates":{"get":{"operationId":"listWorkflowTemplates","summary":"Ready-made automations to start from.","tags":["automations"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TemplateOut"},"type":"array","title":"Response Templates Api V1 Workflows Templates Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"automations:read"}},"/api/v1/workflows/from-template":{"post":{"operationId":"createWorkflowFromTemplate","summary":"Make an automation from a template.","tags":["automations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FromTemplateIn"}}},"required":true},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"automations:write"}},"/api/v1/developer/events":{"get":{"operationId":"listEventTypes","summary":"Every event you can subscribe to, with an example. No API key needed.","tags":["webhooks"],"description":"Every event a webhook can subscribe to, with an example body. No sign-in needed.","responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EventTypeOut"},"type":"array","title":"Response List Events Api V1 Developer Events Get"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[],"x-cuilsi-stability":"stable"}},"/api/v1/developer/webhooks":{"get":{"operationId":"listWebhooks","summary":"Your webhook endpoints.","tags":["webhooks"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WebhookOut"},"type":"array","title":"Response List Webhooks Api V1 Developer Webhooks Get"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"webhooks:read"},"post":{"operationId":"createWebhook","summary":"Add a webhook endpoint.","tags":["webhooks"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}},"required":true},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"webhooks:manage"}},"/api/v1/developer/webhooks/{endpoint_id}":{"get":{"operationId":"getWebhook","summary":"One webhook endpoint.","tags":["webhooks"],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"webhooks:read"},"patch":{"operationId":"updateWebhook","summary":"Change a webhook endpoint.","tags":["webhooks"],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookUpdate"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"webhooks:manage"},"delete":{"operationId":"deleteWebhook","summary":"Delete a webhook endpoint.","tags":["webhooks"],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"webhooks:manage"}},"/api/v1/developer/webhooks/{endpoint_id}/test":{"post":{"operationId":"sendTestEvent","summary":"Send a test event to an endpoint.","tags":["webhooks"],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"webhooks:manage"}},"/api/v1/developer/webhooks/{endpoint_id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","summary":"What was sent to an endpoint and how it answered, newest first.","tags":["webhooks"],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"webhooks:read"}},"/api/v1/developer/deliveries/{delivery_id}/resend":{"post":{"operationId":"resendDelivery","summary":"Send a delivery again.","tags":["webhooks"],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryOut"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"stable","x-cuilsi-scope":"webhooks:manage"}},"/api/v1/leads":{"get":{"operationId":"listLeads","summary":"Your leads, newest first. Filter by words, stage, source, list, tag, owner, score or when they changed.","tags":["leads"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["form","import","api","google_lead_form","meta_lead_ads","linkedin_lead_form","manual","prospecting","workflow","whatsapp"],"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"list_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"List Id"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"}},{"name":"score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":0},{"type":"null"}],"title":"Score Min"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"description":"Only these leads: up to 500 ids, separated by commas.","title":"Ids"},"description":"Only these leads: up to 500 ids, separated by commas."},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"enum":["cold","interested","warm","hot","ready"],"type":"string"},{"type":"null"}],"description":"The score label: cold, interested, warm, hot or ready.","title":"Label"},"description":"The score label: cold, interested, warm, hot or ready."},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"The ad campaign they came from.","title":"Campaign"},"description":"The ad campaign they came from."},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"}},{"name":"interested_in","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Interested In"}},{"name":"contact","in":"query","required":false,"schema":{"anyOf":[{"enum":["not_contacted","waiting"],"type":"string"},{"type":"null"}],"description":"not_contacted: nobody on the team has contacted them yet. waiting: they wrote and are waiting for an answer.","title":"Contact"},"description":"not_contacted: nobody on the team has contacted them yet. waiting: they wrote and are waiting for an answer."},{"name":"last_contact","in":"query","required":false,"schema":{"anyOf":[{"enum":["within_7d","within_30d","over_30d"],"type":"string"},{"type":"null"}],"title":"Last Contact"}},{"name":"customer","in":"query","required":false,"schema":{"anyOf":[{"enum":["yes","no"],"type":"string"},{"type":"null"}],"title":"Customer"}},{"name":"added","in":"query","required":false,"schema":{"anyOf":[{"const":"within_7d","type":"string"},{"type":"null"}],"description":"within_7d: added in the last 7 days.","title":"Added"},"description":"within_7d: added in the last 7 days."},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","oldest","score","name","last_activity"],"type":"string","description":"newest (default), oldest, score (highest first), name (A to Z) or last_activity (most recent first).","default":"newest","title":"Sort"},"description":"newest (default), oldest, score (highest first), name (A to Z) or last_activity (most recent first)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"post":{"operationId":"createLead","summary":"Add a lead, or fill in the one with the same email (then phone, then LinkedIn link). A LinkedIn link, or a name with a company, is enough without an email or a phone.","tags":["leads"],"description":"Create a lead, or fill in the one with the same email (then phone). 201 when new, 200 when it existed.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSaved"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSaved"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/batch":{"post":{"operationId":"upsertLeads","summary":"Add or update up to 100 leads at once, with one result each.","tags":["leads"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadBatchIn"}}},"required":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadBatchResult"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/bulk-actions":{"post":{"operationId":"bulkEditLeads","summary":"Do one thing to up to 500 leads: move them to a stage, add or remove a tag, add them to a list or give them to a teammate. Answers how many were done and which were skipped, with why.","tags":["leads"],"description":"Do one thing to up to 500 leads: move them to a stage, add or remove a tag, add them to a list, give them to\na teammate, or erase them (owners and admins, in the app only). Answers how many were done and which were\nskipped, with why.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionIn"}}},"required":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/report":{"get":{"operationId":"getLeadReport","summary":"How many leads there are by stage, by source and by week.","tags":["leads"],"description":"Counts by stage, source and week, and money won (sales.py, GIN-493) between money_from and money_to (both\ndays included, in tz; the last 30 days by default) by source, form and campaign.","parameters":[{"name":"weeks","in":"query","required":false,"schema":{"type":"integer","maximum":52,"minimum":1,"default":12,"title":"Weeks"}},{"name":"tz","in":"query","required":false,"schema":{"type":"string","default":"UTC","title":"Tz"}},{"name":"money_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Money From"}},{"name":"money_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Money To"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadReport"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/leads/{lead_id}":{"get":{"operationId":"getLead","summary":"One lead, with its lists, deals and what contact is allowed.","tags":["leads"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadDetail"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"patch":{"operationId":"updateLead","summary":"Change a lead.","tags":["leads"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadPatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadDetail"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/{lead_id}/activities":{"get":{"operationId":"listLeadActivities","summary":"A lead's timeline, newest first.","tags":["leads"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"post":{"operationId":"addLeadActivity","summary":"Add a note or your own event to a lead's timeline.","tags":["leads"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityIn"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/{lead_id}/consents":{"get":{"operationId":"listLeadConsents","summary":"Every yes and no the person gave, and what is allowed now.","tags":["leads"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentList"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"post":{"operationId":"recordLeadConsent","summary":"Record that the person said yes, or took it back.","tags":["leads"],"description":"Record a \"yes\" or a \"no\" (a new row every time; the latest one counts).","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentIn"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentSaved"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/companies":{"get":{"operationId":"listCompanies","summary":"Companies, newest first.","tags":["leads"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"post":{"operationId":"createCompany","summary":"Add a company.","tags":["leads"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyIn"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/companies/{id}":{"get":{"operationId":"getCompany","summary":"One company, with how many leads and deals it has.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"patch":{"operationId":"updateCompany","summary":"Change a company.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyPatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"},"delete":{"operationId":"deleteCompany","summary":"Delete a company. Its people and deals stay.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-lists":{"get":{"operationId":"listLeadLists","summary":"Your lead lists.","tags":["leads"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadListPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"post":{"operationId":"createLeadList","summary":"Make a lead list.","tags":["leads"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIn"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadList"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-lists/{id}":{"get":{"operationId":"getLeadList","summary":"One lead list.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadList"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"patch":{"operationId":"updateLeadList","summary":"Rename a lead list or change its description.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadList"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"},"delete":{"operationId":"deleteLeadList","summary":"Delete a lead list. The people in it stay.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-lists/{id}/members":{"post":{"operationId":"addLeadListMembers","summary":"Add leads to a list.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembersIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembersAdded"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-lists/{id}/members/{lead_id}":{"delete":{"operationId":"removeLeadListMember","summary":"Take a lead out of a list.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-tasks":{"get":{"operationId":"listLeadTasks","summary":"Tasks for your team: open ones soonest due first, done ones most recently done first. Filter by teammate or lead.","tags":["leads"],"description":"Open tasks soonest due first (no date last), done tasks most recently done first, or all newest first.","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["open","done","all"],"type":"string","default":"open","title":"Status"}},{"name":"assignee","in":"query","required":false,"schema":{"type":"string","maxLength":100,"description":"me, anyone or a teammate's id.","default":"anyone","title":"Assignee"},"description":"me, anyone or a teammate's id."},{"name":"lead_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadTaskPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"post":{"operationId":"createLeadTask","summary":"Make a task for a teammate about a lead, such as a call.","tags":["leads"],"description":"Make a task for a teammate about a lead. Not for contacting people on the do-not-contact list, or on a\nchannel they said no to; `warning` says when the task needs care (for example no WhatsApp \"yes\" yet).","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskIn"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadTaskSaved"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-tasks/{id}":{"patch":{"operationId":"updateLeadTask","summary":"Change a task, or tick it off.","tags":["leads"],"description":"Change a task, or tick it off (status done) or open it again.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadTask"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/pipelines":{"get":{"operationId":"listPipelines","summary":"Your pipeline and its stages.","tags":["leads"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineList"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/pipelines/{id}":{"patch":{"operationId":"updatePipeline","summary":"Rename, add or reorder the stages (admins).","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelinePatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pipeline"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/deals":{"get":{"operationId":"listDeals","summary":"Deals, newest first. Filter by pipeline, stage, status, lead, company or owner.","tags":["leads"],"parameters":[{"name":"pipeline_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id"}},{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","won","lost"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"lead_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"post":{"operationId":"createDeal","summary":"Add a deal.","tags":["leads"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealIn"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deal"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/deals/{id}":{"get":{"operationId":"getDeal","summary":"One deal.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deal"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"patch":{"operationId":"updateDeal","summary":"Change a deal. A new stage moves it, and its lead.","tags":["leads"],"description":"Change a deal; `stage` moves it (and its lead).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deal"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"},"delete":{"operationId":"deleteDeal","summary":"Delete a deal.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-imports":{"post":{"operationId":"uploadLeadImport","summary":"Upload a CSV file of leads. With a permission basis it is imported at once; without one you get a preview first.","tags":["leads"],"description":"Upload a CSV file. With `basis` (and optionally `mapping` as JSON, `duplicate_rule`, `list_id`, `tags`) it is\nimported right away; without it, the answer is a preview (columns, matches we suggest, the first 5 rows) and\nPOST /lead-imports/{id}/start imports it.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UploadLeadImportBody"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadImport"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"},"get":{"operationId":"listLeadImports","summary":"Your CSV imports, newest first.","tags":["leads"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadImportPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/lead-imports/{id}":{"get":{"operationId":"getLeadImport","summary":"One CSV import, with its progress and counts.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadImport"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/lead-imports/{id}/start":{"post":{"operationId":"startLeadImport","summary":"Import an uploaded file with your column matching.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportStartIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadImport"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-imports/{id}/skipped.csv":{"get":{"operationId":"getSkippedImportRows","summary":"The rows that weren't imported, with the reason, as a CSV file.","tags":["leads"],"description":"The rows that weren't imported, with the reason. For the person who imported the file, and admins.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"OK.","content":{"text/csv":{"schema":{"type":"string"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/suppressions":{"post":{"operationId":"addToDoNotContact","summary":"Put an email, a website domain or a phone on the do-not-contact list.","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Suppression"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Suppression"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/suppressions/check":{"post":{"operationId":"checkDoNotContact","summary":"Check emails and phones against the do-not-contact list.","tags":["leads"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionCheckIn"}}},"required":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppressionChecks"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/lead-forms":{"get":{"operationId":"listLeadForms","summary":"Your website forms, newest first, with how many were sent.","tags":["leads"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadFormPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"post":{"operationId":"createLeadForm","summary":"Make a website form. You get its share link and the HTML to paste into your site.","tags":["leads"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadFormIn"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadFormDetail"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-forms/{id}":{"get":{"operationId":"getLeadForm","summary":"One form, with its notice, share link and HTML.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadFormDetail"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"patch":{"operationId":"updateLeadForm","summary":"Change a form, or switch it off.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadFormPatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadFormDetail"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"},"delete":{"operationId":"deleteLeadForm","summary":"Delete a form and what was sent with it. The leads it made stay.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-forms/{id}/submissions":{"get":{"operationId":"listLeadFormSubmissions","summary":"What people sent with a form, newest first. Add spam=true to see the spam.","tags":["leads"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"spam","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Spam"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/public/forms/{public_id}/submit":{"post":{"operationId":"submitLeadForm","summary":"Send a form from your own website. No API key: it is what the form's HTML posts to.","tags":["leads"],"description":"Send a form's answers, the way its embed code does. Name each answer by its field key (name, email, phone,\ncompany, title, message), send yes for each ticked box (consent_<purpose>_<channel>), _notice with the form's\nnotice version and _t with a time token. JSON gets 201 {ok, message, redirect_url, unsubscribe_url}; a plain\nHTML form post gets 303 to the thank-you page (or back to the form's own page with ?error= when something is\nwrong). Suspected spam gets the same answer as a real submit. From a browser, JSON works only on cuil.si's own\npages for now: browsers block it from other websites (CORS). On your own website, use the plain HTML form post\n(the embed code does). Sending leads from your own server? Use POST /leads with an API key: this is for visitors\nand takes only a few sends from each one.","parameters":[{"name":"public_id","in":"path","required":true,"schema":{"type":"string","title":"Public Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":5000,"examples":["Asha Rao"]},"email":{"type":"string","maxLength":5000,"examples":["asha@example.com"]},"phone":{"type":"string","maxLength":5000,"examples":["+919812345678"]},"company":{"type":"string","maxLength":5000},"title":{"type":"string","maxLength":5000},"message":{"type":"string","maxLength":5000},"consent_enquiry_any":{"type":"string","examples":["yes"],"description":"yes when the box was ticked. One per box on the form: consent_<purpose>_<channel>."},"age_ok":{"type":"string","examples":["yes"],"description":"yes when the person ticked \"I'm 18 or older\". Needed when the form's age_check is on."},"_notice":{"type":"string","description":"The form's notice.version, so the exact notice the person saw is kept with their permission."},"_t":{"type":"string","description":"A time token from GET /public/forms/{public_id}/token (the embed code's script gets one). Each token sends answers once. Without one, with a used one, or within 2 seconds of getting it, the answers are kept as suspected spam for the team to check."},"homepage":{"type":"string","description":"Leave it empty and hidden from people: bots fill it in."},"product":{"type":"string","description":"The answer to \"Which product?\": one of the brand's product names the form shows (it becomes the lead's Interested in)."},"place":{"type":"string","maxLength":80,"description":"The place label of the QR code the person scanned (the page's ?place=)."},"q_budget":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"An answer to one of your own questions, named by its key (q_ and 2 to 20 lowercase letters or digits). Tick boxes take a list of the chosen answers."}},"additionalProperties":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":5000,"examples":["Asha Rao"]},"email":{"type":"string","maxLength":5000,"examples":["asha@example.com"]},"phone":{"type":"string","maxLength":5000,"examples":["+919812345678"]},"company":{"type":"string","maxLength":5000},"title":{"type":"string","maxLength":5000},"message":{"type":"string","maxLength":5000},"consent_enquiry_any":{"type":"string","examples":["yes"],"description":"yes when the box was ticked. One per box on the form: consent_<purpose>_<channel>."},"age_ok":{"type":"string","examples":["yes"],"description":"yes when the person ticked \"I'm 18 or older\". Needed when the form's age_check is on."},"_notice":{"type":"string","description":"The form's notice.version, so the exact notice the person saw is kept with their permission."},"_t":{"type":"string","description":"A time token from GET /public/forms/{public_id}/token (the embed code's script gets one). Each token sends answers once. Without one, with a used one, or within 2 seconds of getting it, the answers are kept as suspected spam for the team to check."},"homepage":{"type":"string","description":"Leave it empty and hidden from people: bots fill it in."},"product":{"type":"string","description":"The answer to \"Which product?\": one of the brand's product names the form shows (it becomes the lead's Interested in)."},"place":{"type":"string","maxLength":80,"description":"The place label of the QR code the person scanned (the page's ?place=)."},"q_budget":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"An answer to one of your own questions, named by its key (q_ and 2 to 20 lowercase letters or digits). Tick boxes take a list of the chosen answers."}},"additionalProperties":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSent"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"303":{"description":"A plain HTML form post: on to the thank-you page (or back to the form with ?error=)."},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"413":{"description":"The answers are too big: error code too_large."},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[],"x-cuilsi-stability":"beta"}},"/api/v1/leads/{lead_id}/enrich":{"post":{"operationId":"enrichLead","summary":"Look a lead up with your connected data providers and fill in its empty fields.","tags":["leads"],"description":"Look this lead up with your connected data providers now. Fills empty fields only unless `overwrite`.","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrichIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadLookup"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/{lead_id}/verify-email":{"post":{"operationId":"verifyLeadEmail","summary":"Check whether a lead's email works, with your own email checker or cuil.si's (uses credits).","tags":["leads"],"description":"Check whether the lead's email works: your own checker for free, else cuil.si's (1 credit a check).","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCheckResult"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/{lead_id}/enrichment":{"get":{"operationId":"listLeadLookups","summary":"Who was asked about a lead, what they filled in and what it cost, newest first.","tags":["leads"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupLog"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/lead-enrichment/bulk":{"post":{"operationId":"enrichLeads","summary":"Look many leads up in the background (up to 1,000): the ones you pick, or one list.","tags":["leads"],"description":"Look many leads up in the background (at most 1,000; one list or picked leads).","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkIn"}}},"required":true},"responses":{"202":{"description":"Accepted: it carries on in the background.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkLookup"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-enrichment/bulk/{job_id}":{"get":{"operationId":"getBulkLookup","summary":"How a background lookup is going.","tags":["leads"],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkLookup"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/lead-enrichment/usage":{"get":{"operationId":"getLookupUsage","summary":"Lookups used in the last 24 hours against your daily limit, and what lead actions cost.","tags":["leads"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupUsage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/lead-scoring":{"get":{"operationId":"getScoringRules","summary":"The scoring rules in use, the points that always count, and what a rule can look at.","tags":["leads"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoringRules"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"}},"/api/v1/leads/{lead_id}/score":{"post":{"operationId":"scoreLead","summary":"Work out a lead's score from your rules now.","tags":["leads"],"parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadScore"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/{lead_id}/score-ai":{"post":{"operationId":"scoreLeadWithAi","summary":"Grade a lead A to D against your ideal customer with AI (uses credits). The score stays as it is.","tags":["leads"],"description":"A grade A-D, a fit score, a one-line reason and a next step from the AI (1 credit). Refused (409\nlead_form_no_ai) for a lead from a lead form in a Google, Facebook or LinkedIn ad: those leads aren't sent to AI\nfor now.","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiScoreIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiLeadScore"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/{lead_id}/write-email":{"post":{"operationId":"writeSalesEmail","summary":"Write a short personal sales email to a lead with AI (uses credits). Nothing is sent.","tags":["leads"],"description":"A short personalised email (subject and body) for this lead (1 credit), signed with your name and the\nbusiness name and ending with the lead's own unsubscribe link. Nothing is sent. `purpose` \"enquiry\" replies to\nwhat they wrote in your form, in `language` (auto: the language they wrote in), and only for people who came to\nyou themselves (409 not_an_enquiry otherwise). Refused (409) for people on the\ndo-not-contact list or who said no to this kind of email, (409 lead_form_no_ai) for a lead from\na lead form in a Google, Facebook or LinkedIn ad, since those leads aren't sent to AI for now, and (403) for a\nrole that can't see people's details; `warning` says when they haven't said yes yet.","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteEmailIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesEmail"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/{lead_id}/log":{"post":{"operationId":"logLeadContact","summary":"Log a call, a WhatsApp, an email, their reply or a booked meeting. A reply or a meeting counts in the score at once and stops their follow-up emails.","tags":["leads"],"description":"Called, WhatsApp'd, Emailed, They replied or Meeting booked, with an optional note. A reply or a meeting counts\nin the score at once and stops their follow-up emails.","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogIn"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactLogged"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/leads/{lead_id}/sales":{"get":{"operationId":"listLeadSales","summary":"A lead's sales, newest first, and what they spent.","tags":["leads"],"description":"The lead's sales, newest first, and what they spent in all.","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalePage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"post":{"operationId":"recordLeadSale","summary":"Record a sale: the lead becomes a customer, its deal is won and its follow-ups stop. The same order id is only counted once.","tags":["leads"],"description":"Record a sale: the lead becomes a customer, its deal is won and its follow-ups stop. An order id already saved\nanswers 200 with that sale (\"duplicate\": true) and records nothing.","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleIn"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleSaved"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleSaved"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-sales":{"post":{"operationId":"recordSaleForLead","summary":"Record a sale from your shop or another app, naming the lead by its id, email or phone.","tags":["leads"],"description":"Record a sale from another app (a shop): the lead by its lead_id, email or phone (404 when no lead has it).","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleForLeadIn"}}},"required":true},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleSaved"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleSaved"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-sales/{sale_id}":{"delete":{"operationId":"deleteLeadSale","summary":"Remove a sale recorded by mistake.","tags":["leads"],"parameters":[{"name":"sale_id","in":"path","required":true,"schema":{"type":"string","title":"Sale Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-segments":{"get":{"operationId":"listLeadSegments","summary":"Your segments: saved filters whose people update by themselves.","tags":["leads"],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSegmentPage"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"post":{"operationId":"createLeadSegment","summary":"Save a Leads filter as a segment. Its people fill in within a minute, then update by themselves.","tags":["leads"],"description":"Save a Leads filter as a segment. Its people fill in within a minute and then update by themselves.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes this request safe to retry. Send a unique value (for example a UUID) and send the same value again if you retry: within 24 hours you get the first answer back instead of a second copy, and credits are only used once. Re-using the value with a different body is refused (422 idempotency_key_reused).","schema":{"type":"string","minLength":1,"maxLength":255}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentIn"}}},"required":true},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSegment"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/NotEnoughCredits"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}},"/api/v1/lead-segments/{segment_id}":{"get":{"operationId":"getLeadSegment","summary":"One segment, with its size.","tags":["leads"],"parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"string","title":"Segment Id"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSegment"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:read"},"patch":{"operationId":"updateLeadSegment","summary":"Rename a segment or change its filters.","tags":["leads"],"parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"string","title":"Segment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentPatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSegment"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"},"delete":{"operationId":"deleteLeadSegment","summary":"Delete a segment. Its people stay.","tags":["leads"],"description":"Delete a segment. The people in it stay.","parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"string","title":"Segment Id"}}],"responses":{"204":{"description":"Done. There is no body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{"bearerAuth":[]}],"x-cuilsi-stability":"beta","x-cuilsi-scope":"leads:write"}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"gin_live_...","description":"An API key from Settings > Developers > API keys."},"automationSecret":{"type":"apiKey","in":"header","name":"X-Ginie-Secret","description":"The automation's own secret, shown on its webhook trigger."}},"responses":{"BadRequest":{"description":"The request couldn't be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"No API key, or the key isn't valid (invalid_api_key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"Not allowed: read_only_key, not_in_public_api, forbidden (your role), email_not_verified.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Not found, or not in this workspace (not_found).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"A request with the same Idempotency-Key is still running (request_in_progress), or the thing isn't in a state that allows this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotEnoughCredits":{"description":"Not enough credits for this (insufficient_credits). The error says how many are needed (needed) and how many you have (available). Only requests that use credits answer this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Invalid":{"description":"Something in the request is wrong (invalid_input, with fields), or a re-used Idempotency-Key (idempotency_key_reused).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"TooManyRequests":{"description":"Too many requests (too_many_requests). Wait for Retry-After seconds.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"$ref":"#/components/headers/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/RateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/RateLimitReset"},"X-Request-Id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"headers":{"RateLimitLimit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"RateLimitRemaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"RateLimitReset":{"description":"Seconds until another request is allowed.","schema":{"type":"integer"}},"RequestId":{"description":"This request's id. Give it to support when you ask about a request.","schema":{"type":"string"}}},"schemas":{"Activity":{"properties":{"id":{"title":"Id","type":"string"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"kind":{"description":"note, api, stage_changed, form_submitted, email_sent and so on.","title":"Kind","type":"string"},"body":{"title":"Body","type":"string"},"meta":{"additionalProperties":true,"title":"Meta","type":"object"},"occurred_at":{"title":"Occurred At","type":"string"},"actor":{"description":"Who did it: user, api, workflow or system.","title":"Actor","type":"string"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"created_at":{"title":"Created At","type":"string"}},"required":["id","lead_id","deal_id","kind","body","meta","occurred_at","actor","actor_id","created_at"],"title":"Activity","type":"object"},"ActivityIn":{"properties":{"kind":{"type":"string","enum":["note","api","email_sent","email_replied","whatsapp_sent","whatsapp_received","meeting_booked","task_done"],"title":"Kind","default":"note"},"body":{"type":"string","maxLength":5000,"title":"Body","default":""},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"}},"type":"object","title":"ActivityIn"},"ActivityPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Activity"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"ActivityPage","type":"object"},"AiGrade":{"properties":{"key":{"title":"Key","type":"string"},"kind":{"description":"ai.","title":"Kind","type":"string"},"label":{"title":"Label","type":"string"},"points":{"description":"Always 0: the AI grade advises and never changes the score.","title":"Points","type":"integer"},"grade":{"description":"A, B, C or D.","title":"Grade","type":"string"},"fit":{"description":"0 to 100.","title":"Fit","type":"integer"},"reason":{"title":"Reason","type":"string"},"next_step":{"title":"Next Step","type":"string"},"at":{"title":"At","type":"string"}},"required":["key","kind","label","points","grade","fit","reason","next_step","at"],"title":"AiGrade","type":"object"},"AiLeadScore":{"properties":{"lead_id":{"title":"Lead Id","type":"string"},"score":{"description":"0 to 100, from your rules and the lead's activity.","title":"Score","type":"integer"},"label":{"$ref":"#/components/schemas/ScoreLabel"},"reasons":{"items":{"$ref":"#/components/schemas/ScoreReason"},"title":"Reasons","type":"array"},"ai":{"anyOf":[{"$ref":"#/components/schemas/AiGrade"},{"type":"null"}],"description":"The last AI grade, if any."},"grade":{"description":"A, B, C or D.","title":"Grade","type":"string"},"fit":{"description":"How well the lead fits your ideal customer, 0 to 100.","title":"Fit","type":"integer"},"reason":{"title":"Reason","type":"string"},"next_step":{"title":"Next Step","type":"string"},"credits_used":{"title":"Credits Used","type":"integer"}},"required":["lead_id","score","label","reasons","ai","grade","fit","reason","next_step","credits_used"],"title":"AiLeadScore","type":"object"},"AiScoreIn":{"properties":{"icp_text":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Icp Text"}},"type":"object","title":"AiScoreIn"},"ApprovalRemakeOut":{"properties":{"count":{"type":"integer","title":"Count","default":0},"left":{"type":"integer","title":"Left","default":0},"running":{"type":"boolean","title":"Running","default":false},"failed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failed"}},"type":"object","title":"ApprovalRemakeOut","description":"An approval's \"Remake the picture\" (in the app only): made so far, left, one being made, why one failed."},"ApproveIn":{"properties":{"step":{"type":"string","enum":["story","cast","storyboard"],"title":"Step"}},"type":"object","required":["step"],"title":"ApproveIn"},"AssetOut":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"source":{"type":"string","title":"Source"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"download_name":{"type":"string","title":"Download Name","default":""},"download_url":{"type":"string","title":"Download Url","default":""},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"duration_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration S"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"generation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation Id"},"created_at":{"type":"string","title":"Created At"},"without_logo_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Without Logo Id"},"logo_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Note"},"join_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Join Note"},"made_from_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Made From Id"},"picture_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture Tool"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["id","kind","source","name","url","content_type","size_bytes","created_at"],"title":"AssetOut"},"AssetPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"AssetPage"},"AssetUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name"},"tags":{"anyOf":[{"items":{"type":"string","maxLength":60,"minLength":1},"type":"array"},{"type":"null"}],"title":"Tags"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"}},"type":"object","title":"AssetUpdate"},"AutoReplyIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"subject":{"type":"string","maxLength":200,"title":"Subject","default":""},"text":{"type":"string","maxLength":3000,"title":"Text","default":""},"google":{"type":"boolean","title":"Google","description":"Also send it to people from Google Ads lead forms (only while emails to leads are switched on). Only someone signed in to cuil.si can switch this on: an API key that tries gets 403 forbidden.","default":false}},"type":"object","title":"AutoReplyIn","description":"The thank-you email sent once to the person who filled in the form (off unless `enabled`). An empty subject\nor text uses the ready-made words with the business name."},"BrandCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"tagline":{"type":"string","maxLength":200,"title":"Tagline","default":""},"contact_email":{"type":"string","maxLength":320,"title":"Contact Email","default":""},"website_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Website Url"},"phone":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Phone"},"whatsapp":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Whatsapp"},"address":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Address"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""},"audience":{"type":"string","maxLength":1000,"title":"Audience","default":""},"voice_tone":{"type":"string","maxLength":500,"title":"Voice Tone","default":""},"voice_dos":{"items":{"type":"string","maxLength":200},"type":"array","maxItems":40,"title":"Voice Dos","default":[]},"voice_donts":{"items":{"type":"string","maxLength":200},"type":"array","maxItems":40,"title":"Voice Donts","default":[]},"keywords":{"items":{"type":"string","maxLength":60},"type":"array","maxItems":30,"title":"Keywords","default":[]},"never_words":{"items":{"type":"string","maxLength":300},"type":"array","maxItems":40,"title":"Never Words","default":[]},"always_words":{"items":{"type":"string","maxLength":300},"type":"array","maxItems":40,"title":"Always Words","default":[]},"colors":{"items":{"type":"string","maxLength":20},"type":"array","maxItems":12,"title":"Colors","default":[]},"fonts":{"items":{"type":"string","maxLength":80},"type":"array","maxItems":6,"title":"Fonts","default":[]},"logo_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Asset Id"},"products":{"items":{"$ref":"#/components/schemas/BrandProduct"},"type":"array","maxItems":30,"title":"Products","default":[]},"language":{"type":"string","maxLength":10,"title":"Language","default":"en"}},"type":"object","required":["name"],"title":"BrandCreate","description":"A new brand. Each font must be one cuil.si can draw on pictures (a common computer font such as Arial is fine)."},"BrandImportIn":{"properties":{"url":{"type":"string","maxLength":2000,"minLength":3,"title":"Url"},"writer":{"anyOf":[{"type":"string","enum":["auto","everyday","creative","smart_stories","smart_precise"]},{"type":"null"}],"title":"Writer"}},"type":"object","required":["url"],"title":"BrandImportIn"},"BrandImportOut":{"properties":{"draft":{"$ref":"#/components/schemas/BrandCreate"},"logo_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"source_title":{"type":"string","title":"Source Title","default":""},"filled_by_ai":{"type":"boolean","title":"Filled By Ai","default":true},"writer_used":{"anyOf":[{"$ref":"#/components/schemas/WriterUsedOut"},{"type":"null"}]},"font_notes":{"items":{"$ref":"#/components/schemas/FontNote"},"type":"array","title":"Font Notes","default":[]}},"type":"object","required":["draft"],"title":"BrandImportOut","description":"A brand profile read from a website. Nothing is saved until the user saves the form."},"BrandOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"tagline":{"type":"string","title":"Tagline","default":""},"contact_email":{"type":"string","title":"Contact Email","default":""},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"whatsapp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"description":{"type":"string","title":"Description","default":""},"audience":{"type":"string","title":"Audience","default":""},"voice_tone":{"type":"string","title":"Voice Tone","default":""},"voice_dos":{"items":{"type":"string"},"type":"array","title":"Voice Dos","default":[]},"voice_donts":{"items":{"type":"string"},"type":"array","title":"Voice Donts","default":[]},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords","default":[]},"never_words":{"items":{"type":"string"},"type":"array","title":"Never Words","default":[]},"always_words":{"items":{"type":"string"},"type":"array","title":"Always Words","default":[]},"colors":{"items":{"type":"string"},"type":"array","title":"Colors","default":[]},"fonts":{"items":{"type":"string"},"type":"array","title":"Fonts","default":[]},"font_notes":{"items":{"$ref":"#/components/schemas/FontNote"},"type":"array","title":"Font Notes","default":[]},"logo_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Asset Id"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"logo":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"products":{"items":{"$ref":"#/components/schemas/BrandProduct"},"type":"array","title":"Products","default":[]},"language":{"type":"string","title":"Language","default":"en"},"is_default":{"type":"boolean","title":"Is Default","default":false},"assets":{"additionalProperties":{"$ref":"#/components/schemas/AssetOut"},"type":"object","title":"Assets","default":{}},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","name","created_at","updated_at"],"title":"BrandOut"},"BrandProduct":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"asset_ids":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Asset Ids","default":[]},"price":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Price"},"sale_price":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Sale Price"},"currency":{"type":"string","maxLength":3,"title":"Currency","default":""},"link":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Link"},"features":{"items":{"type":"string","maxLength":120},"type":"array","maxItems":6,"title":"Features","default":[]},"category":{"type":"string","maxLength":80,"title":"Category","default":""},"in_stock":{"type":"boolean","title":"In Stock","default":true}},"type":"object","required":["name"],"title":"BrandProduct","description":"One product or service of the brand (GIN-455: price, sale price, link, key features, category, in stock).\nThe writers and the ad wizard get them through brands.service.brand_prompt_context."},"BrandUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"tagline":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Tagline"},"contact_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Contact Email"},"website_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Website Url"},"phone":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Phone"},"whatsapp":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Whatsapp"},"address":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Address"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"audience":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Audience"},"voice_tone":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Voice Tone"},"voice_dos":{"anyOf":[{"items":{"type":"string","maxLength":200},"type":"array","maxItems":40},{"type":"null"}],"title":"Voice Dos"},"voice_donts":{"anyOf":[{"items":{"type":"string","maxLength":200},"type":"array","maxItems":40},{"type":"null"}],"title":"Voice Donts"},"keywords":{"anyOf":[{"items":{"type":"string","maxLength":60},"type":"array","maxItems":30},{"type":"null"}],"title":"Keywords"},"never_words":{"anyOf":[{"items":{"type":"string","maxLength":300},"type":"array","maxItems":40},{"type":"null"}],"title":"Never Words"},"always_words":{"anyOf":[{"items":{"type":"string","maxLength":300},"type":"array","maxItems":40},{"type":"null"}],"title":"Always Words"},"colors":{"anyOf":[{"items":{"type":"string","maxLength":20},"type":"array","maxItems":12},{"type":"null"}],"title":"Colors"},"fonts":{"anyOf":[{"items":{"type":"string","maxLength":80},"type":"array","maxItems":6},{"type":"null"}],"title":"Fonts"},"logo_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Asset Id"},"products":{"anyOf":[{"items":{"$ref":"#/components/schemas/BrandProduct"},"type":"array","maxItems":30},{"type":"null"}],"title":"Products"},"language":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Language"}},"type":"object","title":"BrandUpdate","description":"Only the fields that are sent are changed. A font already saved with the brand may stay even when cuil.si can't\ndraw it; a new one must be one it can."},"BulkActionIn":{"properties":{"lead_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1,"title":"Lead Ids"},"action":{"type":"string","enum":["move_stage","add_tag","remove_tag","add_to_list","assign","delete"],"title":"Action"},"stage_id":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Stage Id"},"tag":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Tag"},"list_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"List Id"},"assignee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"}},"type":"object","required":["lead_ids","action"],"title":"BulkActionIn"},"BulkActionResult":{"description":"What a bulk action did. Leads of another workspace (or already erased) are skipped as not found.","properties":{"done":{"title":"Done","type":"integer"},"skipped":{"items":{"$ref":"#/components/schemas/BulkSkipped"},"title":"Skipped","type":"array"}},"required":["done","skipped"],"title":"BulkActionResult","type":"object"},"BulkIn":{"properties":{"what":{"type":"string","enum":["person","company","both"],"title":"What","default":"both"},"find_phone":{"type":"boolean","title":"Find Phone","default":false},"overwrite":{"type":"boolean","title":"Overwrite","default":false},"basis":{"anyOf":[{"type":"string","enum":["consent","asked_to_be_contacted","existing_customer","b2b_prospect"]},{"type":"null"}],"title":"Basis"},"providers":{"anyOf":[{"items":{"type":"string","maxLength":30,"minLength":1},"type":"array","maxItems":10},{"type":"null"}],"title":"Providers"},"verify_email":{"type":"boolean","title":"Verify Email","default":false},"lead_ids":{"items":{"type":"string","maxLength":100},"type":"array","maxItems":1000,"title":"Lead Ids","default":[]},"list_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"List Id"}},"type":"object","title":"BulkIn"},"BulkLookup":{"description":"Looking many leads up in the background.","properties":{"id":{"title":"Id","type":"string"},"status":{"description":"queued, running, succeeded, failed or cancelled.","title":"Status","type":"string"},"progress":{"description":"0 to 100.","title":"Progress","type":"integer"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"total":{"title":"Total","type":"integer"},"done":{"title":"Done","type":"integer"},"counts":{"additionalProperties":{"type":"integer"},"description":"How many leads ended each way: found, nothing_found, or an error code such as do_not_contact or basis_required.","title":"Counts","type":"object"},"skipped_providers":{"additionalProperties":{"type":"string"},"description":"Providers left out part way (key refused, out of credits), with why.","title":"Skipped Providers","type":"object"},"options":{"additionalProperties":true,"title":"Options","type":"object"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"}},"required":["id","status","progress","message","total","done","counts","skipped_providers","options","created_at","updated_at"],"title":"BulkLookup","type":"object"},"BulkSkipped":{"properties":{"lead_id":{"title":"Lead Id","type":"string"},"reason":{"description":"Why it wasn't done: in plain words (e.g. We couldn't find this lead.), or the code already_in_list for Add to list.","title":"Reason","type":"string"}},"required":["lead_id","reason"],"title":"BulkSkipped","type":"object"},"CatalogOut":{"properties":{"categories":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Categories"},"nodes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Nodes"}},"type":"object","required":["categories","nodes"],"title":"CatalogOut"},"ChannelPermission":{"properties":{"channel":{"description":"email, whatsapp or phone.","title":"Channel","type":"string"},"purpose":{"description":"enquiry, marketing or newsletter.","title":"Purpose","type":"string"},"allowed":{"title":"Allowed","type":"boolean"},"reason":{"description":"ok, do_not_contact, no_address, no_permission, withdrawn, needs_opt_in or no_yes (email marketing and newsletter: only the person's own yes counts, so another reason on record isn't enough).","title":"Reason","type":"string"},"basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basis"},"captured_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captured At"},"captured_via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captured Via"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Allowed for now, but read this first: for people in India, existing_customer and b2b_prospect stop allowing marketing on 13 May 2027.","title":"Warning"}},"required":["channel","purpose","allowed","reason","basis","captured_at","captured_via","warning"],"title":"ChannelPermission","type":"object"},"CharacterCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"kind":{"type":"string","enum":["person","mascot","product","other"],"title":"Kind","default":"person"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""},"personality":{"type":"string","maxLength":1000,"title":"Personality","default":""},"reference_asset_ids":{"items":{"type":"string"},"type":"array","maxItems":24,"title":"Reference Asset Ids","default":[]},"cover_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Asset Id"},"voice":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Voice"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"}},"type":"object","required":["name"],"title":"CharacterCreate"},"CharacterOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"description":{"type":"string","title":"Description","default":""},"personality":{"type":"string","title":"Personality","default":""},"reference_asset_ids":{"items":{"type":"string"},"type":"array","title":"Reference Asset Ids","default":[]},"references":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"References","default":[]},"cover_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Asset Id"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice"},"voice_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Label"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"look_generation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Look Generation Id"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","name","kind","created_at","updated_at"],"title":"CharacterOut"},"CharacterUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"kind":{"anyOf":[{"type":"string","enum":["person","mascot","product","other"]},{"type":"null"}],"title":"Kind"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"personality":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Personality"},"reference_asset_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":24},{"type":"null"}],"title":"Reference Asset Ids"},"cover_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Asset Id"},"voice":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Voice"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"}},"type":"object","title":"CharacterUpdate","description":"Only the fields that are sent are changed. Send null for voice, brand_id or cover_asset_id to clear."},"Company":{"properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"size_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size Range"},"employee_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Employee Count"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"items":{"type":"string"},"title":"Tags","type":"array"},"fields":{"additionalProperties":true,"title":"Fields","type":"object"},"enrichment":{"additionalProperties":true,"title":"Enrichment","type":"object"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"},"counts":{"anyOf":[{"$ref":"#/components/schemas/CompanyCounts"},{"type":"null"}],"default":null,"description":"On a single company only."}},"required":["id","name","domain","industry","size_range","employee_count","country","city","linkedin_url","website","description","tags","fields","enrichment","created_at","updated_at"],"title":"Company","type":"object"},"CompanyBrief":{"properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"}},"required":["id","name","domain"],"title":"CompanyBrief","type":"object"},"CompanyCounts":{"properties":{"leads":{"title":"Leads","type":"integer"},"deals":{"title":"Deals","type":"integer"}},"required":["leads","deals"],"title":"CompanyCounts","type":"object"},"CompanyIn":{"properties":{"name":{"type":"string","maxLength":300,"minLength":1,"title":"Name"},"domain":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Domain"},"industry":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Industry"},"size_range":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Size Range"},"employee_count":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Employee Count"},"country":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Country"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Linkedin Url"},"website":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"},"tags":{"items":{"type":"string","maxLength":60,"minLength":1},"type":"array","maxItems":50,"title":"Tags","default":[]},"fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fields"}},"type":"object","required":["name"],"title":"CompanyIn"},"CompanyOut":{"properties":{"enterprise":{"type":"boolean","title":"Enterprise"},"ends_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ends On"},"tools":{"items":{"$ref":"#/components/schemas/CompanyTool"},"type":"array","title":"Tools"},"people":{"type":"integer","title":"People"},"people_with_two_step":{"type":"integer","title":"People With Two Step"}},"type":"object","required":["enterprise","tools","people","people_with_two_step"],"title":"CompanyOut","description":"The workspace's cuil.si Enterprise: on or a pilot, until when, its tools, and how many people here have\ntwo-step sign-in on."},"CompanyPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Company"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"CompanyPage","type":"object"},"CompanyPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name"},"domain":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Domain"},"industry":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Industry"},"size_range":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Size Range"},"employee_count":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":0.0},{"type":"null"}],"title":"Employee Count"},"country":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Country"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Linkedin Url"},"website":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"items":{"type":"string","maxLength":60,"minLength":1},"type":"array","maxItems":50},{"type":"null"}],"title":"Tags"},"fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fields"}},"type":"object","title":"CompanyPatch"},"CompanyRef":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Name"},"domain":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Domain"}},"type":"object","title":"CompanyRef"},"CompanyTool":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"}},"type":"object","required":["key","label"],"title":"CompanyTool"},"Consent":{"description":"One recorded \"yes\" or \"no\". Rows are never changed; the latest one per channel and purpose counts.","properties":{"id":{"title":"Id","type":"string"},"lead_id":{"title":"Lead Id","type":"string"},"channel":{"title":"Channel","type":"string"},"purpose":{"title":"Purpose","type":"string"},"status":{"description":"granted or withdrawn.","title":"Status","type":"string"},"basis":{"title":"Basis","type":"string"},"notice_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice Version"},"notice_text_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice Text Sha256"},"notice_text":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The exact notice the person saw, kept even after the form is deleted.","title":"Notice Text"},"captured_via":{"title":"Captured Via","type":"string"},"captured_at":{"title":"Captured At","type":"string"},"proof":{"additionalProperties":true,"title":"Proof","type":"object"},"created_at":{"title":"Created At","type":"string"}},"required":["id","lead_id","channel","purpose","status","basis","notice_version","notice_text_sha256","notice_text","captured_via","captured_at","proof","created_at"],"title":"Consent","type":"object"},"ConsentIn":{"properties":{"channel":{"type":"string","enum":["email","whatsapp","phone","any"],"title":"Channel","default":"email"},"purpose":{"anyOf":[{"type":"string","enum":["enquiry","marketing","newsletter"]},{"type":"null"}],"title":"Purpose"},"status":{"type":"string","enum":["granted","withdrawn"],"title":"Status","default":"granted"},"basis":{"type":"string","enum":["consent","asked_to_be_contacted","existing_customer","b2b_prospect"],"title":"Basis","description":"Why you may contact them: consent (they said yes), asked_to_be_contacted (they asked you to get back to them), existing_customer or b2b_prospect (a work contact who hasn't said yes). For people in India, existing_customer and b2b_prospect can be recorded, but from 13 May 2027 they no longer allow marketing (the DPDP Rules need the person's own yes); until then the answer carries a warning.","default":"consent"},"text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Text"},"notice_version":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Notice Version"},"notice_text":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Notice Text"},"captured_via":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Captured Via"},"captured_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Captured At"},"proof":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Proof"}},"type":"object","title":"ConsentIn","description":"What the person agreed to (or took back). The current permission is the latest one per channel and purpose."},"ConsentItemIn":{"properties":{"purpose":{"type":"string","enum":["enquiry","marketing","newsletter"],"title":"Purpose"},"channel":{"type":"string","enum":["email","whatsapp","phone","any"],"title":"Channel","default":"email"},"label":{"type":"string","maxLength":300,"minLength":1,"title":"Label"},"required":{"type":"boolean","title":"Required","default":false}},"type":"object","required":["purpose","label"],"title":"ConsentItemIn"},"ConsentList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Consent"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"permission":{"$ref":"#/components/schemas/Permission"}},"required":["items","next_cursor","permission"],"title":"ConsentList","type":"object"},"ConsentSaved":{"properties":{"id":{"title":"Id","type":"string"},"lead_id":{"title":"Lead Id","type":"string"},"channel":{"title":"Channel","type":"string"},"purpose":{"title":"Purpose","type":"string"},"status":{"description":"granted or withdrawn.","title":"Status","type":"string"},"basis":{"title":"Basis","type":"string"},"notice_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice Version"},"notice_text_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice Text Sha256"},"notice_text":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The exact notice the person saw, kept even after the form is deleted.","title":"Notice Text"},"captured_via":{"title":"Captured Via","type":"string"},"captured_at":{"title":"Captured At","type":"string"},"proof":{"additionalProperties":true,"title":"Proof","type":"object"},"created_at":{"title":"Created At","type":"string"},"permission":{"$ref":"#/components/schemas/Permission"}},"required":["id","lead_id","channel","purpose","status","basis","notice_version","notice_text_sha256","notice_text","captured_via","captured_at","proof","created_at","permission"],"title":"ConsentSaved","type":"object"},"ContactLogged":{"properties":{"activity":{"$ref":"#/components/schemas/Activity"},"score":{"title":"Score","type":"integer"},"label":{"$ref":"#/components/schemas/ScoreLabel"},"follow_ups_stopped":{"title":"Follow Ups Stopped","type":"integer"},"last_contacted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Contacted At"},"last_reply_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Reply At"},"waiting_for_us":{"title":"Waiting For Us","type":"boolean"},"contacted":{"title":"Contacted","type":"boolean"}},"required":["activity","score","label","follow_ups_stopped","last_contacted_at","last_reply_at","waiting_for_us","contacted"],"title":"ContactLogged","type":"object"},"CreditCosts":{"description":"What lead actions cost in cuil.si credits.","properties":{"ai_score":{"title":"Ai Score","type":"integer"},"ai_email":{"title":"Ai Email","type":"integer"},"email_check":{"description":"An email check on cuil.si's own checker.","title":"Email Check","type":"integer"},"own_account":{"description":"Lookups with your own provider account (they use its credits).","title":"Own Account","type":"integer"}},"required":["ai_score","ai_email","email_check","own_account"],"title":"CreditCosts","type":"object"},"CreditExpiringOut":{"properties":{"credits":{"type":"integer","title":"Credits","description":"Credits that expire on that day (India time) if they aren't used first."},"expires_at":{"type":"string","title":"Expires At","description":"When the first of them expire (ISO 8601)."}},"type":"object","required":["credits","expires_at"],"title":"CreditExpiringOut"},"CreditsOut":{"properties":{"balance":{"type":"integer","title":"Balance"},"low":{"type":"boolean","title":"Low","description":"The balance is below 10% of the starting credits."},"expiring":{"anyOf":[{"$ref":"#/components/schemas/CreditExpiringOut"},{"type":"null"}],"description":"The soonest day credits expire (credits are valid for 12 months from the day they're added, oldest used first); null when none will."},"valid_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid For","description":"How long added credits are valid, e.g. \"12 months\"; null when credits never expire."}},"type":"object","required":["balance","low"],"title":"CreditsOut"},"Customer":{"properties":{"since":{"description":"Their first sale.","title":"Since","type":"string"},"sales":{"title":"Sales","type":"integer"},"totals":{"description":"What they spent, per currency, biggest first.","items":{"$ref":"#/components/schemas/CustomerTotal"},"title":"Totals","type":"array"}},"required":["since","sales","totals"],"title":"Customer","type":"object"},"CustomerTotal":{"properties":{"currency":{"title":"Currency","type":"string"},"amount_minor":{"title":"Amount Minor","type":"integer"},"amount_text":{"description":"e.g. ₹12,500.","title":"Amount Text","type":"string"}},"required":["currency","amount_minor","amount_text"],"title":"CustomerTotal","type":"object"},"Deal":{"properties":{"id":{"title":"Id","type":"string"},"pipeline_id":{"title":"Pipeline Id","type":"string"},"stage":{"title":"Stage","type":"string"},"name":{"title":"Name","type":"string"},"value_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The value in the currency's smallest unit (paise, cents).","title":"Value Minor"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"status":{"description":"open, won or lost.","title":"Status","type":"string"},"lead":{"anyOf":[{"$ref":"#/components/schemas/NamedRef"},{"type":"null"}]},"company":{"anyOf":[{"$ref":"#/components/schemas/CompanyBrief"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"},"expected_close":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Close"},"lost_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lost Reason"},"closed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed At"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"}},"required":["id","pipeline_id","stage","name","value_minor","currency","status","lead","company","owner_id","expected_close","lost_reason","closed_at","created_at","updated_at"],"title":"Deal","type":"object"},"DealIn":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Name"},"pipeline_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Pipeline Id"},"stage":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Stage"},"value_minor":{"type":"integer","maximum":1000000000000000.0,"minimum":0.0,"title":"Value Minor","default":0},"currency":{"type":"string","title":"Currency","default":"INR"},"contact_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Contact Id"},"company_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Company Id"},"owner_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Owner Id"},"expected_close":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected Close"}},"type":"object","title":"DealIn"},"DealPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Deal"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"DealPage","type":"object"},"DealPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Name"},"stage":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Stage"},"value_minor":{"anyOf":[{"type":"integer","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Value Minor"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"contact_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Contact Id"},"company_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Company Id"},"owner_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Owner Id"},"expected_close":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected Close"},"lost_reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Lost Reason"}},"type":"object","title":"DealPatch"},"DecisionIn":{"properties":{"comment":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Comment"},"text":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Text"}},"type":"object","title":"DecisionIn"},"DeliveryOut":{"properties":{"id":{"type":"string","title":"Id"},"endpoint_id":{"type":"string","title":"Endpoint Id"},"event_id":{"type":"string","title":"Event Id"},"event_type":{"type":"string","title":"Event Type"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"last_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Status Code"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"next_attempt_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Attempt At"},"delivered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivered At"},"created_at":{"type":"string","title":"Created At"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["id","endpoint_id","event_id","event_type","status","attempts","created_at","payload"],"title":"DeliveryOut"},"DeliveryPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DeliveryOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"DeliveryPage"},"DialogueOut":{"properties":{"character_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Character Id"},"character_name":{"type":"string","title":"Character Name"},"line":{"type":"string","title":"Line"},"audio_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"how":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"How"},"spoken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spoken"}},"type":"object","required":["character_name","line"],"title":"DialogueOut"},"EmailCheck":{"properties":{"status":{"description":"valid, invalid, risky, catch_all or unknown.","title":"Status","type":"string"},"is_valid":{"title":"Is Valid","type":"boolean"},"detail":{"description":"The checker's reason, e.g. mailbox_not_found.","title":"Detail","type":"string"},"provider":{"title":"Provider","type":"string"},"name":{"title":"Name","type":"string"},"mode":{"description":"byo (your own account, free) or platform (cuil.si's, uses credits).","title":"Mode","type":"string"},"credits_used":{"title":"Credits Used","type":"integer"}},"required":["status","is_valid","detail","provider","name","mode","credits_used"],"title":"EmailCheck","type":"object"},"EmailCheckResult":{"properties":{"lead_id":{"title":"Lead Id","type":"string"},"email_check":{"anyOf":[{"$ref":"#/components/schemas/EmailCheck"},{"type":"null"}],"description":"None when no checker could answer; see attempts."},"attempts":{"items":{"$ref":"#/components/schemas/LookupAttempt"},"title":"Attempts","type":"array"},"basis":{"title":"Basis","type":"string"},"basis_source":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"When the email was checked.","title":"Basis Source"},"lead":{"anyOf":[{"$ref":"#/components/schemas/Lead"},{"type":"null"}],"default":null,"description":"When the email was checked."}},"required":["lead_id","email_check","attempts","basis"],"title":"EmailCheckResult","type":"object"},"EngagementPoints":{"properties":{"key":{"title":"Key","type":"string"},"label":{"title":"Label","type":"string"},"points":{"title":"Points","type":"integer"}},"required":["key","label","points"],"title":"EngagementPoints","type":"object"},"EnhanceOut":{"properties":{"prompt":{"type":"string","maxLength":4000,"minLength":1,"title":"Prompt"},"negative_prompt":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Negative Prompt"},"notes":{"type":"string","maxLength":1000,"title":"Notes","default":""},"writer":{"type":"string","title":"Writer","default":"everyday"},"writer_label":{"type":"string","title":"Writer Label","default":"Everyday"},"writer_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Writer Note"},"premium_credits":{"type":"integer","title":"Premium Credits","default":0}},"type":"object","required":["prompt"],"title":"EnhanceOut","description":"POST /ai/enhance: the improved prompt, which writer wrote it (a paid writer that was busy or not allowed:\nEveryday, with `writer_note`), and the Premium writers credits it took (0 for an included writer)."},"EnhanceRequest":{"properties":{"text":{"type":"string","maxLength":20000,"minLength":1,"title":"Text"},"target":{"type":"string","enum":["image","video","shot","post"],"title":"Target","default":"image"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"character_ids":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Character Ids","default":[]},"model_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Model Id"},"references_count":{"type":"integer","maximum":12.0,"minimum":0.0,"title":"References Count","default":0},"duration_s":{"anyOf":[{"type":"number","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Duration S"},"generation":{"anyOf":[{"$ref":"#/components/schemas/GenerationCreate"},{"type":"null"}]},"writer":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Writer"}},"type":"object","required":["text"],"title":"EnhanceRequest"},"EnrichIn":{"properties":{"what":{"type":"string","enum":["person","company","both"],"title":"What","default":"both"},"find_phone":{"type":"boolean","title":"Find Phone","default":false},"overwrite":{"type":"boolean","title":"Overwrite","default":false},"basis":{"anyOf":[{"type":"string","enum":["consent","asked_to_be_contacted","existing_customer","b2b_prospect"]},{"type":"null"}],"title":"Basis"},"providers":{"anyOf":[{"items":{"type":"string","maxLength":30,"minLength":1},"type":"array","maxItems":10},{"type":"null"}],"title":"Providers"},"verify_email":{"type":"boolean","title":"Verify Email","default":false}},"type":"object","title":"EnrichIn"},"Error":{"type":"object","title":"Error","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"A stable code your code can check, e.g. not_found.","examples":["not_found"]},"message":{"type":"string","description":"A friendly sentence you can show. It may change.","examples":["We couldn't find that."]},"request_id":{"type":"string","description":"The same id as the X-Request-Id header. Give it to support when you ask about a request."},"fields":{"type":"array","description":"On 422 invalid_input: what is wrong with each field.","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}},"retry_after_s":{"type":"integer","description":"On 429: seconds to wait."}}}}},"EstimateLine":{"properties":{"label":{"type":"string","title":"Label"},"credits":{"type":"integer","title":"Credits"}},"type":"object","required":["label","credits"],"title":"EstimateLine"},"EstimateOptions":{"properties":{"mode":{"type":"string","enum":["t2i","edit","t2v","i2v","r2v","tts","stt","continue","music","sfx","voice_change","video_upscale","lipsync"],"title":"Mode"},"offered":{"items":{"type":"string","enum":["draft","standard","premium"]},"type":"array","title":"Offered"},"hidden":{"items":{"$ref":"#/components/schemas/HiddenTier"},"type":"array","title":"Hidden"},"tiers":{"additionalProperties":{"$ref":"#/components/schemas/TierOption"},"type":"object","title":"Tiers"},"models":{"items":{"$ref":"#/components/schemas/ModelOption"},"type":"array","title":"Models"},"styles":{"items":{"$ref":"#/components/schemas/StyleOption"},"type":"array","title":"Styles","default":[]}},"type":"object","required":["mode","offered","hidden","tiers","models"],"title":"EstimateOptions"},"EstimateOut":{"properties":{"credits":{"type":"integer","title":"Credits"},"model":{"$ref":"#/components/schemas/ModelOut"},"options":{"anyOf":[{"$ref":"#/components/schemas/EstimateOptions"},{"type":"null"}]}},"type":"object","required":["credits","model"],"title":"EstimateOut"},"EventTypeOut":{"properties":{"type":{"type":"string","title":"Type"},"description":{"type":"string","title":"Description"},"example":{"additionalProperties":true,"type":"object","title":"Example"}},"type":"object","required":["type","description","example"],"title":"EventTypeOut"},"ExtendVideoRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"prompt":{"type":"string","maxLength":3500,"minLength":1,"title":"Prompt"},"duration_s":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Duration S"},"tier":{"type":"string","enum":["draft","standard","premium"],"title":"Tier","default":"standard"},"enhance":{"type":"boolean","title":"Enhance","default":true},"audio":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Audio"},"how":{"anyOf":[{"type":"string","enum":["continue","clip_end","last_frame","frames"]},{"type":"null"}],"title":"How"},"added_seconds":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":2.0},{"type":"null"}],"title":"Added Seconds"},"model_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Model Id"},"enhanced_prompt":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"title":"Enhanced Prompt"},"end_s":{"anyOf":[{"type":"number","maximum":3600.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"End S"}},"type":"object","required":["asset_id","prompt"],"title":"ExtendVideoRequest"},"ExtendsOut":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"way":{"type":"string","title":"Way"},"end_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"End S"},"skip_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Skip S"},"join_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Join Note"}},"type":"object","required":["asset_id","way"],"title":"ExtendsOut","description":"The clip an extend generation carries on (Generation.extends, as far as the person needs it)."},"FilmModels":{"properties":{"story":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Story","description":"The AI model that writes the story and the script (each shot and its lines), by its id: deepseek-ai/DeepSeek-V4.1-Flash-1017, Qwen/Qwen3-235B-A22B-Instruct-2507, deepseek-ai/DeepSeek-V3.2, moonshotai/Kimi-K2.6, google/gemma-4-31B-it, meta-llama/Llama-3.3-70B-Instruct-Turbo. Leave it out for cuil.si's usual story model (the same for every quality). If it can't write the story, the story step fails and says so; cuil.si never swaps it for another one."},"pictures":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Pictures","description":"The characters' looks and the places' pictures."},"storyboard":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Storyboard","description":"The storyboard picture of each shot."},"shots":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Shots","description":"The video of each shot."},"voices":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Voices","description":"The spoken lines and the narration."}},"additionalProperties":false,"type":"object","title":"FilmModels","description":"The AI model for each part of the film, by model id (as listModels shows them; the story writer by its own id).\nLeave one out, or send null, to let cuil.si choose it by the film's quality (the story: cuil.si's usual story\nmodel). A model that can't do a step (for example start a video from a picture) is used where it can, and cuil.si\nchooses for the rest, with a note on the shot."},"FilmPlanFormat":{"properties":{"plan_version":{"type":"integer","title":"Plan Version"},"guide_title":{"type":"string","title":"Guide Title"},"guide":{"type":"string","title":"Guide"},"guide_link":{"type":"string","title":"Guide Link"},"plan_schema":{"additionalProperties":true,"type":"object","title":"Plan Schema"},"examples":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Examples"},"limits":{"additionalProperties":true,"type":"object","title":"Limits"},"credits_per_second":{"additionalProperties":true,"type":"object","title":"Credits Per Second"},"shot_sound":{"type":"boolean","title":"Shot Sound"},"codes":{"additionalProperties":{"type":"string"},"type":"object","title":"Codes"}},"type":"object","required":["plan_version","guide_title","guide","guide_link","plan_schema","examples","limits","credits_per_second","shot_sound","codes"],"title":"FilmPlanFormat","description":"The film plan's format: the schema, the guide, two examples, the limits and today's prices."},"FilmPlanIn":{"properties":{"plan":{"anyOf":[{"type":"string","maxLength":200000},{"additionalProperties":true,"type":"object"}],"title":"Plan"}},"type":"object","required":["plan"],"title":"FilmPlanIn","description":"A film plan: the plan as a JSON object, or the text you pasted (JSON, also inside a ```json block)."},"FilmStyles":{"properties":{"pictures":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Pictures","description":"The characters' looks and the places' pictures: photoreal, artistic or text_design."},"storyboard":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Storyboard","description":"The storyboard picture of each shot: photoreal, artistic or text_design."},"shots":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Shots","description":"The video of each shot: cinematic or realistic_people."},"voices":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Voices","description":"The spoken lines and the narration: natural, expressive or quick."}},"additionalProperties":false,"type":"object","title":"FilmStyles","description":"The style for each part of the film instead of a model: what it is best at (the film's \"Choose the AI models\"\nlists each part's styles; GET /ai/styles describes them). Leave one out, or send null or \"auto\", to let cuil.si\nchoose it by the film's quality. A model chosen for the same part in `models` wins over its style."},"FinalOutOfDateOut":{"properties":{"message":{"type":"string","title":"Message"},"shots":{"items":{"type":"integer"},"type":"array","title":"Shots","default":[]},"busy":{"items":{"type":"integer"},"type":"array","title":"Busy","default":[]}},"type":"object","required":["message"],"title":"FinalOutOfDateOut","description":"A finished film whose shots changed after it was put together: what to do, in plain words."},"FontNote":{"properties":{"font":{"type":"string","title":"Font"},"note":{"type":"string","title":"Note"},"suggestion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggestion"},"usable":{"type":"boolean","title":"Usable","default":false}},"type":"object","required":["font","note"],"title":"FontNote","description":"A plain note about one of the brand's fonts (GIN-625)."},"FormAutoReply":{"description":"The thank-you email sent once to the person who filled in the form (empty subject or text: the ready-made\nwords). Never to an address on the do-not-contact list.","properties":{"enabled":{"title":"Enabled","type":"boolean"},"subject":{"title":"Subject","type":"string"},"text":{"title":"Text","type":"string"},"default_subject":{"title":"Default Subject","type":"string"},"default_text":{"title":"Default Text","type":"string"},"footer":{"description":"The plain line every thank-you email ends with: why they got it.","title":"Footer","type":"string"},"google":{"description":"Also sent to people from Google Ads lead forms (only while google_ready).","title":"Google","type":"boolean"},"google_ready":{"description":"Emails to leads are switched on for cuil.si, so the Google Ads tick takes effect.","title":"Google Ready","type":"boolean"},"from_name":{"description":"The sender name the email comes from, e.g. \"Asha Foods via cuil.si\".","title":"From Name","type":"string"}},"required":["enabled","subject","text","default_subject","default_text","footer","google","google_ready","from_name"],"title":"FormAutoReply","type":"object"},"FormConsentBox":{"description":"A tick box on the form. Its field name in a submit is consent_<purpose>_<channel>.","properties":{"purpose":{"description":"enquiry, marketing or newsletter.","title":"Purpose","type":"string"},"channel":{"description":"any, email, whatsapp or phone.","title":"Channel","type":"string"},"label":{"title":"Label","type":"string"},"required":{"description":"Only the box about the enquiry itself can be required.","title":"Required","type":"boolean"}},"required":["purpose","channel","label","required"],"title":"FormConsentBox","type":"object"},"FormCounts":{"properties":{"submissions":{"title":"Submissions","type":"integer"},"spam":{"title":"Spam","type":"integer"}},"required":["submissions","spam"],"title":"FormCounts","type":"object"},"FormField":{"properties":{"key":{"description":"name, email, phone, company, title, message, utm (hidden: where the visitor came from), product (\"Which product?\": the brand's products), or q_ and 2 to 20 lowercase letters or digits for one of your own questions.","title":"Key","type":"string"},"label":{"description":"Empty means the usual label. Your own questions always have one.","title":"Label","type":"string"},"required":{"title":"Required","type":"boolean"},"placeholder":{"title":"Placeholder","type":"string"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Your own questions: short, long, dropdown, checkboxes, number or date; product for the product picker.","title":"Kind"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"description":"The choices of a dropdown or tick boxes.","title":"Options"}},"required":["key","label","required","placeholder"],"title":"FormField","type":"object"},"FormFieldIn":{"properties":{"key":{"type":"string","maxLength":24,"minLength":1,"title":"Key"},"label":{"type":"string","maxLength":120,"title":"Label","default":""},"required":{"type":"boolean","title":"Required","default":false},"placeholder":{"type":"string","maxLength":120,"title":"Placeholder","default":""},"kind":{"anyOf":[{"type":"string","enum":["short","long","dropdown","checkboxes","number","date","product"]},{"type":"null"}],"title":"Kind"},"options":{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":20,"title":"Options","default":[]}},"type":"object","required":["key"],"title":"FormFieldIn","description":"One entry of a form's questions: a fixed field, the product picker or an own question."},"FormGoogle":{"description":"Google Ads lead forms. The key itself is only shown in the app.","properties":{"webhook_url":{"title":"Webhook Url","type":"string"},"key_set":{"title":"Key Set","type":"boolean"},"key_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The key's last 4 characters, e.g. ••••a1B2.","title":"Key Hint"}},"required":["webhook_url","key_set","key_hint"],"title":"FormGoogle","type":"object"},"FormNoticeText":{"properties":{"text":{"description":"The notice visitors see: your own text, or the ready-made one.","title":"Text","type":"string"},"version":{"description":"Changes whenever the notice or the box labels change. Send it as _notice.","title":"Version","type":"string"},"custom_text":{"description":"Your own notice. Empty: the ready-made one is shown.","title":"Custom Text","type":"string"},"ready_made_text":{"title":"Ready Made Text","type":"string"}},"required":["text","version","custom_text","ready_made_text"],"title":"FormNoticeText","type":"object"},"FormPage":{"properties":{"headline":{"title":"Headline","type":"string"},"text":{"title":"Text","type":"string"},"picture_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture Asset Id"},"button_label":{"title":"Button Label","type":"string"},"show_booking_link":{"default":false,"description":"The thank-you page shows the booking link from Leads settings.","title":"Show Booking Link","type":"boolean"},"picture_url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"On a single form only. A link that expires.","title":"Picture Url"}},"required":["headline","text","picture_asset_id","button_label"],"title":"FormPage","type":"object"},"FormSent":{"description":"The answer to a JSON submit. Spam gets the same answer, so bots learn nothing.","properties":{"ok":{"title":"Ok","type":"boolean"},"message":{"description":"The form's thank-you message.","title":"Message","type":"string"},"redirect_url":{"description":"The thank-you page.","title":"Redirect Url","type":"string"},"unsubscribe_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The person's own page to stop messages (when they gave an email), for your thank-you page.","title":"Unsubscribe Url"}},"required":["ok","message","redirect_url","unsubscribe_url"],"title":"FormSent","type":"object"},"FormSubmission":{"properties":{"id":{"title":"Id","type":"string"},"form_id":{"title":"Form Id","type":"string"},"created_at":{"title":"Created At","type":"string"},"lead":{"anyOf":[{"$ref":"#/components/schemas/NamedRef"},{"type":"null"}],"description":"The lead it made or filled in. None for spam."},"answers":{"additionalProperties":true,"description":"By field key, plus consent_<purpose>_<channel>: true or false.","title":"Answers","type":"object"},"utm":{"additionalProperties":true,"title":"Utm","type":"object"},"referrer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer"},"is_spam":{"title":"Is Spam","type":"boolean"},"spam_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spam Reason"},"is_test":{"title":"Is Test","type":"boolean"},"source":{"description":"form or google_lead_form.","title":"Source","type":"string"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Google's lead id, for Google Ads leads.","title":"External Id"},"do_not_contact":{"title":"Do Not Contact","type":"boolean"},"questions":{"description":"Your own questions and \"Which product?\" that were answered: [{key, label}] (the answers are in answers).","items":{"additionalProperties":true,"type":"object"},"title":"Questions","type":"array"},"place":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The place label of the QR code they scanned, if any.","title":"Place"},"page":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"description":"The landing page they sent it from: {id, name, public_id}.","title":"Page"}},"required":["id","form_id","created_at","lead","answers","utm","referrer","is_spam","spam_reason","is_test","source","external_id","do_not_contact","questions","place","page"],"title":"FormSubmission","type":"object"},"FormSubmissionPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FormSubmission"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"FormSubmissionPage","type":"object"},"FormTracking":{"description":"Your own Google tag and Meta Pixel on the hosted page (loaded only after the visitor says yes).","properties":{"available":{"description":"False until cuil.si switches this on: saving ids answers 409 own_tags_off.","title":"Available","type":"boolean"},"ga4_id":{"description":"G-… (Google Analytics 4), or empty.","title":"Ga4 Id","type":"string"},"ads_id":{"description":"AW-… (Google Ads conversion id), or empty.","title":"Ads Id","type":"string"},"ads_label":{"description":"The Google Ads conversion label, or empty.","title":"Ads Label","type":"string"},"pixel_id":{"description":"The Meta Pixel id (digits), or empty.","title":"Pixel Id","type":"string"},"set":{"title":"Set","type":"boolean"}},"required":["available","ga4_id","ads_id","ads_label","pixel_id","set"],"title":"FormTracking","type":"object"},"FormTrackingIn":{"properties":{"ga4_id":{"type":"string","maxLength":80,"title":"Ga4 Id","default":""},"ads_id":{"type":"string","maxLength":80,"title":"Ads Id","default":""},"ads_label":{"type":"string","maxLength":80,"title":"Ads Label","default":""},"pixel_id":{"type":"string","maxLength":80,"title":"Pixel Id","default":""}},"type":"object","title":"FormTrackingIn","description":"The ids. Empty text = not used. Only ids, never code."},"FormatsIn":{"properties":{"first_comment":{"anyOf":[{"type":"string","maxLength":2200},{"type":"null"}],"title":"First Comment","description":"LinkedIn, Facebook and Instagram: a comment posted right after the post."},"thread":{"anyOf":[{"items":{"type":"string","maxLength":1000},"type":"array","maxItems":10},{"type":"null"}],"title":"Thread","description":"X: up to 10 more posts after this one, each up to 280 X characters, posted as a thread. Only a part with a link uses credits (like any X post with a link)."},"ig_story":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ig Story","description":"Instagram: post it as a Story (one picture or one video at 9:16; a video 3 to 60 seconds). Stories have no caption: the text is not posted."}},"type":"object","title":"FormatsIn","description":"Extra post formats for one account: an X thread, an Instagram Story or a first comment. Each can be switched\noff in cuil.si (the account's capabilities.formats says which are offered); sending one that is off answers 422\nformat_off."},"FromTemplateIn":{"properties":{"template_id":{"type":"string","maxLength":100,"minLength":1,"title":"Template Id"},"settings":{"anyOf":[{"$ref":"#/components/schemas/NewWorkflowSettings"},{"type":"null"}]},"options":{"items":{"type":"string","maxLength":40,"minLength":1},"type":"array","maxItems":10,"title":"Options","default":[]}},"type":"object","required":["template_id"],"title":"FromTemplateIn"},"GenerateLookIn":{"properties":{"tier":{"type":"string","enum":["draft","standard","premium"],"title":"Tier","default":"standard"},"extra":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Extra"}},"type":"object","title":"GenerateLookIn"},"GenerationCreate":{"properties":{"kind":{"type":"string","enum":["image","video","tts","stt","music","sfx","voice_change","upscale","lipsync"],"title":"Kind"},"mode":{"type":"string","enum":["t2i","edit","t2v","i2v","r2v","tts","stt","continue","music","sfx","voice_change","video_upscale","lipsync"],"title":"Mode"},"tier":{"type":"string","enum":["draft","standard","premium"],"title":"Tier","default":"standard"},"model_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Model Id"},"style":{"anyOf":[{"type":"string","maxLength":40,"pattern":"^[a-z_]+$"},{"type":"null"}],"title":"Style"},"prompt":{"type":"string","maxLength":20000,"title":"Prompt","default":""},"negative_prompt":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Negative Prompt"},"enhance":{"type":"boolean","title":"Enhance","default":true},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"character_ids":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Character Ids","default":[]},"input_asset_ids":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Input Asset Ids","default":[]},"input_roles":{"anyOf":[{"items":{"type":"string","enum":["first_frame","last_frame","reference","reference_video","source","video","audio"]},"type":"array","maxItems":12},{"type":"null"}],"title":"Input Roles"},"input_notes":{"anyOf":[{"items":{"type":"string","maxLength":80},"type":"array","maxItems":12},{"type":"null"}],"title":"Input Notes"},"params":{"$ref":"#/components/schemas/GenerationParams"},"source":{"type":"string","enum":["create","movie","workflow","editor","api","presentation","long_video"],"title":"Source","default":"create"},"logo":{"anyOf":[{"$ref":"#/components/schemas/LogoRequest"},{"type":"null"}]},"use_product_photos":{"type":"boolean","title":"Use Product Photos","default":false},"enhanced_prompt":{"anyOf":[{"type":"string","maxLength":4400},{"type":"null"}],"title":"Enhanced Prompt"}},"type":"object","required":["kind","mode"],"title":"GenerationCreate"},"GenerationOut":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"mode":{"type":"string","title":"Mode"},"tier":{"type":"string","title":"Tier"},"model_id":{"type":"string","title":"Model Id"},"model_label":{"type":"string","title":"Model Label"},"style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style"},"style_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style Label"},"style_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style Note"},"prompt":{"type":"string","title":"Prompt"},"enhanced_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enhanced Prompt"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"input_asset_ids":{"items":{"type":"string"},"type":"array","title":"Input Asset Ids","default":[]},"input_roles":{"items":{"type":"string"},"type":"array","title":"Input Roles","default":[]},"input_notes":{"items":{"type":"string"},"type":"array","title":"Input Notes","default":[]},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"character_ids":{"items":{"type":"string"},"type":"array","title":"Character Ids","default":[]},"source":{"type":"string","title":"Source"},"status":{"type":"string","title":"Status"},"progress":{"type":"integer","title":"Progress","default":0},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"output_asset_ids":{"items":{"type":"string"},"type":"array","title":"Output Asset Ids","default":[]},"outputs":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"Outputs","default":[]},"logo":{"anyOf":[{"$ref":"#/components/schemas/LogoOut"},{"type":"null"}]},"outputs_without_logo":{"items":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"type":"array","title":"Outputs Without Logo","default":[]},"extended_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extended From"},"extends":{"anyOf":[{"$ref":"#/components/schemas/ExtendsOut"},{"type":"null"}]},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"credits_estimated":{"type":"integer","title":"Credits Estimated"},"credits_charged":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits Charged"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","kind","mode","tier","model_id","model_label","prompt","params","source","status","credits_estimated","created_at","updated_at"],"title":"GenerationOut"},"GenerationPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/GenerationOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"GenerationPage"},"GenerationParams":{"properties":{"duration_s":{"anyOf":[{"type":"number","maximum":600.0,"minimum":1.0},{"type":"null"}],"title":"Duration S"},"aspect_ratio":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Aspect Ratio"},"resolution":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Resolution"},"audio":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Audio"},"voice":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Voice"},"count":{"anyOf":[{"type":"integer","maximum":4.0,"minimum":1.0},{"type":"null"}],"title":"Count"},"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Seed"},"fps":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Fps"},"image_resolution":{"anyOf":[{"type":"string","enum":["1K","2K","4K"]},{"type":"null"}],"title":"Image Resolution"},"format":{"anyOf":[{"type":"string","enum":["mp3","wav","flac","opus"]},{"type":"null"}],"title":"Format"},"speed":{"anyOf":[{"type":"number","maximum":4.0,"minimum":0.25},{"type":"null"}],"title":"Speed"},"language":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Language"},"instruct":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Instruct"},"voice_description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Voice Description"},"instrumental":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Instrumental"},"lyrics":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Lyrics"},"loop":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Loop"},"remove_background_noise":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Remove Background Noise"},"voice_settings":{"anyOf":[{"$ref":"#/components/schemas/VoiceSettings"},{"type":"null"}]}},"type":"object","title":"GenerationParams","description":"Generation settings. Every key a provider reads is listed here with limits; unknown keys are dropped\n(so nothing unchecked or unpriced reaches a provider). Add a field here before a provider uses it."},"GraphEdge":{"properties":{"id":{"type":"string","maxLength":300,"title":"Id","default":""},"source":{"type":"string","maxLength":100,"minLength":1,"title":"Source"},"target":{"type":"string","maxLength":100,"minLength":1,"title":"Target"},"sourceHandle":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Sourcehandle"}},"additionalProperties":true,"type":"object","required":["source","target"],"title":"GraphEdge"},"GraphNode":{"properties":{"id":{"type":"string","maxLength":100,"minLength":1,"title":"Id"},"type":{"type":"string","maxLength":40,"title":"Type","default":"ginie"},"position":{"$ref":"#/components/schemas/GraphPosition"},"data":{"$ref":"#/components/schemas/GraphNodeData"}},"additionalProperties":true,"type":"object","required":["id"],"title":"GraphNode"},"GraphNodeData":{"properties":{"nodeType":{"type":"string","maxLength":60,"title":"Nodetype","default":""},"label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Label"},"config":{"additionalProperties":true,"type":"object","title":"Config"}},"additionalProperties":true,"type":"object","title":"GraphNodeData"},"GraphPosition":{"properties":{"x":{"type":"number","title":"X","default":0},"y":{"type":"number","title":"Y","default":0}},"additionalProperties":true,"type":"object","title":"GraphPosition"},"HiddenTier":{"properties":{"tier":{"type":"string","enum":["draft","standard","premium"],"title":"Tier"},"note":{"type":"string","title":"Note"}},"type":"object","required":["tier","note"],"title":"HiddenTier"},"ImportStartIn":{"properties":{"mapping":{"anyOf":[{"additionalProperties":{"type":"string","maxLength":120},"type":"object"},{"type":"null"}],"title":"Mapping"},"duplicate_rule":{"type":"string","enum":["update","skip"],"title":"Duplicate Rule","default":"update"},"basis":{"type":"string","enum":["consent","asked_to_be_contacted","existing_customer","b2b_prospect"],"title":"Basis","description":"Why you may contact them: consent (they said yes), asked_to_be_contacted (they asked you to get back to them), existing_customer or b2b_prospect (a work contact who hasn't said yes). For people in India, existing_customer and b2b_prospect can be recorded, but from 13 May 2027 they no longer allow marketing (the DPDP Rules need the person's own yes); until then the answer carries a warning."},"list_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"List Id"},"tags":{"items":{"type":"string","maxLength":60,"minLength":1},"type":"array","maxItems":20,"title":"Tags","default":[]},"start_automations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Start Automations","description":"Start the switched-on “New lead” automations for the new people. Left out: they start, as before."}},"type":"object","required":["basis"],"title":"ImportStartIn"},"ItemError":{"properties":{"code":{"title":"Code","type":"string"},"message":{"title":"Message","type":"string"}},"required":["code","message"],"title":"ItemError","type":"object"},"KeyLabel":{"properties":{"key":{"title":"Key","type":"string"},"label":{"title":"Label","type":"string"}},"required":["key","label"],"title":"KeyLabel","type":"object"},"LabelRange":{"properties":{"key":{"title":"Key","type":"string"},"label":{"title":"Label","type":"string"},"min":{"title":"Min","type":"integer"},"max":{"title":"Max","type":"integer"},"next_step":{"title":"Next Step","type":"string"}},"required":["key","label","min","max","next_step"],"title":"LabelRange","type":"object"},"Lead":{"description":"One person (a lead). `name` is the best name we have: first and last name, else the email, the phone or the\nLinkedIn handle. A lead may have no email and no phone yet (added with a LinkedIn link, or a name with a\ncompany): nothing is sent to them until one is found or added.","properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"email_status":{"description":"unknown, valid, risky, invalid or catch_all.","title":"Email Status","type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"In international format, e.g. +919812345678.","title":"Phone"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"seniority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seniority"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"company":{"anyOf":[{"$ref":"#/components/schemas/CompanyBrief"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The workspace member who looks after this lead.","title":"Owner Id"},"stage":{"description":"A stage key of the workspace's pipeline, e.g. new, contacted, won.","title":"Stage","type":"string"},"score":{"description":"0 to 100.","title":"Score","type":"integer"},"score_reasons":{"items":{},"title":"Score Reasons","type":"array"},"source":{"description":"Where the lead came from: form, import, api, google_lead_form, meta_lead_ads, linkedin_lead_form, manual, prospecting (added from a data provider's search) or workflow.","title":"Source","type":"string"},"source_detail":{"additionalProperties":true,"title":"Source Detail","type":"object"},"first_touch":{"additionalProperties":true,"description":"The first visit's UTM tags and page, when known.","title":"First Touch","type":"object"},"tags":{"items":{"type":"string"},"title":"Tags","type":"array"},"fields":{"additionalProperties":true,"description":"Your own fields, as sent.","title":"Fields","type":"object"},"enrichment":{"additionalProperties":true,"title":"Enrichment","type":"object"},"enriched_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enriched At"},"last_activity_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Activity At"},"do_not_contact":{"description":"True when the email, its domain or the phone is on the do-not-contact list.","title":"Do Not Contact","type":"boolean"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"},"label":{"$ref":"#/components/schemas/ScoreLabel"},"last_contacted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When someone on your team last called, messaged, emailed or met them (automatic emails don't count).","title":"Last Contacted At"},"last_reply_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When they last wrote to you: a form, a reply or a WhatsApp.","title":"Last Reply At"},"waiting_for_us":{"description":"They wrote after your last contact (or you never contacted them).","title":"Waiting For Us","type":"boolean"},"contacted":{"description":"Someone on your team has contacted them.","title":"Contacted","type":"boolean"},"customer_since":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Their first recorded sale.","title":"Customer Since"}},"required":["id","name","first_name","last_name","email","email_status","phone","title","seniority","department","linkedin_url","city","country","timezone","company","owner_id","stage","score","score_reasons","source","source_detail","first_touch","tags","fields","enrichment","enriched_at","last_activity_at","do_not_contact","created_at","updated_at","label","last_contacted_at","last_reply_at","waiting_for_us","contacted","customer_since"],"title":"Lead","type":"object"},"LeadBatchIn":{"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":100,"minItems":1,"title":"Items"}},"type":"object","required":["items"],"title":"LeadBatchIn"},"LeadBatchItem":{"description":"One result per item, in the order sent. A bad item doesn't stop the others.","properties":{"index":{"title":"Index","type":"integer"},"ok":{"title":"Ok","type":"boolean"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Lead Id"},"is_new":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Is New"},"changed":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Changed"},"warnings":{"anyOf":[{"items":{"$ref":"#/components/schemas/LeadWarning"},"type":"array"},{"type":"null"}],"default":null,"description":"The same shape as createLead's.","title":"Warnings"},"error":{"anyOf":[{"$ref":"#/components/schemas/ItemError"},{"type":"null"}],"default":null}},"required":["index","ok"],"title":"LeadBatchItem","type":"object"},"LeadBatchResult":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadBatchItem"},"title":"Items","type":"array"}},"required":["items"],"title":"LeadBatchResult","type":"object"},"LeadCounts":{"properties":{"activities":{"title":"Activities","type":"integer"},"deals":{"title":"Deals","type":"integer"},"tasks":{"title":"Tasks","type":"integer"},"consents":{"title":"Consents","type":"integer"},"lists":{"title":"Lists","type":"integer"},"form_submissions":{"title":"Form Submissions","type":"integer"}},"required":["activities","deals","tasks","consents","lists","form_submissions"],"title":"LeadCounts","type":"object"},"LeadDetail":{"description":"A lead with its lists, deals, permissions and how much is linked to it.","properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"email_status":{"description":"unknown, valid, risky, invalid or catch_all.","title":"Email Status","type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"In international format, e.g. +919812345678.","title":"Phone"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"seniority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seniority"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"company":{"anyOf":[{"$ref":"#/components/schemas/CompanyBrief"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The workspace member who looks after this lead.","title":"Owner Id"},"stage":{"description":"A stage key of the workspace's pipeline, e.g. new, contacted, won.","title":"Stage","type":"string"},"score":{"description":"0 to 100.","title":"Score","type":"integer"},"score_reasons":{"items":{},"title":"Score Reasons","type":"array"},"source":{"description":"Where the lead came from: form, import, api, google_lead_form, meta_lead_ads, linkedin_lead_form, manual, prospecting (added from a data provider's search) or workflow.","title":"Source","type":"string"},"source_detail":{"additionalProperties":true,"title":"Source Detail","type":"object"},"first_touch":{"additionalProperties":true,"description":"The first visit's UTM tags and page, when known.","title":"First Touch","type":"object"},"tags":{"items":{"type":"string"},"title":"Tags","type":"array"},"fields":{"additionalProperties":true,"description":"Your own fields, as sent.","title":"Fields","type":"object"},"enrichment":{"additionalProperties":true,"title":"Enrichment","type":"object"},"enriched_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enriched At"},"last_activity_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Activity At"},"do_not_contact":{"description":"True when the email, its domain or the phone is on the do-not-contact list.","title":"Do Not Contact","type":"boolean"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"},"label":{"$ref":"#/components/schemas/ScoreLabel"},"last_contacted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When someone on your team last called, messaged, emailed or met them (automatic emails don't count).","title":"Last Contacted At"},"last_reply_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When they last wrote to you: a form, a reply or a WhatsApp.","title":"Last Reply At"},"waiting_for_us":{"description":"They wrote after your last contact (or you never contacted them).","title":"Waiting For Us","type":"boolean"},"contacted":{"description":"Someone on your team has contacted them.","title":"Contacted","type":"boolean"},"customer_since":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Their first recorded sale.","title":"Customer Since"},"lists":{"items":{"$ref":"#/components/schemas/NamedRef"},"title":"Lists","type":"array"},"deals":{"items":{"$ref":"#/components/schemas/Deal"},"title":"Deals","type":"array"},"permission":{"$ref":"#/components/schemas/Permission"},"customer":{"anyOf":[{"$ref":"#/components/schemas/Customer"},{"type":"null"}],"description":"Set once a sale is recorded for them."},"counts":{"$ref":"#/components/schemas/LeadCounts"}},"required":["id","name","first_name","last_name","email","email_status","phone","title","seniority","department","linkedin_url","city","country","timezone","company","owner_id","stage","score","score_reasons","source","source_detail","first_touch","tags","fields","enrichment","enriched_at","last_activity_at","do_not_contact","created_at","updated_at","label","last_contacted_at","last_reply_at","waiting_for_us","contacted","customer_since","lists","deals","permission","customer","counts"],"title":"LeadDetail","type":"object"},"LeadForm":{"description":"A form for your website. People can send it once it is `live`.","properties":{"id":{"title":"Id","type":"string"},"public_id":{"description":"The id in the form's public links.","title":"Public Id","type":"string"},"name":{"title":"Name","type":"string"},"fields":{"items":{"$ref":"#/components/schemas/FormField"},"title":"Fields","type":"array"},"consent":{"items":{"$ref":"#/components/schemas/FormConsentBox"},"title":"Consent","type":"array"},"age_check":{"description":"The form asks people to confirm they're 18 or older (a needed box).","title":"Age Check","type":"boolean"},"page":{"$ref":"#/components/schemas/FormPage","description":"What the hosted page (public_url) shows above the form."},"success_message":{"title":"Success Message","type":"string"},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your own thank-you page, if any.","title":"Redirect Url"},"list_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"New leads from this form go into this list.","title":"List Id"},"tags":{"items":{"type":"string"},"title":"Tags","type":"array"},"notify_user_ids":{"description":"Workspace members who get an email for each submission.","items":{"type":"string"},"title":"Notify User Ids","type":"array"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"enabled":{"title":"Enabled","type":"boolean"},"auto_reply":{"$ref":"#/components/schemas/FormAutoReply"},"live":{"description":"Enabled, and the business details it needs are filled in.","title":"Live","type":"boolean"},"missing":{"description":"What to fill in under Leads settings before the form can go live, e.g. business name.","items":{"type":"string"},"title":"Missing","type":"array"},"public_url":{"description":"The hosted page to share.","title":"Public Url","type":"string"},"submit_url":{"description":"Where your own HTML form posts to (submitLeadForm).","title":"Submit Url","type":"string"},"google":{"$ref":"#/components/schemas/FormGoogle"},"tracking":{"$ref":"#/components/schemas/FormTracking"},"counts":{"$ref":"#/components/schemas/FormCounts"},"last_submission_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Submission At"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"}},"required":["id","public_id","name","fields","consent","age_check","page","success_message","redirect_url","list_id","tags","notify_user_ids","brand_id","enabled","auto_reply","live","missing","public_url","submit_url","google","tracking","counts","last_submission_at","created_at","updated_at"],"title":"LeadForm","type":"object"},"LeadFormDetail":{"description":"A form with its notice and the HTML to paste into your website.","properties":{"id":{"title":"Id","type":"string"},"public_id":{"description":"The id in the form's public links.","title":"Public Id","type":"string"},"name":{"title":"Name","type":"string"},"fields":{"items":{"$ref":"#/components/schemas/FormField"},"title":"Fields","type":"array"},"consent":{"items":{"$ref":"#/components/schemas/FormConsentBox"},"title":"Consent","type":"array"},"age_check":{"description":"The form asks people to confirm they're 18 or older (a needed box).","title":"Age Check","type":"boolean"},"page":{"$ref":"#/components/schemas/FormPage","description":"What the hosted page (public_url) shows above the form."},"success_message":{"title":"Success Message","type":"string"},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your own thank-you page, if any.","title":"Redirect Url"},"list_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"New leads from this form go into this list.","title":"List Id"},"tags":{"items":{"type":"string"},"title":"Tags","type":"array"},"notify_user_ids":{"description":"Workspace members who get an email for each submission.","items":{"type":"string"},"title":"Notify User Ids","type":"array"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"enabled":{"title":"Enabled","type":"boolean"},"auto_reply":{"$ref":"#/components/schemas/FormAutoReply"},"live":{"description":"Enabled, and the business details it needs are filled in.","title":"Live","type":"boolean"},"missing":{"description":"What to fill in under Leads settings before the form can go live, e.g. business name.","items":{"type":"string"},"title":"Missing","type":"array"},"public_url":{"description":"The hosted page to share.","title":"Public Url","type":"string"},"submit_url":{"description":"Where your own HTML form posts to (submitLeadForm).","title":"Submit Url","type":"string"},"google":{"$ref":"#/components/schemas/FormGoogle"},"tracking":{"$ref":"#/components/schemas/FormTracking"},"counts":{"$ref":"#/components/schemas/FormCounts"},"last_submission_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Submission At"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"},"notice":{"$ref":"#/components/schemas/FormNoticeText"},"embed_html":{"description":"A plain HTML form that posts to submit_url, ready to paste.","title":"Embed Html","type":"string"},"products":{"description":"What \"Which product?\" offers: the brand's products in stock.","items":{"type":"string"},"title":"Products","type":"array"}},"required":["id","public_id","name","fields","consent","age_check","page","success_message","redirect_url","list_id","tags","notify_user_ids","brand_id","enabled","auto_reply","live","missing","public_url","submit_url","google","tracking","counts","last_submission_at","created_at","updated_at","notice","embed_html","products"],"title":"LeadFormDetail","type":"object"},"LeadFormIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/FormFieldIn"},"type":"array","maxItems":23,"minItems":1},{"type":"null"}],"title":"Fields"},"consent":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConsentItemIn"},"type":"array","maxItems":4},{"type":"null"}],"title":"Consent"},"age_check":{"type":"boolean","title":"Age Check","default":false},"notice_text":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Notice Text"},"page":{"anyOf":[{"$ref":"#/components/schemas/PageIn"},{"type":"null"}]},"success_message":{"type":"string","maxLength":1000,"title":"Success Message","default":""},"redirect_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Redirect Url"},"list_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"List Id"},"tags":{"items":{"type":"string","maxLength":60,"minLength":1},"type":"array","maxItems":20,"title":"Tags","default":[]},"notify_user_ids":{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":20,"title":"Notify User Ids","default":[]},"brand_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Brand Id"},"enabled":{"type":"boolean","title":"Enabled","default":true},"auto_reply":{"anyOf":[{"$ref":"#/components/schemas/AutoReplyIn"},{"type":"null"}]},"tracking":{"anyOf":[{"$ref":"#/components/schemas/FormTrackingIn"},{"type":"null"}]}},"type":"object","required":["name"],"title":"LeadFormIn"},"LeadFormPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadForm"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"LeadFormPage","type":"object"},"LeadFormPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/FormFieldIn"},"type":"array","maxItems":23,"minItems":1},{"type":"null"}],"title":"Fields"},"consent":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConsentItemIn"},"type":"array","maxItems":4},{"type":"null"}],"title":"Consent"},"age_check":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Age Check"},"notice_text":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Notice Text"},"page":{"anyOf":[{"$ref":"#/components/schemas/PageIn"},{"type":"null"}]},"success_message":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Success Message"},"redirect_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Redirect Url"},"list_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"List Id"},"tags":{"anyOf":[{"items":{"type":"string","maxLength":60,"minLength":1},"type":"array","maxItems":20},{"type":"null"}],"title":"Tags"},"notify_user_ids":{"anyOf":[{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":20},{"type":"null"}],"title":"Notify User Ids"},"brand_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Brand Id"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"auto_reply":{"anyOf":[{"$ref":"#/components/schemas/AutoReplyIn"},{"type":"null"}]},"tracking":{"anyOf":[{"$ref":"#/components/schemas/FormTrackingIn"},{"type":"null"}]}},"type":"object","title":"LeadFormPatch"},"LeadImport":{"description":"A CSV import: uploaded (preview), then queued and running, then done, failed or expired.","properties":{"id":{"title":"Id","type":"string"},"status":{"description":"preview, queued, running, done, failed or expired.","title":"Status","type":"string"},"file_name":{"title":"File Name","type":"string"},"columns":{"items":{"type":"string"},"title":"Columns","type":"array"},"total_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Rows"},"delimiter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delimiter"},"suggested_mapping":{"additionalProperties":true,"title":"Suggested Mapping","type":"object"},"mapping":{"additionalProperties":true,"title":"Mapping","type":"object"},"duplicate_rule":{"title":"Duplicate Rule","type":"string"},"basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basis"},"list_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"List Id"},"tags":{"items":{"type":"string"},"title":"Tags","type":"array"},"counts":{"additionalProperties":true,"title":"Counts","type":"object"},"has_skipped_rows":{"title":"Has Skipped Rows","type":"boolean"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"file_deleted":{"title":"File Deleted","type":"boolean"},"targets":{"additionalProperties":{"type":"string"},"description":"The lead fields a column can go to, with their names.","title":"Targets","type":"object"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set when the chosen basis doesn't allow marketing to some of these people from 13 May 2027 (people in India).","title":"Warning"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"},"preview":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"description":"The first rows, after uploading.","title":"Preview"}},"required":["id","status","file_name","columns","total_rows","delimiter","suggested_mapping","mapping","duplicate_rule","basis","list_id","tags","counts","has_skipped_rows","error","file_deleted","targets","warning","started_at","finished_at","created_at","updated_at"],"title":"LeadImport","type":"object"},"LeadImportPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadImport"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"LeadImportPage","type":"object"},"LeadIn":{"properties":{"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"first_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Last Name"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"seniority":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Seniority"},"department":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Department"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Linkedin Url"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"country":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Country"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"company":{"anyOf":[{"$ref":"#/components/schemas/CompanyRef"},{"type":"null"}]},"website":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website"},"tags":{"items":{"type":"string","maxLength":60,"minLength":1},"type":"array","maxItems":50,"title":"Tags","default":[]},"list_ids":{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":20,"title":"List Ids","default":[]},"owner_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Owner Id"},"source":{"anyOf":[{"type":"string","enum":["form","import","api","google_lead_form","meta_lead_ads","linkedin_lead_form","manual","prospecting","workflow","whatsapp"]},{"type":"null"}],"title":"Source"},"source_detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Detail"},"fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fields"},"utm":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Utm"},"consent":{"anyOf":[{"$ref":"#/components/schemas/ConsentIn"},{"type":"null"}]}},"type":"object","title":"LeadIn","description":"Create a lead, or update the one with the same email (then the phone). Only empty fields are filled.\n\nNeeds an email or a phone, else a LinkedIn profile link, else a first and last name with a company (`company`\nor `website`). A lead without an email or a phone matches an existing one by its LinkedIn link, else by the same\nname at the same company, and can't be contacted until an email or a phone is found."},"LeadList":{"properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"kind":{"description":"static, or smart: a segment whose people update by themselves.","title":"Kind","type":"string"},"member_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Member Count"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"},"filter":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"A segment's filters (the names of listLeads).","title":"Filter"},"updating":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True while a new segment is still filling in.","title":"Updating"}},"required":["id","name","description","kind","member_count","created_at","updated_at"],"title":"LeadList","type":"object"},"LeadListPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadList"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"LeadListPage","type":"object"},"LeadLookup":{"description":"What a lookup found and filled in. Only empty fields are filled, unless you sent overwrite.","properties":{"lead_id":{"title":"Lead Id","type":"string"},"found":{"title":"Found","type":"boolean"},"filled":{"description":"The fields that were filled in, e.g. title, company.industry.","items":{"type":"string"},"title":"Filled","type":"array"},"providers":{"description":"The providers whose answers were used.","items":{"type":"string"},"title":"Providers","type":"array"},"email_check":{"anyOf":[{"$ref":"#/components/schemas/EmailCheck"},{"type":"null"}]},"basis":{"description":"The lawful reason used for the lookup.","title":"Basis","type":"string"},"basis_source":{"description":"chosen (you sent basis), permission log, or recorded when added (the reason chosen when the person was added from a search of a company).","title":"Basis Source","type":"string"},"attempts":{"items":{"$ref":"#/components/schemas/LookupAttempt"},"title":"Attempts","type":"array"},"lead":{"$ref":"#/components/schemas/Lead"}},"required":["lead_id","found","filled","providers","email_check","basis","basis_source","attempts","lead"],"title":"LeadLookup","type":"object"},"LeadPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Lead"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"LeadPage","type":"object"},"LeadPatch":{"properties":{"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"first_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Last Name"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"seniority":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Seniority"},"department":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Department"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Linkedin Url"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"country":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Country"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"company_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Company Id"},"company":{"anyOf":[{"$ref":"#/components/schemas/CompanyRef"},{"type":"null"}]},"owner_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Owner Id"},"tags":{"anyOf":[{"items":{"type":"string","maxLength":60,"minLength":1},"type":"array","maxItems":50},{"type":"null"}],"title":"Tags"},"fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fields"},"stage":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Stage"},"deal_value_minor":{"anyOf":[{"type":"integer","maximum":1000000000000000.0,"minimum":0.0},{"type":"null"}],"title":"Deal Value Minor"}},"type":"object","title":"LeadPatch","description":"Change a lead. Fields you send replace what is there (send null to clear a field). `fields` is merged:\na key set to null is removed. `stage` moves the lead (and its deal) to that stage."},"LeadReport":{"properties":{"total":{"title":"Total","type":"integer"},"by_stage":{"items":{"$ref":"#/components/schemas/StageCount"},"title":"By Stage","type":"array"},"by_source":{"items":{"$ref":"#/components/schemas/SourceCount"},"title":"By Source","type":"array"},"by_week":{"items":{"$ref":"#/components/schemas/WeekCount"},"title":"By Week","type":"array"},"time_zone":{"title":"Time Zone","type":"string"},"money":{"$ref":"#/components/schemas/MoneyReport","description":"Money won from recorded sales, between money_from and money_to."}},"required":["total","by_stage","by_source","by_week","time_zone","money"],"title":"LeadReport","type":"object"},"LeadSaved":{"description":"The lead after a create-or-update. `is_new` is false when an existing lead (same email, then phone, then\nLinkedIn link, or for a lead without an email and a phone the same name at the same company) was filled in; then\nonly its empty fields were set.","properties":{"lead":{"$ref":"#/components/schemas/Lead"},"is_new":{"title":"Is New","type":"boolean"},"changed":{"items":{"type":"string"},"title":"Changed","type":"array"},"warnings":{"items":{"$ref":"#/components/schemas/LeadWarning"},"title":"Warnings","type":"array"}},"required":["lead","is_new","changed","warnings"],"title":"LeadSaved","type":"object"},"LeadScore":{"properties":{"lead_id":{"title":"Lead Id","type":"string"},"score":{"description":"0 to 100, from your rules and the lead's activity.","title":"Score","type":"integer"},"label":{"$ref":"#/components/schemas/ScoreLabel"},"reasons":{"items":{"$ref":"#/components/schemas/ScoreReason"},"title":"Reasons","type":"array"},"ai":{"anyOf":[{"$ref":"#/components/schemas/AiGrade"},{"type":"null"}],"description":"The last AI grade, if any."}},"required":["lead_id","score","label","reasons","ai"],"title":"LeadScore","type":"object"},"LeadSegment":{"properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"kind":{"description":"static, or smart: a segment whose people update by themselves.","title":"Kind","type":"string"},"member_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Member Count"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"},"filter":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"A segment's filters (the names of listLeads).","title":"Filter"},"updating":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True while a new segment is still filling in.","title":"Updating"},"filled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its last full refresh.","title":"Filled At"}},"required":["id","name","description","kind","member_count","created_at","updated_at","filled_at"],"title":"LeadSegment","type":"object"},"LeadSegmentPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadSegment"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"LeadSegmentPage","type":"object"},"LeadTask":{"description":"A to-do for a teammate about a lead. Nothing is sent to the lead.","properties":{"id":{"title":"Id","type":"string"},"lead_id":{"title":"Lead Id","type":"string"},"lead_name":{"title":"Lead Name","type":"string"},"kind":{"description":"call, email, linkedin, whatsapp or other.","title":"Kind","type":"string"},"title":{"title":"Title","type":"string"},"note":{"title":"Note","type":"string"},"due_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due At"},"assignee_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Id"},"assignee_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Name"},"status":{"description":"open, done or skipped.","title":"Status","type":"string"},"done_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Done At"},"created_at":{"title":"Created At","type":"string"},"created_by_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The automation run that made it, if one did.","title":"Created By Run Id"}},"required":["id","lead_id","lead_name","kind","title","note","due_at","assignee_id","assignee_name","status","done_at","created_at","created_by_run_id"],"title":"LeadTask","type":"object"},"LeadTaskPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadTask"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"LeadTaskPage","type":"object"},"LeadTaskSaved":{"properties":{"id":{"title":"Id","type":"string"},"lead_id":{"title":"Lead Id","type":"string"},"lead_name":{"title":"Lead Name","type":"string"},"kind":{"description":"call, email, linkedin, whatsapp or other.","title":"Kind","type":"string"},"title":{"title":"Title","type":"string"},"note":{"title":"Note","type":"string"},"due_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due At"},"assignee_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Id"},"assignee_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Name"},"status":{"description":"open, done or skipped.","title":"Status","type":"string"},"done_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Done At"},"created_at":{"title":"Created At","type":"string"},"created_by_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The automation run that made it, if one did.","title":"Created By Run Id"},"warning":{"anyOf":[{"$ref":"#/components/schemas/LeadWarning"},{"type":"null"}],"description":"Set when the task is allowed but needs care, e.g. no WhatsApp yes yet."}},"required":["id","lead_id","lead_name","kind","title","note","due_at","assignee_id","assignee_name","status","done_at","created_at","created_by_run_id","warning"],"title":"LeadTaskSaved","type":"object"},"LeadWarning":{"description":"Something to know about a change that was still made. Every `warnings` list (and `warning`) uses this shape.","properties":{"code":{"description":"e.g. do_not_contact, permission_withdrawn, no_permission, needs_opt_in.","title":"Code","type":"string"},"message":{"title":"Message","type":"string"}},"required":["code","message"],"title":"LeadWarning","type":"object"},"ListIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""}},"type":"object","required":["name"],"title":"ListIn"},"ListPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"}},"type":"object","title":"ListPatch"},"LocationOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"plate_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"status":{"type":"string","title":"Status"},"earlier_looks":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"Earlier Looks","default":[]}},"type":"object","required":["id","name","description","status"],"title":"LocationOut"},"LogIn":{"properties":{"what":{"type":"string","enum":["called","whatsapped","emailed","replied","meeting"],"title":"What"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"type":"object","required":["what"],"title":"LogIn"},"LogoOut":{"properties":{"on_top":{"type":"boolean","title":"On Top"},"corner":{"type":"string","enum":["top_left","top_right","bottom_left","bottom_right"],"title":"Corner"},"size":{"type":"string","enum":["small","medium","large"],"title":"Size"},"in_scene":{"type":"boolean","title":"In Scene"},"add_name":{"type":"boolean","title":"Add Name","default":false}},"type":"object","required":["on_top","corner","size","in_scene"],"title":"LogoOut","description":"What was asked when the generation was created; never changes after that."},"LogoRequest":{"properties":{"on_top":{"type":"boolean","title":"On Top","default":false},"corner":{"type":"string","enum":["top_left","top_right","bottom_left","bottom_right"],"title":"Corner","default":"bottom_right"},"size":{"type":"string","enum":["small","medium","large"],"title":"Size","default":"medium"},"in_scene":{"type":"boolean","title":"In Scene","default":false},"add_name":{"type":"boolean","title":"Add Name","default":false}},"additionalProperties":false,"type":"object","title":"LogoRequest","description":"The brand's logo on a picture or a video (needs brand_id). A video takes it on top only (no in_scene)."},"LookOut":{"properties":{"id":{"type":"string","title":"Id"},"number":{"type":"integer","title":"Number"},"name":{"type":"string","title":"Name"},"scene_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scene Id"},"scene_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scene Number"},"scene_title":{"type":"string","title":"Scene Title","default":""},"shot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shot Id"},"shot_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shot Number"},"line":{"type":"string","title":"Line","default":""},"change":{"type":"string","title":"Change","default":""},"face":{"type":"boolean","title":"Face","default":false},"usual":{"type":"boolean","title":"Usual","default":false},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"added_by":{"type":"string","title":"Added By","default":"writer"},"picture":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"face_picture":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"scenes_label":{"type":"string","title":"Scenes Label","default":""},"from_earlier":{"type":"boolean","title":"From Earlier","default":false},"over_cap":{"type":"boolean","title":"Over Cap","default":false}},"type":"object","required":["id","number","name","status"],"title":"LookOut","description":"One of a person's changed looks (12 Nov 2026, docs/v2/FILM_LOOKS.md): it lasts from where it starts until the\nnext one. \"Look 1\" is the person's own picture set (CharacterOut); these are Look 2, 3..."},"LookupAttempt":{"description":"One provider asked, or a step skipped, in the order it happened.","properties":{"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Provider"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The provider's name, e.g. Apollo.","title":"Name"},"kind":{"description":"person, email_find, company, verify or search.","title":"Kind","type":"string"},"status":{"description":"found, not_found, error or skipped.","title":"Status","type":"string"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Message"},"cached":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True when a recent answer was reused (no cost).","title":"Cached"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Error"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"platform when cuil.si's own email checker was used.","title":"Mode"},"credits_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Credits Used"}},"required":["kind","status"],"title":"LookupAttempt","type":"object"},"LookupLog":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LookupLogEntry"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"LookupLog","type":"object"},"LookupLogEntry":{"description":"One provider call (or reused answer). It never holds the values found.","properties":{"id":{"title":"Id","type":"string"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"provider":{"title":"Provider","type":"string"},"name":{"title":"Name","type":"string"},"mode":{"description":"byo or platform.","title":"Mode","type":"string"},"kind":{"title":"Kind","type":"string"},"status":{"description":"found, not_found, error, cached or skipped.","title":"Status","type":"string"},"filled":{"items":{"type":"string"},"title":"Filled","type":"array"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basis"},"cuilsi_credits":{"description":"cuil.si credits used.","title":"Cuilsi Credits","type":"integer"},"provider_credits":{"description":"Credits used on your own provider account, when it says.","title":"Provider Credits","type":"number"},"created_at":{"title":"Created At","type":"string"}},"required":["id","lead_id","company_id","provider","name","mode","kind","status","filled","error","basis","cuilsi_credits","provider_credits","created_at"],"title":"LookupLogEntry","type":"object"},"LookupUsage":{"properties":{"limit":{"description":"Lookups allowed in any 24 hours (0: no limit).","title":"Limit","type":"integer"},"used":{"title":"Used","type":"integer"},"left":{"title":"Left","type":"integer"},"window_hours":{"title":"Window Hours","type":"integer"},"by_provider":{"items":{"$ref":"#/components/schemas/ProviderUsage"},"title":"By Provider","type":"array"},"costs":{"$ref":"#/components/schemas/CreditCosts"}},"required":["limit","used","left","window_hours","by_provider","costs"],"title":"LookupUsage","type":"object"},"MeOut":{"properties":{"user":{"$ref":"#/components/schemas/UserOut"},"workspaces":{"items":{"$ref":"#/components/schemas/WorkspaceOut"},"type":"array","title":"Workspaces"},"current_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Workspace Id"}},"type":"object","required":["user","workspaces","current_workspace_id"],"title":"MeOut"},"MembersAdded":{"properties":{"added":{"title":"Added","type":"integer"},"already_in_list":{"title":"Already In List","type":"integer"}},"required":["added","already_in_list"],"title":"MembersAdded","type":"object"},"MembersIn":{"properties":{"lead_ids":{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":500,"minItems":1,"title":"Lead Ids"}},"type":"object","required":["lead_ids"],"title":"MembersIn"},"ModelGroupOut":{"properties":{"tiers":{"additionalProperties":{"type":"string"},"type":"object","title":"Tiers"},"models":{"items":{"$ref":"#/components/schemas/ModelOut"},"type":"array","title":"Models"},"offered":{"items":{"type":"string","enum":["draft","standard","premium"]},"type":"array","title":"Offered","default":[]}},"type":"object","required":["tiers","models"],"title":"ModelGroupOut"},"ModelOption":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"tiers":{"items":{"type":"string","enum":["draft","standard","premium"]},"type":"array","title":"Tiers"},"credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"maker":{"type":"string","title":"Maker","default":""},"access":{"type":"string","enum":["everyone","admins"],"title":"Access","default":"everyone"},"hidden":{"type":"boolean","title":"Hidden","default":false}},"type":"object","required":["id","label","description","tiers","credits","reason"],"title":"ModelOption"},"ModelOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"kind":{"type":"string","title":"Kind"},"modes":{"items":{"type":"string"},"type":"array","title":"Modes"},"tiers":{"items":{"type":"string"},"type":"array","title":"Tiers"},"durations":{"items":{"type":"integer"},"type":"array","title":"Durations","default":[]},"resolutions":{"items":{"type":"string"},"type":"array","title":"Resolutions","default":[]},"aspect_ratios":{"items":{"type":"string"},"type":"array","title":"Aspect Ratios","default":[]},"supports_audio":{"type":"boolean","title":"Supports Audio","default":false},"supports_end_frame":{"type":"boolean","title":"Supports End Frame","default":false},"max_reference_images":{"type":"integer","title":"Max Reference Images","default":0},"voices":{"items":{"type":"string"},"type":"array","title":"Voices","default":[]},"credits_per_unit":{"type":"number","title":"Credits Per Unit"},"unit":{"type":"string","title":"Unit"},"description":{"type":"string","title":"Description","default":""},"family":{"type":"string","title":"Family","default":""},"voice_design":{"type":"boolean","title":"Voice Design","default":false},"maker":{"type":"string","title":"Maker","default":""},"access":{"type":"string","enum":["everyone","admins"],"title":"Access","default":"everyone"},"hidden":{"type":"boolean","title":"Hidden","default":false}},"type":"object","required":["id","label","kind","modes","tiers","credits_per_unit","unit"],"title":"ModelOut"},"MoneyLine":{"properties":{"currency":{"title":"Currency","type":"string"},"amount_minor":{"title":"Amount Minor","type":"integer"},"amount_text":{"title":"Amount Text","type":"string"},"sales":{"title":"Sales","type":"integer"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Source"},"form_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Form Id"},"form_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Form Name"},"campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Campaign"}},"required":["currency","amount_minor","amount_text","sales"],"title":"MoneyLine","type":"object"},"MoneyReport":{"properties":{"first_day":{"title":"First Day","type":"string"},"last_day":{"title":"Last Day","type":"string"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The currency with the most money won.","title":"Currency"},"totals":{"items":{"$ref":"#/components/schemas/MoneyLine"},"title":"Totals","type":"array"},"by_source":{"items":{"$ref":"#/components/schemas/MoneyLine"},"title":"By Source","type":"array"},"by_form":{"items":{"$ref":"#/components/schemas/MoneyLine"},"title":"By Form","type":"array"},"by_campaign":{"items":{"$ref":"#/components/schemas/MoneyLine"},"title":"By Campaign","type":"array"}},"required":["first_day","last_day","currency","totals","by_source","by_form","by_campaign"],"title":"MoneyReport","type":"object"},"MovieCharacterOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"personality":{"type":"string","title":"Personality"},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice"},"library_character_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Library Character Id"},"sheet_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"reference_assets":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"Reference Assets","default":[]},"status":{"type":"string","title":"Status"},"earlier_looks":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"Earlier Looks","default":[]},"prompt_look":{"type":"string","title":"Prompt Look","default":""},"face_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"outfit_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"looks":{"items":{"$ref":"#/components/schemas/LookOut"},"type":"array","title":"Looks","default":[]},"first_look_label":{"type":"string","title":"First Look Label","default":""},"new_look_credits":{"type":"integer","title":"New Look Credits","default":0}},"type":"object","required":["id","name","description","personality","status"],"title":"MovieCharacterOut"},"MovieCreate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"idea":{"type":"string","maxLength":50000,"minLength":1,"title":"Idea"},"kind":{"type":"string","enum":["movie","short"],"title":"Kind","default":"movie"},"target_duration_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Duration S"},"style":{"type":"string","maxLength":300,"minLength":1,"title":"Style","default":"cinematic"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"title":"Aspect Ratio","default":"16:9"},"tier":{"type":"string","enum":["draft","standard","premium"],"title":"Tier","default":"standard"},"mode":{"type":"string","enum":["director","autopilot"],"title":"Mode","default":"autopilot"},"language":{"type":"string","maxLength":20,"minLength":2,"title":"Language","default":"en"},"visual_look":{"type":"string","enum":["default","live_action"],"title":"Visual Look","default":"default"},"character_ids":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Character Ids","default":[]},"reference_asset_ids":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Reference Asset Ids","default":[]},"music_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Music Asset Id"},"burn_subtitles":{"type":"boolean","title":"Burn Subtitles","default":false},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"logo":{"anyOf":[{"$ref":"#/components/schemas/MovieLogo"},{"type":"null"}]},"end_card":{"anyOf":[{"$ref":"#/components/schemas/MovieEndCard"},{"type":"null"}],"description":"The end card after the last shot. Left out: a video ad with a brand gets one, a film doesn't. Null: none."},"models":{"anyOf":[{"$ref":"#/components/schemas/FilmModels"},{"type":"null"}]},"ai_styles":{"anyOf":[{"$ref":"#/components/schemas/FilmStyles"},{"type":"null"}],"description":"Optional: the style for each part (pictures, storyboard, shots, voices) instead of a model id."},"writer":{"anyOf":[{"type":"string","enum":["everyday","creative"]},{"type":"null"}],"title":"Writer","description":"Optional: who writes the story and the script: everyday (fast, careful with facts) or creative (more original). Leave it out for everyday."}},"type":"object","required":["idea"],"title":"MovieCreate"},"MovieEndCard":{"properties":{"cta":{"type":"string","maxLength":40,"title":"Cta","description":"A short call to action, up to 40 characters (\"Order your first coffee\"). Empty: none.","default":""},"website":{"type":"boolean","title":"Website","description":"Show the brand's website (when it has one).","default":true},"seconds":{"type":"number","maximum":3.0,"minimum":2.0,"title":"Seconds","description":"How long the card shows: 2 to 3 seconds.","default":2.5}},"additionalProperties":false,"type":"object","title":"MovieEndCard","description":"The end card after the last shot: the brand's logo, main colour and website, and a short call to action, for 2\nto 3 seconds. Free. Uses the film's brand."},"MovieEstimate":{"properties":{"credits":{"type":"integer","title":"Credits"},"breakdown":{"items":{"$ref":"#/components/schemas/EstimateLine"},"type":"array","title":"Breakdown"},"shots":{"items":{"$ref":"#/components/schemas/ShotEstimate"},"type":"array","title":"Shots","default":[]}},"type":"object","required":["credits","breakdown"],"title":"MovieEstimate"},"MovieListItem":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"awaiting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awaiting"},"progress":{"$ref":"#/components/schemas/ProgressOut"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"},"final_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"target_duration_s":{"type":"integer","title":"Target Duration S"},"aspect_ratio":{"type":"string","title":"Aspect Ratio"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"storyboard":{"type":"boolean","title":"Storyboard","default":true},"final_out_of_date":{"anyOf":[{"$ref":"#/components/schemas/FinalOutOfDateOut"},{"type":"null"}]}},"type":"object","required":["id","title","kind","status","progress","target_duration_s","aspect_ratio","created_at","updated_at"],"title":"MovieListItem"},"MovieLogo":{"properties":{"corner":{"type":"string","enum":["top_left","top_right","bottom_left","bottom_right"],"title":"Corner","default":"bottom_right"},"size":{"type":"string","enum":["small","medium","large"],"title":"Size","default":"medium"}},"additionalProperties":false,"type":"object","title":"MovieLogo","description":"\"Add my logo\" on the finished film: the brand's exact logo file in a corner, from the first frame to the last.\nFree. Uses the movie's brand, else the default brand."},"MovieOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"awaiting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awaiting"},"progress":{"$ref":"#/components/schemas/ProgressOut"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"},"final_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"target_duration_s":{"type":"integer","title":"Target Duration S"},"aspect_ratio":{"type":"string","title":"Aspect Ratio"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"storyboard":{"type":"boolean","title":"Storyboard","default":true},"final_out_of_date":{"anyOf":[{"$ref":"#/components/schemas/FinalOutOfDateOut"},{"type":"null"}]},"idea":{"type":"string","title":"Idea"},"style":{"type":"string","title":"Style"},"language":{"type":"string","title":"Language"},"tier":{"type":"string","title":"Tier"},"mode":{"type":"string","title":"Mode"},"visual_look":{"type":"string","title":"Visual Look"},"music_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"burn_subtitles":{"type":"boolean","title":"Burn Subtitles"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"logo":{"anyOf":[{"$ref":"#/components/schemas/MovieLogo"},{"type":"null"}]},"end_card":{"anyOf":[{"$ref":"#/components/schemas/MovieEndCard"},{"type":"null"}]},"brand_changeable":{"type":"boolean","title":"Brand Changeable","default":false},"models":{"$ref":"#/components/schemas/FilmModels","default":{}},"model_notes":{"items":{"type":"string"},"type":"array","title":"Model Notes","default":[]},"credits_estimate":{"type":"integer","title":"Credits Estimate"},"credits_used":{"type":"integer","title":"Credits Used"},"credits_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits Cap"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"subtitles_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"reference_assets":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"Reference Assets","default":[]},"reference_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Notes"},"shot_sound":{"type":"boolean","title":"Shot Sound","default":false},"shot_models":{"items":{"type":"string","enum":["wan3","seedance"]},"type":"array","title":"Shot Models","default":[]},"story":{"anyOf":[{"$ref":"#/components/schemas/StoryOut"},{"type":"null"}]},"characters":{"items":{"$ref":"#/components/schemas/MovieCharacterOut"},"type":"array","title":"Characters","default":[]},"locations":{"items":{"$ref":"#/components/schemas/LocationOut"},"type":"array","title":"Locations","default":[]},"scenes":{"items":{"$ref":"#/components/schemas/SceneOut"},"type":"array","title":"Scenes","default":[]},"story_rewrite":{"anyOf":[{"$ref":"#/components/schemas/StoryRewriteOut"},{"type":"null"}]},"story_versions":{"items":{"$ref":"#/components/schemas/StoryVersionOut"},"type":"array","title":"Story Versions","default":[]},"looks":{"type":"boolean","title":"Looks","default":false},"looks_pictures":{"type":"boolean","title":"Looks Pictures","default":false}},"type":"object","required":["id","title","kind","status","progress","target_duration_s","aspect_ratio","created_at","updated_at","idea","style","language","tier","mode","visual_look","burn_subtitles","credits_estimate","credits_used"],"title":"MovieOut"},"MoviePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MovieListItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"MoviePage"},"NamedRef":{"properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"}},"required":["id","name"],"title":"NamedRef","type":"object"},"NetworkOut":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"max_chars":{"type":"integer","title":"Max Chars"},"recommended_chars":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recommended Chars"},"title_max_chars":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Title Max Chars"},"supports":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Supports"},"max_hashtags":{"type":"integer","title":"Max Hashtags"},"hashtag_tip":{"type":"string","title":"Hashtag Tip"},"needs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Needs"}},"type":"object","required":["key","label","max_chars","supports","max_hashtags","hashtag_tip"],"title":"NetworkOut"},"NewWorkflowSettings":{"properties":{"max_credits_per_run":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Max Credits Per Run"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"approvals_expire":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Approvals Expire"}},"type":"object","title":"NewWorkflowSettings","description":"Settings sent with a create. A time zone this server doesn't know (e.g. a new browser's) is left out,\nso the workflow keeps UTC instead of the whole create failing."},"PageIn":{"properties":{"headline":{"type":"string","maxLength":200,"title":"Headline","default":""},"text":{"type":"string","maxLength":2000,"title":"Text","default":""},"picture_asset_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Picture Asset Id"},"button_label":{"type":"string","maxLength":40,"title":"Button Label","default":""},"show_booking_link":{"type":"boolean","title":"Show Booking Link","default":false}},"type":"object","title":"PageIn"},"Permission":{"description":"May we contact them? One row per channel and purpose.","properties":{"do_not_contact":{"title":"Do Not Contact","type":"boolean"},"do_not_contact_reasons":{"additionalProperties":{"type":"string"},"title":"Do Not Contact Reasons","type":"object"},"channels":{"items":{"$ref":"#/components/schemas/ChannelPermission"},"title":"Channels","type":"array"}},"required":["do_not_contact","do_not_contact_reasons","channels"],"title":"Permission","type":"object"},"Pipeline":{"properties":{"id":{"title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"is_default":{"title":"Is Default","type":"boolean"},"stages":{"items":{"$ref":"#/components/schemas/Stage"},"title":"Stages","type":"array"},"created_at":{"title":"Created At","type":"string"},"updated_at":{"title":"Updated At","type":"string"}},"required":["id","name","is_default","stages","created_at","updated_at"],"title":"Pipeline","type":"object"},"PipelineList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Pipeline"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items","next_cursor"],"title":"PipelineList","type":"object"},"PipelinePatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"stages":{"anyOf":[{"items":{"$ref":"#/components/schemas/StageIn"},"type":"array","maxItems":20,"minItems":3},{"type":"null"}],"title":"Stages"}},"type":"object","title":"PipelinePatch"},"PlanCreateOut":{"properties":{"movie_id":{"type":"string","title":"Movie Id"},"link":{"type":"string","title":"Link"},"message":{"type":"string","title":"Message"},"report":{"$ref":"#/components/schemas/PlanReport"}},"type":"object","required":["movie_id","link","message","report"],"title":"PlanCreateOut","description":"A film saved from a plan. It waits at the Story step: the person presses Make on its page."},"PlanEstimate":{"properties":{"credits":{"type":"integer","title":"Credits"},"most":{"type":"integer","title":"Most"},"minutes":{"items":{"type":"integer"},"type":"array","title":"Minutes"},"breakdown":{"items":{"$ref":"#/components/schemas/PlanEstimateLine"},"type":"array","title":"Breakdown"}},"type":"object","required":["credits","most","minutes","breakdown"],"title":"PlanEstimate"},"PlanEstimateLine":{"properties":{"label":{"type":"string","title":"Label"},"credits":{"type":"integer","title":"Credits"}},"type":"object","required":["label","credits"],"title":"PlanEstimateLine"},"PlanProblem":{"properties":{"path":{"type":"string","title":"Path"},"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"fix":{"type":"string","title":"Fix"},"blocking":{"type":"boolean","title":"Blocking"}},"type":"object","required":["path","code","message","fix","blocking"],"title":"PlanProblem"},"PlanReport":{"properties":{"ok":{"type":"boolean","title":"Ok"},"summary":{"type":"string","title":"Summary"},"problems":{"items":{"$ref":"#/components/schemas/PlanProblem"},"type":"array","title":"Problems"},"estimate":{"anyOf":[{"$ref":"#/components/schemas/PlanEstimate"},{"type":"null"}]},"timeline":{"items":{"$ref":"#/components/schemas/TimelinePart"},"type":"array","title":"Timeline","default":[]},"silent":{"items":{"items":{"type":"number"},"type":"array"},"type":"array","title":"Silent","default":[]},"length_s":{"type":"number","title":"Length S","default":0},"scenes":{"type":"integer","title":"Scenes","default":0},"shots":{"type":"integer","title":"Shots","default":0}},"type":"object","required":["ok","summary","problems"],"title":"PlanReport"},"PostCreate":{"properties":{"text":{"type":"string","maxLength":70000,"title":"Text","default":""},"media_asset_ids":{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":20,"title":"Media Asset Ids","default":[]},"targets":{"items":{"$ref":"#/components/schemas/TargetIn"},"type":"array","maxItems":50,"title":"Targets","default":[]},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"brand_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Brand Id"},"draft_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Draft Id"},"draft":{"type":"boolean","title":"Draft","description":"Save it as a draft: nothing goes out until it is scheduled (PATCH with draft false). scheduled_at is then only the planned time and may be left out.","default":false},"repeat_weeks":{"type":"integer","maximum":12.0,"minimum":0.0,"title":"Repeat Weeks","description":"A scheduled post is also saved again for each of the next N weeks, at the same time, as separate posts (their ids are in repeat_post_ids).","default":0}},"type":"object","title":"PostCreate"},"PostDraftOut":{"properties":{"id":{"type":"string","title":"Id"},"brief":{"type":"string","title":"Brief"},"enhanced_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enhanced Brief"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"networks":{"items":{"type":"string"},"type":"array","title":"Networks"},"tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"length":{"type":"string","title":"Length"},"hashtags":{"type":"boolean","title":"Hashtags"},"emojis":{"type":"boolean","title":"Emojis"},"variants":{"items":{"$ref":"#/components/schemas/VariantOut"},"type":"array","title":"Variants"},"asset_ids":{"items":{"type":"string"},"type":"array","title":"Asset Ids","default":[]},"assets":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"Assets","default":[]},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"writer_used":{"anyOf":[{"$ref":"#/components/schemas/WriterUsedOut"},{"type":"null"}]},"notes":{"items":{"type":"string"},"type":"array","title":"Notes","default":[]}},"type":"object","required":["id","brief","networks","length","hashtags","emojis","variants","created_at","updated_at"],"title":"PostDraftOut"},"PostDraftPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PostDraftOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"PostDraftPage"},"PostDraftUpdate":{"properties":{"brief":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"title":"Brief"},"variants":{"anyOf":[{"items":{"$ref":"#/components/schemas/VariantEdit"},"type":"array","maxItems":6},{"type":"null"}],"title":"Variants"},"asset_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Asset Ids"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"}},"type":"object","title":"PostDraftUpdate"},"PostUpdate":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":70000},{"type":"null"}],"title":"Text"},"media_asset_ids":{"anyOf":[{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":20},{"type":"null"}],"title":"Media Asset Ids"},"targets":{"anyOf":[{"items":{"$ref":"#/components/schemas/TargetIn"},"type":"array","maxItems":50},{"type":"null"}],"title":"Targets"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"draft":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Draft","description":"true: save it as a draft (nothing goes out). false: schedule a draft, at scheduled_at or its planned time if that is still ahead. Left out: a draft stays a draft unless scheduled_at is sent."}},"type":"object","title":"PostUpdate"},"PresentationCreate":{"properties":{"asset_id":{"type":"string","maxLength":64,"title":"Asset Id"},"title":{"type":"string","maxLength":200,"title":"Title","default":""},"mode":{"type":"string","enum":["ai_scenes","keep_slides"],"title":"Mode","default":"ai_scenes"},"length":{"type":"string","enum":["short","standard","full"],"title":"Length","default":"standard"},"language":{"type":"string","maxLength":10,"title":"Language","default":"en"},"brand_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Brand Id"},"words":{"type":"string","enum":["ai","page"],"title":"Words","default":"ai"},"writer":{"type":"string","maxLength":40,"title":"Writer","default":""}},"type":"object","required":["asset_id"],"title":"PresentationCreate"},"PresentationMake":{"properties":{"total_shown":{"type":"integer","minimum":0.0,"title":"Total Shown"}},"type":"object","required":["total_shown"],"title":"PresentationMake"},"PresentationPatch":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"mode":{"anyOf":[{"type":"string","enum":["ai_scenes","keep_slides"]},{"type":"null"}],"title":"Mode"},"length":{"anyOf":[{"type":"string","enum":["short","standard","full"]},{"type":"null"}],"title":"Length"},"voice":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Voice"},"premium_voice":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Premium Voice"},"music":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Music"},"captions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Captions"},"style":{"anyOf":[{"type":"string","enum":["clean","bold","warm","brand"]},{"type":"null"}],"title":"Style"},"pictures":{"anyOf":[{"type":"string","enum":["photo","illustration","none"]},{"type":"null"}],"title":"Pictures"},"brand_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Brand Id"}},"type":"object","title":"PresentationPatch"},"PresentationSlidePatch":{"properties":{"script":{"anyOf":[{"type":"string","maxLength":1500},{"type":"null"}],"title":"Script"},"say":{"anyOf":[{"type":"string","maxLength":1500},{"type":"null"}],"title":"Say"},"included":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Included"},"look":{"anyOf":[{"type":"string","enum":["ai","kept"]},{"type":"null"}],"title":"Look"},"headline":{"anyOf":[{"type":"string","maxLength":70},{"type":"null"}],"title":"Headline"},"points":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":6},{"type":"null"}],"title":"Points"}},"type":"object","title":"PresentationSlidePatch"},"Problem":{"properties":{"node_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Node Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"Problem"},"ProgressOut":{"properties":{"stage":{"type":"string","title":"Stage"},"percent":{"type":"integer","title":"Percent"},"message":{"type":"string","title":"Message"}},"type":"object","required":["stage","percent","message"],"title":"ProgressOut"},"ProviderUsage":{"properties":{"provider":{"title":"Provider","type":"string"},"lookups":{"title":"Lookups","type":"integer"},"credits_used":{"description":"cuil.si credits.","title":"Credits Used","type":"integer"}},"required":["provider","lookups","credits_used"],"title":"ProviderUsage","type":"object"},"PublicationUpdate":{"properties":{"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"}},"type":"object","required":["scheduled_at"],"title":"PublicationUpdate"},"PublishedTextIn":{"properties":{"text":{"type":"string","maxLength":70000,"title":"Text"}},"type":"object","required":["text"],"title":"PublishedTextIn","description":"The new text of a live Facebook post (a video's description)."},"RemakeIn":{"properties":{"note":{"type":"string","maxLength":300,"minLength":1,"title":"Note","description":"Why, in a few plain words, e.g. 'the umbrella is missing'. The person sees it on the button."}},"additionalProperties":false,"type":"object","required":["note"],"title":"RemakeIn"},"RemakeOut":{"properties":{"id":{"type":"string","title":"Id"},"shot_id":{"type":"string","title":"Shot Id"},"shot_index":{"type":"integer","title":"Shot Index"},"note":{"type":"string","title":"Note"},"message":{"type":"string","title":"Message"},"link":{"type":"string","title":"Link"}},"type":"object","required":["id","shot_id","shot_index","note","message","link"],"title":"RemakeOut"},"RenderCreate":{"properties":{"preview":{"type":"boolean","title":"Preview","default":false},"fps":{"anyOf":[{"type":"integer","enum":[24,25,30]},{"type":"null"}],"title":"Fps","description":"Frames a second: 24 (looks like cinema), 25 or 30."},"cinema_bars":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cinema Bars","description":"Black 2.39:1 cinema bars inside the frame (16:9 edits only)."},"even_loudness":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Even Loudness","description":"Even out the finished sound to -14 LUFS."},"duck_music":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Duck Music","description":"Turn sound tracks down while the clips or a voice track speak."}},"type":"object","title":"RenderCreate"},"RenderOut":{"properties":{"id":{"type":"string","title":"Id"},"timeline_id":{"type":"string","title":"Timeline Id"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"title":"Status"},"progress":{"type":"integer","title":"Progress"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"preview":{"type":"boolean","title":"Preview"},"output_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","timeline_id","status","progress","preview","created_at"],"title":"RenderOut"},"RewriteRequest":{"properties":{"network":{"type":"string","title":"Network"},"instruction":{"type":"string","maxLength":500,"minLength":1,"title":"Instruction"},"writer":{"anyOf":[{"type":"string","enum":["auto","everyday","creative","smart_stories","smart_precise"]},{"type":"null"}],"title":"Writer"}},"type":"object","required":["network","instruction"],"title":"RewriteRequest"},"RunIn":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","title":"RunIn"},"RunOut":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","enum":["running","waiting","succeeded","failed","cancelled"],"title":"Status"},"trigger_type":{"type":"string","title":"Trigger Type"},"started_at":{"type":"string","title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"credits_used":{"type":"integer","title":"Credits Used","default":0},"workflow_id":{"type":"string","title":"Workflow Id"},"trigger_data":{"additionalProperties":true,"type":"object","title":"Trigger Data","default":{}},"steps":{"items":{"$ref":"#/components/schemas/StepOut"},"type":"array","title":"Steps","default":[]}},"type":"object","required":["id","status","trigger_type","started_at","workflow_id"],"title":"RunOut"},"RunPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RunSummary"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"keep_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Keep Days"},"failed_keep_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Failed Keep Days"}},"type":"object","required":["items"],"title":"RunPage"},"RunSummary":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","enum":["running","waiting","succeeded","failed","cancelled"],"title":"Status"},"trigger_type":{"type":"string","title":"Trigger Type"},"started_at":{"type":"string","title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"credits_used":{"type":"integer","title":"Credits Used","default":0}},"type":"object","required":["id","status","trigger_type","started_at"],"title":"RunSummary"},"Sale":{"properties":{"id":{"title":"Id","type":"string"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"amount_minor":{"description":"In the currency's smallest unit (paise, cents).","title":"Amount Minor","type":"integer"},"currency":{"title":"Currency","type":"string"},"amount_text":{"title":"Amount Text","type":"string"},"product":{"title":"Product","type":"string"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"sold_at":{"title":"Sold At","type":"string"},"source":{"description":"manual, deal_won, api, csv, automation or assistant.","title":"Source","type":"string"},"created_at":{"title":"Created At","type":"string"}},"required":["id","lead_id","deal_id","amount_minor","currency","amount_text","product","order_id","sold_at","source","created_at"],"title":"Sale","type":"object"},"SaleForLeadIn":{"properties":{"amount_minor":{"type":"integer","maximum":10000000000000.0,"minimum":0.0,"title":"Amount Minor","description":"In the smallest unit (paise, cents)."},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"product":{"type":"string","maxLength":200,"title":"Product","default":""},"sold_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sold At"},"order_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Order Id"},"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"},"lead_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Lead Id"},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"}},"type":"object","required":["amount_minor"],"title":"SaleForLeadIn","description":"POST /lead-sales: another app names the lead by its id, else its email, else its phone."},"SaleIn":{"properties":{"amount_minor":{"type":"integer","maximum":10000000000000.0,"minimum":0.0,"title":"Amount Minor","description":"In the smallest unit (paise, cents)."},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"product":{"type":"string","maxLength":200,"title":"Product","default":""},"sold_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sold At"},"order_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Order Id"},"deal_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Id"}},"type":"object","required":["amount_minor"],"title":"SaleIn"},"SalePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Sale"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"customer":{"anyOf":[{"$ref":"#/components/schemas/Customer"},{"type":"null"}]}},"required":["items","next_cursor","customer"],"title":"SalePage","type":"object"},"SaleSaved":{"properties":{"sale":{"$ref":"#/components/schemas/Sale"},"duplicate":{"description":"True when this order id was already recorded: nothing new was saved.","title":"Duplicate","type":"boolean"},"customer":{"anyOf":[{"$ref":"#/components/schemas/Customer"},{"type":"null"}]}},"required":["sale","duplicate","customer"],"title":"SaleSaved","type":"object"},"SalesEmail":{"description":"A draft. Nothing is sent or saved.","properties":{"lead_id":{"title":"Lead Id","type":"string"},"purpose":{"description":"marketing (a sales email) or enquiry (a reply to what they wrote in your form).","title":"Purpose","type":"string"},"language":{"description":"auto (the language of their message) or the language asked for.","title":"Language","type":"string"},"subject":{"title":"Subject","type":"string"},"body":{"description":"Signed with your name and the business name; a sales email also has your business name and postal address. Ends with the unsubscribe line holding the person's own link.","title":"Body","type":"string"},"first_line":{"title":"First Line","type":"string"},"how_we_found_you":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Added for people who didn't come to you themselves.","title":"How We Found You"},"unsubscribe_url":{"description":"The person's own unsubscribe link, already in the body.","title":"Unsubscribe Url","type":"string"},"credits_used":{"title":"Credits Used","type":"integer"},"warning":{"anyOf":[{"$ref":"#/components/schemas/LeadWarning"},{"type":"null"}],"default":null,"description":"Set when they haven't said yes to this kind of email yet."}},"required":["lead_id","purpose","language","subject","body","first_line","how_we_found_you","unsubscribe_url","credits_used"],"title":"SalesEmail","type":"object"},"SceneChangeOut":{"properties":{"character_id":{"type":"string","title":"Character Id"},"name":{"type":"string","title":"Name"},"look_id":{"type":"string","title":"Look Id"},"look_name":{"type":"string","title":"Look Name"},"shot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shot Id"},"shot_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shot Number"},"added_by":{"type":"string","title":"Added By","default":"writer"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["character_id","name","look_id","look_name"],"title":"SceneChangeOut","description":"A changed look that starts in this scene (\"Changes here: Asha: Soaked through (from shot 2)\")."},"SceneOut":{"properties":{"id":{"type":"string","title":"Id"},"index":{"type":"integer","title":"Index"},"title":{"type":"string","title":"Title"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"summary":{"type":"string","title":"Summary"},"shots":{"items":{"$ref":"#/components/schemas/ShotOut"},"type":"array","title":"Shots"},"when":{"type":"string","title":"When","default":""},"follows_on":{"type":"boolean","title":"Follows On","default":false},"changes":{"items":{"$ref":"#/components/schemas/SceneChangeOut"},"type":"array","title":"Changes","default":[]}},"type":"object","required":["id","index","title","summary","shots"],"title":"SceneOut"},"ScoreLabel":{"description":"The score as a word (leads/labels.py): Cold 0-20, Interested 21-40, Warm 41-60, Hot 61-80, Ready to buy\n81-100.","properties":{"key":{"description":"cold, interested, warm, hot or ready.","title":"Key","type":"string"},"label":{"title":"Label","type":"string"},"next_step":{"description":"What to do next, in one line.","title":"Next Step","type":"string"}},"required":["key","label","next_step"],"title":"ScoreLabel","type":"object"},"ScoreReason":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Key"},"label":{"description":"e.g. Job title contains founder.","title":"Label","type":"string"},"points":{"title":"Points","type":"integer"}},"required":["label","points"],"title":"ScoreReason","type":"object"},"ScoreRule":{"properties":{"field":{"title":"Field","type":"string"},"operator":{"description":"equals, not_equals, contains, not_contains, greater_than, less_than, is_empty or is_not_empty.","title":"Operator","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"null"}],"default":null,"title":"Value"},"points":{"title":"Points","type":"integer"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"On the rules in use.","title":"Label"}},"required":["field","operator","points"],"title":"ScoreRule","type":"object"},"ScoringRules":{"properties":{"rules":{"description":"Your rules, or the ready-made set when you have none.","items":{"$ref":"#/components/schemas/ScoreRule"},"title":"Rules","type":"array"},"ready_made":{"title":"Ready Made","type":"boolean"},"ready_made_rules":{"items":{"$ref":"#/components/schemas/ScoreRule"},"title":"Ready Made Rules","type":"array"},"score_set":{"description":"The ready-made set in use: small_business or b2b.","title":"Score Set","type":"string"},"labels":{"description":"Cold to Ready to buy, with their scores and next steps.","items":{"$ref":"#/components/schemas/LabelRange"},"title":"Labels","type":"array"},"engagement":{"description":"Points that always count, such as filling in a form.","items":{"$ref":"#/components/schemas/EngagementPoints"},"title":"Engagement","type":"array"},"fields":{"description":"What a rule can look at.","items":{"$ref":"#/components/schemas/KeyLabel"},"title":"Fields","type":"array"},"operators":{"items":{"$ref":"#/components/schemas/KeyLabel"},"title":"Operators","type":"array"}},"required":["rules","ready_made","ready_made_rules","score_set","labels","engagement","fields","operators"],"title":"ScoringRules","type":"object"},"SegmentFilter":{"properties":{"q":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Q"},"stage":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Stage"},"label":{"anyOf":[{"type":"string","enum":["cold","interested","warm","hot","ready"]},{"type":"null"}],"title":"Label"},"source":{"anyOf":[{"type":"string","enum":["form","import","api","google_lead_form","meta_lead_ads","linkedin_lead_form","manual","prospecting","workflow","whatsapp"]},{"type":"null"}],"title":"Source"},"campaign":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Campaign"},"city":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"City"},"tag":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Tag"},"interested_in":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Interested In"},"contact":{"anyOf":[{"type":"string","enum":["not_contacted","waiting"]},{"type":"null"}],"title":"Contact"},"last_contact":{"anyOf":[{"type":"string","enum":["within_7d","within_30d","over_30d"]},{"type":"null"}],"title":"Last Contact"},"customer":{"anyOf":[{"type":"string","enum":["yes","no"]},{"type":"null"}],"title":"Customer"},"owner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner Id"},"score_min":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Score Min"}},"type":"object","title":"SegmentFilter","description":"The Leads page's filters a segment keeps (the same names as GET /leads)."},"SegmentIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":1000,"title":"Description","default":""},"filter":{"$ref":"#/components/schemas/SegmentFilter"}},"type":"object","required":["name","filter"],"title":"SegmentIn"},"SegmentPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"filter":{"anyOf":[{"$ref":"#/components/schemas/SegmentFilter"},{"type":"null"}]}},"type":"object","title":"SegmentPatch"},"ShotChange":{"properties":{"field":{"type":"string","title":"Field"},"before":{"title":"Before"},"after":{"title":"After"}},"type":"object","required":["field"],"title":"ShotChange"},"ShotChangeOut":{"properties":{"shot":{"$ref":"#/components/schemas/ShotView"},"changed":{"items":{"$ref":"#/components/schemas/ShotChange"},"type":"array","title":"Changed"},"message":{"type":"string","title":"Message"}},"type":"object","required":["shot","changed","message"],"title":"ShotChangeOut"},"ShotEstimate":{"properties":{"shot_id":{"type":"string","title":"Shot Id"},"index":{"type":"integer","title":"Index"},"credits":{"type":"integer","title":"Credits"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"lines_in_shot":{"type":"integer","title":"Lines In Shot","default":0}},"type":"object","required":["shot_id","index","credits"],"title":"ShotEstimate"},"ShotLineIn":{"properties":{"who":{"type":"string","maxLength":100,"minLength":1,"title":"Who"},"text":{"type":"string","maxLength":1000,"minLength":1,"title":"Text"},"how":{"type":"string","maxLength":200,"title":"How","default":""}},"additionalProperties":false,"type":"object","required":["who","text"],"title":"ShotLineIn"},"ShotLineView":{"properties":{"who":{"type":"string","title":"Who"},"text":{"type":"string","title":"Text"},"how":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"How"}},"type":"object","required":["who","text"],"title":"ShotLineView"},"ShotOut":{"properties":{"id":{"type":"string","title":"Id"},"index":{"type":"integer","title":"Index"},"scene_id":{"type":"string","title":"Scene Id"},"duration_s":{"type":"number","title":"Duration S"},"shot_type":{"type":"string","title":"Shot Type"},"camera":{"type":"string","title":"Camera"},"action":{"type":"string","title":"Action"},"dialogue":{"items":{"$ref":"#/components/schemas/DialogueOut"},"type":"array","title":"Dialogue"},"narration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narration"},"continuity":{"type":"string","title":"Continuity"},"media_mode":{"type":"string","title":"Media Mode"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"keyframe_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"video_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"progress":{"type":"integer","title":"Progress","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"stale_parts":{"items":{"type":"string"},"type":"array","title":"Stale Parts","default":[]},"sound":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sound"},"speech":{"type":"string","enum":["auto","in_shot","voice_over"],"title":"Speech","default":"auto"},"video_model":{"type":"string","enum":["auto","wan3","seedance"],"title":"Video Model","default":"auto"},"end_picture_asset":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"plan":{"anyOf":[{"$ref":"#/components/schemas/ShotPlanOut"},{"type":"null"}]},"first_shot_frame":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"First Shot Frame"},"frame_shot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frame Shot Id"},"own_take":{"type":"boolean","title":"Own Take","default":false}},"type":"object","required":["id","index","scene_id","duration_s","shot_type","camera","action","dialogue","continuity","media_mode","status"],"title":"ShotOut"},"ShotPlanOut":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"reason":{"type":"string","enum":["chosen","talking","faces","action","usual","unavailable","film"],"title":"Reason"},"lines_in_shot":{"type":"integer","title":"Lines In Shot","default":0},"voice_overs":{"type":"integer","title":"Voice Overs","default":0},"sound_on":{"type":"boolean","title":"Sound On","default":false}},"type":"object","required":["reason"],"title":"ShotPlanOut","description":"How the shot is made when shots have their own sound: the model, why it was chosen, and the words."},"ShotView":{"properties":{"id":{"type":"string","title":"Id"},"index":{"type":"integer","title":"Index"},"scene_index":{"type":"integer","title":"Scene Index"},"status":{"type":"string","title":"Status"},"seconds":{"type":"number","title":"Seconds"},"size":{"type":"string","title":"Size"},"camera":{"type":"string","title":"Camera"},"action":{"type":"string","title":"Action"},"lines":{"items":{"$ref":"#/components/schemas/ShotLineView"},"type":"array","title":"Lines","default":[]},"narration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narration"},"sound":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sound"},"direction":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Direction"},"clip":{"anyOf":[{"$ref":"#/components/schemas/AssetOut"},{"type":"null"}]},"stills":{"items":{"$ref":"#/components/schemas/AssetOut"},"type":"array","title":"Stills","default":[]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"needs_making_again":{"items":{"type":"string"},"type":"array","title":"Needs Making Again","default":[]},"remake_suggested":{"type":"boolean","title":"Remake Suggested","default":false},"link":{"type":"string","title":"Link"}},"type":"object","required":["id","index","scene_index","status","seconds","size","camera","action","link"],"title":"ShotView","description":"One shot of a film: its words, its status, its clip and pictures, and the check results and notes."},"ShotWordsIn":{"properties":{"action":{"anyOf":[{"type":"string","maxLength":3000,"minLength":1},{"type":"null"}],"title":"Action"},"camera":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Camera"},"size":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Size"},"seconds":{"anyOf":[{"type":"number","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Seconds"},"lines":{"anyOf":[{"items":{"$ref":"#/components/schemas/ShotLineIn"},"type":"array","maxItems":10},{"type":"null"}],"title":"Lines"},"narration":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Narration"},"sound":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Sound"}},"additionalProperties":false,"type":"object","title":"ShotWordsIn","description":"New words for one shot. Leave out what stays. Free: nothing is made again until the person presses it."},"SignInBlockOut":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"methods":{"items":{"type":"string"},"type":"array","title":"Methods"}},"type":"object","required":["code","message"],"title":"SignInBlockOut"},"SourceCount":{"properties":{"source":{"title":"Source","type":"string"},"count":{"title":"Count","type":"integer"}},"required":["source","count"],"title":"SourceCount","type":"object"},"Stage":{"properties":{"key":{"description":"Stays the same when the label is renamed.","title":"Key","type":"string"},"label":{"title":"Label","type":"string"},"kind":{"description":"open, won or lost.","title":"Kind","type":"string"},"order":{"title":"Order","type":"integer"}},"required":["key","label","kind","order"],"title":"Stage","type":"object"},"StageCount":{"properties":{"stage":{"title":"Stage","type":"string"},"label":{"title":"Label","type":"string"},"kind":{"title":"Kind","type":"string"},"count":{"title":"Count","type":"integer"}},"required":["stage","label","kind","count"],"title":"StageCount","type":"object"},"StageIn":{"properties":{"key":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Key"},"label":{"type":"string","maxLength":60,"minLength":1,"title":"Label"},"kind":{"type":"string","enum":["open","won","lost"],"title":"Kind","default":"open"}},"type":"object","required":["label"],"title":"StageIn"},"StepOut":{"properties":{"id":{"type":"string","title":"Id"},"node_id":{"type":"string","title":"Node Id"},"node_type":{"type":"string","title":"Node Type"},"label":{"type":"string","title":"Label"},"status":{"type":"string","enum":["pending","running","waiting","succeeded","failed","skipped"],"title":"Status"},"input":{"title":"Input"},"output":{"title":"Output"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"waiting_for":{"anyOf":[{"type":"string","enum":["approval","generation","delay","provider","event"]},{"type":"null"}],"title":"Waiting For"},"remake":{"anyOf":[{"$ref":"#/components/schemas/ApprovalRemakeOut"},{"type":"null"}]}},"type":"object","required":["id","node_id","node_type","label","status"],"title":"StepOut"},"StoryOut":{"properties":{"logline":{"type":"string","title":"Logline"},"synopsis":{"type":"string","title":"Synopsis"},"style_guide":{"type":"string","title":"Style Guide"}},"type":"object","required":["logline","synopsis","style_guide"],"title":"StoryOut"},"StoryRewriteIn":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"shown_credits":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Shown Credits"}},"additionalProperties":false,"type":"object","title":"StoryRewriteIn","description":"Write the film's whole story again while it waits at the Story step (not approved yet). Nothing changes until\nthe new story is written; the story shown now is kept as an earlier version (StoryUseEarlierIn)."},"StoryRewriteOut":{"properties":{"credits":{"type":"integer","title":"Credits"},"writing":{"type":"boolean","title":"Writing","default":false},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"model_gone":{"type":"boolean","title":"Model Gone","default":false}},"type":"object","required":["credits"],"title":"StoryRewriteOut","description":"\"Write a new story\": at the Story step (before the story is approved), or while a new story is written."},"StoryUseEarlierIn":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"}},"additionalProperties":false,"type":"object","required":["version"],"title":"StoryUseEarlierIn","description":"Bring back an earlier version of the story (MovieOut.story_versions) while the film waits at the Story step.\nFree; the story shown now becomes an earlier version."},"StoryVersionOut":{"properties":{"version":{"type":"integer","title":"Version"},"written_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Written At"},"first_line":{"type":"string","title":"First Line"},"scenes":{"type":"integer","title":"Scenes"},"shots":{"type":"integer","title":"Shots"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["version","first_line","scenes","shots"],"title":"StoryVersionOut","description":"An earlier version of the story, kept when a new one was written (at most 3, newest first)."},"StyleOption":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"line":{"type":"string","title":"Line"},"credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["key","label","line","credits"],"title":"StyleOption","description":"One style for exactly this request (GIN-428): what it is best at and what it would be held."},"StyleOut":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"line":{"type":"string","title":"Line"},"tiers":{"additionalProperties":{"$ref":"#/components/schemas/StyleTierOut"},"type":"object","title":"Tiers"},"durations":{"items":{"type":"integer"},"type":"array","title":"Durations","default":[]},"aspect_ratios":{"items":{"type":"string"},"type":"array","title":"Aspect Ratios","default":[]},"resolutions":{"items":{"type":"string"},"type":"array","title":"Resolutions","default":[]},"max_reference_images":{"type":"integer","title":"Max Reference Images","default":0},"supports_audio":{"type":"boolean","title":"Supports Audio","default":false},"supports_end_frame":{"type":"boolean","title":"Supports End Frame","default":false}},"type":"object","required":["key","label","line","tiers"],"title":"StyleOut","description":"GET /ai/styles (GIN-442): a style for a kind and mode, its plain line and about what each quality costs."},"StyleTierOut":{"properties":{"credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["credits"],"title":"StyleTierOut"},"Suppression":{"description":"An entry on the do-not-contact list. We keep only a keyed fingerprint of the value (never sent) and a short\nhint.","properties":{"id":{"title":"Id","type":"string"},"kind":{"description":"email, domain or phone; linkedin when someone with a LinkedIn address was erased; name when someone with only a name and a company was erased (their full name at that company's name).","title":"Kind","type":"string"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"reason":{"description":"unsubscribed, bounced, complained, erased, manual or whatsapp_opt_out.","title":"Reason","type":"string"},"source":{"title":"Source","type":"string"},"created_at":{"title":"Created At","type":"string"}},"required":["id","kind","hint","reason","source","created_at"],"title":"Suppression","type":"object"},"SuppressionCheck":{"properties":{"kind":{"description":"email or phone.","title":"Kind","type":"string"},"value":{"description":"As you sent it.","title":"Value","type":"string"},"valid":{"title":"Valid","type":"boolean"},"do_not_contact":{"title":"Do Not Contact","type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"required":["kind","value","valid","do_not_contact","reason"],"title":"SuppressionCheck","type":"object"},"SuppressionCheckIn":{"properties":{"emails":{"items":{"type":"string","maxLength":320},"type":"array","maxItems":100,"title":"Emails","default":[]},"phones":{"items":{"type":"string","maxLength":40},"type":"array","maxItems":100,"title":"Phones","default":[]}},"type":"object","title":"SuppressionCheckIn"},"SuppressionChecks":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SuppressionCheck"},"title":"Items","type":"array"}},"required":["items"],"title":"SuppressionChecks","type":"object"},"SuppressionIn":{"properties":{"kind":{"type":"string","enum":["email","domain","phone"],"title":"Kind","default":"email"},"value":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Value"},"value_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Sha256","description":"Not taken: send `value` instead."},"reason":{"type":"string","enum":["unsubscribed","bounced","complained","erased","manual","whatsapp_opt_out"],"title":"Reason","default":"manual"},"source":{"type":"string","maxLength":100,"title":"Source","default":""}},"type":"object","title":"SuppressionIn"},"TargetIn":{"properties":{"first_comment":{"anyOf":[{"type":"string","maxLength":2200},{"type":"null"}],"title":"First Comment","description":"LinkedIn, Facebook and Instagram: a comment posted right after the post."},"thread":{"anyOf":[{"items":{"type":"string","maxLength":1000},"type":"array","maxItems":10},{"type":"null"}],"title":"Thread","description":"X: up to 10 more posts after this one, each up to 280 X characters, posted as a thread. Only a part with a link uses credits (like any X post with a link)."},"ig_story":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ig Story","description":"Instagram: post it as a Story (one picture or one video at 9:16; a video 3 to 60 seconds). Stories have no caption: the text is not posted."},"account_id":{"type":"string","maxLength":64,"minLength":1,"title":"Account Id"},"text":{"anyOf":[{"type":"string","maxLength":70000},{"type":"null"}],"title":"Text"},"tiktok":{"anyOf":[{"$ref":"#/components/schemas/TikTokSettingsIn"},{"type":"null"}]},"youtube":{"anyOf":[{"$ref":"#/components/schemas/YouTubeSettingsIn"},{"type":"null"}]},"media_asset_ids":{"anyOf":[{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":20},{"type":"null"}],"title":"Media Asset Ids","description":"Different pictures or videos for this account only (Library file ids, up to 20). Left out or null: the post's media_asset_ids. An empty list: no media on this account. Each file is checked like the post's own (in this workspace, not a Studio file, a kind this network takes, and the network's own limits)."}},"type":"object","required":["account_id"],"title":"TargetIn"},"TaskIn":{"properties":{"lead_id":{"type":"string","format":"uuid","title":"Lead Id"},"kind":{"type":"string","enum":["call","email","linkedin","whatsapp","other"],"title":"Kind"},"title":{"type":"string","maxLength":300,"minLength":1,"title":"Title"},"note":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Note"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"assignee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"}},"type":"object","required":["lead_id","kind","title"],"title":"TaskIn"},"TaskOut":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind","default":"captions"},"timeline_id":{"type":"string","title":"Timeline Id"},"status":{"type":"string","enum":["queued","running","succeeded","failed"],"title":"Status"},"progress":{"type":"integer","title":"Progress","default":0},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","timeline_id","status"],"title":"TaskOut"},"TaskPatch":{"properties":{"status":{"anyOf":[{"type":"string","enum":["open","done"]},{"type":"null"}],"title":"Status"},"title":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Title"},"note":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Note"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"assignee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"}},"type":"object","title":"TaskPatch"},"TemplateOption":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"help":{"type":"string","title":"Help"}},"type":"object","required":["key","label","help"],"title":"TemplateOption"},"TemplateOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"icon":{"type":"string","title":"Icon"},"graph":{"additionalProperties":true,"type":"object","title":"Graph"},"options":{"items":{"$ref":"#/components/schemas/TemplateOption"},"type":"array","title":"Options","default":[]}},"type":"object","required":["id","name","description","icon","graph"],"title":"TemplateOut"},"TierOption":{"properties":{"model_id":{"type":"string","title":"Model Id"},"label":{"type":"string","title":"Label"},"credits":{"type":"integer","title":"Credits"}},"type":"object","required":["model_id","label","credits"],"title":"TierOption"},"TikTokSettingsIn":{"properties":{"privacy_level":{"anyOf":[{"type":"string","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"]},{"type":"null"}],"title":"Privacy Level"},"allow_comment":{"type":"boolean","title":"Allow Comment","default":false},"allow_duet":{"type":"boolean","title":"Allow Duet","default":false},"allow_stitch":{"type":"boolean","title":"Allow Stitch","default":false},"disclose":{"type":"boolean","title":"Disclose","default":false},"your_brand":{"type":"boolean","title":"Your Brand","default":false},"branded_content":{"type":"boolean","title":"Branded Content","default":false},"ai_generated":{"type":"boolean","title":"Ai Generated","default":false}},"type":"object","title":"TikTokSettingsIn","description":"What the creator chose for a TikTok post (TikTok's Content Sharing Guidelines; see tiktok_rules.py).\nNothing is chosen for them: privacy has no default and every switch starts off."},"TimelineCreate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"asset_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Asset Ids","default":[]},"aspect_ratio":{"anyOf":[{"type":"string","enum":["16:9","9:16","1:1","4:5"]},{"type":"null"}],"title":"Aspect Ratio"}},"type":"object","title":"TimelineCreate"},"TimelineListItem":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:5"],"title":"Aspect Ratio"},"duration_s":{"type":"number","title":"Duration S"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"updated_at":{"type":"string","title":"Updated At"},"last_render":{"anyOf":[{"$ref":"#/components/schemas/RenderOut"},{"type":"null"}]}},"type":"object","required":["id","title","aspect_ratio","duration_s","updated_at"],"title":"TimelineListItem"},"TimelineOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:5"],"title":"Aspect Ratio"},"document":{"additionalProperties":true,"type":"object","title":"Document"},"duration_s":{"type":"number","title":"Duration S"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url"},"assets":{"additionalProperties":{"$ref":"#/components/schemas/AssetOut"},"type":"object","title":"Assets","default":{}},"last_render":{"anyOf":[{"$ref":"#/components/schemas/RenderOut"},{"type":"null"}]},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","title","aspect_ratio","document","duration_s","created_at","updated_at"],"title":"TimelineOut"},"TimelinePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TimelineListItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"TimelinePage"},"TimelinePart":{"properties":{"shot":{"type":"integer","title":"Shot"},"scene":{"type":"integer","title":"Scene"},"start_s":{"type":"number","title":"Start S"},"end_s":{"type":"number","title":"End S"},"words":{"items":{"items":{"type":"number"},"type":"array"},"type":"array","title":"Words"},"music":{"type":"boolean","title":"Music"},"sound":{"type":"boolean","title":"Sound"},"quiet":{"type":"boolean","title":"Quiet"}},"type":"object","required":["shot","scene","start_s","end_s","words","music","sound","quiet"],"title":"TimelinePart"},"TimelineUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"document":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Document"}},"type":"object","title":"TimelineUpdate"},"UploadAssetBody":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"folder_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["file"],"title":"UploadAssetBody"},"UploadLeadImportBody":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"mapping":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mapping"},"duplicate_rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duplicate Rule"},"basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basis"},"list_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"List Id"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"}},"type":"object","required":["file"],"title":"UploadLeadImportBody"},"UserOut":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"is_platform_admin":{"type":"boolean","title":"Is Platform Admin","default":false},"email_verified":{"type":"boolean","title":"Email Verified","default":false},"email_alerts":{"type":"boolean","title":"Email Alerts","default":true},"two_step":{"type":"boolean","title":"Two Step","default":false},"admin_needs_two_step":{"type":"boolean","title":"Admin Needs Two Step","default":false},"starting_credits_given":{"type":"boolean","title":"Starting Credits Given","default":false}},"type":"object","required":["id","email","name"],"title":"UserOut"},"ValidateIn":{"properties":{"text":{"type":"string","maxLength":70000,"title":"Text","default":""},"media_asset_ids":{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":20,"title":"Media Asset Ids","default":[]},"account_ids":{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":50,"title":"Account Ids","default":[]},"per_account_text":{"anyOf":[{"additionalProperties":{"type":"string","maxLength":70000},"type":"object"},{"type":"null"}],"title":"Per Account Text"},"tiktok":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/TikTokSettingsIn"},"type":"object"},{"type":"null"}],"title":"Tiktok"},"youtube":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/YouTubeSettingsIn"},"type":"object"},{"type":"null"}],"title":"Youtube"},"per_account_media":{"anyOf":[{"additionalProperties":{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":20},"propertyNames":{"maxLength":64,"minLength":1},"type":"object","maxProperties":50},{"type":"null"}],"title":"Per Account Media"},"formats":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/FormatsIn"},"propertyNames":{"maxLength":64,"minLength":1},"type":"object","maxProperties":50},{"type":"null"}],"title":"Formats"}},"type":"object","title":"ValidateIn"},"ValidationOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"problems":{"items":{"$ref":"#/components/schemas/Problem"},"type":"array","title":"Problems"}},"type":"object","required":["ok","problems"],"title":"ValidationOut"},"VariantEdit":{"properties":{"network":{"type":"string","title":"Network"},"text":{"type":"string","maxLength":70000,"title":"Text"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"}},"type":"object","required":["network","text"],"title":"VariantEdit"},"VariantOut":{"properties":{"network":{"type":"string","title":"Network"},"text":{"type":"string","title":"Text"},"hashtags":{"items":{"type":"string"},"type":"array","title":"Hashtags","default":[]},"char_count":{"type":"integer","title":"Char Count"},"max_chars":{"type":"integer","title":"Max Chars"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["network","text","char_count","max_chars"],"title":"VariantOut"},"VerifyIn":{"properties":{"basis":{"anyOf":[{"type":"string","enum":["consent","asked_to_be_contacted","existing_customer","b2b_prospect"]},{"type":"null"}],"title":"Basis"},"provider":{"anyOf":[{"type":"string","maxLength":30,"minLength":1},{"type":"null"}],"title":"Provider"}},"type":"object","title":"VerifyIn"},"VoiceOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"model_id":{"type":"string","title":"Model Id"},"engine":{"type":"string","title":"Engine","default":""},"provider_model":{"type":"string","title":"Provider Model"},"tier":{"type":"string","title":"Tier"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"},"language":{"type":"string","title":"Language"},"style":{"type":"string","title":"Style","default":""},"sample_text":{"type":"string","title":"Sample Text"},"languages":{"items":{"type":"string"},"type":"array","title":"Languages","default":[]}},"type":"object","required":["id","label","model_id","provider_model","tier","language","sample_text"],"title":"VoiceOut"},"VoicePreviewIn":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Text"},"voice":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Voice"}},"type":"object","title":"VoicePreviewIn"},"VoiceSettings":{"properties":{"stability":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Stability"},"similarity_boost":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Similarity Boost"},"style":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Style"},"use_speaker_boost":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Speaker Boost"}},"type":"object","title":"VoiceSettings","description":"The ElevenLabs voice changer's voice settings for one request (its `voice_settings`, sent as a JSON string;\nelevenlabs.voice_change_form): each from 0 to 1, and a yes/no for the speaker boost. Unknown keys are dropped, as\nin GenerationParams. The proof film's stronger setting (15 Nov 2026): stability 0.8, similarity_boost 1.0, style 0,\nuse_speaker_boost true."},"WebhookAccepted":{"properties":{"run_id":{"type":"string","title":"Run Id"}},"type":"object","required":["run_id"],"title":"WebhookAccepted"},"WebhookCreate":{"properties":{"url":{"type":"string","maxLength":2000,"minLength":1,"title":"Url"},"description":{"type":"string","maxLength":500,"title":"Description","default":""},"event_types":{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":50,"minItems":1,"title":"Event Types","default":["*"]},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["url"],"title":"WebhookCreate"},"WebhookOut":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"description":{"type":"string","title":"Description"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"enabled":{"type":"boolean","title":"Enabled"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"last_delivery_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Delivery Status"},"last_delivery_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Delivery At"}},"type":"object","required":["id","url","description","event_types","enabled","created_at","updated_at"],"title":"WebhookOut"},"WebhookUpdate":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"Url"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"},"event_types":{"anyOf":[{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":50,"minItems":1},{"type":"null"}],"title":"Event Types"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"WebhookUpdate"},"WeekCount":{"properties":{"week_start":{"title":"Week Start","type":"string"},"count":{"title":"Count","type":"integer"}},"required":["week_start","count"],"title":"WeekCount","type":"object"},"WorkflowCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""},"graph":{"anyOf":[{"$ref":"#/components/schemas/WorkflowGraph"},{"type":"null"}]},"settings":{"anyOf":[{"$ref":"#/components/schemas/NewWorkflowSettings"},{"type":"null"}]}},"type":"object","required":["name"],"title":"WorkflowCreate"},"WorkflowGraph":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/GraphNode"},"type":"array","maxItems":100,"title":"Nodes","default":[]},"edges":{"items":{"$ref":"#/components/schemas/GraphEdge"},"type":"array","maxItems":300,"title":"Edges","default":[]}},"type":"object","title":"WorkflowGraph"},"WorkflowOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"enabled":{"type":"boolean","title":"Enabled"},"graph":{"additionalProperties":true,"type":"object","title":"Graph"},"trigger_summary":{"type":"string","title":"Trigger Summary"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"webhook_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Secret"},"next_run_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Run At"},"last_run":{"anyOf":[{"$ref":"#/components/schemas/RunSummary"},{"type":"null"}]},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","name","description","enabled","graph","trigger_summary","settings","created_at","updated_at"],"title":"WorkflowOut"},"WorkflowPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkflowOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"WorkflowPage"},"WorkflowSettings":{"properties":{"max_credits_per_run":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Max Credits Per Run"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"approvals_expire":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Approvals Expire"}},"type":"object","title":"WorkflowSettings"},"WorkflowUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"graph":{"anyOf":[{"$ref":"#/components/schemas/WorkflowGraph"},{"type":"null"}]},"settings":{"anyOf":[{"$ref":"#/components/schemas/WorkflowSettings"},{"type":"null"}]}},"type":"object","title":"WorkflowUpdate"},"WorkspaceOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"role":{"type":"string","title":"Role"},"role_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Label"},"access":{"additionalProperties":{"type":"string"},"type":"object","title":"Access"},"sees_personal_data":{"type":"boolean","title":"Sees Personal Data","default":true},"enterprise":{"type":"boolean","title":"Enterprise","default":false},"features":{"items":{"type":"string"},"type":"array","title":"Features"},"brand_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Brand Count"},"sign_in_block":{"anyOf":[{"$ref":"#/components/schemas/SignInBlockOut"},{"type":"null"}]}},"type":"object","required":["id","name","slug","role"],"title":"WorkspaceOut"},"WriteEmailIn":{"properties":{"goal":{"type":"string","maxLength":500,"title":"Goal","default":""},"purpose":{"type":"string","enum":["enquiry","marketing"],"title":"Purpose","default":"marketing"},"language":{"type":"string","enum":["auto","en","hi","es","fr","de","pt","ar"],"title":"Language","default":"auto"},"brand_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Brand Id"},"tone":{"anyOf":[{"type":"string","enum":["friendly","professional","warm","direct"]},{"type":"null"}],"title":"Tone"},"length":{"type":"string","enum":["short","medium"],"title":"Length","default":"short"},"call_to_action":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Call To Action"}},"type":"object","title":"WriteEmailIn"},"WritePostRequest":{"properties":{"brief":{"type":"string","maxLength":4000,"minLength":1,"title":"Brief"},"enhanced_brief":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Enhanced Brief"},"networks":{"items":{"type":"string"},"type":"array","maxItems":6,"minItems":1,"title":"Networks","default":["instagram","linkedin","facebook"]},"brand_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Id"},"tone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Tone"},"language":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Language"},"length":{"type":"string","enum":["short","medium","long"],"title":"Length","default":"medium"},"hashtags":{"type":"boolean","title":"Hashtags","default":true},"emojis":{"type":"boolean","title":"Emojis","default":true},"asset_ids":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Asset Ids","default":[]},"writer":{"anyOf":[{"type":"string","enum":["auto","everyday","creative","smart_stories","smart_precise"]},{"type":"null"}],"title":"Writer"}},"type":"object","required":["brief"],"title":"WritePostRequest"},"WriterUsedOut":{"properties":{"writer":{"type":"string","title":"Writer"},"label":{"type":"string","title":"Label"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"premium_credits":{"type":"integer","title":"Premium Credits","default":0}},"type":"object","required":["writer","label"],"title":"WriterUsedOut","description":"Which writer wrote a result: a paid one that was busy, refused or not allowed is Everyday, with `note` (one\nplain line); `premium_credits`: what Premium writers took for it (0 for an included writer)."},"YouTubeSettingsIn":{"properties":{"privacy":{"anyOf":[{"type":"string","enum":["public","unlisted","private"]},{"type":"null"}],"title":"Privacy"},"made_for_kids":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Made For Kids"},"ai_content":{"type":"boolean","title":"Ai Content","default":false},"title":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Title"}},"type":"object","title":"YouTubeSettingsIn","description":"What the person chose for a YouTube upload (YouTube's Required Minimum Functionality and Developer Policies\nIII.C.3; see youtube_rules.py). Nothing is chosen for them: privacy and \"made for kids\" have no default.\nWith an API key they are kept on a draft only: YouTube posts come from people in cuil.si and the automations\nthey set up there."}}}}