{"openapi":"3.1.0","info":{"title":"Flow API – Flow Marketing, a tool by Motion ToGo","version":"2026-11-20","summary":"Brand-true motion-design videos and graphics from templates. Send fields or a one-line brief, get a checked preview in seconds, render on demand. You only pay for results that pass every quality check.","description":"**Base URL** `https://flow-marketing.org/api/turbo/v1` (a short address api.flow-marketing.org is planned, not live yet).\n\n**Auth** `Authorization: Bearer fm_test_…` (test mode: free, watermark) or `fm_live_…` (live mode).\n\n**Money** All amounts are integer cents in EUR, net. The current price is returned at runtime (`estimate`, `/balance`). Charged when the render starts. Previews, test mode and renders canceled before they start are free; system errors before the start are refunded. If a video stays red in our checks it stays charged, and you get one free rebuild (`free_rebuild: true`); if the rebuild stays red too, the amount of that paid round is credited back to your balance (consumers: see terms § 3). Canceling a render that has already started can stay charged (see `charge` on the render); while the render is being checked it cannot be canceled (`409 video_busy`).\n\n**Async** Creating a video returns a checked draft with a preview link at once. Rendering is a job (`render`):\npoll it, long-poll `GET /renders/{id}` or `GET /videos/{id}` with `?wait=` (up to 30 s) or receive a webhook.\n\n**Safe retries** Send `Idempotency-Key` on every POST and PATCH. Other methods ignore it (GET and DELETE are safe to repeat).\n\n**Errors** `application/problem+json` (RFC 9457) with a stable `code`, a human `detail`, a `doc_url`,\nthe `request_id` and, for validation, `errors[]` with a JSON pointer per field.\n\n**Versioning** Path `/v1` never breaks. Every answer carries the header `Flow-Version` with the date version of the API\n(today `2026-11-20`, the only version). Choosing a date version per key or per request, and `Sunset` / `Deprecation`\nheaders, are planned and not available yet.\n\n**Links** Links in answers are absolute URLs (for example `links.self` = `https://flow-marketing.org/api/turbo/v1/videos/vid_…`).\n\n**Limits** Requests per minute, daily limits and the maximum body size are listed in `x-limits`.\n\n\n**Stylefilm templates** `GET /templates` also lists real Motion ToGo style films (`kind: \"stylefilm\"`, e.g. `sf-07`) with a fixed length (`duration_s`) and `status` `beta` or `ready`. Create them like any template with `POST /videos {\"template\": \"sf-07\", \"fields\": {…}}`; billed per second of the fixed length, red rule as for all renders.","termsOfService":"https://flow-marketing.org/agb","contact":{"name":"Motion ToGo UG (haftungsbeschränkt)","url":"https://flow-marketing.org/entwickler"},"license":{"name":"Proprietary – API description may be used to build clients","identifier":"LicenseRef-Proprietary"}},"servers":[{"url":"https://flow-marketing.org/api/turbo/v1","description":"Production (EU, Germany). Test and live mode are chosen by the key."}],"security":[{"bearer":[]}],"tags":[{"name":"Templates","description":"What can be built. Every template carries a machine-readable field schema."},{"name":"Videos","description":"A video document – template + fields + brand. Free until you render."},{"name":"Documents","description":"Upload a PowerPoint (.pptx), PDF or Word (.docx) file – we read it on our own servers and turn it into a video. Google Slides: export as .pptx or PDF."},{"name":"Renders","description":"Async jobs that turn a video or image into files. The billing unit."},{"name":"Webhooks","description":"Signed events with retries, delivery log and manual resend."},{"name":"Billing","description":"Estimates, balance, usage."},{"name":"Voice clones","description":"Your own voice for our own voice AI – only with the person’s own consent and voice check. Business accounts only, scope voices:write."},{"name":"Avatars","description":"Your own avatar (stage 1, rendered via our avatar adapter) – only with the person’s own consent on camera. Visible AI label. Scope avatars:write."},{"name":"Speech","description":"Text to speech as a product of its own: our own voice AI or Premium (models in `GET /models`). Pay per character, no subscription. Scope speech:write."},{"name":"Voices","description":"Voice library and your own voices – as many as you like. Design voices from a description. Scopes voices:read / voices:write."},{"name":"Pronunciations","description":"Your pronunciation dictionary: word → how to say it. Applies to every speech job."},{"name":"Uploads","description":"Images, logos and documents for templates and brands – quarantine and virus scan before use."},{"name":"Live","description":"Live call agents: AI phone and website assistant. Provider credentials are connected on the website only."},{"name":"Media","description":"AI media: images, short video clips and print photos (PDF/X-4, CMYK, 3 mm bleed). Price first (free), then start with confirm_tokens. Results carry a C2PA label. Off until enabled for your account."}],"paths":{"/templates":{"get":{"tags":["Templates"],"operationId":"listTemplates","summary":"List templates with their field schema","x-phase":2,"x-scope":"templates:read","responses":{"200":{"$ref":"#/components/responses/TemplateList"},"default":{"$ref":"#/components/responses/Problem"}}}},"/templates/{id}":{"get":{"tags":["Templates"],"operationId":"getTemplate","summary":"One template – field schema (JSON Schema 2020-12), styles, example, example preview","x-phase":2,"x-scope":"templates:read","parameters":[{"$ref":"#/components/parameters/Id"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/voices":{"get":{"tags":["Voices"],"operationId":"listVoices","summary":"Voices: template voices for videos, plus library and your own voices for speech","x-phase":2,"x-scope":"templates:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Voice"}}}}]}}}},"default":{"$ref":"#/components/responses/Problem"}},"description":"Always returns the template voices used by videos (`usage` absent). When speech is enabled for your account and the key has `voices:read`, the list also contains the voice library and your own voices (`usage: speech`). There is no limit on the number of your own voices.","parameters":[{"name":"language","in":"query","schema":{"type":"string","enum":["de","en"]}},{"name":"gender","in":"query","schema":{"type":"string","enum":["female","male","neutral"]}},{"name":"tone","in":"query","schema":{"type":"string"}},{"name":"engine","in":"query","schema":{"type":"string","enum":["eu","premium"]},"description":"`eu` = our own voice AI (computed in the EU), `premium` = Premium voices. Older values are still accepted."},{"name":"favorite","in":"query","schema":{"type":"boolean"}}]},"post":{"tags":["Voices"],"operationId":"createVoice","summary":"Save a design preview as your own voice (free)","x-phase":3,"x-scope":"voices:write","responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Voice"}}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCreate"}}}}}},"/videos":{"post":{"tags":["Videos"],"operationId":"createVideo","summary":"Create a video from a template (fields or brief) – returns a checked preview at once","description":"Exactly one of `fields` or `brief`. With `fields` the answer is `201` with status `draft` in under a second.\nWith `brief` our AI fills the fields first; the answer is also `201` with the filled draft (`422` if the brief\ncannot be filled, `503` if the AI is briefly unavailable – nothing is charged then). `render: true` starts the export right away (live mode reserves the estimated price).\n","x-phase":2,"x-scope":"videos:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoCreate"},"examples":{"fields":{"summary":"Hello World – fields, no AI, preview in < 1 s","value":{"template":"release-notes","language":"de","formats":["16x9","9x16"],"brand":{"website":"kontoro.de"},"fields":{"produkt":"Kontoro","version":"4.2","neu":["Belege per Foto erfassen","Export nach DATEV","Suche doppelt so schnell"],"cta":"Jetzt updaten"}}},"brief":{"summary":"One sentence – the AI fills the fields","value":{"template":"produkt-launch","brief":"Kontoro 4.2 ist da: Belege per Foto, DATEV-Export, doppelt so schnelle Suche.","brand_id":"brd_3kT9xQ2mLp","render":true,"max_price_cents":400}}}}}},"responses":{"201":{"description":"Created – status `draft` (or `queued` with `render: true`)","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"},"Location":{"schema":{"type":"string"},"description":"URL of the new video"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Video"}}}},"402":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}}},"get":{"tags":["Videos"],"operationId":"listVideos","summary":"List videos (newest first)","x-phase":2,"x-scope":"videos:read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/VideoStatus"}}],"responses":{"200":{"$ref":"#/components/responses/VideoList"},"default":{"$ref":"#/components/responses/Problem"}}}},"/videos/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Videos"],"operationId":"getVideo","summary":"Get a video with preview link, quality and latest render","x-phase":2,"x-scope":"videos:read","parameters":[{"$ref":"#/components/parameters/Wait"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Video"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"patch":{"tags":["Videos"],"operationId":"updateVideo","summary":"Change fields, style, formats, voice or brand – creates a new revision and a new preview","description":"Free before rendering. After a green render one correction is included (re-render, no new charge).","x-phase":2,"x-scope":"videos:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoUpdate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Video"}}}},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"tags":["Videos"],"operationId":"deleteVideo","summary":"Delete the video, its files and its texts (GDPR erasure); invoices and usage rows stay","x-phase":4,"x-scope":"videos:write","responses":{"200":{"$ref":"#/components/responses/Deleted"},"default":{"$ref":"#/components/responses/Problem"}}}},"/videos/{id}/render":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Videos","Renders"],"operationId":"renderVideo","summary":"Start the export render","description":"Live mode reserves the estimated price when the render starts. Green: it stays charged. Red after our automatic\nrepairs: it stays charged and the video gets one free rebuild (`free_rebuild_available`); if that rebuild stays red\ntoo, the amount of the paid round is credited back to your balance (consumers can request a refund to their payment method instead, portal → Billing). Returns the `render` job. Refused with\n`422 pre_render_check_red` when the preview check is red and with `402 price_above_max` when the estimate exceeds\n`max_price_cents` – nothing is charged then.\n","x-phase":2,"x-scope":"videos:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderCreate"}}}},"responses":{"202":{"description":"Accepted – render queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Render"}}}},"402":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}}}},"/videos/{id}/cancel":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Videos"],"operationId":"cancelVideo","summary":"Cancel the running render of this video (alias of POST /renders/{id}/cancel)","x-phase":2,"x-scope":"videos:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Video"}}}},"409":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}},"description":"Queued: the reservation is released, nothing is charged. Already rendering: may stay charged (see `charge` on the render). Not possible while the render is being checked (`409 video_busy`)."}},"/videos/{id}/plan":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Videos"],"operationId":"getVideoPlan","summary":"Scene graph the renderer uses (scenes, elements, narration, sound cues, per-format layout)","x-phase":2,"x-scope":"videos:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/videos/{id}/report":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Videos"],"operationId":"getVideoReport","summary":"Quality report – pre-render checks and, after rendering, the measured checks of the files","x-phase":2,"x-scope":"videos:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}},"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/renders":{"get":{"tags":["Renders"],"operationId":"listRenders","summary":"List render jobs","x-phase":2,"x-scope":"videos:read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/RenderStatus"}},{"name":"video_id","in":"query","schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/RenderList"},"default":{"$ref":"#/components/responses/Problem"}}}},"/renders/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Renders"],"operationId":"getRender","summary":"One render job – status, progress, files, quality, charge","x-phase":2,"x-scope":"videos:read","parameters":[{"$ref":"#/components/parameters/Wait"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Render"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/renders/{id}/cancel":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Renders"],"operationId":"cancelRender","summary":"Cancel a queued or rendering render","x-phase":2,"x-scope":"videos:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Render"}}}},"409":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}},"description":"Queued: the reservation is released, nothing is charged. Already rendering: may stay charged (see `charge` on the render). Not possible while the render is being checked (`409 video_busy`)."}},"/webhooks":{"post":{"tags":["Webhooks"],"operationId":"createWebhook","summary":"Create an endpoint – the signing secret is returned once","x-phase":2,"x-scope":"webhooks:manage","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Webhook"},{"type":"object","required":["secret"],"properties":{"secret":{"type":"string","description":"whsec_… – shown only now","examples":["whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"]}}}]}}}},"422":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}}},"get":{"tags":["Webhooks"],"operationId":"listWebhooks","summary":"List webhook endpoints","x-phase":2,"x-scope":"webhooks:manage","responses":{"200":{"$ref":"#/components/responses/WebhookList"},"default":{"$ref":"#/components/responses/Problem"}}}},"/webhooks/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Webhooks"],"operationId":"getWebhook","summary":"Get a webhook endpoint","x-phase":2,"x-scope":"webhooks:manage","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"patch":{"tags":["Webhooks"],"operationId":"updateWebhook","summary":"Change URL, events or pause an endpoint","x-phase":2,"x-scope":"webhooks:manage","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookUpdate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"422":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"tags":["Webhooks"],"operationId":"deleteWebhook","summary":"Delete a webhook endpoint","x-phase":2,"x-scope":"webhooks:manage","responses":{"200":{"$ref":"#/components/responses/Deleted"},"default":{"$ref":"#/components/responses/Problem"}}}},"/webhooks/{id}/rotate_secret":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Webhooks"],"operationId":"rotateWebhookSecret","summary":"New signing secret; the old one keeps signing in parallel for 24 h (two signatures in the header)","x-phase":3,"x-scope":"webhooks:manage","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["secret","previous_secret_expires_at"],"properties":{"secret":{"type":"string"},"previous_secret_expires_at":{"type":"string","format":"date-time"}}}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/webhooks/{id}/test":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Webhooks"],"operationId":"testWebhook","summary":"Send a realistic example of any event type now and return the delivery result","x-phase":2,"x-scope":"webhooks:manage","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/EventType"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Delivery"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/webhooks/{id}/deliveries":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Webhooks"],"operationId":"listDeliveries","summary":"Delivery log of an endpoint (30 days)","x-phase":2,"x-scope":"webhooks:manage","parameters":[{"$ref":"#/components/parameters/Limit"}],"responses":{"200":{"$ref":"#/components/responses/DeliveryList"},"default":{"$ref":"#/components/responses/Problem"}}}},"/webhooks/{id}/deliveries/{delivery_id}/retry":{"parameters":[{"$ref":"#/components/parameters/Id"},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string"},"example":"whd_8sK2mQ1xZp"}],"post":{"tags":["Webhooks"],"operationId":"retryDelivery","summary":"Send one delivery again now","x-phase":2,"x-scope":"webhooks:manage","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Delivery"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/estimates":{"post":{"tags":["Billing"],"operationId":"createEstimate","summary":"Exact price and expected duration before creating anything – free, nothing is stored","x-phase":2,"x-scope":"videos:read","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoCreate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Estimate"}}}},"422":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}}}},"/balance":{"get":{"tags":["Billing"],"operationId":"getBalance","summary":"Balance, reservations, plan allowance, monthly limit","x-phase":2,"x-scope":"usage:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/usage":{"get":{"tags":["Billing"],"operationId":"getUsage","summary":"Usage per day and template (speech jobs per model)","x-phase":2,"x-scope":"usage:read","parameters":[{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":366,"default":30}}],"responses":{"200":{"$ref":"#/components/responses/UsageList"},"default":{"$ref":"#/components/responses/Problem"}},"description":"Rows for videos are grouped by template. When speech is enabled, speech jobs appear as additional rows with group `speech:<model>` and the fields `speech_jobs`, `characters`, `audio_seconds`."}},"/voices/clones":{"get":{"tags":["Voice clones"],"operationId":"listVoiceClones","summary":"List voice clones","x-phase":3,"x-scope":"voices:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCloneList"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"post":{"tags":["Voice clones"],"operationId":"createVoiceClone","summary":"Create a voice clone and get the consent link","x-phase":3,"x-scope":"voices:write","responses":{"201":{"description":"Created – `consent_url` is shown only once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceClone"}}}},"422":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}},"description":"The person whose voice or face it is must open `consent_url` themselves, read the consent text, type their full name, confirm and record a sentence with a random code in the browser (microphone or camera). The API customer cannot give consent on their behalf. Every profile is reviewed by Motion ToGo before it can be used; outputs carry a machine-readable AI marking, avatar films a visible AI label. Withdrawal via `DELETE` or the person’s own link deletes all files.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EigenCreate"}}}}}},"/voices/clones/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Voice clones"],"operationId":"getVoiceClone","summary":"Get a voice clone","x-phase":3,"x-scope":"voices:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceClone"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"tags":["Voice clones"],"operationId":"deleteVoiceClone","summary":"Withdraw a voice clone and delete all files","x-phase":3,"x-scope":"voices:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceClone"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/voices/clones/{id}/uploads":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Voice clones"],"operationId":"uploadVoiceCloneMaterial","summary":"Get a signed upload URL for training material (PUT, 15 minutes)","x-phase":3,"x-scope":"voices:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EigenUpload"}}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EigenUploadCreate"}}}}}},"/voices/clones/{id}/uploads/{file_id}/complete":{"parameters":[{"$ref":"#/components/parameters/Id"},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^upl_[A-Za-z0-9_-]{16}$"}}],"post":{"tags":["Voice clones"],"operationId":"completeVoiceCloneUpload","summary":"Check an uploaded file (type and size) and count its seconds","x-phase":3,"x-scope":"voices:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceClone"}}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EigenUploadComplete"}}}}}},"/voices/clones/{id}/submit":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Voice clones"],"operationId":"submitVoiceClone","summary":"Send for review (needs the person’s consent, voice check and enough material)","x-phase":3,"x-scope":"voices:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceClone"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/avatars":{"get":{"tags":["Avatars"],"operationId":"listAvatars","summary":"List avatars","x-phase":3,"x-scope":"avatars:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvatarList"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"post":{"tags":["Avatars"],"operationId":"createAvatar","summary":"Create a avatar and get the consent link","x-phase":3,"x-scope":"avatars:write","responses":{"201":{"description":"Created – `consent_url` is shown only once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Avatar"}}}},"422":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}},"description":"The person whose voice or face it is must open `consent_url` themselves, read the consent text, type their full name, confirm and record a sentence with a random code in the browser (microphone or camera). The API customer cannot give consent on their behalf. Every profile is reviewed by Motion ToGo before it can be used; outputs carry a machine-readable AI marking, avatar films a visible AI label. Withdrawal via `DELETE` or the person’s own link deletes all files.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EigenCreate"}}}}}},"/avatars/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Avatars"],"operationId":"getAvatar","summary":"Get a avatar","x-phase":3,"x-scope":"avatars:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Avatar"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"tags":["Avatars"],"operationId":"deleteAvatar","summary":"Withdraw a avatar and delete all files","x-phase":3,"x-scope":"avatars:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Avatar"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/avatars/{id}/uploads":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Avatars"],"operationId":"uploadAvatarMaterial","summary":"Get a signed upload URL for training material (PUT, 15 minutes)","x-phase":3,"x-scope":"avatars:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EigenUpload"}}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EigenUploadCreate"}}}}}},"/avatars/{id}/uploads/{file_id}/complete":{"parameters":[{"$ref":"#/components/parameters/Id"},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","pattern":"^upl_[A-Za-z0-9_-]{16}$"}}],"post":{"tags":["Avatars"],"operationId":"completeAvatarUpload","summary":"Check an uploaded file (type and size) and count its seconds","x-phase":3,"x-scope":"avatars:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Avatar"}}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EigenUploadComplete"}}}}}},"/avatars/{id}/submit":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Avatars"],"operationId":"submitAvatar","summary":"Send for review (needs the person’s consent, voice check and enough material)","x-phase":3,"x-scope":"avatars:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Avatar"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/documents":{"post":{"tags":["Documents"],"operationId":"createDocument","x-phase":2,"x-scope":"videos:write","summary":"Start a document upload (PowerPoint, PDF, Word) – returns a signed upload URL","description":"1. `POST /documents` with file name and size → `upload_url`.\n2. `PUT` the file to `upload_url` with `upload_headers`.\n3. `POST /documents/{id}/complete` – we check the file type, scan it for viruses and read it on our servers (no macros are run, the file goes to no third party).\n4. `POST /videos/from-document`.\nReading and previews are free. Max 50 MB, 30 documents per day.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreate"},"examples":{"pptx":{"summary":"PowerPoint","value":{"filename":"quarterly-update.pptx","size_bytes":2483120}}}}}},"responses":{"201":{"description":"Created – status `awaiting_upload`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"413":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}}}},"/documents/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Documents"],"operationId":"getDocument","x-phase":2,"x-scope":"videos:read","summary":"Document status and what we read (structure only)","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"tags":["Documents"],"operationId":"deleteDocument","x-phase":2,"x-scope":"videos:write","summary":"Delete the document with its images","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"document"},"deleted":{"const":true}}}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/documents/{id}/complete":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Documents"],"operationId":"completeDocument","x-phase":2,"x-scope":"videos:write","summary":"Finish the upload: type check, virus scan, read slides/pages","description":"Synchronous (usually 1–10 s). Errors are honest and cost nothing: `document_virus`, `document_makros`, `document_typ`, `document_kaputt`, `document_leer`, `document_verschluesselt`, `document_scan` (503, retry in a minute).","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"},"503":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}}}},"/videos/from-document":{"post":{"tags":["Videos","Documents"],"operationId":"createVideoFromDocument","x-phase":2,"x-scope":"videos:write","summary":"Create a video from a read document – slide by slide, re-animated in the Flow style","description":"Builds a checked preview at once (template `dokument-film`, status `draft`): title, one scene per chosen slide (statement, list, number, bars from charts/tables, image stage) and an ending. Speaker notes become the narration. Change texts afterwards with `PATCH /videos/{id}` (`fields.folien`). Billing like every video: per second of the finished film; red stays charged with one free rebuild, like every render.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoFromDocument"},"examples":{"notes":{"summary":"45 s with speaker notes","value":{"document_id":"dok_8fK2pQ9xLm3NvB7tR1aZ","target_duration_s":45,"formats":["16x9","9x16"],"brand":{"name":"Musterwerk","colors":{"primary":"#C26A2B"}}}}}}}},"responses":{"201":{"description":"Created – status `draft` (or `queued` with `render: true`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Video"}}}},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}}}},"/models":{"get":{"tags":["Speech"],"operationId":"listModels","summary":"Voice models with price per 1,000 characters","x-phase":3,"x-scope":"voices:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Model"}}}}]}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/voices/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Voices"],"operationId":"getVoice","summary":"Get a voice","x-phase":3,"x-scope":"voices:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Voice"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"patch":{"tags":["Voices"],"operationId":"updateVoice","summary":"Rename, tag, move to a folder or mark as favourite","x-phase":3,"x-scope":"voices:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Voice"}}}},"default":{"$ref":"#/components/responses/Problem"}},"description":"Library voices can only be marked as favourite.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceUpdate"}}}}},"delete":{"tags":["Voices"],"operationId":"deleteVoice","summary":"Delete one of your own voices","x-phase":3,"x-scope":"voices:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deleted"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/voices/design":{"post":{"tags":["Voices"],"operationId":"designVoice","summary":"Design a voice from a description (3 previews)","x-phase":3,"x-scope":"voices:write","responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceDesign"}}}},"default":{"$ref":"#/components/responses/Problem"}},"description":"Describe the voice without naming real people (“warm female voice, calm, mid-thirties”). Descriptions that name or imitate a real person are rejected. The three previews are short speech jobs and are charged like spoken characters (our own voice AI). Poll each preview with `GET /speech/{id}`, listen via `GET /speech/{id}/audio`, then save one with `POST /voices`. At most 50 designs per day.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceDesignCreate"}}}}}},"/speech/estimate":{"post":{"tags":["Speech"],"operationId":"estimateSpeech","summary":"Price before you start – free","x-phase":3,"x-scope":"speech:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechEstimate"}}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechEstimateCreate"}}}}}},"/speech":{"get":{"tags":["Speech"],"operationId":"listSpeech","summary":"List speech jobs, newest first","x-phase":3,"x-scope":"speech:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Speech"}}}}]}}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}]},"post":{"tags":["Speech"],"operationId":"createSpeech","summary":"Turn text into speech (async job)","x-phase":3,"x-scope":"speech:write","responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Speech"}}}},"402":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"},"429":{"$ref":"#/components/responses/Problem"},"default":{"$ref":"#/components/responses/Problem"}},"description":"Charged from your balance when the job starts (whole cents, rounded up; minimum 100 characters). If it fails on our side, the amount is released automatically. Texts are checked before anything is generated: fraud scripts, threats, intimate content, election deception and impersonation of officials or well-known people are rejected with `content_rejected` – nothing is charged. Every audio file carries an inaudible watermark and a metadata marker; removing them is not allowed. Speech with a cloned voice has `ai_label: required`: you must show a visible AI notice. Test mode: free, at most 300 characters, starts with a spoken test notice.","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechCreate"}}}}}},"/speech/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Speech"],"operationId":"getSpeech","summary":"Get a speech job","x-phase":3,"x-scope":"speech:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Speech"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/speech/{id}/audio":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Speech"],"operationId":"getSpeechAudio","summary":"Signed download link for the audio file (1 hour)","x-phase":3,"x-scope":"speech:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechAudio"}}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"format","in":"query","schema":{"type":"string","enum":["mp3","wav","ogg"],"default":"mp3"},"description":"MP3 192 kbit/s, WAV 48 kHz or OGG."}]}},"/speech/{id}/timestamps":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Speech"],"operationId":"getSpeechTimestamps","summary":"Word timings plus ready-made SRT and WebVTT subtitles","x-phase":3,"x-scope":"speech:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechTimestamps"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/pronunciations":{"get":{"tags":["Pronunciations"],"operationId":"listPronunciations","summary":"Your pronunciation dictionary","x-phase":3,"x-scope":"voices:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Pronunciation"}}}}]}}}},"default":{"$ref":"#/components/responses/Problem"}}},"put":{"tags":["Pronunciations"],"operationId":"replacePronunciations","summary":"Replace the whole pronunciation dictionary","x-phase":3,"x-scope":"speech:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Pronunciation"}}}}]}}}},"default":{"$ref":"#/components/responses/Problem"}},"description":"Applied to the text before speaking (whole words). You are always charged for the characters of your original text.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PronunciationsReplace"}}}}}},"/uploads":{"post":{"tags":["Uploads"],"operationId":"createUpload","x-scope":"videos:write","summary":"Start an image, logo or document upload – returns a signed upload URL","description":"1. `POST /uploads` with `kind`, file name and exact size → `upload_url` (signed, 15 min, into quarantine).\n2. `PUT` the file to `upload_url` with `upload_headers`.\n3. `POST /uploads/{id}/complete` – we check the file header and scan it for viruses; only a clean file leaves quarantine.\n4. Use the id `upl_…` in image/logo fields of a template (`fields`, stylefilm templates) or as `brand.logo` / `brand.logo_dark`.\nFree. Max 200 uploads per day.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCreate"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]},"get":{"tags":["Uploads"],"operationId":"listUploads","x-scope":"videos:read","summary":"List uploads (last 100)","responses":{"200":{"description":"OK"},"default":{"$ref":"#/components/responses/Problem"}}}},"/uploads/{id}":{"get":{"tags":["Uploads"],"operationId":"getUpload","x-scope":"videos:read","summary":"Get an upload","description":"Status only – never the content.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"tags":["Uploads"],"operationId":"deleteUpload","x-scope":"videos:write","summary":"Delete an upload and its file","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted"},"default":{"$ref":"#/components/responses/Problem"}}}},"/uploads/{id}/complete":{"post":{"tags":["Uploads"],"operationId":"completeUpload","x-scope":"videos:write","summary":"Complete an upload: header check + virus scan","description":"Idempotent. A virus finding deletes the file (`upload_virus`). If the scanner is unavailable you get 503 `upload_scan_unavailable` – the file stays in quarantine, try again.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/live/agents":{"get":{"tags":["Live"],"operationId":"listLiveAgents","summary":"List live call agents","x-phase":3,"x-scope":"live:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}}}}]}}}},"default":{"$ref":"#/components/responses/Problem"}}},"post":{"tags":["Live"],"operationId":"createLiveAgent","summary":"Create a live call agent (AI says it is an AI in the first sentence)","x-phase":3,"x-scope":"live:write","responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","description":"Live agent (status draft|active|paused, ai_disclosure first_sentence, pricing.per_minute_cents, setup_url)"}}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["name","industry"],"properties":{"name":{"type":"string"},"industry":{"type":"string","enum":["praxis","handwerk","hotel","shop","immobilien"]},"website":{"type":"string","format":"uri"},"knowledge":{"type":"string"},"voice_id":{"type":"string"},"greeting":{"type":"string"},"language":{"type":"string","enum":["de","en"]},"handoff_number":{"type":"string"},"monthly_cap_cents":{"type":"integer"},"privacy_url":{"type":"string","format":"uri","description":"Link to your privacy policy (https). Required before switching on – the assistant says it in its fixed first sentence together with the AI notice."}}}}}}}},"/live/agents/{id}":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Live"],"operationId":"getLiveAgent","summary":"Get a live call agent","x-phase":3,"x-scope":"live:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","description":"Live agent (status draft|active|paused, ai_disclosure first_sentence, pricing.per_minute_cents, setup_url)"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"patch":{"tags":["Live"],"operationId":"updateLiveAgent","summary":"Update, activate or pause a live call agent","x-phase":3,"x-scope":"live:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","description":"Live agent (status draft|active|paused, ai_disclosure first_sentence, pricing.per_minute_cents, setup_url)"}}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":[],"properties":{"name":{"type":"string"},"industry":{"type":"string","enum":["praxis","handwerk","hotel","shop","immobilien"]},"website":{"type":"string","format":"uri"},"knowledge":{"type":"string"},"voice_id":{"type":"string"},"greeting":{"type":"string"},"language":{"type":"string","enum":["de","en"]},"handoff_number":{"type":"string"},"monthly_cap_cents":{"type":"integer"},"active":{"type":"boolean"},"privacy_url":{"type":"string","format":"uri","description":"Link to your privacy policy (https). Required before switching on – the assistant says it in its fixed first sentence together with the AI notice."},"consumer_consent":{"type":"object","description":"Consumers only (private accounts): both statements required when switching on (terms § 16b). immediate_start = start before the withdrawal period ends; compensation = compensation for calls made until a withdrawal at the price list.","properties":{"immediate_start":{"type":"boolean"},"compensation":{"type":"boolean"}}}}}}}}}},"/live/agents/{id}/estimate":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Live"],"operationId":"estimateLiveAgent","summary":"Price per minute before you start – connecting, phone number and test call are free","x-phase":3,"x-scope":"live:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/live/agents/{id}/test":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Live"],"operationId":"testLiveAgent","summary":"Link to a free test call in the browser (sign-in required)","x-phase":3,"x-scope":"live:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/live/agents/{id}/calls":{"parameters":[{"$ref":"#/components/parameters/Id"}],"get":{"tags":["Live"],"operationId":"listLiveCalls","summary":"Calls with duration, cost, outcome, summary and transcript link","x-phase":3,"x-scope":"live:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}}}}]}}}},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"$ref":"#/components/parameters/Limit"}]}},"/live/agents/{id}/phone_number":{"parameters":[{"$ref":"#/components/parameters/Id"}],"post":{"tags":["Live"],"operationId":"assignLivePhoneNumber","summary":"Assign a number from a connected phone provider (credentials only via setup_url on the website)","x-phase":3,"x-scope":"live:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","description":"Live agent (status draft|active|paused, ai_disclosure first_sentence, pricing.per_minute_cents, setup_url)"}}}},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["connection_id","number"],"properties":{"connection_id":{"type":"string"},"number":{"type":"string"}}}}}}},"delete":{"tags":["Live"],"operationId":"removeLivePhoneNumber","summary":"Remove the phone number","x-phase":3,"x-scope":"live:write","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","description":"Live agent (status draft|active|paused, ai_disclosure first_sentence, pricing.per_minute_cents, setup_url)"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/live/connections":{"get":{"tags":["Live"],"operationId":"listLiveConnections","summary":"Connected phone/AI providers (read only, key hint only, setup_url)","x-phase":3,"x-scope":"live:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}}}}]}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/media/estimate":{"post":{"tags":["Media"],"operationId":"estimateMedia","summary":"Price before you start – free","x-scope":"videos:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaCreate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaEstimate"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/media":{"post":{"tags":["Media"],"operationId":"createMedia","summary":"Create an AI image, clip or print photo (costs tokens; needs confirm_tokens)","x-scope":"videos:write","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaCreate"}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"get":{"tags":["Media"],"operationId":"listMedia","summary":"List AI media","x-scope":"videos:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Media"}}}}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/media/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"tags":["Media"],"operationId":"getMedia","summary":"Status, download links, C2PA and rights","x-scope":"videos:read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"default":{"$ref":"#/components/responses/Problem"}}}}},"webhooks":{"event":{"post":{"operationId":"receiveEvent","summary":"Every event is POSTed to your endpoint in this envelope","description":"**Signature (Standard Webhooks):** headers `webhook-id` (= event id, use it to deduplicate),\n`webhook-timestamp` (unix seconds) and `webhook-signature: v1,<base64 HMAC-SHA256(secret, \"{id}.{timestamp}.{raw body}\")>`.\nDuring a secret rotation the header carries two space-separated signatures. Reject timestamps older than 5 minutes.\nCompare in constant time (any Standard Webhooks library can verify it).\n\n**Delivery:** answer 2xx within 10 s. Otherwise we retry 8 times over about 24 h (1 min, 5 min, 15 min, 1 h, 2 h,\n4 h, 8 h, 8 h). After that the delivery is `failed`; it stays in the delivery log (`GET /webhooks/{id}/deliveries`)\nand you can send it again with `POST /webhooks/{id}/deliveries/{delivery_id}/retry`.\nOrder is not guaranteed – use `data.object.status` and `created`, not arrival order.\n","parameters":[{"name":"webhook-id","in":"header","required":true,"schema":{"type":"string"},"example":"evt_5pN2kLm8Qw"},{"name":"webhook-timestamp","in":"header","required":true,"schema":{"type":"integer"},"example":1795305600},{"name":"webhook-signature","in":"header","required":true,"schema":{"type":"string"},"example":"v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4="}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"2XX":{"description":"Received. The body is ignored."}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"`fm_test_…` or `fm_live_…` followed by 32 random Base62 characters. Keys carry scopes and an optional monthly spend limit. Treat a key like a password; revoke it in the dashboard if it leaks."}},"parameters":{"Id":{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z]{2,4}_[0-9A-Za-z]{8,32}$|^[a-z0-9-]{3,64}$"},"example":"vid_7Hq2LmN0pQrS3tUv4WxY"},"Limit":{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},"Cursor":{"name":"cursor","in":"query","description":"`next_cursor` of the previous page","schema":{"type":"string"}},"Wait":{"name":"wait","in":"query","description":"Long-poll – hold the request up to this many seconds until the status changes","schema":{"type":"integer","minimum":0,"maximum":30,"default":0}},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"POST and PATCH only. Any unique string up to 200 characters (a UUID or your own order id). The first answer is stored for 24 h and replayed with the header `Idempotent-Replayed: true`. Same key with a different body → `409 idempotency_key_reused`. Same key while the first request is still running → `409 idempotency_in_progress`.","schema":{"type":"string","minLength":1,"maxLength":200},"example":"release-4-2-0"}},"headers":{"Request-Id":{"description":"Quote this id when you contact support; it is searchable in the dashboard log.","schema":{"type":"string"},"example":"req_9fK2mQ1xZp7LmN0pQrS3"},"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current window"},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Seconds until the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait (429 and 503)"}},"responses":{"Problem":{"description":"Error (RFC 9457)","headers":{"Request-Id":{"$ref":"#/components/headers/Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"validation":{"summary":"422 – a field is too long","value":{"type":"https://flow-marketing.org/entwickler/doku/fehler#validation_failed","title":"Validation failed","status":422,"code":"validation_failed","detail":"1 field is invalid. Fix it and send the request again – nothing was created or charged.","request_id":"req_9fK2mQ1xZp7LmN0pQrS3","doc_url":"https://flow-marketing.org/entwickler/doku/fehler#validation_failed","errors":[{"path":"/fields/neu/2","code":"too_long","message":"At most 6 words (you sent 9). Shorten it, or use `brief` and let the AI shorten it.","limit":6,"actual":9}]}}}}}},"Deleted":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"const":true}}}}}},"TemplateList":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}}}]}}}},"VideoList":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Video"}}}}]}}}},"RenderList":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Render"}}}}]}}}},"BrandList":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Brand"}}}}]}}}},"ProjectList":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}}}}]}}}},"AssetList":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}}}}]}}}},"WebhookList":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}}}]}}}},"DeliveryList":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Delivery"}}}}]}}}},"EventList":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}}}]}}}},"UsageList":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/List"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UsageRow"}}}}]}}}}},"schemas":{"List":{"type":"object","required":["object","data","has_more"],"properties":{"object":{"const":"list"},"data":{"type":"array","items":{}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}}},"Problem":{"type":"object","required":["type","title","status","code","detail","request_id"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"anyOf":[{"$ref":"#/components/schemas/ErrorCode"},{"type":"string","pattern":"^[a-z_]+$"}],"description":"Stable machine-readable code – one of `ErrorCode` or a further documented code."},"detail":{"type":"string","description":"One or two plain sentences: what happened, was anything charged, what to do next"},"request_id":{"type":"string"},"doc_url":{"type":"string","format":"uri"},"errors":{"type":"array","items":{"type":"object","required":["path","code","message"],"properties":{"path":{"type":"string","description":"JSON pointer into the request body","examples":["/fields/neu/2"]},"code":{"type":"string","examples":["required","too_long","too_short","wrong_type","unknown_field","not_allowed","source_required"]},"message":{"type":"string"},"limit":{"type":"number"},"actual":{"type":"number"}}}},"missing_cents":{"type":"integer"},"top_up_url":{"type":"string","format":"uri","description":"Reserved – not sent today. Top up in the dashboard (/konto/api)."},"retry_after_s":{"type":"integer"}},"additionalProperties":true},"ErrorCode":{"type":"string","description":"Stable, never renamed. Core codes; codes in `x-reserved` are not sent today. The server also sends further codes (for example from top-up, keys and MCP) – full list with meaning and fix: https://flow-marketing.org/hilfe/api-fehlercodes. Handle unknown codes by HTTP status.","enum":["invalid_json","invalid_parameter","test_scenario_in_live_mode","unsupported_version","missing_api_key","invalid_api_key","api_key_revoked","api_key_expired","api_key_exposed","missing_scope","ip_not_allowed","account_locked","api_not_enabled","insufficient_balance","spending_limit_reached","price_above_max","payment_method_required","not_found","method_not_allowed","idempotency_key_reused","idempotency_in_progress","video_busy","not_renderable","nothing_to_cancel","no_correction_left","files_expired","payload_too_large","unsupported_media_type","validation_failed","pre_render_check_red","content_rejected","foreign_brand","consent_required","asset_rejected","website_unreachable","webhook_url_not_allowed","rate_limited","concurrency_limit","daily_test_limit","daily_preview_limit","daily_ai_limit","fill_failed","ai_unavailable","voice_unavailable","render_failed","render_timeout","internal_error","maintenance","no_free_rebuild","stylefilm_render_unavailable","insufficient_credits","upload_type","upload_size","upload_missing","upload_state","upload_virus","upload_scan_unavailable","daily_upload_limit","upload_busy","upload_concurrency","upload_image_too_large","upload_image_invalid","image_not_allowed","image_check_unavailable","upload_image_check_unavailable"],"x-reserved":["test_scenario_in_live_mode","unsupported_version","api_key_expired","api_key_exposed","api_key_revoked","missing_api_key","api_not_enabled","ip_not_allowed","payment_method_required","concurrency_limit","asset_rejected","foreign_brand","voice_unavailable","website_unreachable","render_timeout","files_expired"]},"Mode":{"type":"string","enum":["live","test"]},"Kind":{"type":"string","enum":["video","image"]},"Format":{"type":"string","enum":["16x9","9x16","1x1","4x5"]},"Language":{"type":"string","enum":["de","en"],"default":"de"},"Metadata":{"type":"object","description":"Up to 20 of your own key-value pairs. Returned everywhere, filterable, never read by our AI.","maxProperties":20,"additionalProperties":{"type":"string","maxLength":500}},"Template":{"type":"object","required":["id","object","kind","name","fields_schema","styles"],"properties":{"id":{"type":"string","examples":["release-notes"]},"object":{"const":"template"},"kind":{"type":"string","enum":["video","stylefilm"],"description":"`video` = Turbo template (length from the fields), `stylefilm` = a real Motion ToGo style film with fixed length (texts, colours and logo are swapped, timing stays)."},"version":{"type":"string","description":"Videos keep the template version they were created with","examples":["3"]},"name":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"styles":{"type":"array","items":{"type":"string"},"examples":[["s08","s13","s01"]]},"default_style":{"type":"string"},"formats":{"type":"array","items":{"$ref":"#/components/schemas/Format"}},"duration_range_s":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"examples":[[15,45]]},"fields_schema":{"type":"object","description":"JSON Schema (2020-12) of `fields`: type, required, word limits (`x-max-words`), example per field. Validate client-side with any JSON Schema library.","additionalProperties":true},"example":{"type":"object","description":"A complete valid `fields` object","additionalProperties":true},"example_preview_url":{"type":"string","format":"uri"},"scope":{"type":"string","enum":["public","private"],"description":"`private` = built for your account"},"status":{"type":"string","enum":["beta","ready"],"description":"Stylefilm templates only: `ready` from ≥ 50 test videos with ≥ 90 % green, otherwise `beta` (listed and bookable)."},"duration_s":{"type":"number","description":"Stylefilm templates only: fixed length in seconds – billed per started second of this length."},"light":{"type":"string","enum":["light","dark"]},"voice":{"type":"boolean","description":"Stylefilm templates: true if the film has a voice-over."},"use_case":{"type":["string","null"],"description":"Stylefilm templates: one sentence on when to use this style (for AI apps and planners). null for other templates."}}},"Voice":{"type":"object","required":["id","object","name","languages"],"properties":{"id":{"type":"string","examples":["klar-w","haus_premium-klar-w","haus_eu-de-warm-w"]},"object":{"const":"voice"},"name":{"type":"string"},"languages":{"type":"array","items":{"$ref":"#/components/schemas/Language"}},"gender":{"type":"string","enum":["female","male","neutral"]},"sample_url":{"type":"string","format":"uri"},"default":{"type":"boolean"},"usage":{"type":"string","enum":["speech"],"description":"Present on voices usable with `POST /speech`. Absent on template voices for videos."},"type":{"type":"string","enum":["library","designed","cloned"]},"owned":{"type":"boolean","description":"true for your own voices."},"engine":{"type":"string","enum":["eu","premium"],"description":"`eu` = our own voice AI (computed in the EU), `premium` = Premium voices. Older engine values are still accepted as a filter."},"model":{"type":"string","description":"Default model of this voice."},"tone":{"type":["string","null"]},"tags":{"type":"array","items":{"type":"string"}},"folder":{"type":["string","null"]},"favorite":{"type":"boolean"},"description":{"type":["string","null"],"description":"Your description of a designed voice."},"preview_url":{"type":["string","null"],"format":"uri","description":"Signed link to a sample (1 hour)."},"usable":{"type":"boolean"},"ai_label":{"type":"string","enum":["recommended","required"],"description":"`required` for cloned voices: show a visible AI notice. Cannot be switched off."},"created_at":{"type":"string","format":"date-time"}}},"BrandColors":{"type":"object","additionalProperties":false,"properties":{"primary":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accent":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"background":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"text":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}}},"BrandInline":{"type":"object","description":"Inline brand for one video. For reuse create a brand kit and pass `brand_id`.","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":120},"website":{"type":"string","examples":["example.com"],"description":"Read logo, colours and font from this page (cached 7 days)"},"colors":{"$ref":"#/components/schemas/BrandColors"},"logo_asset_id":{"type":"string"},"url_text":{"type":"string","maxLength":60,"description":"Address shown on the end card","examples":["kontoro.de"]},"logo":{"type":["string","null"],"pattern":"^upl_[0-9A-Za-z]{20}$","description":"Logo for light backgrounds: id of a checked upload (kind logo or image)."},"logo_dark":{"type":["string","null"],"pattern":"^upl_[0-9A-Za-z]{20}$","description":"Logo for dark backgrounds: id of a checked upload."}}},"BrandCreate":{"allOf":[{"$ref":"#/components/schemas/BrandInline"},{"type":"object","properties":{"project_id":{"type":"string"},"logo_dark_asset_id":{"type":"string"},"font":{"type":"string","enum":["geist","brand"],"default":"geist","description":"`brand` uses an uploaded font file (licence confirmed by you)"},"font_asset_id":{"type":"string"},"pronunciation":{"type":"object","additionalProperties":{"type":"string"},"description":"How the voice says names, e.g. { \"Kontoro\": \"Kon-TO-ro\" }"},"tone":{"type":"string","enum":["neutral","friendly","bold","formal"],"default":"neutral"},"metadata":{"$ref":"#/components/schemas/Metadata"}}}]},"BrandUpdate":{"$ref":"#/components/schemas/BrandCreate"},"Brand":{"type":"object","required":["id","object","status","name"],"properties":{"id":{"type":"string","examples":["brd_3kT9xQ2mLp"]},"object":{"const":"brand"},"status":{"type":"string","enum":["reading","ready","failed"]},"name":{"type":"string"},"website":{"type":["string","null"]},"colors":{"$ref":"#/components/schemas/BrandColors"},"contrast_fixed":{"type":"boolean","description":"true when we adjusted a colour to reach WCAG 4.5:1"},"logo_url":{"type":["string","null"],"format":"uri"},"font":{"type":"string"},"pronunciation":{"type":"object","additionalProperties":{"type":"string"}},"tone":{"type":"string"},"source":{"type":"string","enum":["website","manual"]},"project_id":{"type":["string","null"]},"metadata":{"$ref":"#/components/schemas/Metadata"},"created_at":{"type":"string","format":"date-time"}}},"ProjectCreate":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":120},"default_brand_id":{"type":"string"},"end_user":{"type":"string","maxLength":120,"description":"Your stable id of the end customer (not a name or e-mail). Used for abuse tracing and usage per customer."},"monthly_limit_cents":{"type":["integer","null"],"minimum":0,"description":"Optional spend limit for this project"},"file_retention_days":{"type":["integer","null"],"minimum":1,"maximum":3650,"description":"Delete files automatically after this many days; null = keep"},"metadata":{"$ref":"#/components/schemas/Metadata"}}},"Project":{"allOf":[{"$ref":"#/components/schemas/ProjectCreate"},{"type":"object","required":["id","object"],"properties":{"id":{"type":"string","examples":["prj_6mW1pZ8vRt"]},"object":{"const":"project"},"created_at":{"type":"string","format":"date-time"}}}]},"AssetCreate":{"type":"object","additionalProperties":false,"properties":{"filename":{"type":"string","maxLength":200},"content_type":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/svg+xml","video/mp4","video/quicktime","font/woff2"]},"size_bytes":{"type":"integer","minimum":1,"maximum":524288000},"source_url":{"type":"string","format":"uri","pattern":"^https://"},"project_id":{"type":"string"},"rights_confirmed":{"type":"boolean","description":"Required true: you hold the rights to this file"},"metadata":{"$ref":"#/components/schemas/Metadata"}}},"Asset":{"type":"object","required":["id","object","status"],"properties":{"id":{"type":"string","examples":["ast_2nB7cK4dHs"]},"object":{"const":"asset"},"status":{"type":"string","enum":["awaiting_upload","checking","ready","rejected"]},"upload_url":{"type":["string","null"],"format":"uri","description":"PUT the bytes here within 15 minutes"},"content_type":{"type":"string"},"size_bytes":{"type":"integer"},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]},"duration_s":{"type":["number","null"]},"rejected_reason":{"type":["string","null"],"enum":["wrong_type","too_large","virus","content","unreadable",null]},"project_id":{"type":["string","null"]},"metadata":{"$ref":"#/components/schemas/Metadata"},"created_at":{"type":"string","format":"date-time"}}},"VideoStatus":{"type":"string","description":"`filling` (AI fills fields) → `draft` (preview ready, free) → `queued` → `rendering` → `checking` → `ready` | `failed`. Also `canceled`.","enum":["filling","draft","queued","rendering","checking","ready","failed","canceled"]},"VideoCreate":{"type":"object","additionalProperties":false,"required":["template"],"properties":{"template":{"type":"string","examples":["release-notes"]},"fields":{"type":"object","additionalProperties":true,"description":"Per the template's `fields_schema`. Exactly one of `fields` or `brief`."},"brief":{"type":"string","minLength":1,"maxLength":2000,"description":"Free text; our AI fills the fields. Treated as data, never as instructions."},"language":{"$ref":"#/components/schemas/Language"},"style":{"type":"string","examples":["s08"]},"formats":{"type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"#/components/schemas/Format"},"default":["16x9","9x16"]},"voice":{"type":["string","null"],"default":"klar-w","description":"`null` = no voice-over (music, sound and on-screen text only)"},"captions":{"type":"array","items":{"$ref":"#/components/schemas/Language"},"default":["de","en"]},"brand_id":{"type":"string","description":"Exactly one of `brand_id` or `brand` (or neither: neutral look)"},"brand":{"$ref":"#/components/schemas/BrandInline"},"project_id":{"type":"string"},"narration":{"type":"object","additionalProperties":{"type":"string","maxLength":300},"description":"Spoken sentence per scene key (optional override)"},"assets":{"type":"object","additionalProperties":{"type":"string"},"description":"Asset id per media field, e.g. { \"bild\": \"ast_…\" }"},"ai_disclosure":{"type":"string","enum":["auto","visible","metadata_only"],"default":"auto","description":"`auto` = visible label only where the law requires it; machine-readable marking (C2PA) is always on"},"end_user":{"type":"string","maxLength":120},"metadata":{"$ref":"#/components/schemas/Metadata"},"render":{"type":"boolean","default":false,"description":"Start the export render right away"},"max_price_cents":{"type":"integer","minimum":0,"description":"Guard: do not render if the estimate is higher (→ 402 price_above_max)"},"webhook_url":{"type":"string","format":"uri","pattern":"^https://","description":"One-off endpoint for this video only (signed with the account's default secret)"}}},"VideoUpdate":{"type":"object","additionalProperties":false,"properties":{"fields":{"type":"object","additionalProperties":true,"description":"Merged into the current fields (JSON Merge Patch): null removes an optional field"},"language":{"$ref":"#/components/schemas/Language"},"style":{"type":"string"},"formats":{"type":"array","items":{"$ref":"#/components/schemas/Format"}},"voice":{"type":["string","null"]},"captions":{"type":"array","items":{"$ref":"#/components/schemas/Language"}},"brand_id":{"type":"string"},"brand":{"$ref":"#/components/schemas/BrandInline"},"narration":{"type":"object","additionalProperties":{"type":"string","maxLength":300}},"assets":{"type":"object","additionalProperties":{"type":"string"}},"metadata":{"$ref":"#/components/schemas/Metadata"},"render":{"type":"boolean"},"max_price_cents":{"type":"integer","minimum":0}}},"Check":{"type":"object","required":["id","status"],"properties":{"id":{"type":"string","description":"English ids (the internal German ids stay internal)","enum":["reading_time","font_size","contrast","safe_zone","overlap","duration","sound_events","text_follows_voice","ad_law","loudness","true_peak","audio_sync","captions","licenses","ai_marking"]},"status":{"type":"string","enum":["green","yellow","red"]},"format":{"$ref":"#/components/schemas/Format"},"scene":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"unit":{"type":"string","examples":["words_per_s","px","ratio","lufs","ms"]},"message":{"type":"string"},"fix_hint":{"type":"string","description":"What to change, e.g. \"Shorten fields.neu[2] to 6 words\""}}},"Quality":{"type":"object","required":["overall","checks"],"properties":{"overall":{"type":"string","enum":["green","yellow","red"]},"checks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}}}},"Report":{"type":"object","required":["object","video_id","pre_render"],"properties":{"object":{"const":"report"},"video_id":{"type":"string"},"video_revision":{"type":"integer"},"pre_render":{"$ref":"#/components/schemas/Quality"},"rendered":{"description":"Measured on the rendered files (loudness, true peak, audio sync, layout, captions, licences, AI marking). null before the first render.","oneOf":[{"$ref":"#/components/schemas/Quality"},{"type":"null"}]},"licenses":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string"},"source":{"type":"string"},"license":{"type":"string"}}}},"ai_marking":{"type":"object","properties":{"c2pa":{"type":"boolean"},"visible_label":{"type":"boolean"},"reason":{"type":"string"}}},"pdf_url":{"type":["string","null"],"format":"uri"}}},"Estimate":{"type":"object","required":["price_cents","currency","billable_seconds","unit_price_eur_per_second"],"properties":{"object":{"const":"estimate"},"price_cents":{"type":"integer","description":"Net price of this render. 0 in test mode."},"price_gross_cents":{"type":["integer","null"],"description":"Final price incl. 19% VAT for consumers (private accounts pay this). Businesses are billed net (`price_cents`) plus VAT where due."},"currency":{"const":"eur"},"billable_seconds":{"type":"integer","description":"Started seconds of the master, minimum 10","examples":[31]},"duration_s":{"type":"number","examples":[30.4]},"unit_price_eur_per_second":{"type":"string","description":"Decimal string – your plan's rate"},"plan":{"type":"string","enum":["pay_as_you_go","build","scale","volume","enterprise"]},"binding":{"type":"boolean","description":"true when calculated from your own fields with the same calculation the render uses when it starts: the render costs this as long as the price list does not change. The estimate is not stored and is no upper limit – for a firm cap send `max_price_cents` with the render (refused with nothing charged if the price is higher)."},"lines":{"type":"array","items":{"type":"object","properties":{"item":{"type":"string","enum":["video_seconds","image","extra_language","extra_correction"]},"quantity":{"type":"number"},"amount_cents":{"type":"integer"}}}},"ready_in_s":{"type":"array","items":{"type":"integer"},"minItems":2,"maxItems":2,"description":"Expected time to finish [typical, slow]","examples":[[70,180]]}}},"Video":{"type":"object","required":["id","object","mode","status","template","quality","estimate"],"properties":{"id":{"type":"string","examples":["vid_7Hq2LmN0pQrS3tUv4WxY"]},"object":{"const":"video"},"mode":{"$ref":"#/components/schemas/Mode"},"status":{"$ref":"#/components/schemas/VideoStatus"},"revision":{"type":"integer","description":"Counts up with every PATCH"},"template":{"type":"string"},"template_version":{"type":"string"},"style":{"type":"string"},"language":{"$ref":"#/components/schemas/Language"},"formats":{"type":"array","items":{"$ref":"#/components/schemas/Format"}},"voice":{"type":["string","null"]},"duration_s":{"type":"number"},"fields":{"type":"object","additionalProperties":true},"filled_by":{"type":"string","enum":["you","ai"],"description":"`ai` when created from a brief – read `fields` to see what the AI wrote"},"narration":{"type":"object","additionalProperties":{"type":"string"}},"brand_id":{"type":["string","null"]},"project_id":{"type":["string","null"]},"end_user":{"type":["string","null"]},"metadata":{"$ref":"#/components/schemas/Metadata"},"preview_url":{"type":["string","null"],"format":"uri","description":"Signed preview player (7 days, watermark, free). null while `filling`."},"quality":{"$ref":"#/components/schemas/Quality"},"estimate":{"$ref":"#/components/schemas/Estimate"},"latest_render":{"oneOf":[{"$ref":"#/components/schemas/Render"},{"type":"null"}]},"corrections_left":{"type":["integer","null"]},"free_rebuild_available":{"type":"boolean","description":"True once a paid render stayed red in our checks: render again with `free_rebuild: true` at no extra charge (once per paid round)."},"error":{"oneOf":[{"$ref":"#/components/schemas/VideoError"},{"type":"null"}]},"links":{"type":"object","description":"Absolute URLs of this video in the API.","properties":{"self":{"type":"string","format":"uri","examples":["https://flow-marketing.org/api/turbo/v1/videos/vid_7Hq2LmN0pQrS3tUv4WxY"]},"plan":{"type":"string","format":"uri","examples":["https://flow-marketing.org/api/turbo/v1/videos/vid_7Hq2LmN0pQrS3tUv4WxY/plan"]},"report":{"type":"string","format":"uri","examples":["https://flow-marketing.org/api/turbo/v1/videos/vid_7Hq2LmN0pQrS3tUv4WxY/report"]},"render":{"type":"string","format":"uri","examples":["https://flow-marketing.org/api/turbo/v1/videos/vid_7Hq2LmN0pQrS3tUv4WxY/render"]}}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ImageCreate":{"type":"object","additionalProperties":false,"required":["template"],"properties":{"template":{"type":"string","examples":["thumbnail-zahl"]},"fields":{"type":"object","additionalProperties":true},"brief":{"type":"string","maxLength":2000},"from_video_id":{"type":"string","description":"Build the thumbnail from a video's fields and brand"},"formats":{"type":"array","items":{"$ref":"#/components/schemas/Format"},"default":["16x9"]},"file_type":{"type":"string","enum":["png","jpg","webp"],"default":"png"},"brand_id":{"type":"string"},"brand":{"$ref":"#/components/schemas/BrandInline"},"project_id":{"type":"string"},"metadata":{"$ref":"#/components/schemas/Metadata"},"max_price_cents":{"type":"integer","minimum":0}}},"Image":{"type":"object","required":["id","object","mode","status"],"properties":{"id":{"type":"string","examples":["img_4cV8nM2kJh"]},"object":{"const":"image"},"mode":{"$ref":"#/components/schemas/Mode"},"status":{"type":"string","enum":["filling","rendering","ready","failed"]},"template":{"type":"string"},"fields":{"type":"object","additionalProperties":true},"quality":{"$ref":"#/components/schemas/Quality"},"files":{"type":["object","null"],"additionalProperties":{"$ref":"#/components/schemas/File"}},"charge":{"oneOf":[{"$ref":"#/components/schemas/Charge"},{"type":"null"}]},"metadata":{"$ref":"#/components/schemas/Metadata"},"created_at":{"type":"string","format":"date-time"}}},"RenderStatus":{"type":"string","enum":["queued","rendering","checking","succeeded","failed","canceled"]},"RenderCreate":{"type":"object","additionalProperties":false,"properties":{"formats":{"type":"array","items":{"$ref":"#/components/schemas/Format"},"description":"Default = the video's formats"},"max_price_cents":{"type":"integer","minimum":0},"priority":{"type":"string","enum":["normal","low"],"default":"normal","description":"`low` = batch queue, finished within 12 h"},"free_rebuild":{"type":"boolean","description":"Free rebuild after a red result: if a paid render stayed red in our checks, the video shows `free_rebuild_available: true`. Call render once with `free_rebuild: true` – no new charge, no reservation. If the free rebuild stays red too, the amount of the paid round is credited back to your balance (consumers can request a refund to their payment method instead)."}}},"File":{"type":"object","required":["url","expires_at"],"properties":{"url":{"type":"string","format":"uri","description":"Signed link, valid 24 h. Fetch the object again for a fresh link."},"expires_at":{"type":"string","format":"date-time"},"content_type":{"type":"string","examples":["video/mp4"]},"size_bytes":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"},"sha256":{"type":"string"}}},"Charge":{"type":"object","required":["amount_cents","currency","billable_seconds"],"properties":{"amount_cents":{"type":"integer"},"currency":{"const":"eur"},"billable_seconds":{"type":"integer"},"unit_price_eur_per_second":{"type":"string"},"source":{"type":"string","enum":["plan_allowance","balance","invoice"],"description":"Where the charge was taken from"},"ledger_entry_id":{"type":"string"}}},"RenderError":{"type":"object","required":["code","message","charged"],"properties":{"code":{"anyOf":[{"$ref":"#/components/schemas/ErrorCode"},{"type":"string","pattern":"^[a-z_]+$"}]},"message":{"type":"string"},"charged":{"type":"boolean","description":"true if this render was charged: red after our repairs (one free rebuild follows) or canceled after it had started. A credit after a red free rebuild is a separate balance entry; this render keeps `charged: true`."},"retryable":{"type":"boolean"},"failed_checks":{"type":"array","items":{"$ref":"#/components/schemas/Check"}}}},"Render":{"type":"object","required":["id","object","mode","status","video_id"],"properties":{"id":{"type":"string","examples":["rnd_9xL3qP6tYb"]},"object":{"const":"render"},"mode":{"$ref":"#/components/schemas/Mode"},"status":{"$ref":"#/components/schemas/RenderStatus"},"video_id":{"type":["string","null"]},"image_id":{"type":["string","null"]},"batch_id":{"type":["string","null"]},"video_revision":{"type":"integer"},"progress":{"type":"number","minimum":0,"maximum":1},"is_correction":{"type":"boolean"},"formats":{"type":"array","items":{"$ref":"#/components/schemas/Format"}},"duration_s":{"type":["number","null"]},"files":{"type":["object","null"],"description":"Keys: `master_16x9`, `master_9x16`, `master_1x1`, `captions_de`, `captions_en`, `thumbnail`, `report_pdf`. Test mode: 720p with watermark.","additionalProperties":{"$ref":"#/components/schemas/File"}},"quality":{"oneOf":[{"$ref":"#/components/schemas/Quality"},{"type":"null"}]},"reserved_cents":{"type":"integer"},"charge":{"oneOf":[{"$ref":"#/components/schemas/Charge"},{"type":"null"}]},"error":{"oneOf":[{"$ref":"#/components/schemas/RenderError"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":["string","null"],"format":"date-time"},"finished_at":{"type":["string","null"],"format":"date-time"},"is_free_rebuild":{"type":"boolean","description":"true for the free rebuild after a red result (nothing reserved or charged)"}}},"BatchCreate":{"type":"object","additionalProperties":false,"required":["template","rows"],"properties":{"template":{"type":"string"},"defaults":{"$ref":"#/components/schemas/VideoCreate"},"rows":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"object","properties":{"fields":{"type":"object","additionalProperties":true},"brief":{"type":"string","maxLength":2000},"metadata":{"$ref":"#/components/schemas/Metadata"}}}},"max_total_cents":{"type":"integer","minimum":0,"description":"Guard for the whole batch"},"on_invalid_row":{"type":"string","enum":["skip","fail_batch"],"default":"skip"}}},"Batch":{"type":"object","required":["id","object","status","counts"],"properties":{"id":{"type":"string","examples":["bat_1qA2wS3eDr"]},"object":{"const":"batch"},"status":{"type":"string","enum":["validating","queued","running","completed","canceled"]},"counts":{"type":"object","properties":{"total":{"type":"integer"},"succeeded":{"type":"integer"},"failed":{"type":"integer"},"invalid":{"type":"integer"},"pending":{"type":"integer"}}},"invalid_rows":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"errors":{"type":"array","items":{"type":"object"}}}}},"estimate":{"$ref":"#/components/schemas/Estimate"},"charged_cents":{"type":"integer"},"created_at":{"type":"string","format":"date-time"}}},"EventType":{"type":"string","enum":["video.draft_ready","video.fill_failed","video.rendering","video.ready","video.failed","video.canceled","image.ready","image.failed","brand.ready","brand.failed","asset.ready","asset.rejected","batch.completed","balance.low","balance.topped_up","spending_limit.warning","spending_limit.reached","api_key.exposed","speech.completed","speech.failed","test.ping"],"description":"You can subscribe to all of these. Sent today: video.draft_ready, video.rendering, video.ready, video.failed, video.canceled, balance.low, spending_limit.warning, spending_limit.reached, speech.completed, speech.failed, test.ping. The others are reserved and not sent yet."},"WebhookCreate":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://","description":"Public https only. Private and link-local addresses are refused (checked again at every delivery)."},"events":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/EventType"},{"const":"*"}]},"default":["*"]},"description":{"type":"string","maxLength":200},"project_id":{"type":"string","description":"Only events of this project"}}},"WebhookUpdate":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"events":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"description":{"type":"string","maxLength":200}}},"Webhook":{"type":"object","required":["id","object","url","events","enabled","mode"],"properties":{"id":{"type":"string","examples":["wh_7dF3gH9jKl"]},"object":{"const":"webhook"},"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"paused_reason":{"type":["string","null"],"enum":["failing_3_days","manual",null]},"mode":{"$ref":"#/components/schemas/Mode"},"description":{"type":"string"},"success_rate_24h":{"type":["number","null"]},"created_at":{"type":"string","format":"date-time"}}},"Delivery":{"type":"object","required":["id","object","event_id","status","attempts"],"properties":{"id":{"type":"string","examples":["whd_8sK2mQ1xZp"]},"object":{"const":"delivery"},"event_id":{"type":"string"},"event_type":{"$ref":"#/components/schemas/EventType"},"status":{"type":"string","enum":["pending","delivered","failed"]},"attempts":{"type":"integer"},"last_status_code":{"type":["integer","null"]},"last_response_excerpt":{"type":["string","null"],"maxLength":500},"last_duration_ms":{"type":["integer","null"]},"next_attempt_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"}}},"Event":{"type":"object","required":["id","object","type","mode","created","data"],"properties":{"id":{"type":"string","examples":["evt_5pN2kLm8Qw"]},"object":{"const":"event"},"type":{"$ref":"#/components/schemas/EventType"},"mode":{"$ref":"#/components/schemas/Mode"},"api_version":{"type":"string","format":"date"},"created":{"type":"integer","description":"Unix seconds"},"request_id":{"type":["string","null"],"description":"The API request that caused the event, if any"},"data":{"type":"object","required":["object"],"properties":{"object":{"description":"The full object at the time of the event (Video, Render, Image, Brand, Asset, Batch or Balance)","type":"object","additionalProperties":true}}}}},"Balance":{"type":"object","required":["object","available_cents","reserved_cents"],"properties":{"object":{"const":"balance"},"available_cents":{"type":"integer","description":"Prepaid balance that can be spent now"},"reserved_cents":{"type":"integer","description":"Held for running renders"},"plan":{"type":"string","enum":["pay_as_you_go","build","scale","volume","enterprise"]},"unit_price_eur_per_second":{"type":"string"},"allowance_cents":{"type":"integer","description":"Monthly plan allowance left (used before the balance)"},"allowance_resets_at":{"type":["string","null"],"format":"date-time"},"month_spent_cents":{"type":"integer"},"monthly_limit_cents":{"type":"integer"},"auto_top_up":{"type":["object","null"],"properties":{"below_cents":{"type":"integer"},"amount_cents":{"type":"integer"}}},"top_up_amounts_cents":{"type":"array","items":{"type":"integer"}}}},"UsageRow":{"type":"object","properties":{"day":{"type":"string","format":"date"},"group":{"type":"string","description":"Template id, project id, key prefix or kind – per `group_by`"},"mode":{"$ref":"#/components/schemas/Mode"},"renders":{"type":"integer"},"billable_seconds":{"type":"integer"},"images":{"type":"integer"},"charged_cents":{"type":"integer","description":"Charged on this day for this group, net of credits after a red free rebuild (`credited_cents`). Never below 0 per render."},"free_failed":{"type":"integer","description":"Red renders of the day that were not charged (free rebuilds, test mode)."},"speech_jobs":{"type":"integer","description":"Completed speech jobs (rows with group `speech:<model>`)."},"characters":{"type":"integer"},"audio_seconds":{"type":"integer"},"credited_cents":{"type":"integer","description":"Credited back for red rounds whose free rebuild stayed red too (counted on the day of the paid round). Consumers may have had it refunded to their payment method instead."},"charged_failed":{"type":"integer","description":"Red renders of the day that stayed charged (red rule: one free rebuild follows)."}}},"VoiceClone":{"type":"object","required":["id","object","status","consent","usable"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"person_name":{"type":"string"},"language":{"type":"string","enum":["de","en"]},"status":{"type":"string","enum":["awaiting_consent","in_review","approved","declined","withdrawn"]},"consent":{"type":"object","properties":{"given":{"type":"boolean"},"given_at":{"type":["string","null"],"format":"date-time"},"voice_check_recorded":{"type":"boolean"},"version":{"type":["string","null"]}}},"material_seconds":{"type":"integer"},"min_material_seconds":{"type":"integer"},"files":{"type":"integer"},"model":{"type":"string","description":"Model that will speak or render this profile, see `GET /models`."},"usable":{"type":"boolean","description":"true once approved and the model is live. Nothing is charged before."},"ai_label":{"type":"string","enum":["machine_readable","required"]},"decline_reason":{"type":["string","null"]},"consent_url":{"type":"string","format":"uri","description":"Only in the create response. Send it to the person."},"consent_url_expires_at":{"type":"string","format":"date-time"},"livemode":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"object":{"type":"string","const":"voice_clone"}}},"Avatar":{"type":"object","required":["id","object","status","consent","usable"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"person_name":{"type":"string"},"language":{"type":"string","enum":["de","en"]},"status":{"type":"string","enum":["awaiting_consent","in_review","approved","declined","withdrawn"]},"consent":{"type":"object","properties":{"given":{"type":"boolean"},"given_at":{"type":["string","null"],"format":"date-time"},"voice_check_recorded":{"type":"boolean"},"version":{"type":["string","null"]}}},"material_seconds":{"type":"integer"},"min_material_seconds":{"type":"integer"},"files":{"type":"integer"},"model":{"type":"string","description":"Model that will speak or render this profile, see `GET /models`."},"usable":{"type":"boolean","description":"true once approved and the model is live. Nothing is charged before."},"ai_label":{"type":"string","enum":["machine_readable","required"]},"decline_reason":{"type":["string","null"]},"consent_url":{"type":"string","format":"uri","description":"Only in the create response. Send it to the person."},"consent_url_expires_at":{"type":"string","format":"date-time"},"livemode":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"object":{"type":"string","const":"avatar"}}},"VoiceCloneList":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/VoiceClone"}},"has_more":{"type":"boolean"}}},"AvatarList":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Avatar"}},"has_more":{"type":"boolean"}}},"EigenCreate":{"type":"object","required":["name","person_name"],"properties":{"name":{"type":"string","minLength":2,"maxLength":80},"person_name":{"type":"string","minLength":2,"maxLength":80,"description":"Full name of the person. They must type exactly this name when consenting."},"language":{"type":"string","enum":["de","en"],"default":"de"}}},"EigenUploadCreate":{"type":"object","required":["content_type"],"properties":{"content_type":{"type":"string","description":"Voice: audio/wav, audio/mpeg, audio/mp4, audio/webm, audio/ogg. Avatar: video/mp4, video/quicktime, video/webm."}}},"EigenUpload":{"type":"object","properties":{"file_id":{"type":"string"},"upload_url":{"type":"string","format":"uri"},"method":{"const":"PUT"},"headers":{"type":"object"},"max_bytes":{"type":"integer"},"expires_in_s":{"type":"integer"}}},"EigenUploadComplete":{"type":"object","required":["seconds"],"properties":{"seconds":{"type":"integer","minimum":1,"description":"Length of the recording in seconds."}}},"DocumentCreate":{"type":"object","additionalProperties":false,"required":["filename","size_bytes"],"properties":{"filename":{"type":"string","maxLength":160,"description":"File name with extension: .pptx, .pdf or .docx. Old formats (.ppt/.doc) and macro files (.pptm/.docm) are refused.","example":"quarterly-update.pptx"},"size_bytes":{"type":"integer","minimum":100,"maximum":52428800,"description":"Exact file size (at most 50 MB). The upload URL only accepts exactly this size."},"content_type":{"type":"string","description":"Optional; the upload must use the content type returned in `upload_headers`."}}},"DocumentPage":{"type":"object","properties":{"number":{"type":"integer"},"title":{"type":"string"},"hidden":{"type":"boolean","description":"Hidden slide – never used in the video."},"bullets":{"type":"integer"},"has_notes":{"type":"boolean","description":"Speaker notes become the narration (`use_notes`)."},"numbers":{"type":"array","items":{"type":"object","properties":{"value":{"type":"number"},"unit":{"type":"string"}}}},"chart":{"type":["object","null"],"properties":{"title":{"type":"string"},"points":{"type":"integer"}},"description":"Charts and number tables are re-drawn as animated bars."},"table":{"type":"boolean"},"images":{"type":"integer","description":"Images are re-animated as stages (not filmed). PDFs: text only."}}},"Document":{"type":"object","properties":{"id":{"type":"string","example":"dok_8fK2pQ9xLm3NvB7tR1aZ"},"object":{"const":"document"},"status":{"enum":["awaiting_upload","processing","ready","rejected","failed","deleted"]},"kind":{"enum":["pptx","pdf","docx"]},"filename":{"type":"string"},"size_bytes":{"type":"integer"},"error_code":{"type":["string","null"],"description":"e.g. `virus`, `makros`, `typ`, `kaputt`, `leer`, `verschluesselt`"},"title":{"type":["string","null"]},"language":{"type":["string","null"],"enum":["de","en",null]},"pages_total":{"type":["integer","null"]},"pages":{"type":"array","items":{"$ref":"#/components/schemas/DocumentPage"}},"images":{"type":"integer"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"de":{"type":"string"},"en":{"type":"string"}}}},"video_id":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"delete_after":{"type":"string","format":"date-time","description":"The original file is deleted right after reading. Text and images are kept while a video uses them, otherwise deleted after 7 days."},"upload_url":{"type":"string","description":"Only in the answer to POST /documents: signed PUT URL (15 minutes)."},"upload_method":{"const":"PUT"},"upload_headers":{"type":"object","additionalProperties":{"type":"string"}},"upload_expires_in_s":{"type":"integer"},"max_bytes":{"type":"integer"}}},"VideoFromDocument":{"type":"object","additionalProperties":false,"required":["document_id"],"properties":{"document_id":{"type":"string","description":"A document with status `ready`."},"target_duration_s":{"enum":[30,45,60],"default":30,"description":"30 s ≈ 4 slides, 45 s ≈ 6, 60 s ≈ 8 (plus title and ending). Slides with charts, numbers, images and bullets are preferred; order stays."},"use_notes":{"type":"boolean","default":true,"description":"Speaker notes become the narration (shortened to whole sentences). Without notes the on-screen text is spoken."},"language":{"$ref":"#/components/schemas/Language"},"style":{"type":"string","enum":["s01","s08","s13"],"default":"s01"},"formats":{"type":"array","items":{"$ref":"#/components/schemas/Format"}},"voice":{"type":["string","null"]},"brand":{"$ref":"#/components/schemas/BrandInline"},"metadata":{"$ref":"#/components/schemas/Metadata"},"render":{"type":"boolean","default":false},"max_price_cents":{"type":"integer","minimum":0},"end_user":{"type":"string","maxLength":120},"captions":{"type":"array","items":{"enum":["de","en"]}}}},"Model":{"type":"object","required":["id","object","name","pricing"],"properties":{"id":{"type":"string","enum":["eu-voice-1-turbo","premium-turbo","premium"]},"object":{"const":"model"},"name":{"type":"string"},"description":{"type":"string"},"languages":{"type":"array","items":{"type":"string"}},"capabilities":{"type":"object","properties":{"voice_design":{"type":"boolean"},"custom_voices":{"type":"boolean"}}},"pricing":{"type":"object","properties":{"unit":{"const":"characters"},"per":{"type":"integer","examples":[1000]},"price_eur":{"type":"string","description":"Net price in euros per `per` characters, as a decimal string. Read it here – prices are not part of this document."},"minimum_characters":{"type":"integer"},"billed_in":{"type":"string"}}},"limits":{"type":"object","properties":{"max_characters_per_request":{"type":"integer"}}},"credit_covers_characters":{"type":"integer","description":"Characters one credit covers in the tool (1 credit = 3,000 studio points = €3.00)."},"aliases":{"type":"array","items":{"type":"string"},"description":"Older ids of this model that are still accepted (only sent when there are any)."}}},"VoiceDesignCreate":{"type":"object","required":["description"],"properties":{"description":{"type":"string","minLength":10,"maxLength":300,"description":"How the voice should sound. No names of real people."},"text":{"type":"string","maxLength":300,"description":"Sample text the previews speak. Default: a short standard sentence."},"language":{"type":"string","enum":["de","en"],"default":"de"}}},"VoiceDesign":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"voice_design"},"description":{"type":"string"},"cost":{"type":"object","properties":{"cents":{"type":"integer","description":"Whole cents net. 0 in test mode."},"currency":{"const":"eur"},"charged":{"type":"boolean","description":"true once the job completed and the amount was booked."},"livemode":{"type":"boolean"}}},"previews":{"type":"array","items":{"$ref":"#/components/schemas/Speech"}}}},"VoiceCreate":{"type":"object","required":["preview_id","name"],"properties":{"preview_id":{"type":"string","description":"Id of a completed preview from `POST /voices/design`."},"name":{"type":"string","minLength":2,"maxLength":80},"tags":{"type":"array","items":{"type":"string"},"maxItems":12}}},"VoiceUpdate":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80},"favorite":{"type":"boolean"},"folder":{"type":["string","null"],"maxLength":60},"tags":{"type":"array","items":{"type":"string"},"maxItems":12}}},"Deleted":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"deleted":{"const":true}}},"SpeechCreate":{"type":"object","required":["text","voice_id"],"properties":{"text":{"type":"string","minLength":1,"maxLength":20000,"description":"Text to speak. Pauses: `[Pause 0,5]` (seconds). Data only – never interpreted as instructions."},"voice_id":{"type":"string","description":"A voice with `usage: speech` from `GET /voices`."},"model":{"type":"string","enum":["eu-voice-1-turbo","premium-turbo","premium"],"description":"Default: the model of the voice. `eu-voice-1-turbo` = our own voice AI (computed in the EU). Older model ids are still accepted."},"language":{"type":"string","enum":["de","en"],"description":"Default: language of the voice."},"speed":{"type":"number","minimum":0.7,"maximum":1.3,"default":1},"expressiveness":{"type":"number","minimum":0,"maximum":1}}},"SpeechEstimateCreate":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"voice_id":{"type":"string"},"model":{"type":"string","enum":["eu-voice-1-turbo","premium-turbo","premium"],"description":"Default: the model of the voice. `eu-voice-1-turbo` = our own voice AI (computed in the EU). Older model ids are still accepted."}}},"SpeechEstimate":{"type":"object","properties":{"object":{"const":"speech_estimate"},"model":{"type":"string"},"characters":{"type":"integer"},"billable_characters":{"type":"integer"},"cost":{"type":"object","properties":{"cents":{"type":"integer"},"exact_eur":{"type":"string","description":"Exact net price in euros as a decimal string (three decimals)."},"currency":{"const":"eur"},"livemode":{"type":"boolean"}}},"too_long":{"type":"boolean"},"max_characters":{"type":"integer"}}},"Speech":{"type":"object","required":["id","object","status","cost","ai_label"],"properties":{"id":{"type":"string"},"object":{"const":"speech"},"status":{"type":"string","enum":["queued","processing","completed","failed","rejected"]},"voice_id":{"type":["string","null"]},"model":{"type":"string"},"language":{"type":"string"},"characters":{"type":"integer"},"cost":{"type":"object","properties":{"cents":{"type":"integer","description":"Whole cents net. 0 in test mode."},"currency":{"const":"eur"},"charged":{"type":"boolean","description":"true once the job completed and the amount was booked."},"livemode":{"type":"boolean"}}},"formats":{"type":"array","items":{"type":"string","enum":["mp3","wav","ogg"]},"description":"Formats ready for download."},"has_timestamps":{"type":"boolean"},"duration_seconds":{"type":["number","null"]},"watermark":{"type":["string","null"],"enum":["audioseal","metadaten",null],"description":"`audioseal` = inaudible watermark in the audio; `metadaten` = metadata marker only (see `warning`)."},"warning":{"type":["string","null"]},"rejection_category":{"type":["string","null"]},"ai_label":{"type":"string","enum":["recommended","required"]},"livemode":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"}}},"SpeechAudio":{"type":"object","properties":{"object":{"const":"speech_audio"},"speech_id":{"type":"string"},"format":{"type":"string","enum":["mp3","wav","ogg"]},"content_type":{"type":"string"},"url":{"type":"string","format":"uri"},"filename":{"type":"string"},"expires_in_s":{"type":"integer"}}},"SpeechTimestamps":{"type":"object","properties":{"object":{"const":"speech_timestamps"},"speech_id":{"type":"string"},"duration_seconds":{"type":["number","null"]},"words":{"type":"array","items":{"type":"object","properties":{"word":{"type":"string"},"start":{"type":"number"},"end":{"type":"number"}}}},"subtitles":{"type":["object","null"],"properties":{"srt":{"type":"string"},"vtt":{"type":"string"}}}}},"Pronunciation":{"type":"object","required":["word","pronunciation"],"properties":{"id":{"type":"string"},"object":{"const":"pronunciation"},"word":{"type":"string","minLength":1,"maxLength":80},"pronunciation":{"type":"string","minLength":1,"maxLength":200},"language":{"type":"string","enum":["de","en","all"],"default":"all"},"case_sensitive":{"type":"boolean","default":false}}},"PronunciationsReplace":{"type":"object","required":["entries"],"properties":{"entries":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/Pronunciation"}}}},"UploadCreate":{"type":"object","additionalProperties":false,"required":["kind","filename","size_bytes"],"properties":{"kind":{"type":"string","enum":["image","logo","document"]},"filename":{"type":"string","maxLength":160,"description":"With extension: .png/.jpg/.webp for image and logo (no SVG), .pptx/.pdf/.docx for document."},"size_bytes":{"type":"integer","minimum":100,"description":"Exact size – it is part of the signature. Max 15 MB for images/logos, 50 MB for documents."},"content_type":{"type":"string"}}},"Upload":{"type":"object","required":["id","object","kind","status"],"properties":{"id":{"type":"string","pattern":"^upl_[0-9A-Za-z]{20}$"},"object":{"type":"string","enum":["upload"]},"kind":{"type":"string","enum":["image","logo","document"]},"status":{"type":"string","enum":["awaiting_upload","checking","ready","rejected","failed"]},"filename":{"type":"string"},"content_type":{"type":"string"},"size_bytes":{"type":"integer"},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]},"sha256":{"type":["string","null"]},"error":{"type":["object","null"]},"created_at":{"type":"string","format":"date-time"},"ready_at":{"type":["string","null"],"format":"date-time"},"upload_url":{"type":"string","description":"Only in the answer to POST /uploads: signed PUT URL, valid 15 minutes."},"upload_method":{"type":"string","enum":["PUT"]},"upload_headers":{"type":"object"},"upload_expires_in_s":{"type":"integer"},"max_bytes":{"type":"integer"}}},"MediaCreate":{"type":"object","required":["type","prompt"],"additionalProperties":false,"properties":{"type":{"enum":["image","clip","print_photo"]},"prompt":{"type":"string","maxLength":2000,"description":"What should be seen. No real well-known people, no other brands or logos, nothing sexual."},"aspect_ratio":{"enum":["16:9","9:16","1:1","4:5","3:4","4:3"]},"seconds":{"type":"integer","minimum":3,"maximum":15},"resolution":{"enum":["720p","1080p","4k","1k","2k"]},"audio":{"type":"boolean"},"variants":{"type":"integer","minimum":1,"maximum":4},"format":{"enum":["a4","a3"]},"confirm_tokens":{"type":"integer","description":"The cost_tokens from /media/estimate that the user confirmed (required for POST /media)."}}},"MediaEstimate":{"type":"object","properties":{"object":{"const":"media_estimate"},"type":{"type":"string"},"prompt":{"type":"string"},"provider":{"type":"string"},"fallback":{"type":"boolean"},"cost_tokens":{"type":"integer"},"max_tokens":{"type":"integer"},"rights":{"type":"string"},"data_location":{"type":"string"},"notes":{"type":"array","items":{"type":"string"}},"livemode":{"type":"boolean"}}},"Media":{"type":"object","properties":{"object":{"const":"media"},"id":{"type":"string"},"type":{"type":"string"},"status":{"enum":["processing","succeeded","rejected","failed"]},"prompt":{"type":"string"},"provider":{"type":"string","description":"Name of the AI provider that creates this item. Shown because usage rights, data location and the consent text depend on it."},"fallback":{"type":"boolean"},"cost_tokens":{"type":"integer"},"charged_tokens":{"type":"integer"},"reason":{"type":["string","null"]},"ai_label":{"type":"boolean"},"rights":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"content_type":{"type":"string"},"bytes":{"type":"integer"},"sha256":{"type":"string"},"c2pa":{"enum":["eigen","hersteller","keins"]},"url":{"type":["string","null"]}}}},"created_at":{"type":"string"},"completed_at":{"type":["string","null"]}}},"VideoError":{"type":"object","required":["code","charged"],"properties":{"code":{"anyOf":[{"$ref":"#/components/schemas/ErrorCode"},{"type":"string","pattern":"^[a-z_]+$"}]},"charged":{"type":"boolean","description":"true if the failed round was charged (see the red rule in the API description)"}}}}},"x-limits":{"rate_limits_per_minute":{"test":{"read":120,"write":30,"expensive":20},"live":{"read":600,"write":120,"expensive":60}},"previews_per_day":500,"test_renders_per_day":25,"max_video_seconds":180,"body_max_bytes":65536},"x-quelle":"Masterplan 20.11.2026 Teil 4 (openapi-entwurf.yaml), gefiltert auf gebaute Endpunkte · ehrlich nach Code (flow-openapi-fix-2211, 22.11.2026)"}