{"openapi":"3.1.0","info":{"title":"Orchestrator API","version":"0.0.1"},"paths":{"/uploads/token":{"post":{"tags":["uploads"],"summary":"Generate Upload Token","operationId":"generate_upload_token_uploads_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/uploads/session":{"post":{"tags":["uploads"],"summary":"Create Upload Session","description":"The complete_token is valid for 24h so a reconciliation sweeper can finish\ninterrupted uploads on the client's behalf.","operationId":"create_upload_session_uploads_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/uploads/complete":{"post":{"tags":["uploads"],"summary":"Complete Upload","description":"Idempotent: the workflow id is derived from the upload_id, so duplicate calls (e.g.\nthe browser racing the platform's reconciliation sweeper) return the same workflow\nid instead of starting a second workflow.","operationId":"complete_upload_uploads_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkflowSubmissionResponse"},{"$ref":"#/components/schemas/UploadsWorkflowResult"},{"$ref":"#/components/schemas/VideoUploadsWorkflowResult"},{"$ref":"#/components/schemas/AudioUploadsWorkflowResult"}],"title":"Response Complete Upload Uploads Complete Post"}}}},"400":{"description":"Staged object invalid: size mismatch or multipart assembly failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteError"}}}},"401":{"description":"Session token invalid or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteError"}}}},"404":{"description":"No staged object for this session; upload before completing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteError"}}}},"409":{"description":"Multipart upload incomplete; retry once all parts have finished.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCompleteError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/uploads/upload":{"post":{"tags":["uploads"],"summary":"Upload Image","description":"A `source_url` is downloaded by the workflow, never inside this request: the\nresponse is `{workflow_id, status: \"submitted\"}` (or the result when `sync`), and\nthe webhook, when the token has one, fires as for a file. `max_dimension` caps the\nlongest side in pixels; `output_format` \"jpeg\" re-encodes every raster image as a\nJPEG, flattening transparency onto white.","operationId":"upload_image_uploads_upload_post","parameters":[{"name":"X-Upload-Token","in":"header","required":true,"schema":{"type":"string","title":"X-Upload-Token"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_image_uploads_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UploadSyncResponse"},{"$ref":"#/components/schemas/WorkflowSubmissionResponse"},{"$ref":"#/components/schemas/UploadsWorkflowResult"}],"title":"Response Upload Image Uploads Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/uploads/upload-video":{"post":{"tags":["uploads"],"summary":"Upload Video","description":"A `source_url` is downloaded by the workflow, never inside this request, as on\n`/uploads/upload`.","operationId":"upload_video_uploads_upload_video_post","parameters":[{"name":"X-Upload-Token","in":"header","required":true,"schema":{"type":"string","title":"X-Upload-Token"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_video_uploads_upload_video_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UploadSyncResponse"},{"$ref":"#/components/schemas/WorkflowSubmissionResponse"},{"$ref":"#/components/schemas/VideoUploadsWorkflowResult"}],"title":"Response Upload Video Uploads Upload Video Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/uploads/download/{s3_key}":{"get":{"tags":["uploads"],"summary":"Download Asset","description":"The requested S3 key must be the token's path or sit under it as a directory.","operationId":"download_asset_uploads_download__s3_key__get","parameters":[{"name":"s3_key","in":"path","required":true,"schema":{"type":"string","title":"S3 Key"}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"enum":["webp","jpeg","png","avif","pdf","svg","original"],"type":"string"},{"type":"null"}],"title":"Format"}},{"name":"quality","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"title":"Quality"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}},{"name":"X-Upload-Token","in":"header","required":true,"schema":{"type":"string","title":"X-Upload-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/gemini_omni_flash":{"post":{"tags":["workflows"],"summary":"Submit Gemini Omni Flash Workflow","description":"Submit a Gemini Omni Flash workflow for video generation via the Gemini API.\n\nGemini Omni Flash is Google's any-input-to-video model. Two input styles are accepted (use one, not both):\n\n## Style 1 — interleaved parts\nA `parts` list of text/image/video entries (authoring order preserved). Image parts carry a `role`:\n- `first_frame` — at most one; enables image-to-video\n- `last_frame` — at most one, next to a `first_frame`; the clip ends on it (`duration` 3-10 when set)\n- `reference_image` — up to 6; enables reference-to-video (style/subject)\n\nA video part with role `reference_video` is a reference clip (up to 3, or 1 when `duration` is above 10; each is cut to its first 3 s). Reference images and videos combine; neither combines with a frame or a source video.\n\n```json\n{\"parts\": [\n  {\"type\": \"image\", \"s3_key\": \"uploads/hero.png\", \"role\": \"first_frame\"},\n  {\"type\": \"text\", \"content\": \"slow dolly-in as the logo lights up\"}\n]}\n```\n\nA video part (at most one, no `role`, not combinable with image parts) switches to **video editing** — the clip is restyled/modified per the text instructions:\n\n```json\n{\"parts\": [\n  {\"type\": \"video\", \"s3_key\": \"uploads/clip.mp4\"},\n  {\"type\": \"text\", \"content\": \"restyle into a watercolor painting, keep the motion\"}\n]}\n```\nImage and video parts accept `s3_key` or a public `url`.\n\n## Style 2 — discrete prompt + keys\n- **Text-to-video**: `prompt` only\n- **Image-to-video**: `prompt` + `starting_image_key` (+ optional `ending_image_key`)\n- **Reference-to-video**: `prompt` + up to 6 `reference_image_keys` and/or up to 3 `reference_video_keys`\n- **Video editing**: `prompt` + `input_video_key`\n- **Extend**: `task: \"extend\"` + `prompt` + `input_video_key` + `duration`\n- **Upscale**: `task: \"upscale\"` + `input_video_key` + `resolution` (`prompt` optional)\n- **Follow-up edit**: `prompt` + `previous_interaction_id`\n\nThe frame keys, the reference keys and `input_video_key` cannot be combined.\n\n## Common\n- **Task**: `generate`, `edit`, `extend` or `upscale`. Omitted, a request with a source video is an edit and any other request is a generation.\n- **Aspect ratio**: `16:9` or `9:16` (auto-detected from the first-frame image when omitted)\n- **Duration**: `3`-`15` seconds for a generation (`3`-`10` with a `last_frame`); the model decides when omitted.\n- **Resolution**: `360p`, `720p`, `1080p` or `4k` for a generation; 720p when omitted. The result's `resolution` is measured from the output.\n\n## Extend\n`task: \"extend\"` with one source video (`input_video_key` or a video part), a prompt and `duration` = the seconds to add (`3`-`10`, required). Source plus continuation is at most 30s. The result is the whole clip: `duration` is its measured length, `continuation_seconds` the added seconds and `source_seconds` the source length.\n\n## Upscale\n`task: \"upscale\"` with one source video (at most 15s, short side at most 720) and `resolution`: a 360p-class source goes to `720p` or `1080p`, a 720p-class source to `1080p` or `4k`. The prompt is optional. The source is sent at its own resolution, and the result's `duration` and `resolution` are measured from the output.\n\n## Follow-up edit\n`previous_interaction_id` (the `interaction_id` of an earlier result, kept 7 days) plus a prompt, and nothing else, edits that result again. `task` may be omitted or `edit`; media, `duration`, `aspect_ratio` and `resolution` are refused. An expired id fails the run with `invalid_input`; start a new generation instead.\n\n## Video editing limits\n- Input clips up to 15s (a longer clip is rejected); MP4/WebM/MPEG pass through, other formats and anything above 720p-class resolution are transcoded down automatically.\n- The edited output preserves the input's aspect ratio and (near) duration, with synced audio.\n- `aspect_ratio`, `duration` and `resolution` cannot be set for edits (the output tracks the input clip).\n\nThe resulting video and a WebP preview thumbnail are uploaded to S3.","operationId":"submit_gemini_omni_flash_workflow_workflows_gemini_omni_flash_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeminiOmniFlashWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/kling":{"post":{"tags":["workflows"],"summary":"Submit Kling Workflow","description":"Submit a Kling workflow for video generation.\n\nIf image_key is provided, uses image-to-video mode.\nIf image_key is omitted, uses text-to-video mode.\nThe resulting video and a preview thumbnail are uploaded to S3.","operationId":"submit_kling_workflow_workflows_kling_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/kling_turbo":{"post":{"tags":["workflows"],"summary":"Submit Kling Turbo Workflow","description":"Submit a Kling 2.5 Turbo workflow for video generation.\n\nIf image_key is provided, uses image-to-video mode.\nIf image_key is omitted, uses text-to-video mode.\ntail_image_key provides an optional end-frame image (i2v only).\nThe resulting video and a preview thumbnail are uploaded to S3.","operationId":"submit_kling_turbo_workflow_workflows_kling_turbo_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingTurboWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/kling_v3":{"post":{"tags":["workflows"],"summary":"Submit Kling V3 Workflow","description":"Submit a Kling v3 workflow for video generation via fal.ai.\n\n## Tiers (`tier`)\n| tier | output | price |\n|---|---|---|\n| `standard` | 720p | ~$0.112/s |\n| `pro` (default) | 1080p | ~$0.112/s, ~$0.168/s with audio |\n| `4k` | native 4K | flat $0.42/s |\n\n## Modes\n- **Text-to-video**: prompt (or multi_prompt) only. `aspect_ratio` (`16:9`, `9:16`, `1:1`) applies here; fal defaults to `16:9` when omitted.\n- **Image-to-video**: add `image_key` (start frame) and optionally `end_image_key` (end frame). The aspect ratio is derived from the image, so `aspect_ratio` must be omitted. Images must be ≤10MB, ≥300x300, with an aspect ratio between 0.40 and 2.50.\n\n## Prompting\nProvide exactly one of:\n- **prompt**: a single shot (≤2500 chars)\n- **multi_prompt**: a multi-shot storyboard, e.g. `[{\"prompt\": \"wide establishing shot\", \"duration\": 5}, {\"prompt\": \"close-up on the product\", \"duration\": 5}]` (per-segment duration 1–15s)\n\n## Other parameters\n- **duration**: 3–15 seconds (default 5)\n- **generate_audio**: native audio, **on by default** (pro tier costs more with audio enabled)\n- **negative_prompt**, **cfg_scale** (0–1, default 0.5)\n\nThe resulting video and a WebP preview thumbnail are uploaded to S3.","operationId":"submit_kling_v3_workflow_workflows_kling_v3_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingV3WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/flux_3":{"post":{"tags":["workflows"],"summary":"Submit Flux 3 Workflow","description":"Submit a FLUX 3 workflow for video generation via fal.ai.\n\n## Resolutions (`resolution`)\n| resolution | price |\n|---|---|\n| `720p` (default) | $0.17/s |\n| `1080p` | $0.29/s |\n\nAudio is price-neutral.\n\n## Modes\n- **Text-to-video**: `prompt` only.\n- **Image-to-video**: add `image_key` (start frame).\n- **First-last-frame**: add `image_key` and `end_image_key`; the clip interpolates between the two frames.\n\n`aspect_ratio` (`21:9`, `2:1`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`) is accepted in every mode. When omitted the provider follows the start frame, or picks a ratio for text-to-video.\n\n## Other params\n- **prompt**: ≤2500 chars\n- **duration**: 5-20 seconds (default 5)\n- **generate_audio**: native, in-sync audio track (default true)\n\nThe resulting video and a preview thumbnail are uploaded to S3.","operationId":"submit_flux_3_workflow_workflows_flux_3_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flux3WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/grok_v15":{"post":{"tags":["workflows"],"summary":"Submit Grok V15 Workflow","description":"Submit a Grok Imagine v1.5 image-to-video workflow via fal.ai.\n\nv1.5 is **image-to-video only**, so a ``starting_image_key`` is required. There is no aspect_ratio parameter; the output follows the input image.\n\n## Parameters\n- **prompt**: motion/scene description (required)\n- **starting_image_key**: S3 key of the input image (required)\n- **duration**: video length in seconds (default 6)\n- **resolution**: 720p, 480p (default 720p)\n\nThe resulting video and a WebP thumbnail are uploaded to S3.","operationId":"submit_grok_v15_workflow_workflows_grok_v15_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrokV15WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/remove_background":{"post":{"tags":["workflows"],"summary":"Submit Remove Background Workflow","description":"Submit a background removal workflow.\n\nProvide either ``image_url`` (a public URL) or ``image_key`` (an S3 key that is presigned at runtime). Returns a PNG of the subject on a transparent background, cropped to the subject, plus a WebP thumbnail. With ``autocrop`` false the PNG keeps the source's size, and ``subject`` holds the cropped copy with its box in that PNG. An optional ``prompt`` changes what is kept.","operationId":"submit_remove_background_workflow_workflows_remove_background_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveBackgroundWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/seed_dance_2_5":{"post":{"tags":["workflows"],"summary":"Submit Seed Dance 2 5 Workflow","description":"Submit a Seedance 2.5 workflow for video generation via BytePlus ModelArk.\n\nSeedance 2.5 generates clips of up to **30 seconds** and accepts up to 50 mixed references. Output caps out at 1080p.\n\nOne endpoint, four modes — the mode is derived from the inputs.\n\n## Text-to-video\n`prompt` only.\n\n## Image-to-video\n`prompt` + `image_key` (the first frame). Add `end_image_key` to generate between a first and last keyframe. Images must be JPEG, PNG or WebP, max 30MB.\n\n## Video editing\n`prompt` + `input_video_key`: the prompt is an instruction applied to the clip (cite it as `@Video1`), optionally with `reference_image_keys` and `reference_audio_keys` for the material the edit brings in. The output keeps the clip's aspect ratio and runs exactly as long as it, so `duration` and `aspect_ratio` are rejected; the clip must be 4–30s. Cannot be combined with `image_key` or `reference_video_keys`.\n\n## Reference-to-video\n`prompt` + any of `reference_image_keys` (max 30), `reference_video_keys` (max 10) and `reference_audio_keys` (max 10) — at most 50 files in total. Reference video and audio clips must each be 2–30s, with a combined length of at most 30s. Audio cannot be the only reference type: at least one reference image or video is required.\n\nCite the references in the prompt with an `@` handle matching list order:\n\n```json\n{\n  \"prompt\": \"@Image1 walks into the room while @Video1 plays on the TV, scored by @Audio1\",\n  \"reference_image_keys\": [\"uploads/actor.png\"],\n  \"reference_video_keys\": [\"uploads/broadcast.mp4\"],\n  \"reference_audio_keys\": [\"uploads/score.mp3\"]\n}\n```\n\n## Common\n- **duration**: `\"4\"`–`\"30\"` seconds, or `\"auto\"` (default) to let the model pick from the prompt. Not settable for edits\n- **resolution**: `\"480p\"`, `\"720p\"` (default) or `\"1080p\"`. Cost scales with output pixels — 1080p runs ~2.4x a 720p clip of the same length\n- **aspect_ratio**: `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, or `auto`. Omitted means `auto` — inferred from the input image, or from the prompt in text-to-video. Not settable for edits\n- **generate_audio**: synchronized sound effects, ambience and lip-synced speech (default `true`). Pricing is the same either way\n\nThe resulting video and a WebP preview thumbnail are uploaded to S3.","operationId":"submit_seed_dance_2_5_workflow_workflows_seed_dance_2_5_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedDance25WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/minimax_h3":{"post":{"tags":["workflows"],"summary":"Submit Minimax H3 Workflow","description":"Submit a MiniMax H3 Max (Hailuo 3.0) workflow for video generation via fal.ai.\n\nOne endpoint, three modes — the mode is derived from the inputs.\n\n## Text-to-video\n`prompt` only. Optional `aspect_ratio`: `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`.\n\n## Image-to-video\n`prompt` + `image_key` (the first frame). Add `end_image_key` to generate between a first and last keyframe. The output aspect ratio follows the input image, so `aspect_ratio` is rejected in this mode.\n\n## Reference-to-video\n`prompt` + any of `reference_image_keys` (max 9), `reference_video_keys` (max 3) and `reference_audio_keys` (max 3) — at most 12 files in total. Reference video and audio clips must each be 2–15s, with a combined length of at most 15s per type. Audio cannot be the only reference type: at least one reference image or video is required.\n\nCite the references positionally in the prompt, matching list order:\n\n```json\n{\n  \"prompt\": \"Image 1 walks into the room while Video 1 plays on the TV, scored by Audio 1\",\n  \"reference_image_keys\": [\"uploads/actor.png\"],\n  \"reference_video_keys\": [\"uploads/broadcast.mp4\"],\n  \"reference_audio_keys\": [\"uploads/score.mp3\"]\n}\n```\n\n`aspect_ratio` accepts `adaptive` (the default on fal) in this mode only.\n\n## Common\n- **duration**: 5–15 seconds (default 5)\n- **resolution**: `480P` or `768P` (default `768P`). h3-max has no 2K tier\n- **Audio**: MiniMax H3 Max embeds native synchronized audio in the 24fps output MP4 — there is no separate audio toggle, and no `negative_prompt`, `prompt_optimizer` or `seed` parameter\n- **Prompt expansion**: always sent as `balanced` (~1s). The slower `quality` mode (~30s) is not exposed\n- **Pricing**: $0.08/s at 768P, $0.05/s at 480P\n\nThe resulting video and a WebP preview thumbnail are uploaded to S3.","operationId":"submit_minimax_h3_workflow_workflows_minimax_h3_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinimaxH3WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/nano_banana_pro_parts":{"post":{"tags":["workflows"],"summary":"Submit Nano Banana Pro Parts Workflow","description":"Submit a Nano_banana Pro workflow with interleaved text/image parts.\n\nThis endpoint allows images to be referenced inline with text prompts, enabling more contextual image generation. Example request body:\n\n{\n    \"parts\": [\n        {\"type\": \"image\", \"url\": \"https://example.com/product.jpg\"},\n        {\"type\": \"text\", \"content\": \"Use this product with the following style...\"},\n        {\"type\": \"image\", \"s3_key\": \"uploads/style.png\"},\n        {\"type\": \"text\", \"content\": \"And include this logo:\"},\n        {\"type\": \"image\", \"url\": \"https://example.com/logo.png\"}\n    ],\n    \"aspect_ratio\": \"1:1\",\n    \"image_size\": \"2K\"\n}","operationId":"submit_nano_banana_pro_parts_workflow_workflows_nano_banana_pro_parts_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBananaProPartsWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/nano_banana_pro_resize":{"post":{"tags":["workflows"],"summary":"Submit Nano Banana Pro Resize Workflow","description":"Resize an input image to a target aspect ratio via Gemini outpainting.\n\nProvide one input image (image_url or image_s3_key) and a target aspect as `[width, height]` (e.g. [13, 5]). The model preserves the subject's real-world proportions and outpaints the surrounding scene to fill the new aspect ratio.\n\nOutput AR matches the target within ~1%; pixel dimensions are chosen by the model and cannot be controlled exactly. Supported aspect range is 1:3 to 3:1; values outside this range are rejected.\n\nExample:\n\n{\n    \"image_url\": \"https://example.com/portrait.jpg\",\n    \"target_aspect\": [13, 5]\n}","operationId":"submit_nano_banana_pro_resize_workflow_workflows_nano_banana_pro_resize_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBananaProResizeWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/nano_banana_2":{"post":{"tags":["workflows"],"summary":"Submit Nano Banana 2 Workflow","description":"Submit a Nano Banana 2 workflow with interleaved text/image parts.\n\nSame as Nano_banana Pro with expanded aspect ratios (adds 1:4, 4:1, 1:8, 8:1) and optional thinking config (MINIMAL, HIGH).","operationId":"submit_nano_banana_2_workflow_workflows_nano_banana_2_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBanana2WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/gpt_image_2_5":{"post":{"tags":["workflows"],"summary":"Submit Gpt Image 2 5 Workflow","description":"Submit a GPT Image workflow with interleaved text/image parts.\n\nText-only parts produce text-to-image via /v1/images/generations; including any image parts triggers image-to-image edits via /v1/images/edits. `quality` is one of `low`, `medium`, `high`, `xhigh`, `max`, `auto` and defaults to `high`. The `size` field accepts `\"auto\"` or any `WIDTHxHEIGHT` string with both edges a multiple of 16, max edge 3840, ratio ≤3:1 and total pixels in [655_360, 8_294_400].\n\nPrecision editing: pass a `mask` image part alongside the image parts. Its fully transparent pixels mark the region of the first image the model may repaint; everything opaque is preserved. `background: \"transparent\"` returns an alpha background (png/webp output only).","operationId":"submit_gpt_image_2_5_workflow_workflows_gpt_image_2_5_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GptImage25WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/ideogram_4_5":{"post":{"tags":["workflows"],"summary":"Submit Ideogram 4 5 Workflow","description":"Edit an image via fal.ai.\n\nTakes the same interleaved text/image parts as `gpt_image_2_5`. The **last** image part is the image to edit; up to four earlier image parts are references. `edit_precision` `high` (default) restores the pixels the edit did not touch and keeps the source geometry; `regular` accepts a `size` (`WIDTHxHEIGHT`, multiples of 32, at most 4,194,304 pixels) for reframes. `quality` is `very_low`, `low`, `medium` (default) or `high`.\n\nContent-policy blocks and rejected inputs are terminal and reported within seconds; other failures retry briefly, so callers can fall back to another model.","operationId":"submit_ideogram_4_5_workflow_workflows_ideogram_4_5_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ideogram45WorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/magic_edit":{"post":{"tags":["workflows"],"summary":"Submit Magic Edit Workflow","description":"Edit one image from an instruction, falling back across image models within one run.\n\nTakes the same interleaved text/image parts as `ideogram_4_5`, without an edit instruction: the workflow gives each model its own. The **last** image part is the image to edit; earlier image parts are references.\n\n| Step | Hands on to the next step when |\n|---|---|\n| Ideogram 4.5 | it fails for any reason, after its own retries |\n| GPT Image | it blocks the edit on content policy |\n| Nano Banana 2 | never: its failure is the run's |\n\nThe run starts on GPT Image when `image_size` is `4K` or there are more than four references, since Ideogram can render neither. Each model gets its own geometry: Ideogram keeps the source's pixels unless the ratio or tier changes, GPT Image gets a pixel size for the ratio (or the source's framing) at the tier, and Nano Banana 2 gets the ratio and tier.\n\nThe `magic_edit.succeeded` payload names the model that drew the image in `model`.","operationId":"submit_magic_edit_workflow_workflows_magic_edit_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicEditWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/gpt_image_2_5_resize":{"post":{"tags":["workflows"],"summary":"Submit Gpt Image 2 5 Resize Workflow","description":"Resize an input image via GPT Image outpainting.\n\nProvide one input image (image_url or image_s3_key) and exactly one of `output_size` or `target_aspect`. `output_size` is `[width, height]` in pixels and the delivered file is exactly that size, with the source centred on the new canvas. `target_aspect` is a `[width, height]` ratio (e.g. [16, 9]), up to 3:1, and the output pixel dimensions are computed for you. The subject keeps its real-world proportions and the surrounding scene is outpainted to fill the new frame. `output_format` is `png` (default) or `jpeg`, a smaller file with any transparency flattened on white.\n\nExample:\n\n{\n    \"image_url\": \"https://example.com/portrait.jpg\",\n    \"output_size\": [1080, 1350],\n    \"output_format\": \"jpeg\"\n}","operationId":"submit_gpt_image_2_5_resize_workflow_workflows_gpt_image_2_5_resize_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GptImage25ResizeWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/text_to_svg":{"post":{"tags":["workflows"],"summary":"Submit Text To Svg Workflow","description":"Submit a text-to-SVG generation workflow.\n\nSynchronous text-to-SVG generation. The resulting SVG markup is uploaded to S3 with content type ``image/svg+xml`` and the URL is returned in the workflow result.","operationId":"submit_text_to_svg_workflow_workflows_text_to_svg_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuiverWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/compose":{"post":{"tags":["workflows"],"summary":"Chain multiple generation operations","description":"Submit a composable workflow that chains multiple operations.\n\n## Operation Types\n\n| Type | Description | Output Fields |\n|------|-------------|---------------|\n| `generate_image` | AI image generation | `s3_key`, `url`, `width`, `height`, `mime_type`, `thumbnail_url` |\n| `gpt_image_2_5` | GPT Image generation/editing (masked precision edits) | `s3_key`, `url`, `width`, `height`, `mime_type`, `thumbnail_url` |\n| `nano_banana_2` | Nano Banana 2 image generation/editing | `s3_key`, `url`, `width`, `height`, `mime_type`, `thumbnail_url` |\n| `seedream` | Seedream 5.0 pro image generation/editing via BytePlus (t2i, edit, 2-10 reference composition) | `s3_key`, `url`, `width`, `height`, `mime_type`, `size_bytes`, `thumbnail_url` |\n| `generate_video_kling` | Kling video generation (i2v or t2v) | `s3_key`, `url`, `type`, `size_bytes`, `thumbnail_url` |\n| `generate_video_kling_turbo` | Kling 2.5 Turbo video generation (i2v/t2v, supports tail image) | `s3_key`, `url`, `type`, `size_bytes`, `thumbnail_url` |\n| `generate_video_kling_v3` | Kling v3 video generation (t2v/i2v, end frame, multi-shot, standard/pro/4k tiers) | `s3_key`, `url`, `type`, `size_bytes`, `mime_type`, `prompt`, `tier`, `duration`, `thumbnail_url` |\n| `generate_video_flux_3` | FLUX 3 video generation via fal.ai (t2v, i2v, first-last-frame, 720p/1080p, native audio) | `s3_key`, `url`, `type`, `size_bytes`, `mime_type`, `prompt`, `resolution`, `duration`, `thumbnail_url` |\n| `generate_video_minimax_h3` | MiniMax H3 Max (Hailuo 3.0) video generation (t2v, i2v, reference-to-video) | `s3_key`, `url`, `type`, `size_bytes`, `mime_type`, `prompt`, `resolution`, `duration`, `thumbnail_url` |\n| `generate_video_grok_v15` | Grok Imagine v1.5 image-to-video via fal.ai (higher quality) | `s3_key`, `url`, `type`, `size_bytes`, `resolution`, `duration`, `thumbnail_url` |\n| `generate_video_seed_dance_2_5` | Seedance 2.5 video via BytePlus (t2v, i2v, end frame, reference-to-video, video edit, up to 30s) | `s3_key`, `url`, `type`, `size_bytes`, `mime_type`, `prompt`, `resolution`, `duration`, `thumbnail_url` |\n| `generate_video_gemini_omni_flash` | Gemini Omni Flash video (t2v, first/last-frame i2v, multi-ref up to 6 images and 3 videos, video editing, extend, upscale, 360p-4k) | `s3_key`, `url`, `type`, `size_bytes`, `aspect_ratio`, `duration`, `resolution`, `source_seconds`, `continuation_seconds`, `interaction_id`, `prompt`, `thumbnail_url` |\n| `remove_background` | Background removal, optional `prompt` for what to keep | `s3_key`, `url`, `width`, `height`, `mime_type`, `thumbnail_url` |\n| `output` | Define webhook payload (must be last) | Custom fields |\n\n## generate_image params\n- `parts` (required): Array of `{\"type\": \"text\", \"content\": \"...\"}` or `{\"type\": \"image\", \"url/s3_key\": \"...\"}`\n- `aspect_ratio`: `\"1:1\"`, `\"9:16\"`, `\"16:9\"`, `\"4:3\"`, `\"3:4\"`, `\"21:9\"`, `\"3:2\"`, `\"2:3\"`, `\"5:4\"`, `\"4:5\"`\n- `image_size`: `\"1K\"`, `\"2K\"`, `\"4K\"`\n- `system_instruction`: Additional instructions\n\n## gpt_image_2_5 params\n- `parts` (required): Array of `{\"type\": \"text\", \"content\": \"...\"}` or `{\"type\": \"image\", \"url/s3_key\": \"...\"}`\n- `mask`: `{\"type\": \"image\", \"url/s3_key\": \"...\"}` with an alpha channel; transparent pixels mark the region of the first image part to repaint (requires an image part)\n- `size`: `\"auto\"` or `\"WIDTHxHEIGHT\"` (e.g. `\"1024x1024\"`)\n- `quality`: `\"low\"`, `\"medium\"`, `\"high\"`, `\"xhigh\"`, `\"max\"`, `\"auto\"` (default `\"high\"`)\n- `background`: `\"transparent\"` (png/webp only), `\"opaque\"`, `\"auto\"`\n- `output_format`: `\"png\"`, `\"jpeg\"`, `\"webp\"` (default `\"png\"`)\n- `output_compression`: 0-100 (default 100)\n\n## nano_banana_2 params\n- `parts` (required): Array of `{\"type\": \"text\", \"content\": \"...\"}` or `{\"type\": \"image\", \"url/s3_key\": \"...\"}`\n- `aspect_ratio`: `\"1:1\"`, `\"9:16\"`, `\"16:9\"`, `\"4:3\"`, `\"3:4\"`, `\"21:9\"`, `\"3:2\"`, `\"2:3\"`, `\"5:4\"`, `\"4:5\"`, `\"1:4\"`, `\"4:1\"`, `\"1:8\"`, `\"8:1\"` (default `\"1:1\"`)\n- `image_size`: `\"1K\"`, `\"2K\"`, `\"4K\"` (default `\"1K\"`)\n- `thinking_level`: `\"MINIMAL\"` or `\"HIGH\"`\n- `system_instruction`: Additional instructions\n\n## seedream params\n- `prompt` (required): What to generate, or how to edit the reference images\n- `image_keys` (optional): 1 S3 key edits that image; 2-10 keys compose them. Omit for text-to-image\n- `aspect_ratio`: `\"1:1\"`, `\"16:9\"`, `\"9:16\"`, `\"4:3\"`, `\"3:4\"`, `\"3:2\"`, `\"2:3\"`, `\"21:9\"` (derived from the first reference image when omitted, else `\"1:1\"`)\n- `resolution`: `\"1K\"`, `\"1.5K\"`, `\"2K\"` (default `\"1.5K\"`)\n\n## generate_video_kling params\n- `prompt` (required): Video description\n- `image_key` or `image_url` (optional): Source image. If omitted, uses text-to-video mode\n- `duration`: `5` or `10` seconds\n- `negative_prompt`: Elements to avoid\n- `cfg_scale`: Prompt adherence (0.0-1.0)\n\n## generate_video_kling_turbo params\n- `prompt` (required): Video description\n- `image_key` or `image_url` (optional): Source image. If omitted, uses text-to-video mode\n- `tail_image_key` or `tail_image_url` (optional): End-frame image (i2v only)\n- `duration`: `5` or `10` seconds\n- `negative_prompt`: Elements to avoid\n- `cfg_scale`: Prompt adherence (0.0-1.0)\n\n## generate_video_kling_v3 params\n- `prompt` or `multi_prompt` (exactly one required): `prompt` is a single description; `multi_prompt` is a storyboard array of `{\"prompt\": \"...\", \"duration\": 5}` shots\n- `image_key` (optional): S3 key for the start frame. If omitted, uses text-to-video mode\n- `end_image_key` (optional): S3 key for the end frame (requires `image_key`)\n- `tier`: `\"standard\"` (720p), `\"pro\"` (1080p), `\"4k\"` (default `\"pro\"`)\n- `duration`: `3`-`15` seconds (default `5`)\n- `aspect_ratio`: `\"16:9\"`, `\"9:16\"`, `\"1:1\"` (text-to-video only — image-to-video follows the start frame)\n- `negative_prompt`: Elements to avoid\n- `cfg_scale`: Prompt adherence (0.0-1.0)\n- `generate_audio`: Generate audio track (default `true`)\n\n## generate_video_flux_3 params\n- `prompt` (required): Video description\n- `image_key` (optional): S3 key for the start frame. If omitted, uses text-to-video mode\n- `end_image_key` (optional): S3 key for the end frame (requires `image_key`)\n- `resolution`: `\"720p\"`, `\"1080p\"` (default `\"720p\"`)\n- `duration`: `5`-`20` seconds (default `5`)\n- `aspect_ratio`: `\"21:9\"`, `\"2:1\"`, `\"16:9\"`, `\"4:3\"`, `\"1:1\"`, `\"3:4\"`, `\"9:16\"` (any mode; when omitted the provider follows the start frame)\n- `generate_audio`: Generate audio track (default `true`)\n\n## generate_video_minimax_h3 params\n- `prompt` (required): Video description. Cite reference assets as `Image 1`, `Video 1`, `Audio 1` (list order)\n- `image_key` (optional): S3 key for the first frame (image-to-video)\n- `end_image_key` (optional): S3 key for the end frame (requires `image_key`)\n- `reference_image_keys` / `reference_video_keys` / `reference_audio_keys` (optional): up to 9 images, 3 videos, 3 audio clips, 12 reference files total (reference-to-video). Audio cannot be the only reference type, and reference keys cannot be combined with `image_key`\n- `duration`: `5`-`15` seconds (default `5`)\n- `resolution`: `\"480P\"`, `\"768P\"` (default `\"768P\"`)\n- `aspect_ratio`: `\"21:9\"`, `\"16:9\"`, `\"4:3\"`, `\"1:1\"`, `\"3:4\"`, `\"9:16\"`, `\"adaptive\"` (rejected for image-to-video; `\"adaptive\"` is reference-to-video only)\n\n## generate_video_grok_v15 params\n- `prompt` (required): Video description\n- `starting_image_key` (required): S3 key for source image (image-to-video only)\n- `duration`: Default 6 seconds\n- `resolution`: `\"720p\"`, `\"480p\"`\n\n## generate_video_seed_dance_2_5 params\n- `prompt` (required): Video description. Cite reference assets as `@Image1`, `@Video1`, `@Audio1` (list order)\n- `image_key` (optional): S3 key for the first frame (image-to-video)\n- `end_image_key` (optional): S3 key for the end frame (requires `image_key`)\n- `input_video_key` (optional): S3 key of the clip to edit (video editing, cited as `@Video1`). The output keeps the clip's length and aspect ratio, so `duration` / `aspect_ratio` must be omitted; the clip must run 4-30s. Not combinable with `image_key` or `reference_video_keys`\n- `reference_image_keys` / `reference_video_keys` / `reference_audio_keys` (optional): up to 30 images, 10 videos, 10 audio clips, 50 reference files total (reference-to-video). Video/audio clips must each run 2-30s with combined length <= 30s per modality. Audio cannot be the only reference type, and reference keys cannot be combined with `image_key`\n- `duration`: `\"4\"`-`\"30\"` seconds or `\"auto\"` (default `\"auto\"`; not settable for edits)\n- `resolution`: `\"480p\"`, `\"720p\"` (default `\"720p\"`), `\"1080p\"`\n- `aspect_ratio`: `\"21:9\"`, `\"16:9\"`, `\"4:3\"`, `\"1:1\"`, `\"3:4\"`, `\"9:16\"`, `\"auto\"` (auto-inferred when omitted; not settable for edits)\n- `generate_audio`: Generate synchronized audio (default `true`)\n\n## generate_video_gemini_omni_flash params\nUses the same parts-based prompt as `POST /workflows/gemini_omni_flash`.\n\n- `parts` (required): Non-empty array of text/image/video entries that preserves authoring order.\n  - Text entry: `{\"type\": \"text\", \"content\": \"...\"}`.\n  - Image entry: `{\"type\": \"image\", \"s3_key\": \"...\"}` or `{..., \"url\": \"https://...\"}` plus a **required** `role`: `\"first_frame\"` (image-to-video) | `\"last_frame\"` (with a `first_frame`; the clip ends on it; `duration` 3-10) | `\"reference_image\"` (reference-to-video, up to 6).\n  - Video entry: `{\"type\": \"video\", \"s3_key\": \"...\"}` or `{..., \"url\": \"https://...\"}`. No role (or `\"source_video\"`): the one source clip of an edit (input <= 15s), not combinable with image parts. Role `\"reference_video\"`: a reference clip for reference-to-video, cut to its first 3 s; up to 3, or 1 when `duration` is above 10.\n  - A generation's mode follows the parts: `first_frame` -> image-to-video, `reference_image` or `reference_video` -> reference-to-video, text only -> text-to-video. Frames and references cannot be combined.\n- `aspect_ratio`: `\"16:9\"` or `\"9:16\"` (auto-detected from the first-frame image when omitted; not settable for edits)\n- `duration`: clip length in seconds, `3`-`15` (the model decides the length when omitted; not settable for edits)\n- `resolution`: `\"360p\"`, `\"720p\"`, `\"1080p\"` or `\"4k\"` (720p when omitted; the required target of an upscale; not settable for edit or extend)\n- `task`: `\"generate\"`, `\"edit\"`, `\"extend\"` or `\"upscale\"`; omitted, a source video means edit. `\"upscale\"` raises the source clip (at most 15s, 720p-class) to `resolution` (required: a 360p source to `\"720p\"`/`\"1080p\"`, a 720p source to `\"1080p\"`/`\"4k\"`); text is optional. `\"extend\"` continues the source clip by `duration` seconds (`3`-`10`, required; source + continuation at most 30s) and returns the whole clip: `duration` is the measured output length, `continuation_seconds` the added seconds and `source_seconds` the source length.\n- `previous_interaction_id`: an earlier result's `interaction_id` (kept 7 days). With only a text part (no media, `duration`, `aspect_ratio` or `resolution`; `task` omitted or `\"edit\"`) it makes a follow-up edit of that result. An expired id fails the op with `invalid_input`.\n\nChain an upstream image op into a part with an `input_mapping` whose `to_field` is e.g. `\"parts[0].s3_key\"`.\n\n## output params\n- `webhook_url`: URL to POST final output\n- `fields`: Array of `{\"name\": \"...\", \"from_operation\": \"...\", \"from_field\": \"...\"}`\n\n## Webhook Payload\n```json\n{\"event\": \"compose.succeeded\", \"workflow_id\": \"compose_...\", \"payload\": {...}}\n```","operationId":"submit_compose_workflow_workflows_compose_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/graphics_agent":{"post":{"tags":["workflows"],"summary":"Submit Graphics Agent Workflow","description":"Submit a Graphics Agent workflow: a Gemini tool-calling agent designs a complete, editable ad as a media-composer document.\n\nThe agent sees the brief, the brand kit and the input images, then works with tools: generate a text-free scene when none is usable, passing the product as a reference so the image model renders it natively (there is no background removal), validate the document against the composer schema and the brand lock, preview its own render and look at it, revise, and finish. Budgets cap turns, previews and scenes; the brand's colors, fonts and CTA variant are enforced in validation, not only in the prompt.\n\nA scene is generated by halaX: the enhancement agent rewrites the designer's photography brief with its cultural-attire and brand-color tools, then the brand's image model draws a text-free base plate. That brief is configured by `scene` (`scene.image_model`, `scene.image_size`, `scene.brand.colors`, `scene.photography_guidelines`, `scene.allow_religious_content`) and nothing in it reaches the designer, which reads `brand`.\n\nThe final document is rendered and uploaded. `graphics_agent.succeeded` carries the image, `composition` (image sources resolved to URLs, ready for the editor), `resolved_composition`, the agent's `status` (`finished` or `budget_exhausted` with the last valid draft) and a `tool_trace`.\n\nWith `motion` (duration 2-30 s, fps) the result is a video, an mp4 (`type: \"video\"`, `duration`) with an animated thumbnail, designed by free design, from the brief or from a `reference`: the agent plans it, draws every scene as editable layers at the same time (sections, cuts, motion groups) and sees each scene rendered and checked; an independent reviewer watches each draft as it plays and lists the problems a viewer would notice, and the agent revises until the reviewer would ship it or the reviews run out. `library` offers the brand library to choose from (video only) and `brand.name` is the brand as the clip names it. Free design runs on the deployment's free-design model and effort. Its result carries the documents by reference in `documents`, with `composition` and `resolved_composition` empty: the completion webhook inlines them, but `GET /workflows/{id}/status` returns the workflow result as it is. With `reference` a video animates or redoes the design: the clip starts as that design written as scenes (a sectioned design's sections, else one scene) and the agent revises it; a redo at the design's own canvas keeps every layer's motion and each scene's window. `reference_video_s3_key` (a video on the media host, at most 60 s) makes the clip like that video with the brand's own products: its cuts are detected and its frames shown to the agent, and every review sets the clip's frame at each moment beside the video's. `review_mode` (`independent`, `self` or `auto`) overrides the deployment's review mode: `self` calls no reviewer model and shows the agent the frames a reviewer would see; `auto` is `self` with a reference video and `independent` without.\n\nEvery result, and a failure webhook where the run got that far, carries `telemetry`: the designer model and the effort it ran at, its tokens (input, cache write, cache read, output, thinking), `cost_usd` (model, images, render, total; estimated at list prices) and `elapsed_s` (total and per stage). It is internal cost data, not for customers.\n\n`effort` (`low`, `medium` or `high`) sets how hard the designer model thinks on each turn, in every mode: more effort is a better design for a longer, costlier run. It applies to whichever designer model the deployment runs; omit it for the deployment's default (any other value is read as omitted).","operationId":"submit_graphics_agent_workflow_workflows_graphics_agent_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphicsAgentWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/render":{"post":{"tags":["workflows"],"summary":"Submit Render Workflow","description":"Submit a workflow to render a media-composer composition to a still image or an encoded video.\n\nThe composition is laid out in a headless browser and captured: a still is a single frame (PNG by default), a video is every frame at the document's `fps` for its `duration`, encoded with ffmpeg (mp4 by default). Pass `output` to state which you want; without it, a document containing video/audio layers renders as a video and anything else as a still. The result is uploaded to S3 and reported on the `render_image.succeeded` webhook, whose `media_type`, `mime_type`, `width`, `height` and `duration` describe the encoded file.","operationId":"submit_render_workflow_workflows_render_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderImageWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/export-layered":{"post":{"tags":["workflows"],"summary":"Submit Export Layered Workflow","description":"Submit a workflow to export a still design as editable layers, for finishing it in another editor.\n\nEach of the 1 to 10 `pages` is a media-composer composition, rendered as its settled still and taken apart into layers: text stays editable text, shapes and gradients stay shapes, groups keep their nesting, and media are pixels. `format` is `svg` (Illustrator, Figma) or `psd` (Photoshop, Photopea, Canva, Affinity). A PSD is one `.psd` under `output_path` whatever the page count, with an artboard per page (`Page 1`, `Page 2`, ...). An SVG has no pages, so one page uploads its `.svg` and several upload one zip of `page-01.svg`, `page-02.svg`, ... There is no webhook: poll `GET /workflows/{workflow_id}/status`, whose `result` carries `s3_key`, `size_bytes` and `file_name`. The export is free, so a page with an image on `objectFit: \"smart\"` (a paid outpaint) is rejected with a 422, as is a page with video or audio, which has no single still to take apart.","operationId":"submit_export_layered_workflow_workflows_export_layered_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportLayeredWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/export-gif":{"post":{"tags":["workflows"],"summary":"Submit Export Gif Workflow","description":"Submit a workflow to convert a video to an animated GIF.\n\nThe video at `source_s3_key` becomes a silent GIF that loops forever, at 15 fps, its longest side 720 px (never upscaled), with one palette for the whole clip. It is stored under `output_path`. There is no webhook: poll `GET /workflows/{workflow_id}/status`, whose `result` carries `s3_key`, `size_bytes` and `file_name`. A video longer than 30 seconds fails the run with `invalid_input`.","operationId":"submit_export_gif_workflow_workflows_export_gif_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportGifWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/import-psd":{"post":{"tags":["workflows"],"summary":"Submit Import Psd Workflow","description":"Submit a workflow to import a Photoshop file as editable media-composer designs.\n\nThe `.psd` at `source_s3_key` becomes one composition per design: the master is the top-level language group visible on save (with every shared visible layer), and each hidden sibling language group (`EN`, `AR`, ...) becomes a variant on the same canvas. Text layers stay text, in the brand font from `fonts` that matches the PSD font (by PostScript name, then by family, weight and style), else a bundled family, else a substitute. Pixel layers and smart objects become image layers stored under `asset_path`; vector smart objects are redrawn from their embedded PDF at twice their size where that matches the stored pixels. Image layers are named by what they show. Nothing is rendered: the caller renders each composition.\n\nThere is no webhook: poll `GET /workflows/{workflow_id}/status`, whose `result` carries `master` and `variants` (each `group` and `composition`), `composite_url` (the PSD's own flattened preview) and `report` (fonts substituted, layers flattened or dropped, artwork a variant shares with the master). A file over 250 MB, not a PSD, with no layers, or not in RGB fails as `invalid_input` with the reason `tooLarge`, `notPsd`, `noLayers` or `colorMode`. The import is free.","operationId":"submit_import_psd_workflow_workflows_import_psd_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportPsdWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/render-pages":{"post":{"tags":["workflows"],"summary":"Submit Render Pages Workflow","description":"Submit a workflow to render a multi-page composition (a carousel) to PNG stills and one zip of them.\n\nEach of the 2 to 10 `documents` is a media-composer composition rendered to a PNG still, as `/render` does with an image output; the pages render concurrently. The PNGs are then zipped, in document order, as `page-01.png`, `page-02.png`, ... under `output_path`. The `render_pages.succeeded` webhook carries every page (`s3_key`, `url`, `thumbnail_url`, `width`, `height`, in document order) and the archive's `archive_s3_key` and `archive_url`; any page failing fails the whole run with `render_pages.failed`.","operationId":"submit_render_pages_workflow_workflows_render_pages_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderPagesWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/normalize-video":{"post":{"tags":["workflows"],"summary":"Submit Normalize Video Workflow","description":"Normalize an ingested video into browser-safe derivatives.\n\nTranscodes the original at `source_key` (left untouched) into:\n- **Normalized master** — faststart H.264/AAC MP4, constant frame rate conformed to the source's dominant rate (≤60fps), ≤2s closed GOPs. The render/export source of truth.\n- **Editing proxy** — same fps, frame count, and timestamps as the master (frame-indexed comments map 1:1), uniformly scaled into 1280x720, 1s GOPs. Skipped when the master is already ≤720p and ≤10MB — the payload's `proxy` then points at the master.\n- **Poster** — JPEG frame at min(0.5s, 5% of duration), max width 640.\n\nOutput keys derive from `source_key` (`_master.mp4` / `_proxy.mp4` / `_poster.jpg` suffixes), so retries are idempotent. The completion webhook (`normalize_video.succeeded`) carries the renditions plus `fps` (exact rational), `frame_count`, `duration_ms`, `has_audio`, and `source_was_vfr`; failures send `normalize_video.failed` with an error reason.","operationId":"submit_normalize_video_workflow_workflows_normalize_video_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NormalizeVideoWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/generate_audio":{"post":{"tags":["workflows"],"summary":"Submit Generate Audio Workflow","description":"Generate one audio file (speech, music or a sound effect) and store it under `output_path`.\n\n`source` is one of:\n- `{\"kind\": \"speech\", \"text\": ..., \"voice\"?: ..., \"language\"?: \"en\"}`: text read aloud, up to 600 characters.\n- `{\"kind\": \"music\", \"prompt\": ..., \"seconds\": 3-30}`: an instrumental piece.\n- `{\"kind\": \"effect\", \"prompt\": ..., \"seconds\"?: 0.5-10}`: a sound effect; without `seconds` the provider picks the length. On the google provider an effect is a short musical cue (stinger, riser, swell, hit), not foley.\n- `{\"kind\": \"compose\", \"prompt\": ..., \"seconds\": 0.5-30, \"role\"?: \"music\" | \"sfx\"}`: the designer model writes a synthesised score from the prompt and the backend renders it to WAV; no audio provider involved.\n\nThe result (on `GET /workflows/{workflow_id}/status` and the `generate_audio.succeeded` webhook) is `{url, s3_key, seconds, content_type, size_bytes}`; `seconds` is the measured length of the file. A deployment whose provider is not configured (`none`, or `fal` without `FAL_KEY`; for `compose`, without `ANTHROPIC_API_KEY`) rejects the request with 503 before anything starts; failures send `generate_audio.failed`. With `sync=true` the response is the result itself, a 408 on `sync_timeout`, or a 500 whose `detail.message` carries the provider's error. Worst case is 482 s.","operationId":"submit_generate_audio_workflow_workflows_generate_audio_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateAudioWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/compute-phash":{"post":{"tags":["workflows"],"summary":"Submit Compute Phash Workflow","description":"Compute the perceptual hash of a media file.","operationId":"submit_compute_phash_workflow_workflows_compute_phash_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputePhashWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/design_system_extraction":{"post":{"tags":["workflows"],"summary":"Submit Design System Extraction Workflow","description":"Build a draft design system from brand guidelines or a website.\n\nA tool-using model reads the source and sends each change to the draft as a\n``design_system_extraction.step`` webhook, then ``design_system_extraction.succeeded`` or\n``.failed``. Saved logos, elements, references and font files are written under\n``brands/<brand_id>/identity/design-systems/<design_system_id>/``. A file is capped at 100 pages\nand 50 MB.","operationId":"submit_design_system_extraction_workflow_workflows_design_system_extraction_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignSystemExtractionWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/design_system_aesthetic":{"post":{"tags":["workflows"],"summary":"Submit Design System Aesthetic Workflow","description":"Redraw a design system's reference contact sheet and, when ``rewrite_aesthetic`` is set,\nrewrite its aesthetic from the references, keeping the current wording where it still\nfits. Answers with ``design_system_aesthetic.succeeded`` or ``.failed``.","operationId":"submit_design_system_aesthetic_workflow_workflows_design_system_aesthetic_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignSystemAestheticWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/compute-embedding":{"post":{"tags":["workflows"],"summary":"Submit Compute Embedding Workflow","description":"Compute the CLIP embedding of a media file.","operationId":"submit_compute_embedding_workflow_workflows_compute_embedding_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sync"}},{"name":"sync_timeout","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":60,"title":"Sync Timeout"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeEmbeddingWorkflowInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/extract-creative-features":{"post":{"tags":["workflows"],"summary":"Submit Extract Creative Features Workflow","operationId":"submit_extract_creative_features_workflow_workflows_extract_creative_features_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractCreativeFeaturesWorkflowInputAPI"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSubmissionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/workflows/{workflow_id}/status":{"get":{"tags":["workflows"],"summary":"Get Workflow Status","operationId":"get_workflow_status_workflows__workflow_id__status_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/{workflow_id}/cancel":{"post":{"tags":["workflows"],"summary":"Cancel Workflow","operationId":"cancel_workflow_workflows__workflow_id__cancel_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Cancel Workflow Workflows  Workflow Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/ingest":{"post":{"tags":["metrics"],"summary":"Submit Metrics Ingestion","operationId":"submit_metrics_ingestion_metrics_ingest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsIngestInputAPI"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSubmissionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/metrics/analyse":{"post":{"tags":["metrics"],"summary":"Submit Brand Analysis","operationId":"submit_brand_analysis_metrics_analyse_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandAnalysisRequestAPI"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSubmissionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/metrics/mktg_metrics_post_timeseries":{"get":{"tags":["metrics"],"summary":"Get Post Timeseries","operationId":"get_post_timeseries_metrics_mktg_metrics_post_timeseries_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform (e.g. instagram, facebook, linkedin).","title":"Platform"},"description":"Platform (e.g. instagram, facebook, linkedin)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"post_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Restrict rows to these platform post ids (post_id). Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope.","title":"Post Ids"},"description":"Restrict rows to these platform post ids (post_id). Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope."},{"name":"days_back","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Window shorthand: rows from utc_today - days_back through utc_today. Mutually exclusive with from_day/to_day; omit all three for full history.","title":"Days Back"},"description":"Window shorthand: rows from utc_today - days_back through utc_today. Mutually exclusive with from_day/to_day; omit all three for full history."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive window start (ISO date).","title":"From Day"},"description":"Inclusive window start (ISO date)."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive window end (ISO date).","title":"To Day"},"description":"Inclusive window end (ISO date)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostTimeseriesPackedPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_kpi_timeseries":{"get":{"tags":["metrics"],"summary":"Get Kpi Timeseries","operationId":"get_kpi_timeseries_metrics_mktg_metrics_kpi_timeseries_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"days_back","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Window shorthand: rows from utc_today - days_back through utc_today. Mutually exclusive with from_day/to_day; omit all three for full history.","title":"Days Back"},"description":"Window shorthand: rows from utc_today - days_back through utc_today. Mutually exclusive with from_day/to_day; omit all three for full history."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive window start (ISO date).","title":"From Day"},"description":"Inclusive window start (ISO date)."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive window end (ISO date).","title":"To Day"},"description":"Inclusive window end (ISO date)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailySeriesPackedPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_publication_performance":{"get":{"tags":["metrics"],"summary":"Get Publication Performance","operationId":"get_publication_performance_metrics_mktg_metrics_publication_performance_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"window_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day.","title":"Window Days"},"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today.","title":"From Day"},"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive end of a custom window (ISO date).","title":"To Day"},"description":"Inclusive end of a custom window (ISO date)."},{"name":"native_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Restrict rows to these platform post or ad ids (native_id); rank stays account-wide. Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope.","title":"Native Ids"},"description":"Restrict rows to these platform post or ad ids (native_id); rank stays account-wide. Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationPerformancePageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_creative_performance":{"get":{"tags":["metrics"],"summary":"Get Creative Performance","operationId":"get_creative_performance_metrics_mktg_metrics_creative_performance_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"window_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day.","title":"Window Days"},"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today.","title":"From Day"},"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive end of a custom window (ISO date).","title":"To Day"},"description":"Inclusive end of a custom window (ISO date)."},{"name":"creative_asset_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Restrict rows to these creative asset ids (creative_asset_id); rank stays account-wide. Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope.","title":"Creative Asset Ids"},"description":"Restrict rows to these creative asset ids (creative_asset_id); rank stays account-wide. Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreativePerformancePageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_creative_feature_lifts":{"get":{"tags":["metrics"],"summary":"Get Creative Feature Lifts","description":"No sample-size minimums: every computable feature value has a row with its true post\ncounts; rank by the *_lift_pct_smoothed columns, which shrink thin samples toward\n0%.","operationId":"get_creative_feature_lifts_metrics_mktg_metrics_creative_feature_lifts_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"window_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter to a specific window (7, 30, or 90).","title":"Window Days"},"description":"Filter to a specific window (7, 30, or 90)."},{"name":"feature_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to a single feature dimension.","title":"Feature Key"},"description":"Filter to a single feature dimension."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreativeFeatureLiftPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_creative_features":{"get":{"tags":["metrics"],"summary":"Get Creative Features","operationId":"get_creative_features_metrics_mktg_metrics_creative_features_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"creative_asset_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Restrict rows to these creative asset ids (creative_asset_id). Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope.","title":"Creative Asset Ids"},"description":"Restrict rows to these creative asset ids (creative_asset_id). Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreativeAssetFeaturesPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_ad_performance":{"get":{"tags":["metrics"],"summary":"Get Ad Performance","operationId":"get_ad_performance_metrics_mktg_metrics_ad_performance_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"window_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day.","title":"Window Days"},"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today.","title":"From Day"},"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive end of a custom window (ISO date).","title":"To Day"},"description":"Inclusive end of a custom window (ISO date)."},{"name":"ad_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Restrict rows to these platform ad ids (ad_id). Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope.","title":"Ad Ids"},"description":"Restrict rows to these platform ad ids (ad_id). Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPerformancePageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_campaign_performance":{"get":{"tags":["metrics"],"summary":"Get Campaign Performance","operationId":"get_campaign_performance_metrics_mktg_metrics_campaign_performance_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"window_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day.","title":"Window Days"},"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today.","title":"From Day"},"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive end of a custom window (ISO date).","title":"To Day"},"description":"Inclusive end of a custom window (ISO date)."},{"name":"campaign_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Restrict rows to these platform campaign ids (campaign_id). Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope.","title":"Campaign Ids"},"description":"Restrict rows to these platform campaign ids (campaign_id). Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignPerformancePageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_ad_group_performance":{"get":{"tags":["metrics"],"summary":"Get Ad Group Performance","operationId":"get_ad_group_performance_metrics_mktg_metrics_ad_group_performance_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"window_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day.","title":"Window Days"},"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today.","title":"From Day"},"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive end of a custom window (ISO date).","title":"To Day"},"description":"Inclusive end of a custom window (ISO date)."},{"name":"ad_group_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Restrict rows to these platform ad group ids (ad_group_id). Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope.","title":"Ad Group Ids"},"description":"Restrict rows to these platform ad group ids (ad_group_id). Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdGroupPerformancePageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_paid_timeseries":{"get":{"tags":["metrics"],"summary":"Get Paid Timeseries","operationId":"get_paid_timeseries_metrics_mktg_metrics_paid_timeseries_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["campaign","ad_group","ad"],"type":"string"},{"type":"null"}],"description":"Filter to one grain (campaign, ad_group, ad).","title":"Entity Type"},"description":"Filter to one grain (campaign, ad_group, ad)."},{"name":"entity_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"},"maxItems":100},{"type":"null"}],"description":"Restrict rows to these platform ids of the entity_type grain (entity_id); requires entity_type. Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope.","title":"Entity Ids"},"description":"Restrict rows to these platform ids of the entity_type grain (entity_id); requires entity_type. Repeat the parameter once per id, at most 100 per request. Applied on top of the other filters, never instead of them; omit for every row in scope."},{"name":"days_back","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Window shorthand: rows from utc_today - days_back through utc_today. Mutually exclusive with from_day/to_day; omit all three for full history.","title":"Days Back"},"description":"Window shorthand: rows from utc_today - days_back through utc_today. Mutually exclusive with from_day/to_day; omit all three for full history."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive window start (ISO date).","title":"From Day"},"description":"Inclusive window start (ISO date)."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive window end (ISO date).","title":"To Day"},"description":"Inclusive window end (ISO date)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidTimeseriesPackedPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_brand_analyses":{"get":{"tags":["metrics"],"summary":"Get Brand Analyses","operationId":"get_brand_analyses_metrics_mktg_metrics_brand_analyses_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandAnalysisPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_organic_baselines":{"get":{"tags":["metrics"],"summary":"Get Organic Baselines","operationId":"get_organic_baselines_metrics_mktg_metrics_organic_baselines_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"window_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter to a specific window (7, 30, or 90).","title":"Window Days"},"description":"Filter to a specific window (7, 30, or 90)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganicBaselinesPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/mktg_metrics_audience_breakdown":{"get":{"tags":["metrics"],"summary":"Get Audience Breakdown","operationId":"get_audience_breakdown_metrics_mktg_metrics_audience_breakdown_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","description":"Brand to scope the read to.","title":"Brand Id"},"description":"Brand to scope the read to."},{"name":"platform","in":"query","required":true,"schema":{"type":"string","description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads).","title":"Platform"},"description":"Platform of the account (e.g. instagram, facebook, linkedin, meta_ads)."},{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Platform account id for the connection.","title":"Account Id"},"description":"Platform account id for the connection."},{"name":"window_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day.","title":"Window Days"},"description":"Filter to a specific standard window (7, 30, or 90). Not combined with from_day/to_day."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today.","title":"From Day"},"description":"Inclusive start of a custom window (ISO date), with to_day. The rows then cover that one window, with window_days its length in days and the prior period the same number of days before it. Omit both for the standard 7/30/90-day windows ending today."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Inclusive end of a custom window (ISO date).","title":"To Day"},"description":"Inclusive end of a custom window (ISO date)."},{"name":"dimension","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to a dimension (age, gender, country, city).","title":"Dimension"},"description":"Filter to a dimension (age, gender, country, city)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return all rows in a single response.","title":"Limit"},"description":"Max rows per page. Omit to return all rows in a single response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceBreakdownPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/sync":{"post":{"tags":["ad-intelligence"],"summary":"Submit Ad Intelligence Sync","operationId":"submit_ad_intelligence_sync_ad_intelligence_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceSyncInputAPI"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSubmissionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/ad-intelligence/ads":{"get":{"tags":["ad-intelligence"],"summary":"Get Ads","operationId":"get_ads_ad_intelligence_ads_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Only ads still running (true) or ended (false).","title":"Is Active"},"description":"Only ads still running (true) or ended (false)."},{"name":"media_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["image","video"],"type":"string"},{"type":"null"}],"description":"video: carries a video; image: carries an image and no video.","title":"Media Type"},"description":"video: carries a video; image: carries an image and no video."},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Publisher platform, e.g. INSTAGRAM.","title":"Platform"},"description":"Publisher platform, e.g. INSTAGRAM."},{"name":"regions","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Reached region codes (ISO 3166-1 alpha-2); any match qualifies.","title":"Regions"},"description":"Reached region codes (ISO 3166-1 alpha-2); any match qualifies."},{"name":"ad_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Restrict to these ad archive ids.","title":"Ad Ids"},"description":"Restrict to these ad archive ids."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Keyword, case-insensitive: ads whose title, body, caption, link description or card copy contains it.","title":"Q"},"description":"Keyword, case-insensitive: ads whose title, body, caption, link description or card copy contains it."},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","longest_running"],"type":"string","description":"newest: latest start date first; longest_running: most active days first (to today while the ad runs). Grouped by creative, a creative runs from its first ad's start to its last ad's end.","default":"newest","title":"Sort"},"description":"newest: latest start date first; longest_running: most active days first (to today while the ad runs). Grouped by creative, a creative runs from its first ad's start to its last ad's end."},{"name":"group_by_creative","in":"query","required":false,"schema":{"type":"boolean","description":"One row per creative the filtered ads belong to: its newest matching ad, with the creative_* counts and dates over all of its ads.","default":false,"title":"Group By Creative"},"description":"One row per creative the filtered ads belong to: its newest matching ad, with the creative_* counts and dates over all of its ads."},{"name":"creative_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only the ads of this creative; needs exactly one advertiser.","title":"Creative Id"},"description":"Only the ads of this creative; needs exactly one advertiser."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page; when given, the scope and filters are ignored.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page; when given, the scope and filters are ignored."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":200,"minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return every row in one response.","title":"Limit"},"description":"Max rows per page. Omit to return every row in one response."},{"name":"advertisers","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix.","default":[],"title":"Advertisers"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceAdsPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/advertisers/timeseries":{"get":{"tags":["ad-intelligence"],"summary":"Get Advertiser Timeseries","operationId":"get_advertiser_timeseries_ad_intelligence_advertisers_timeseries_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day of the range (inclusive).","title":"From Day"},"description":"First day of the range (inclusive)."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day of the range (inclusive).","title":"To Day"},"description":"Last day of the range (inclusive)."},{"name":"advertisers","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix.","default":[],"title":"Advertisers"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceAdvertiserTimeseriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/breakdowns":{"get":{"tags":["ad-intelligence"],"summary":"Get Breakdowns","operationId":"get_breakdowns_ad_intelligence_breakdowns_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Restrict to running (true) or ended (false) ads; a post is running while daily syncs still re-measure it.","title":"Is Active"},"description":"Restrict to running (true) or ended (false) ads; a post is running while daily syncs still re-measure it."},{"name":"since_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":400,"minimum":1},{"type":"null"}],"description":"Only ads that started, or posts published, within this many days.","title":"Since Days"},"description":"Only ads that started, or posts published, within this many days."},{"name":"creatives","in":"query","required":false,"schema":{"anyOf":[{"enum":["ads","posts"],"type":"string"},{"type":"null"}],"description":"ads: only the ad accounts' ads; posts: only the organic accounts' posts. Omit for both.","title":"Creatives"},"description":"ads: only the ad accounts' ads; posts: only the organic accounts' posts. Omit for both."},{"name":"advertisers","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix.","default":[],"title":"Advertisers"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceBreakdownsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/audience":{"get":{"tags":["ad-intelligence"],"summary":"Get Audience","operationId":"get_audience_ad_intelligence_audience_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Restrict to running (true) or ended (false) ads.","title":"Is Active"},"description":"Restrict to running (true) or ended (false) ads."},{"name":"since_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":400,"minimum":1},{"type":"null"}],"description":"Only ads that started within this many days of today.","title":"Since Days"},"description":"Only ads that started within this many days of today."},{"name":"advertisers","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix.","default":[],"title":"Advertisers"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceAudienceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/competitor-analyses":{"post":{"tags":["ad-intelligence"],"summary":"Submit Competitor Analysis","operationId":"submit_competitor_analysis_ad_intelligence_competitor_analyses_post","security":[{"APIKeyHeader":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorAnalysisInputAPI"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSubmissionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ad-intelligence"],"summary":"Get Competitor Analyses","operationId":"get_competitor_analyses_ad_intelligence_competitor_analyses_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"group_keys","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Competitor group keys (lowercase hex SHA-256).","default":[],"title":"Group Keys"},"description":"Competitor group keys (lowercase hex SHA-256)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceCompetitorAnalysesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/posts":{"get":{"tags":["ad-intelligence"],"summary":"Get Posts","description":"Ad accounts in scope are ignored; narrow by network through the scope.","operationId":"get_posts_ad_intelligence_posts_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"media_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["image","video","carousel","text"],"type":"string"},{"type":"null"}],"title":"Media Type"}},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Published on or after this day.","title":"From Day"},"description":"Published on or after this day."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Published on or before this day.","title":"To Day"},"description":"Published on or before this day."},{"name":"post_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Restrict to these post ids (without channel).","title":"Post Ids"},"description":"Restrict to these post ids (without channel)."},{"name":"sort","in":"query","required":false,"schema":{"enum":["published_at","engagement","views","lift"],"type":"string","description":"published_at: newest first; engagement: most likes, comments, shares and saves first; views: most views first (posts without views last); lift: engagement over the account's median per post in the range first (posts without a lift last).","default":"published_at","title":"Sort"},"description":"published_at: newest first; engagement: most likes, comments, shares and saves first; views: most views first (posts without views last); lift: engagement over the account's median per post in the range first (posts without a lift last)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page; when given, the scope and filters are ignored.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page; when given, the scope and filters are ignored."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":200,"minimum":1},{"type":"null"}],"description":"Max rows per page. Omit to return every row in one response.","title":"Limit"},"description":"Max rows per page. Omit to return every row in one response."},{"name":"advertisers","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix.","default":[],"title":"Advertisers"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligencePostsPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/posts/timeseries":{"get":{"tags":["ad-intelligence"],"summary":"Get Post Timeseries","operationId":"get_post_timeseries_ad_intelligence_posts_timeseries_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"post","in":"query","required":true,"schema":{"type":"string","description":"The post as channel:advertiser_id:post_id.","title":"Post"},"description":"The post as channel:advertiser_id:post_id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligencePostTimeseriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/posts/comment-summary":{"get":{"tags":["ad-intelligence"],"summary":"Get Post Comment Summaries","operationId":"get_post_comment_summaries_ad_intelligence_posts_comment_summary_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"posts","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":200,"description":"Posts as channel:advertiser_id:post_id; one row per post with a summary.","default":[],"title":"Posts"},"description":"Posts as channel:advertiser_id:post_id; one row per post with a summary."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligencePostCommentSummariesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/organic/summary":{"get":{"tags":["ad-intelligence"],"summary":"Get Organic Summary","operationId":"get_organic_summary_ad_intelligence_organic_summary_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day of the range. Omit for 30 days.","title":"From Day"},"description":"First day of the range. Omit for 30 days."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day of the range (inclusive). Omit for today.","title":"To Day"},"description":"Last day of the range (inclusive). Omit for today."},{"name":"advertisers","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix.","default":[],"title":"Advertisers"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceOrganicSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/organic/activity":{"get":{"tags":["ad-intelligence"],"summary":"Get Organic Activity","operationId":"get_organic_activity_ad_intelligence_organic_activity_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day of the range. Omit for 90 days.","title":"From Day"},"description":"First day of the range. Omit for 90 days."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day of the range (inclusive). Omit for today.","title":"To Day"},"description":"Last day of the range (inclusive). Omit for today."},{"name":"advertisers","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix.","default":[],"title":"Advertisers"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/competitor-analyses/campaigns":{"get":{"tags":["ad-intelligence"],"summary":"Get Competitor Campaigns","operationId":"get_competitor_campaigns_ad_intelligence_competitor_analyses_campaigns_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First day a report was written. Omit for 90 days.","title":"From Day"},"description":"First day a report was written. Omit for 90 days."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last day of the range (inclusive). Omit for today.","title":"To Day"},"description":"Last day of the range (inclusive). Omit for today."},{"name":"advertisers","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix.","default":[],"title":"Advertisers"},"description":"Advertisers to read, each as channel:advertiser_id (e.g. meta:123, tiktok:7647240890083328016); channels may mix."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceCampaignsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/organic/comments":{"get":{"tags":["ad-intelligence"],"summary":"Get Organic Comments","operationId":"get_organic_comments_ad_intelligence_organic_comments_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"group_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The competitor group whose newest report labels each comment with its themes, and whose theme ``theme`` names.","title":"Group Key"},"description":"The competitor group whose newest report labels each comment with its themes, and whose theme ``theme`` names."},{"name":"theme","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"A comment theme of the group's newest report: the comments under the post themes it merges. Requires group_key.","title":"Theme"},"description":"A comment theme of the group's newest report: the comments under the post themes it merges. Requires group_key."},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","most_liked"],"type":"string","description":"newest: latest published first, an undated comment by when it was read; most_liked: most likes first.","default":"newest","title":"Sort"},"description":"newest: latest published first, an undated comment by when it was read; most_liked: most likes first."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by a prior call. Omit for the first page; when given, send the same accounts and filters, or the call is refused.","title":"Cursor"},"description":"Opaque cursor returned by a prior call. Omit for the first page; when given, send the same accounts and filters, or the call is refused."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"accounts","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":50,"description":"Organic accounts whose comments to read, each as channel:advertiser_id (e.g. organic_instagram:acme); ad accounts are ignored.","title":"Accounts"},"description":"Organic accounts whose comments to read, each as channel:advertiser_id (e.g. organic_instagram:acme); ad accounts are ignored."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Text, case-insensitive: comments whose text, author name or author handle contains it.","title":"Q"},"description":"Text, case-insensitive: comments whose text, author name or author handle contains it."},{"name":"sentiment","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["positive","neutral","negative"],"type":"string"}},{"type":"null"}],"title":"Sentiment"}},{"name":"post","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only this post, as channel:post_id.","title":"Post"},"description":"Only this post, as channel:post_id."},{"name":"commenter","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"description":"Only this commenter's comments, as channel:author_handle.","title":"Commenter"},"description":"Only this commenter's comments, as channel:author_handle."},{"name":"min_likes","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Comments with at least this many likes.","title":"Min Likes"},"description":"Comments with at least this many likes."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Comments published on or after this day; an undated comment by when it was read.","title":"From Day"},"description":"Comments published on or after this day; an undated comment by when it was read."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Comments published on or before this day; an undated comment by when it was read.","title":"To Day"},"description":"Comments published on or before this day; an undated comment by when it was read."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceCommentsPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/organic/comments/days":{"get":{"tags":["ad-intelligence"],"summary":"Get Organic Comment Days","operationId":"get_organic_comment_days_ad_intelligence_organic_comments_days_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"group_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The competitor group whose newest report labels each comment with its themes, and whose theme ``theme`` names.","title":"Group Key"},"description":"The competitor group whose newest report labels each comment with its themes, and whose theme ``theme`` names."},{"name":"theme","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"A comment theme of the group's newest report: the comments under the post themes it merges. Requires group_key.","title":"Theme"},"description":"A comment theme of the group's newest report: the comments under the post themes it merges. Requires group_key."},{"name":"accounts","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":50,"description":"Organic accounts whose comments to read, each as channel:advertiser_id (e.g. organic_instagram:acme); ad accounts are ignored.","title":"Accounts"},"description":"Organic accounts whose comments to read, each as channel:advertiser_id (e.g. organic_instagram:acme); ad accounts are ignored."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Text, case-insensitive: comments whose text, author name or author handle contains it.","title":"Q"},"description":"Text, case-insensitive: comments whose text, author name or author handle contains it."},{"name":"sentiment","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["positive","neutral","negative"],"type":"string"}},{"type":"null"}],"title":"Sentiment"}},{"name":"post","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only this post, as channel:post_id.","title":"Post"},"description":"Only this post, as channel:post_id."},{"name":"commenter","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"description":"Only this commenter's comments, as channel:author_handle.","title":"Commenter"},"description":"Only this commenter's comments, as channel:author_handle."},{"name":"min_likes","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Comments with at least this many likes.","title":"Min Likes"},"description":"Comments with at least this many likes."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Comments published on or after this day; an undated comment by when it was read.","title":"From Day"},"description":"Comments published on or after this day; an undated comment by when it was read."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Comments published on or before this day; an undated comment by when it was read.","title":"To Day"},"description":"Comments published on or before this day; an undated comment by when it was read."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceCommentDaysResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ad-intelligence/organic/comments/facets":{"get":{"tags":["ad-intelligence"],"summary":"Get Organic Comment Facets","operationId":"get_organic_comment_facets_ad_intelligence_organic_comments_facets_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"group_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The competitor group whose report themes to count comments under.","title":"Group Key"},"description":"The competitor group whose report themes to count comments under."},{"name":"from_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Comments published on or after this day; an undated comment by when it was read.","title":"From Day"},"description":"Comments published on or after this day; an undated comment by when it was read."},{"name":"to_day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Comments published on or before this day; an undated comment by when it was read.","title":"To Day"},"description":"Comments published on or before this day; an undated comment by when it was read."},{"name":"accounts","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":50,"description":"Organic accounts whose comments to read, each as channel:advertiser_id (e.g. organic_instagram:acme); ad accounts are ignored.","title":"Accounts"},"description":"Organic accounts whose comments to read, each as channel:advertiser_id (e.g. organic_instagram:acme); ad accounts are ignored."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceCommentFacetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audio/voices":{"get":{"tags":["audio"],"summary":"List Speech Voices","description":"The voices `speech` accepts on this deployment's audio provider; empty when\nthe provider is `none`.","operationId":"list_speech_voices_audio_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeechVoicesResponse"}}}}},"security":[{"APIKeyHeader":[]}]}},"/ops/convex-sync":{"get":{"tags":["ops"],"summary":"Convex Sync Status","description":"The convex-sync service's status record: whether an instance holds its lock,\njudged by the database clock, and each mirrored table's progress and last\nerror. `service` is null when the sync is not configured or has never run.","operationId":"convex_sync_status_ops_convex_sync_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvexSyncStatusResponse"}}}}},"security":[{"APIKeyHeader":[]}]}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"webhooks":{"ad_intelligence_sync.failed":{"post":{"summary":"Ad Intelligence Sync.Failed","operationId":"ad_intelligence_sync_failedad_intelligence_sync_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceSyncFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"ad_intelligence_sync.progress":{"post":{"summary":"Ad Intelligence Sync.Progress","operationId":"ad_intelligence_sync_progressad_intelligence_sync_progress_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceSyncProgressWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"ad_intelligence_sync.succeeded":{"post":{"summary":"Ad Intelligence Sync.Succeeded","operationId":"ad_intelligence_sync_succeededad_intelligence_sync_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdIntelligenceSyncSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"audio_uploads.failed":{"post":{"summary":"Audio Uploads.Failed","operationId":"audio_uploads_failedaudio_uploads_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioUploadsFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"audio_uploads.succeeded":{"post":{"summary":"Audio Uploads.Succeeded","operationId":"audio_uploads_succeededaudio_uploads_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioUploadsSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"brand_analysis.failed":{"post":{"summary":"Brand Analysis.Failed","operationId":"brand_analysis_failedbrand_analysis_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandAnalysisFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"brand_analysis.succeeded":{"post":{"summary":"Brand Analysis.Succeeded","operationId":"brand_analysis_succeededbrand_analysis_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandAnalysisSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"competitor_analysis.failed":{"post":{"summary":"Competitor Analysis.Failed","operationId":"competitor_analysis_failedcompetitor_analysis_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorAnalysisFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"competitor_analysis.succeeded":{"post":{"summary":"Competitor Analysis.Succeeded","operationId":"competitor_analysis_succeededcompetitor_analysis_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorAnalysisSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"compose.failed":{"post":{"summary":"Compose.Failed","operationId":"compose_failedcompose_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"compose.succeeded":{"post":{"summary":"Compose.Succeeded","operationId":"compose_succeededcompose_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"compute_embedding.failed":{"post":{"summary":"Compute Embedding.Failed","operationId":"compute_embedding_failedcompute_embedding_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeEmbeddingFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"compute_embedding.succeeded":{"post":{"summary":"Compute Embedding.Succeeded","operationId":"compute_embedding_succeededcompute_embedding_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeEmbeddingSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"compute_phash.failed":{"post":{"summary":"Compute Phash.Failed","operationId":"compute_phash_failedcompute_phash_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputePhashFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"compute_phash.succeeded":{"post":{"summary":"Compute Phash.Succeeded","operationId":"compute_phash_succeededcompute_phash_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputePhashSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"design_system_aesthetic.failed":{"post":{"summary":"Design System Aesthetic.Failed","operationId":"design_system_aesthetic_faileddesign_system_aesthetic_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignSystemAestheticFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"design_system_aesthetic.succeeded":{"post":{"summary":"Design System Aesthetic.Succeeded","operationId":"design_system_aesthetic_succeededdesign_system_aesthetic_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignSystemAestheticSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"design_system_extraction.failed":{"post":{"summary":"Design System Extraction.Failed","operationId":"design_system_extraction_faileddesign_system_extraction_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignSystemExtractionFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"design_system_extraction.step":{"post":{"summary":"Design System Extraction.Step","operationId":"design_system_extraction_stepdesign_system_extraction_step_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignSystemExtractionStepWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"design_system_extraction.succeeded":{"post":{"summary":"Design System Extraction.Succeeded","operationId":"design_system_extraction_succeededdesign_system_extraction_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignSystemExtractionSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"extract_creative_features.failed":{"post":{"summary":"Extract Creative Features.Failed","operationId":"extract_creative_features_failedextract_creative_features_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractCreativeFeaturesFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"extract_creative_features.succeeded":{"post":{"summary":"Extract Creative Features.Succeeded","operationId":"extract_creative_features_succeededextract_creative_features_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractCreativeFeaturesSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"flux_3.failed":{"post":{"summary":"Flux 3.Failed","operationId":"flux_3_failedflux_3_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flux3FailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"flux_3.succeeded":{"post":{"summary":"Flux 3.Succeeded","operationId":"flux_3_succeededflux_3_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flux3SucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"gemini_omni_flash.failed":{"post":{"summary":"Gemini Omni Flash.Failed","operationId":"gemini_omni_flash_failedgemini_omni_flash_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeminiOmniFlashFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"gemini_omni_flash.succeeded":{"post":{"summary":"Gemini Omni Flash.Succeeded","operationId":"gemini_omni_flash_succeededgemini_omni_flash_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeminiOmniFlashSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"generate_audio.failed":{"post":{"summary":"Generate Audio.Failed","operationId":"generate_audio_failedgenerate_audio_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateAudioFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"generate_audio.succeeded":{"post":{"summary":"Generate Audio.Succeeded","operationId":"generate_audio_succeededgenerate_audio_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateAudioSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"gpt_image_2_5.failed":{"post":{"summary":"Gpt Image 2 5.Failed","operationId":"gpt_image_2_5_failedgpt_image_2_5_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GptImage25FailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"gpt_image_2_5.succeeded":{"post":{"summary":"Gpt Image 2 5.Succeeded","operationId":"gpt_image_2_5_succeededgpt_image_2_5_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GptImage25SucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"gpt_image_2_5_resize.failed":{"post":{"summary":"Gpt Image 2 5 Resize.Failed","operationId":"gpt_image_2_5_resize_failedgpt_image_2_5_resize_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GptImage25ResizeFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"gpt_image_2_5_resize.succeeded":{"post":{"summary":"Gpt Image 2 5 Resize.Succeeded","operationId":"gpt_image_2_5_resize_succeededgpt_image_2_5_resize_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GptImage25ResizeSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"graphics_agent.failed":{"post":{"summary":"Graphics Agent.Failed","operationId":"graphics_agent_failedgraphics_agent_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphicsAgentFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"graphics_agent.progress":{"post":{"summary":"Graphics Agent.Progress","operationId":"graphics_agent_progressgraphics_agent_progress_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphicsAgentProgressWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"graphics_agent.succeeded":{"post":{"summary":"Graphics Agent.Succeeded","operationId":"graphics_agent_succeededgraphics_agent_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphicsAgentSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"grok_v15_video.failed":{"post":{"summary":"Grok V15 Video.Failed","operationId":"grok_v15_video_failedgrok_v15_video_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrokV15VideoFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"grok_v15_video.succeeded":{"post":{"summary":"Grok V15 Video.Succeeded","operationId":"grok_v15_video_succeededgrok_v15_video_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrokV15VideoSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"ideogram_4_5.failed":{"post":{"summary":"Ideogram 4 5.Failed","operationId":"ideogram_4_5_failedideogram_4_5_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ideogram45FailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"ideogram_4_5.succeeded":{"post":{"summary":"Ideogram 4 5.Succeeded","operationId":"ideogram_4_5_succeededideogram_4_5_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ideogram45SucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"kling.failed":{"post":{"summary":"Kling.Failed","operationId":"kling_failedkling_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"kling.succeeded":{"post":{"summary":"Kling.Succeeded","operationId":"kling_succeededkling_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"kling_turbo.failed":{"post":{"summary":"Kling Turbo.Failed","operationId":"kling_turbo_failedkling_turbo_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingTurboFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"kling_turbo.succeeded":{"post":{"summary":"Kling Turbo.Succeeded","operationId":"kling_turbo_succeededkling_turbo_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingTurboSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"kling_v3.failed":{"post":{"summary":"Kling V3.Failed","operationId":"kling_v3_failedkling_v3_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingV3FailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"kling_v3.succeeded":{"post":{"summary":"Kling V3.Succeeded","operationId":"kling_v3_succeededkling_v3_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KlingV3SucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"magic_edit.failed":{"post":{"summary":"Magic Edit.Failed","operationId":"magic_edit_failedmagic_edit_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicEditFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"magic_edit.succeeded":{"post":{"summary":"Magic Edit.Succeeded","operationId":"magic_edit_succeededmagic_edit_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicEditSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"metrics.ingestion.failed":{"post":{"summary":"Metrics.Ingestion.Failed","operationId":"metrics_ingestion_failedmetrics_ingestion_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsIngestionFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"metrics.ingestion.succeeded":{"post":{"summary":"Metrics.Ingestion.Succeeded","operationId":"metrics_ingestion_succeededmetrics_ingestion_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsIngestionSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"minimax_h3.failed":{"post":{"summary":"Minimax H3.Failed","operationId":"minimax_h3_failedminimax_h3_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinimaxH3FailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"minimax_h3.succeeded":{"post":{"summary":"Minimax H3.Succeeded","operationId":"minimax_h3_succeededminimax_h3_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinimaxH3SucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"nano_banana_2.failed":{"post":{"summary":"Nano Banana 2.Failed","operationId":"nano_banana_2_failednano_banana_2_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBanana2FailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"nano_banana_2.succeeded":{"post":{"summary":"Nano Banana 2.Succeeded","operationId":"nano_banana_2_succeedednano_banana_2_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBanana2SucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"nano_banana_pro_parts.failed":{"post":{"summary":"Nano Banana Pro Parts.Failed","operationId":"nano_banana_pro_parts_failednano_banana_pro_parts_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBananaProPartsFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"nano_banana_pro_parts.succeeded":{"post":{"summary":"Nano Banana Pro Parts.Succeeded","operationId":"nano_banana_pro_parts_succeedednano_banana_pro_parts_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBananaProPartsSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"nano_banana_pro_resize.failed":{"post":{"summary":"Nano Banana Pro Resize.Failed","operationId":"nano_banana_pro_resize_failednano_banana_pro_resize_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBananaProResizeFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"nano_banana_pro_resize.succeeded":{"post":{"summary":"Nano Banana Pro Resize.Succeeded","operationId":"nano_banana_pro_resize_succeedednano_banana_pro_resize_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NanoBananaProResizeSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"normalize_video.failed":{"post":{"summary":"Normalize Video.Failed","operationId":"normalize_video_failednormalize_video_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NormalizeVideoFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"normalize_video.succeeded":{"post":{"summary":"Normalize Video.Succeeded","operationId":"normalize_video_succeedednormalize_video_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NormalizeVideoSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"remove_background.failed":{"post":{"summary":"Remove Background.Failed","operationId":"remove_background_failedremove_background_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveBackgroundFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"remove_background.succeeded":{"post":{"summary":"Remove Background.Succeeded","operationId":"remove_background_succeededremove_background_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveBackgroundSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"render_image.failed":{"post":{"summary":"Render Image.Failed","operationId":"render_image_failedrender_image_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderImageFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"render_image.succeeded":{"post":{"summary":"Render Image.Succeeded","operationId":"render_image_succeededrender_image_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderImageSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"render_pages.failed":{"post":{"summary":"Render Pages.Failed","operationId":"render_pages_failedrender_pages_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderPagesFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"render_pages.succeeded":{"post":{"summary":"Render Pages.Succeeded","operationId":"render_pages_succeededrender_pages_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderPagesSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"seed_dance_2_5_video.failed":{"post":{"summary":"Seed Dance 2 5 Video.Failed","operationId":"seed_dance_2_5_video_failedseed_dance_2_5_video_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedDance25VideoFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"seed_dance_2_5_video.succeeded":{"post":{"summary":"Seed Dance 2 5 Video.Succeeded","operationId":"seed_dance_2_5_video_succeededseed_dance_2_5_video_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedDance25VideoSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"text_to_svg.failed":{"post":{"summary":"Text To Svg.Failed","operationId":"text_to_svg_failedtext_to_svg_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextToSvgFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"text_to_svg.succeeded":{"post":{"summary":"Text To Svg.Succeeded","operationId":"text_to_svg_succeededtext_to_svg_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextToSvgSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"uploads.failed":{"post":{"summary":"Uploads.Failed","operationId":"uploads_faileduploads_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadsFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"uploads.succeeded":{"post":{"summary":"Uploads.Succeeded","operationId":"uploads_succeededuploads_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadsSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"video_uploads.failed":{"post":{"summary":"Video Uploads.Failed","operationId":"video_uploads_failedvideo_uploads_failed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoUploadsFailedWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"video_uploads.succeeded":{"post":{"summary":"Video Uploads.Succeeded","operationId":"video_uploads_succeededvideo_uploads_succeeded_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoUploadsSucceededWebhook"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AdAudience":{"properties":{"targeted":{"type":"boolean","title":"Targeted","default":false},"age_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Min"},"age_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Max"},"age_ranges":{"items":{"type":"string"},"type":"array","title":"Age Ranges"},"genders":{"items":{"type":"string"},"type":"array","title":"Genders"},"locations":{"items":{"$ref":"#/components/schemas/AdAudienceLocation"},"type":"array","title":"Locations"},"languages":{"items":{"type":"string"},"type":"array","title":"Languages"},"devices":{"items":{"type":"string"},"type":"array","title":"Devices"},"objective":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective"},"metric":{"anyOf":[{"type":"string","enum":["reach","impressions"]},{"type":"null"}],"title":"Metric"},"total_lower":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Lower"},"total_upper":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Upper"},"countries":{"items":{"$ref":"#/components/schemas/AdAudienceCountry"},"type":"array","title":"Countries"},"age_gender":{"items":{"$ref":"#/components/schemas/AdAudienceAgeGender"},"type":"array","title":"Age Gender"},"surfaces":{"items":{"$ref":"#/components/schemas/AdAudienceSurface"},"type":"array","title":"Surfaces"},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payer"},"beneficiary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Beneficiary"},"campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Name"},"ad_account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ad Account Name"}},"type":"object","title":"AdAudience","description":"Targeting, delivery and the people behind one ad (see the module)."},"AdAudienceAgeGender":{"properties":{"age_range":{"type":"string","title":"Age Range"},"female":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Female"},"male":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Male"},"unknown":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unknown"}},"type":"object","required":["age_range"],"title":"AdAudienceAgeGender","description":"People reached in one age range (``\"25-34\"``, ``\"65+\"``), by gender."},"AdAudienceCountry":{"properties":{"code":{"type":"string","title":"Code"},"lower":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lower"},"upper":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Upper"}},"type":"object","required":["code"],"title":"AdAudienceCountry","description":"What the ad got in one country (ISO 3166-1 alpha-2)."},"AdAudienceLocation":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"excluded":{"type":"boolean","title":"Excluded","default":false}},"type":"object","required":["name"],"title":"AdAudienceLocation","description":"A place the ad was aimed at, or kept away from (``excluded``)."},"AdAudienceSurface":{"properties":{"surface":{"type":"string","title":"Surface"},"lower":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lower"},"upper":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Upper"}},"type":"object","required":["surface"],"title":"AdAudienceSurface","description":"What the ad got on one surface (``SEARCH``, ``YOUTUBE``...)."},"AdDestination":{"properties":{"url":{"type":"string","title":"Url"},"domain":{"type":"string","title":"Domain"},"path":{"type":"string","title":"Path"},"page":{"type":"string","title":"Page","readOnly":true}},"type":"object","required":["url","domain","path","page"],"title":"AdDestination","description":"One landing page, parsed."},"AdGroupPerformancePageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AdGroupPerformanceRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"AdGroupPerformancePageResponse"},"AdGroupPerformanceRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"window_days":{"type":"integer","title":"Window Days"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"ad_group_id":{"type":"string","title":"Ad Group Id"},"ad_group_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ad Group Name"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Name"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"first_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Day"},"last_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Day"},"active_days":{"type":"integer","title":"Active Days"},"spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend"},"impressions":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Impressions"},"clicks":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Clicks"},"link_clicks":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Link Clicks"},"post_engagement":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Post Engagement"},"purchases":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchases"},"leads":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leads"},"purchase_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchase Value"},"ctr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ctr"},"cpc":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpc"},"roas":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Roas"},"cost_per_purchase":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Purchase"},"cost_per_lead":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Lead"},"cost_per_link_click":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Link Click"}},"type":"object","required":["brand_id","window_days","platform","account_id","ad_group_id","active_days"],"title":"AdGroupPerformanceRow","description":"Paid delivery and results of one ad group (Meta ad set) over a window.\n\nThe group's ads summed by activity day, since no integration pulls an\nad-group insights level. Additive columns and the rates computed from\nthem are exact; there is no reach, because ad reach does not sum."},"AdIntelligenceActivityAds":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"channel":{"type":"string","title":"Channel"},"display_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Format"},"started":{"type":"integer","title":"Started"},"running":{"type":"integer","title":"Running"},"started_ad_ids":{"items":{"type":"string"},"type":"array","title":"Started Ad Ids"}},"type":"object","required":["day","channel","started","running","started_ad_ids"],"title":"AdIntelligenceActivityAds","description":"Ads of one shared ``display_format`` on one ad library on ``day``: ``started``\nthat day, ``running`` that day (started included). An ad still running counts on\nevery day up to the end of the range. ``started_ad_ids`` are the ads that started."},"AdIntelligenceActivityPosts":{"properties":{"minute":{"type":"string","format":"date-time","title":"Minute"},"channel":{"type":"string","title":"Channel"},"media_type":{"type":"string","enum":["image","video","carousel","text"],"title":"Media Type"},"posts":{"type":"integer","title":"Posts"},"engagement":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Engagement"},"engaged_posts":{"type":"integer","title":"Engaged Posts"},"views":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Views"},"post_ids":{"items":{"type":"string"},"type":"array","title":"Post Ids"}},"type":"object","required":["minute","channel","media_type","posts","engaged_posts","post_ids"],"title":"AdIntelligenceActivityPosts","description":"Posts of one format published on one network in the UTC minute starting ``minute``.\n``engagement`` sums the latest reading of the ``engaged_posts`` that report any;\n``views`` is null when none reports views. Boosted posts are left out."},"AdIntelligenceActivityResponse":{"properties":{"from_day":{"type":"string","format":"date","title":"From Day"},"to_day":{"type":"string","format":"date","title":"To Day"},"posts":{"items":{"$ref":"#/components/schemas/AdIntelligenceActivityPosts"},"type":"array","title":"Posts"},"ads":{"items":{"$ref":"#/components/schemas/AdIntelligenceActivityAds"},"type":"array","title":"Ads"},"sentiment":{"items":{"$ref":"#/components/schemas/AdIntelligenceActivitySentiment"},"type":"array","title":"Sentiment"}},"type":"object","required":["from_day","to_day","posts","ads","sentiment"],"title":"AdIntelligenceActivityResponse"},"AdIntelligenceActivitySentiment":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"channel":{"type":"string","title":"Channel"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"positive":{"type":"integer","title":"Positive"},"neutral":{"type":"integer","title":"Neutral"},"negative":{"type":"integer","title":"Negative"}},"type":"object","required":["day","channel","advertiser_id","positive","neutral","negative"],"title":"AdIntelligenceActivitySentiment","description":"Labelled comments on one account's posts on ``day``. A comment the network gave\nno date counts on its post's publish day."},"AdIntelligenceAd":{"properties":{"channel":{"type":"string","title":"Channel"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"ad_archive_id":{"type":"string","title":"Ad Archive Id"},"sync_run_id":{"type":"string","title":"Sync Run Id"},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At"},"first_fetched_at":{"type":"string","format":"date-time","title":"First Fetched At"},"is_active":{"type":"boolean","title":"Is Active"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"active_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Days"},"display_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Format"},"display_format_raw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Format Raw"},"media_type":{"type":"string","title":"Media Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"cta_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Text"},"cta_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Type"},"link_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Description"},"landing_page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landing Page Url"},"spend_lower":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend Lower"},"spend_upper":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend Upper"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"publisher_platforms":{"items":{"type":"string"},"type":"array","title":"Publisher Platforms"},"region_codes":{"items":{"type":"string"},"type":"array","title":"Region Codes"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url"},"video_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video R2 Key"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"thumbnail_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail R2 Key"},"attachments":{"items":{"$ref":"#/components/schemas/AdIntelligenceAttachment"},"type":"array","title":"Attachments"},"cards":{"items":{"$ref":"#/components/schemas/AdIntelligenceCard"},"type":"array","title":"Cards"},"audience":{"anyOf":[{"$ref":"#/components/schemas/AdAudience"},{"type":"null"}]},"destination":{"anyOf":[{"$ref":"#/components/schemas/AdDestination"},{"type":"null"}]},"creative_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creative Id","description":"The creative the ad's hero still belongs to; null until the still is hashed. Ads of one advertiser share it when their stills match."},"creative_ad_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Creative Ad Count","description":"Grouped by creative: the creative's ads."},"creative_active_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Creative Active Count","description":"Grouped by creative: its ads still running."},"creative_first_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Creative First Start","description":"Grouped by creative: its earliest ad's start."},"creative_last_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Creative Last End","description":"Grouped by creative: its latest ad's end; null while any of its ads runs."}},"type":"object","required":["channel","advertiser_id","ad_archive_id","sync_run_id","fetched_at","first_fetched_at","is_active","media_type"],"title":"AdIntelligenceAd","description":"The latest snapshot of one competitor ad, media resolved to URLs.\n\nEvery URL here is an R2 URL of a file that landed: a file the sync could\nnot store has a null URL (its ``*_r2_key`` stays set), and the hero\nmedia falls back to the next file that did land. Advertiser-level facts\n(page name, likes, categories) are on the advertiser, not repeated per\nad."},"AdIntelligenceAdsPageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AdIntelligenceAd"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"AdIntelligenceAdsPageResponse"},"AdIntelligenceAdvertiserProfileFields":{"properties":{"page_likes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Likes"},"ig_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig Username"},"ig_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ig Followers"},"ig_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ig Verified"},"tiktok_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tiktok Username"},"tiktok_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tiktok Followers"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"is_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Verified"}},"type":"object","title":"AdIntelligenceAdvertiserProfileFields","description":"Profile metadata a run learned about an advertiser from its channel."},"AdIntelligenceAdvertiserSyncResult":{"properties":{"sync_run_id":{"type":"string","title":"Sync Run Id"},"channel":{"type":"string","title":"Channel"},"advertiser":{"$ref":"#/components/schemas/AdvertiserSyncOutcome"},"compaction":{"additionalProperties":{"type":"integer"},"type":"object","title":"Compaction"},"completed_at":{"type":"string","title":"Completed At"}},"type":"object","required":["sync_run_id","channel","advertiser","compaction","completed_at"],"title":"AdIntelligenceAdvertiserSyncResult"},"AdIntelligenceAdvertiserTimeseriesPoint":{"properties":{"channel":{"type":"string","title":"Channel"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"day":{"type":"string","format":"date","title":"Day"},"followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Followers"},"page_likes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Likes"},"ig_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ig Followers"},"tiktok_followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tiktok Followers"}},"type":"object","required":["channel","advertiser_id","day"],"title":"AdIntelligenceAdvertiserTimeseriesPoint","description":"One account's audience on one day: page likes and Instagram\nfollowers on ``meta``, TikTok followers on ``tiktok``, ``followers`` on an\n``organic_*`` account.\n\nOnly Meta, TikTok and organic accounts report an audience: a point exists for\nevery day a sync run read at least one metric, so Snapchat, Google and LinkedIn\nadvertisers have no points. A metric is null when the channel did not report it."},"AdIntelligenceAdvertiserTimeseriesResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AdIntelligenceAdvertiserTimeseriesPoint"},"type":"array","title":"Rows"}},"type":"object","required":["rows"],"title":"AdIntelligenceAdvertiserTimeseriesResponse"},"AdIntelligenceAttachment":{"properties":{"type":{"type":"string","enum":["image","video"],"title":"Type"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"R2 Key"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"thumbnail_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail R2 Key"}},"type":"object","required":["type"],"title":"AdIntelligenceAttachment","description":"One image or video of an ad, served from R2 (``r2_key`` is its key)."},"AdIntelligenceAudienceAgeGender":{"properties":{"age_range":{"type":"string","title":"Age Range"},"female":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Female"},"male":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Male"},"unknown":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unknown"}},"type":"object","required":["age_range"],"title":"AdIntelligenceAudienceAgeGender","description":"People reached in one age range, by gender (Meta's EU breakdown)."},"AdIntelligenceAudienceCount":{"properties":{"value":{"type":"string","title":"Value"},"ad_count":{"type":"integer","title":"Ad Count"}},"type":"object","required":["value","ad_count"],"title":"AdIntelligenceAudienceCount","description":"Ads carrying one value (a gender, an age range, a device...)."},"AdIntelligenceAudienceCountry":{"properties":{"code":{"type":"string","title":"Code"},"ad_count":{"type":"integer","title":"Ad Count"},"reach_lower":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reach Lower"},"reach_upper":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reach Upper"},"impressions_lower":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Impressions Lower"},"impressions_upper":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Impressions Upper"},"ad_ids":{"items":{"type":"string"},"type":"array","title":"Ad Ids"}},"type":"object","required":["code","ad_count","ad_ids"],"title":"AdIntelligenceAudienceCountry","description":"One country (ISO 3166-1 alpha-2): its ads and what they got there."},"AdIntelligenceAudiencePayer":{"properties":{"payer":{"type":"string","title":"Payer"},"beneficiary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Beneficiary"},"ad_count":{"type":"integer","title":"Ad Count"}},"type":"object","required":["payer","ad_count"],"title":"AdIntelligenceAudiencePayer","description":"Who paid for ads (often an agency) and on whose behalf (Meta)."},"AdIntelligenceAudienceResponse":{"properties":{"total_ads":{"type":"integer","title":"Total Ads"},"ads_with_audience":{"type":"integer","title":"Ads With Audience"},"delivery":{"items":{"$ref":"#/components/schemas/AdIntelligenceDeliveryTotal"},"type":"array","title":"Delivery"},"countries":{"items":{"$ref":"#/components/schemas/AdIntelligenceAudienceCountry"},"type":"array","title":"Countries"},"age_gender":{"items":{"$ref":"#/components/schemas/AdIntelligenceAudienceAgeGender"},"type":"array","title":"Age Gender"},"surfaces":{"items":{"$ref":"#/components/schemas/AdIntelligenceAudienceSurface"},"type":"array","title":"Surfaces"},"genders":{"items":{"$ref":"#/components/schemas/AdIntelligenceAudienceCount"},"type":"array","title":"Genders"},"ages":{"items":{"$ref":"#/components/schemas/AdIntelligenceAudienceCount"},"type":"array","title":"Ages"},"devices":{"items":{"$ref":"#/components/schemas/AdIntelligenceAudienceCount"},"type":"array","title":"Devices"},"languages":{"items":{"$ref":"#/components/schemas/AdIntelligenceAudienceCount"},"type":"array","title":"Languages"},"objectives":{"items":{"$ref":"#/components/schemas/AdIntelligenceAudienceCount"},"type":"array","title":"Objectives"},"payers":{"items":{"$ref":"#/components/schemas/AdIntelligenceAudiencePayer"},"type":"array","title":"Payers"}},"type":"object","required":["total_ads","ads_with_audience","delivery","countries","age_gender","surfaces","genders","ages","devices","languages","objectives","payers"],"title":"AdIntelligenceAudienceResponse","description":"Who the ads in scope are aimed at and who they reached.\n\nLists are ranked by ad count, ten rows each. ``genders`` and ``ages``\ncount the ads whose library disclosed targeting (``all``: aimed at\nevery gender); ``age_gender`` is people reached, from Meta only."},"AdIntelligenceAudienceSurface":{"properties":{"surface":{"type":"string","title":"Surface"},"ad_count":{"type":"integer","title":"Ad Count"},"lower":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lower"},"upper":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Upper"}},"type":"object","required":["surface","ad_count"],"title":"AdIntelligenceAudienceSurface","description":"Impressions on one Google surface: SEARCH, YOUTUBE, SHOPPING, PLAY, MAPS."},"AdIntelligenceBreakdownRow":{"properties":{"dimension":{"type":"string","enum":["display_format","media_type","platform","cta_type"],"title":"Dimension"},"value":{"type":"string","title":"Value"},"ad_count":{"type":"integer","title":"Ad Count"},"share_pct":{"type":"number","title":"Share Pct"}},"type":"object","required":["dimension","value","ad_count","share_pct"],"title":"AdIntelligenceBreakdownRow","description":"Creatives in scope (ads, and organic posts of ``organic_*`` accounts) carrying\n``value`` for ``dimension``; ``ad_count`` counts both kinds.\n\n``display_format`` values are the shared vocabulary of\n``AdIntelligenceAd.display_format``, so channels compare. A post's display format\nis IMAGE, VIDEO, CAROUSEL or TEXT; its ``media_type`` is image, video, carousel or\nnone (a text post); its ``platform`` is its network (INSTAGRAM, TIKTOK, FACEBOOK,\nLINKEDIN, YOUTUBE); it has no ``cta_type``.\n``share_pct`` is the share of every ad in scope, so a dimension's rows\nsum to at most 100 (less when some ads have no value, more than one row\nper ad for ``platform``)."},"AdIntelligenceBreakdownsResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AdIntelligenceBreakdownRow"},"type":"array","title":"Rows"},"total_ads":{"type":"integer","title":"Total Ads"}},"type":"object","required":["rows","total_ads"],"title":"AdIntelligenceBreakdownsResponse"},"AdIntelligenceCampaign":{"properties":{"kind":{"type":"string","enum":["offer","event","launch"],"title":"Kind"},"name":{"type":"string","title":"Name"},"sub_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sub Kind"},"detail":{"type":"string","title":"Detail"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"first_reported_at":{"type":"string","format":"date-time","title":"First Reported At"},"last_reported_at":{"type":"string","format":"date-time","title":"Last Reported At"},"ad_ids":{"items":{"type":"string"},"type":"array","title":"Ad Ids"},"post_ids":{"items":{"type":"string"},"type":"array","title":"Post Ids"}},"type":"object","required":["kind","name","detail","first_reported_at","last_reported_at","ad_ids","post_ids"],"title":"AdIntelligenceCampaign","description":"An offer, event or product launch named by the reports that covered the\naccounts, merged over every report in the range by kind and name. ``sub_kind`` is the offer's or event's\nkind (null for a launch). ``start_date`` and ``end_date`` are the dates the reports\ngave (a launch's ``first_seen`` is its start), null when none did; the reported-at\ntimes bound when the reports saw it. Citations are ``channel:id``."},"AdIntelligenceCampaignsResponse":{"properties":{"from_day":{"type":"string","format":"date","title":"From Day"},"to_day":{"type":"string","format":"date","title":"To Day"},"rows":{"items":{"$ref":"#/components/schemas/AdIntelligenceCampaign"},"type":"array","title":"Rows"}},"type":"object","required":["from_day","to_day","rows"],"title":"AdIntelligenceCampaignsResponse"},"AdIntelligenceCard":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"cta_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Text"},"cta_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Type"},"link_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Url"},"link_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Description"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"image_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image R2 Key"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"thumbnail_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail R2 Key"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url"},"video_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video R2 Key"},"video_preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Preview Url"},"video_preview_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Preview R2 Key"}},"type":"object","title":"AdIntelligenceCard","description":"One carousel / dynamic creative card."},"AdIntelligenceComment":{"properties":{"channel":{"type":"string","title":"Channel"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"post_id":{"type":"string","title":"Post Id"},"comment_id":{"type":"string","title":"Comment Id"},"text":{"type":"string","title":"Text"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"author_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Handle"},"author_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Avatar Url"},"like_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Like Count"},"reply_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Count"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"sentiment":{"anyOf":[{"type":"string","enum":["positive","neutral","negative"]},{"type":"null"}],"title":"Sentiment"},"themes":{"items":{"type":"string"},"type":"array","title":"Themes"},"report_themes":{"items":{"type":"string"},"type":"array","title":"Report Themes"},"day":{"type":"string","format":"date","title":"Day"},"copies":{"type":"integer","title":"Copies"},"posts":{"type":"integer","title":"Posts"},"reworded":{"type":"boolean","title":"Reworded"},"post_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Url"},"post_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Image Url"},"post_caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Caption"},"post_media_type":{"anyOf":[{"type":"string","enum":["image","video","carousel","text"]},{"type":"null"}],"title":"Post Media Type"}},"type":"object","required":["channel","advertiser_id","post_id","comment_id","text","themes","report_themes","day","copies","posts","reworded"],"title":"AdIntelligenceComment","description":"One comment, its latest read. A commenter who posted one comment more than once\n(``organic.comment_pages.text_key``: @tags, links, punctuation, emoji and case\naside) is one comment: the newest copy, with ``copies``\nand ``posts`` counting the copies the filters match and the posts they are on,\n``reworded`` when their texts differ, and ``like_count`` the most any copy has. ``text`` keeps the commenter's @mentions. ``sentiment`` is null and ``themes`` empty when labelling it failed; ``themes``\nare names of its post's comment-summary themes, and ``report_themes`` the themes\nof the ``group_key`` report that merge them. ``day`` is the day it is filtered and\ngrouped by: when it was published, or read when the network gave no date.\n``author_avatar_url`` is null: commenters' pictures are not stored.\n``post_caption`` is cut at 300 characters."},"AdIntelligenceCommentDay":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"total":{"type":"integer","title":"Total"},"positive":{"type":"integer","title":"Positive"},"neutral":{"type":"integer","title":"Neutral"},"negative":{"type":"integer","title":"Negative"},"complaint_themes":{"items":{"type":"string"},"type":"array","title":"Complaint Themes"}},"type":"object","required":["day","total","positive","neutral","negative","complaint_themes"],"title":"AdIntelligenceCommentDay","description":"``complaint_themes`` are the report themes with the most negative comments\nthat day, most first."},"AdIntelligenceCommentDaysResponse":{"properties":{"days":{"items":{"$ref":"#/components/schemas/AdIntelligenceCommentDay"},"type":"array","title":"Days"}},"type":"object","required":["days"],"title":"AdIntelligenceCommentDaysResponse","description":"The days with a matching comment, newest first."},"AdIntelligenceCommentFacetsResponse":{"properties":{"total":{"type":"integer","title":"Total"},"sentiment":{"$ref":"#/components/schemas/AdIntelligenceCommentSentimentCounts"},"themes":{"items":{"$ref":"#/components/schemas/AdIntelligenceCommentThemeCount"},"type":"array","title":"Themes"}},"type":"object","required":["total","sentiment","themes"],"title":"AdIntelligenceCommentFacetsResponse","description":"``themes`` are the group's report themes, each with the comments of this\nrequest under it, most first; empty without ``group_key``."},"AdIntelligenceCommentSentimentCounts":{"properties":{"positive":{"type":"integer","title":"Positive"},"neutral":{"type":"integer","title":"Neutral"},"negative":{"type":"integer","title":"Negative"}},"type":"object","required":["positive","neutral","negative"],"title":"AdIntelligenceCommentSentimentCounts"},"AdIntelligenceCommentThemeCount":{"properties":{"name":{"type":"string","title":"Name"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["name","count"],"title":"AdIntelligenceCommentThemeCount"},"AdIntelligenceCommentsPageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdIntelligenceComment"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"AdIntelligenceCommentsPageResponse","description":"``total`` counts every comment the filters match, across pages, a repeated\ncomment once."},"AdIntelligenceCompetitorAnalysesResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AdIntelligenceCompetitorAnalysis"},"type":"array","title":"Rows"}},"type":"object","required":["rows"],"title":"AdIntelligenceCompetitorAnalysesResponse"},"AdIntelligenceCompetitorAnalysis":{"properties":{"group_key":{"type":"string","title":"Group Key"},"report":{"$ref":"#/components/schemas/CompetitorReport"},"model_id":{"type":"string","title":"Model Id"},"ads_analysed":{"type":"integer","title":"Ads Analysed"},"posts_analysed":{"type":"integer","title":"Posts Analysed"},"accounts":{"items":{"type":"string"},"type":"array","title":"Accounts"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"comment_themes":{"anyOf":[{"$ref":"#/components/schemas/AdIntelligenceCompetitorCommentThemes"},{"type":"null"}]}},"type":"object","required":["group_key","report","model_id","ads_analysed","posts_analysed","accounts","created_at"],"title":"AdIntelligenceCompetitorAnalysis","description":"The newest report about one competitor group. Its items cite ``ad_ids`` and\n``post_ids`` as ``channel:id``. ``comment_themes`` is kept out of ``report``, which\nevery brand grouping these accounts shares; it is null when no post in the window\nhad comments summarised."},"AdIntelligenceCompetitorCommentThemes":{"properties":{"themes":{"items":{"$ref":"#/components/schemas/CommentTheme"},"type":"array","title":"Themes"},"sentiment":{"$ref":"#/components/schemas/CommentSentiment"},"questions":{"items":{"type":"string"},"type":"array","title":"Questions"},"complaints":{"items":{"type":"string"},"type":"array","title":"Complaints"},"posts_covered":{"type":"integer","title":"Posts Covered"},"comments_covered":{"type":"integer","title":"Comments Covered"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["sentiment","posts_covered","comments_covered","created_at"],"title":"AdIntelligenceCompetitorCommentThemes","description":"The group's comment themes, consolidated by the model from the latest comment\nsummary of every post published in the 30 days before ``created_at``. Theme shares\nand the sentiment split are weighted by the comments each post's summary analysed\nand sum to 1. Comment data: serve it only to organisations that turned it on."},"AdIntelligenceDeliveryTotal":{"properties":{"metric":{"type":"string","enum":["reach","impressions"],"title":"Metric"},"ad_count":{"type":"integer","title":"Ad Count"},"lower":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lower"},"upper":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Upper"}},"type":"object","required":["metric","ad_count"],"title":"AdIntelligenceDeliveryTotal","description":"What the ads reporting one metric got together.\n\n``reach`` counts people (Meta's EU reach, TikTok's buckets),\n``impressions`` counts views (Snapchat, Google, LinkedIn's EU buckets); they\nnever add up.\n``lower`` sums the known lower bounds, so an open bucket adds nothing."},"AdIntelligenceOrganicAccountSummary":{"properties":{"channel":{"type":"string","title":"Channel"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"followers_start":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Followers Start"},"followers_start_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Followers Start Day"},"followers_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Followers End"},"followers_end_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Followers End Day"},"follower_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Follower Change"},"posts_published":{"type":"integer","title":"Posts Published"},"metrics":{"items":{"$ref":"#/components/schemas/AdIntelligenceOrganicMetric"},"type":"array","title":"Metrics"},"engagement_posts":{"type":"integer","title":"Engagement Posts"},"average_engagement":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Engagement"},"median_engagement":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Engagement"},"engagement_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engagement Rate"}},"type":"object","required":["channel","advertiser_id","posts_published","metrics","engagement_posts"],"title":"AdIntelligenceOrganicAccountSummary","description":"One organic account over the range. Followers are the first and last daily\nreadings inside it. ``engagement_rate`` is the average engagement per post\n(``average_engagement``, over ``engagement_posts``) divided by\n``followers_end``. ``median_engagement`` is the typical post's, which one viral\npost does not move. Boosted posts are left out of every post count and figure."},"AdIntelligenceOrganicMetric":{"properties":{"metric":{"type":"string","enum":["views","likes","comments","shares","saves"],"title":"Metric"},"total":{"type":"integer","title":"Total"},"posts_reporting":{"type":"integer","title":"Posts Reporting"},"average":{"type":"number","title":"Average"}},"type":"object","required":["metric","total","posts_reporting","average"],"title":"AdIntelligenceOrganicMetric","description":"One metric over the posts published in the range that report it;\n``average`` is per reporting post. A metric no post reports is left out."},"AdIntelligenceOrganicSummaryResponse":{"properties":{"from_day":{"type":"string","format":"date","title":"From Day"},"to_day":{"type":"string","format":"date","title":"To Day"},"rows":{"items":{"$ref":"#/components/schemas/AdIntelligenceOrganicAccountSummary"},"type":"array","title":"Rows"}},"type":"object","required":["from_day","to_day","rows"],"title":"AdIntelligenceOrganicSummaryResponse","description":"One row per organic account in scope, data or not; ad accounts are left out."},"AdIntelligencePost":{"properties":{"channel":{"type":"string","title":"Channel"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"post_id":{"type":"string","title":"Post Id"},"post_key":{"type":"string","title":"Post Key"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"media_type":{"type":"string","enum":["image","video","carousel","text"],"title":"Media Type"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"is_pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Pinned"},"is_paid_partnership":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Paid Partnership"},"is_active":{"type":"boolean","title":"Is Active"},"views":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Views"},"likes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Likes"},"comments":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Comments"},"shares":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shares"},"saves":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Saves"},"engagement":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Engagement"},"usual_engagement":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Usual Engagement"},"lift":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lift"},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At"},"first_fetched_at":{"type":"string","format":"date-time","title":"First Fetched At"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"image_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image R2 Key"},"slides":{"items":{"oneOf":[{"$ref":"#/components/schemas/AdIntelligencePostImageSlide"},{"$ref":"#/components/schemas/AdIntelligencePostVideoSlide"},{"$ref":"#/components/schemas/AdIntelligencePostEmbedSlide"}],"discriminator":{"propertyName":"kind","mapping":{"embed":"#/components/schemas/AdIntelligencePostEmbedSlide","image":"#/components/schemas/AdIntelligencePostImageSlide","video":"#/components/schemas/AdIntelligencePostVideoSlide"}}},"type":"array","title":"Slides"},"has_comment_summary":{"type":"boolean","title":"Has Comment Summary"},"boosted_ad_ids":{"items":{"type":"string"},"type":"array","title":"Boosted Ad Ids"}},"type":"object","required":["channel","advertiser_id","post_id","post_key","media_type","published_at","is_active","fetched_at","first_fetched_at","has_comment_summary"],"title":"AdIntelligencePost","description":"The latest measurement of one organic post.\n\n``post_key`` (``channel:advertiser_id:post_id``) addresses the post in\n``/posts/timeseries`` and ``/posts/comment-summary``; a competitor report cites it\nas ``channel:post_id``. A metric is null when the network does not report it, never\n0; ``engagement`` sums likes, comments, shares and saves that are reported, null\nwhen none is. ``is_active`` while a daily sync still re-measures the post.\n``url`` links to the post on its network. ``slides`` are the post's\nmedia in order, hero first; ``image_url`` is the first still among them.\n``boosted_ad_ids`` are the ads (``channel:ad_archive_id``) that ran the post as a\npaid boost, empty for a post never boosted. A boosted post counts in no organic\nfigure. Under ``sort=lift`` only, ``usual_engagement`` is the account's median\nengagement per organic post over the range (null below 3 posts with engagement)\nand ``lift`` is ``engagement`` over it (null without a usual above 0, and for a\nboosted post)."},"AdIntelligencePostCommentSummariesResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AdIntelligencePostCommentSummary"},"type":"array","title":"Rows"}},"type":"object","required":["rows"],"title":"AdIntelligencePostCommentSummariesResponse"},"AdIntelligencePostCommentSummary":{"properties":{"channel":{"type":"string","title":"Channel"},"advertiser_id":{"type":"string","title":"Advertiser Id"},"post_id":{"type":"string","title":"Post Id"},"post_key":{"type":"string","title":"Post Key"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"fetch_index":{"type":"integer","title":"Fetch Index"},"comment_count_at_fetch":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Comment Count At Fetch"},"comments_analysed":{"type":"integer","title":"Comments Analysed"},"summary":{"$ref":"#/components/schemas/CommentSummary"}},"type":"object","required":["channel","advertiser_id","post_id","post_key","created_at","fetch_index","comments_analysed","summary"],"title":"AdIntelligencePostCommentSummary","description":"The latest summary of a post's comments: themes, sentiment, paraphrased\nquestions and complaints, never a quote or a commenter."},"AdIntelligencePostEmbedSlide":{"properties":{"kind":{"type":"string","const":"embed","title":"Kind"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"R2 Key"},"embed_url":{"type":"string","title":"Embed Url"}},"type":"object","required":["kind","embed_url"],"title":"AdIntelligencePostEmbedSlide","description":"A YouTube video, played in YouTube's own player at ``embed_url``; nothing of it\nis stored but its still."},"AdIntelligencePostImageSlide":{"properties":{"kind":{"type":"string","const":"image","title":"Kind"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"r2_key":{"type":"string","title":"R2 Key"}},"type":"object","required":["kind","r2_key"],"title":"AdIntelligencePostImageSlide","description":"A picture of the post, stored in R2."},"AdIntelligencePostTimeseriesPoint":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"views":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Views"},"likes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Likes"},"comments":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Comments"},"shares":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shares"},"saves":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Saves"},"engagement":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Engagement"}},"type":"object","required":["day"],"title":"AdIntelligencePostTimeseriesPoint","description":"The post's last measurement of one day; null metrics are not reported."},"AdIntelligencePostTimeseriesResponse":{"properties":{"post_key":{"type":"string","title":"Post Key"},"rows":{"items":{"$ref":"#/components/schemas/AdIntelligencePostTimeseriesPoint"},"type":"array","title":"Rows"}},"type":"object","required":["post_key","rows"],"title":"AdIntelligencePostTimeseriesResponse"},"AdIntelligencePostVideoSlide":{"properties":{"kind":{"type":"string","const":"video","title":"Kind"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"R2 Key"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url"},"video_r2_key":{"type":"string","title":"Video R2 Key"}},"type":"object","required":["kind","video_r2_key"],"title":"AdIntelligencePostVideoSlide","description":"A video of the post, stored in R2 (Facebook, Instagram and TikTok), over the\nstill it opens on; ``r2_key`` is null when that still did not land. A video over\nthe size cap, or past the byte budget of the syncs that saw it, stays an image\nslide and plays on the network."},"AdIntelligencePostsPageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AdIntelligencePost"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"AdIntelligencePostsPageResponse"},"AdIntelligenceSyncFailedWebhook":{"properties":{"event":{"type":"string","const":"ad_intelligence_sync.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/AdIntelligenceSyncFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"AdIntelligenceSyncFailedWebhook"},"AdIntelligenceSyncFailurePayload":{"properties":{"error":{"type":"string","title":"Error"},"retry_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry Count"},"error_code":{"anyOf":[{"type":"string","enum":["content_policy","invalid_input","processing_error","internal_error"]},{"type":"null"}],"title":"Error Code"},"error_reason":{"anyOf":[{"type":"string","enum":["third_party_content","safety","person_generation","video_edit_intent","video_speech_edit"]},{"type":"null"}],"title":"Error Reason"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"vendor_calls":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Vendor Calls"},"vendor_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vendor Cost Usd"},"model_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Model Cost Usd"}},"type":"object","required":["error"],"title":"AdIntelligenceSyncFailurePayload","description":"``ad_intelligence_sync.failed``: the vendor calls the run made before it failed,\nwhat they cost, and what its comment model steps cost, when it got far enough to\nknow them."},"AdIntelligenceSyncInputAPI":{"properties":{"channel":{"anyOf":[{"type":"string","enum":["meta","tiktok","snapchat","google","linkedin"]},{"type":"string","enum":["organic_instagram","organic_tiktok","organic_facebook","organic_linkedin","organic_youtube"]}],"title":"Channel"},"advertiser_id":{"type":"string","minLength":1,"title":"Advertiser Id"},"advertiser_name":{"type":"string","minLength":1,"title":"Advertiser Name"},"refresh_profile":{"type":"boolean","title":"Refresh Profile","default":false},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"},"profile_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Profile Url"},"fetch_comments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fetch Comments"},"budget_usd":{"type":"number","minimum":0.0,"title":"Budget Usd"},"spent_vendor_calls":{"additionalProperties":{"type":"integer","minimum":0.0},"type":"object","title":"Spent Vendor Calls"}},"type":"object","required":["channel","advertiser_id","advertiser_name","budget_usd"],"title":"AdIntelligenceSyncInputAPI","description":"Fetch one advertiser's ads.\n\n``advertiser_id`` is the advertiser's id on ``channel`` (the Meta page\nid for ``meta``, the business id for ``tiktok``, the hash of the paying\nadvertiser's name for ``snapchat``, the Ads Transparency Center ``AR`` id\nfor ``google``, the company page id for ``linkedin``); each channel decides\nwhat one looks like. ``advertiser_name`` is the name as the channel spells it: TikTok\nand Snapchat resolve the advertiser by it.\n\nAn ``organic_*`` channel syncs a company's own social account instead: the\nlowercase handle on Instagram and TikTok, the numeric page id on Facebook, the\ncompany slug on LinkedIn, the ``UC`` channel id on YouTube. ``profile_url`` is\nthe page or company link the account was added by (Facebook and LinkedIn are\nlooked up by it); ``fetch_comments`` reads, stores and labels the posts' comments.\nBoth are ignored for an ad channel.\n\n``budget_usd`` is what the account's daily cycle may spend on vendor calls and on the\ncomment summary step's model calls (the platform's share of what the cycle earned),\nand ``spent_vendor_calls`` the calls the cycle's earlier runs made, by vendor: the\nrun that paid for the day and the retries since. The run spends what is left, newest ads first, and stops when it is gone;\nwith nothing left it makes no vendor call and reports ``budget_spent``."},"AdIntelligenceSyncProgressWebhook":{"properties":{"event":{"type":"string","const":"ad_intelligence_sync.progress","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/SyncSpend"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"AdIntelligenceSyncProgressWebhook"},"AdIntelligenceSyncSucceededWebhook":{"properties":{"event":{"type":"string","const":"ad_intelligence_sync.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/AdIntelligenceAdvertiserSyncResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"AdIntelligenceSyncSucceededWebhook"},"AdPerformancePageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AdPerformanceRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"AdPerformancePageResponse"},"AdPerformanceRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"window_days":{"type":"integer","title":"Window Days"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"ad_id":{"type":"string","title":"Ad Id"},"ad_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ad Name"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Name"},"ad_group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ad Group Id"},"ad_group_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ad Group Name"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"publication_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publication Id"},"creative_asset_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creative Asset Id"},"first_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Day"},"last_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Day"},"active_days":{"type":"integer","title":"Active Days"},"spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend"},"impressions":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Impressions"},"reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reach"},"clicks":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Clicks"},"link_clicks":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Link Clicks"},"post_engagement":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Post Engagement"},"purchases":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchases"},"leads":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leads"},"purchase_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchase Value"},"ctr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ctr"},"cpc":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpc"},"roas":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Roas"},"cost_per_purchase":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Purchase"},"cost_per_lead":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Lead"},"cost_per_link_click":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Link Click"}},"type":"object","required":["brand_id","window_days","platform","account_id","ad_id","active_days"],"title":"AdPerformanceRow","description":"Paid delivery and results of one ad over a window.\n\nSums of the ad's true daily rows by activity day; rates are computed\nfrom the sums. ``publication_id`` and ``creative_asset_id`` name the\npublication Rawa holds for the ad and the first creative it carries,\nboth null for an ad Rawa never mirrored. Result columns are left raw\n(``purchases``, ``leads``, ``link_clicks``, ``purchase_value``): which one\nis \"the result\" depends on what the account buys, and the consumer decides\nthat from the totals. ``first_day`` is the first day the ad spent or\ndelivered inside the window."},"AdvertiserSyncOutcome":{"properties":{"advertiser_id":{"type":"string","title":"Advertiser Id"},"status":{"type":"string","enum":["active","not_found","error","budget_spent"],"title":"Status"},"ads_found":{"type":"integer","title":"Ads Found","default":0},"ads_failed":{"type":"integer","title":"Ads Failed","default":0},"pages_fetched":{"type":"integer","title":"Pages Fetched","default":0},"media_stored":{"type":"integer","title":"Media Stored","default":0},"avatar_r2_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar R2 Key"},"profile":{"anyOf":[{"$ref":"#/components/schemas/AdIntelligenceAdvertiserProfileFields"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"vendor_calls":{"additionalProperties":{"type":"integer"},"type":"object","title":"Vendor Calls"},"vendor_cost_usd":{"type":"number","title":"Vendor Cost Usd","default":0.0},"model_cost_usd":{"type":"number","title":"Model Cost Usd","default":0.0},"listing_complete":{"type":"boolean","title":"Listing Complete","default":false},"followers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Followers"},"posts_found":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Posts Found"}},"type":"object","required":["advertiser_id","status"],"title":"AdvertiserSyncOutcome","description":"Per-advertiser result; an ``error`` never fails the run. ``budget_spent``: the\ncycle's earlier runs left this run no vendor budget, so it fetched nothing."},"AnalysisAccount":{"properties":{"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"}},"type":"object","required":["platform","account_id"],"title":"AnalysisAccount","description":"The bare account id, as keyed in the metrics views."},"AnalysisStat":{"properties":{"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"analysis_type":{"type":"string","title":"Analysis Type"},"tool_call_count":{"type":"integer","title":"Tool Call Count"},"dropped_count":{"type":"integer","title":"Dropped Count"}},"type":"object","required":["platform","account_id","analysis_type","tool_call_count","dropped_count"],"title":"AnalysisStat"},"AudienceBreakdownPageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AudienceBreakdownRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"AudienceBreakdownPageResponse"},"AudienceBreakdownRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"window_days":{"type":"integer","title":"Window Days"},"dimension":{"type":"string","title":"Dimension"},"segment":{"type":"string","title":"Segment"},"followers":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Followers"},"followers_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Followers Pct"},"engaged_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engaged Pct"},"reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reach"},"reach_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reach Pct"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"paid_reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Reach"},"paid_impressions":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Impressions"},"spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend"},"purchase_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchase Value"},"roas":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Roas"},"followers_delta_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Followers Delta Pct"},"reach_delta_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reach Delta Pct"}},"type":"object","required":["brand_id","platform","account_id","window_days","dimension","segment"],"title":"AudienceBreakdownRow"},"AudioUploadsFailedWebhook":{"properties":{"event":{"type":"string","const":"audio_uploads.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"AudioUploadsFailedWebhook"},"AudioUploadsSucceededWebhook":{"properties":{"event":{"type":"string","const":"audio_uploads.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/AudioUploadsWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"AudioUploadsSucceededWebhook"},"AudioUploadsWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"hash":{"type":"string","title":"Hash"},"duration_seconds":{"type":"number","title":"Duration Seconds"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"type":"object","required":["s3_key","url","hash","duration_seconds","content_type","size_bytes"],"title":"AudioUploadsWorkflowResult"},"Body_upload_image_uploads_upload_post":{"properties":{"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"sync":{"type":"boolean","title":"Sync","default":false},"sync_timeout":{"type":"integer","minimum":1.0,"title":"Sync Timeout","default":30},"max_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Size Bytes"},"max_dimension":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Dimension"},"output_format":{"anyOf":[{"type":"string","const":"jpeg"},{"type":"null"}],"title":"Output Format"},"download_timeout":{"anyOf":[{"type":"integer","maximum":600.0,"minimum":1.0},{"type":"null"}],"title":"Download Timeout"}},"type":"object","title":"Body_upload_image_uploads_upload_post"},"Body_upload_video_uploads_upload_video_post":{"properties":{"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"sync":{"type":"boolean","title":"Sync","default":false},"sync_timeout":{"type":"integer","minimum":1.0,"title":"Sync Timeout","default":60}},"type":"object","title":"Body_upload_video_uploads_upload_video_post"},"BrandAnalysisFailedWebhook":{"properties":{"event":{"type":"string","const":"brand_analysis.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"BrandAnalysisFailedWebhook"},"BrandAnalysisPageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/BrandAnalysisRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"BrandAnalysisPageResponse"},"BrandAnalysisRequestAPI":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["brand_id","platform","account_id"],"title":"BrandAnalysisRequestAPI","description":"API input for requesting an analyst-agent run over one account of a brand."},"BrandAnalysisRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"analysis_type":{"type":"string","title":"Analysis Type"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"insights":{"anyOf":[{"items":{"$ref":"#/components/schemas/Insight"},"type":"array"},{"type":"null"}],"title":"Insights"},"report":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report"},"model_id":{"type":"string","title":"Model Id"},"tool_call_count":{"type":"integer","title":"Tool Call Count"},"dropped_insight_count":{"type":"integer","title":"Dropped Insight Count"},"workflow_id":{"type":"string","title":"Workflow Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["brand_id","platform","account_id","analysis_type","model_id","tool_call_count","dropped_insight_count","workflow_id","created_at"],"title":"BrandAnalysisRow","description":"One stored analysis, shape discriminated by ``analysis_type``.\n\n``headline``/``summary``/``insights`` are derived view columns that only\npopulate for report shapes carrying those fields; ``report`` is the full\nreport JSON string for every type. Clients must discriminate on\n``analysis_type``, never on which derived columns are non-null."},"BrandAnalysisSucceededWebhook":{"properties":{"event":{"type":"string","const":"brand_analysis.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/BrandAnalysisWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"BrandAnalysisSucceededWebhook"},"BrandAnalysisWorkflowResult":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"account":{"$ref":"#/components/schemas/AnalysisAccount"},"model_id":{"type":"string","title":"Model Id"},"tool_call_count":{"type":"integer","title":"Tool Call Count"},"dropped_insight_count":{"type":"integer","title":"Dropped Insight Count"},"analyses":{"items":{"$ref":"#/components/schemas/AnalysisStat"},"type":"array","title":"Analyses"},"skip_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skip Reason"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["brand_id","account","model_id","tool_call_count","dropped_insight_count","analyses","created_at"],"title":"BrandAnalysisWorkflowResult"},"CampaignPerformancePageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/CampaignPerformanceRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"CampaignPerformancePageResponse"},"CampaignPerformanceRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"window_days":{"type":"integer","title":"Window Days"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"campaign_id":{"type":"string","title":"Campaign Id"},"campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Name"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"first_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Day"},"last_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Day"},"active_days":{"type":"integer","title":"Active Days"},"spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend"},"impressions":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Impressions"},"reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reach"},"clicks":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Clicks"},"link_clicks":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Link Clicks"},"post_engagement":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Post Engagement"},"purchases":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchases"},"leads":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leads"},"purchase_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchase Value"},"ctr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ctr"},"cpc":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpc"},"roas":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Roas"},"cost_per_purchase":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Purchase"},"cost_per_lead":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Lead"},"cost_per_link_click":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Link Click"}},"type":"object","required":["brand_id","window_days","platform","account_id","campaign_id","active_days"],"title":"CampaignPerformanceRow","description":"Paid delivery and results of one campaign over a window.\n\nSums of the platform's campaign-grain daily rows by activity day; rates\nare computed from the sums. ``reach`` is the platform's daily campaign\nreach summed over the window, not deduplicated across days."},"CommentSentiment":{"properties":{"positive":{"type":"number","title":"Positive"},"neutral":{"type":"number","title":"Neutral"},"negative":{"type":"number","title":"Negative"}},"type":"object","required":["positive","neutral","negative"],"title":"CommentSentiment"},"CommentSummary":{"properties":{"themes":{"items":{"$ref":"#/components/schemas/CommentTheme"},"type":"array","title":"Themes"},"sentiment":{"$ref":"#/components/schemas/CommentSentiment"},"questions":{"items":{"type":"string"},"type":"array","title":"Questions"},"complaints":{"items":{"type":"string"},"type":"array","title":"Complaints"}},"type":"object","required":["sentiment"],"title":"CommentSummary"},"CommentTheme":{"properties":{"name":{"type":"string","title":"Name"},"detail":{"type":"string","title":"Detail"},"share":{"type":"number","title":"Share"}},"type":"object","required":["name","detail","share"],"title":"CommentTheme"},"CompetitorAnalysisFailedWebhook":{"properties":{"event":{"type":"string","const":"competitor_analysis.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"CompetitorAnalysisFailedWebhook"},"CompetitorAnalysisInputAPI":{"properties":{"group_key":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Group Key"},"name":{"type":"string","minLength":1,"title":"Name"},"advertisers":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Advertisers"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"},"rewrite_before":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rewrite Before","description":"Write the report again if the stored one is older than this, even with nothing new published."}},"type":"object","required":["group_key","name","advertisers"],"title":"CompetitorAnalysisInputAPI","description":"Write a competitor group's report. ``group_key`` is the lowercase hex SHA-256 the\nplatform computes over the sorted account keys; it is taken as given."},"CompetitorAnalysisOutcome":{"properties":{"group_key":{"type":"string","title":"Group Key"},"unchanged":{"type":"boolean","title":"Unchanged"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"ads_analysed":{"type":"integer","title":"Ads Analysed","default":0},"posts_analysed":{"type":"integer","title":"Posts Analysed","default":0}},"type":"object","required":["group_key","unchanged"],"title":"CompetitorAnalysisOutcome","description":"The ``competitor_analysis.succeeded`` payload. ``unchanged`` when no ad, post or\ncomment summary was newer than the group's stored row, so none was written (a\ncomment-only change writes a row that carries the report forward);\n``created_at`` is the row now current for the group, null when it has none."},"CompetitorAnalysisSucceededWebhook":{"properties":{"event":{"type":"string","const":"competitor_analysis.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/CompetitorAnalysisOutcome"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"CompetitorAnalysisSucceededWebhook"},"CompetitorEvent":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","enum":["holiday","seasonal","launch_event","sale_event","sports","cultural","other"],"title":"Kind"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"},"detail":{"type":"string","title":"Detail"},"ad_ids":{"items":{"type":"string"},"type":"array","title":"Ad Ids"},"post_ids":{"items":{"type":"string"},"type":"array","title":"Post Ids"}},"type":"object","required":["name","kind","detail","ad_ids","post_ids"],"title":"CompetitorEvent"},"CompetitorObjective":{"properties":{"objective":{"type":"string","title":"Objective"},"detail":{"type":"string","title":"Detail"},"ad_ids":{"items":{"type":"string"},"type":"array","title":"Ad Ids"},"post_ids":{"items":{"type":"string"},"type":"array","title":"Post Ids"}},"type":"object","required":["objective","detail","ad_ids","post_ids"],"title":"CompetitorObjective"},"CompetitorOffer":{"properties":{"name":{"type":"string","title":"Name"},"kind":{"type":"string","enum":["discount","coupon_code","seasonal_sale","bundle","free_shipping","free_trial","gift_with_purchase","loyalty","other"],"title":"Kind"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"detail":{"type":"string","title":"Detail"},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"},"ad_ids":{"items":{"type":"string"},"type":"array","title":"Ad Ids"},"post_ids":{"items":{"type":"string"},"type":"array","title":"Post Ids"}},"type":"object","required":["name","kind","detail","ad_ids","post_ids"],"title":"CompetitorOffer"},"CompetitorProductLaunch":{"properties":{"product":{"type":"string","title":"Product"},"detail":{"type":"string","title":"Detail"},"first_seen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Seen"},"ad_ids":{"items":{"type":"string"},"type":"array","title":"Ad Ids"},"post_ids":{"items":{"type":"string"},"type":"array","title":"Post Ids"}},"type":"object","required":["product","detail","ad_ids","post_ids"],"title":"CompetitorProductLaunch"},"CompetitorReport":{"properties":{"headline":{"type":"string","title":"Headline"},"summary":{"type":"string","title":"Summary"},"creative_summary":{"type":"string","title":"Creative Summary"},"offers":{"items":{"$ref":"#/components/schemas/CompetitorOffer"},"type":"array","title":"Offers"},"events":{"items":{"$ref":"#/components/schemas/CompetitorEvent"},"type":"array","title":"Events"},"product_launches":{"items":{"$ref":"#/components/schemas/CompetitorProductLaunch"},"type":"array","title":"Product Launches"},"objectives":{"items":{"$ref":"#/components/schemas/CompetitorObjective"},"type":"array","title":"Objectives"}},"type":"object","required":["headline","summary","creative_summary","offers","events","product_launches","objectives"],"title":"CompetitorReport","description":"One report over the monitored accounts of a competitor.\nCited ids are namespaced ``\"<channel>:<id>\"`` (``meta:123``,\n``organic_tiktok:7704...``), since a raw id is only unique within its channel."},"ComposeFailedWebhook":{"properties":{"event":{"type":"string","const":"compose.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/ComposeFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"ComposeFailedWebhook"},"ComposeFailurePayload":{"properties":{"error":{"type":"string","title":"Error"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"error_code":{"anyOf":[{"type":"string","enum":["content_policy","invalid_input","processing_error","internal_error"]},{"type":"null"}],"title":"Error Code"},"error_reason":{"anyOf":[{"type":"string","enum":["third_party_content","safety","person_generation","video_edit_intent","video_speech_edit"]},{"type":"null"}],"title":"Error Reason"},"retry_count":{"type":"integer","title":"Retry Count"}},"type":"object","required":["error","retry_count"],"title":"ComposeFailurePayload","description":"``compose.failed`` payload built by ``ComposeWorkflow._build_failure_payload``."},"ComposeSource":{"properties":{"kind":{"type":"string","const":"compose","title":"Kind"},"prompt":{"type":"string","maxLength":600,"minLength":1,"title":"Prompt"},"seconds":{"type":"number","maximum":30.0,"minimum":0.5,"title":"Seconds"},"role":{"anyOf":[{"type":"string","enum":["music","sfx"]},{"type":"null"}],"title":"Role","description":"Omitted = the model reads it from the prompt."}},"additionalProperties":false,"type":"object","required":["kind","prompt","seconds"],"title":"ComposeSource"},"ComposeSucceededPayload":{"properties":{},"additionalProperties":true,"type":"object","title":"ComposeSucceededPayload","description":"``compose.succeeded`` payload.\n\nThe keys are declared by the compose request's ``output`` operation\n(``fields`` mapping), so the shape is per-request: each key holds the\nselected field of an upstream operation's result."},"ComposeSucceededWebhook":{"properties":{"event":{"type":"string","const":"compose.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/ComposeSucceededPayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"ComposeSucceededWebhook"},"ComposeWorkflowInputAPI":{"properties":{"operations":{"items":{"$ref":"#/components/schemas/OperationDefinition"},"type":"array","title":"Operations","description":"Operations to execute sequentially"}},"type":"object","required":["operations"],"title":"ComposeWorkflowInputAPI","description":"API input for composable workflow.\n\nChain multiple generation operations together. Each operation can reference\noutputs from previous operations via `input_mappings`.\n\n## Webhook Payload\nIf an `output` operation with `webhook_url` is included, the final output is POSTed as:\n```json\n{\n  \"event\": \"compose.succeeded\",\n  \"workflow_id\": \"compose_...\",\n  \"payload\": { /* your defined fields */ }\n}\n```","example":{"operations":[{"name":"product_image","params":{"aspect_ratio":"9:16","parts":[{"content":"A smartphone on marble surface","type":"text"}]},"type":"generate_image"},{"input_mappings":[{"from_field":"s3_key","from_operation":"product_image","to_field":"image_key"}],"name":"product_video","params":{"duration":6,"prompt":"Phone slowly rotates"},"type":"generate_video_seed_dance_2_5"},{"name":"final","params":{"fields":[{"from_field":"url","from_operation":"product_image","name":"image_url"},{"from_field":"url","from_operation":"product_video","name":"video_url"}],"webhook_url":"https://your-app.com/webhook"},"type":"output"}]}},"ComputeEmbeddingFailedWebhook":{"properties":{"event":{"type":"string","const":"compute_embedding.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"ComputeEmbeddingFailedWebhook"},"ComputeEmbeddingSucceededWebhook":{"properties":{"event":{"type":"string","const":"compute_embedding.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/ComputeEmbeddingWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"ComputeEmbeddingSucceededWebhook"},"ComputeEmbeddingWorkflowInputAPI":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["s3_key"],"title":"ComputeEmbeddingWorkflowInputAPI"},"ComputeEmbeddingWorkflowResult":{"properties":{"embedding":{"items":{"type":"number"},"type":"array","title":"Embedding"},"model_id":{"type":"string","title":"Model Id"},"dimension":{"type":"integer","title":"Dimension"}},"type":"object","required":["embedding","model_id","dimension"],"title":"ComputeEmbeddingWorkflowResult"},"ComputePhashFailedWebhook":{"properties":{"event":{"type":"string","const":"compute_phash.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"ComputePhashFailedWebhook"},"ComputePhashSucceededWebhook":{"properties":{"event":{"type":"string","const":"compute_phash.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/ComputePhashWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"ComputePhashSucceededWebhook"},"ComputePhashWorkflowInputAPI":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["s3_key"],"title":"ComputePhashWorkflowInputAPI"},"ComputePhashWorkflowResult":{"properties":{"phash":{"type":"string","title":"Phash"}},"type":"object","required":["phash"],"title":"ComputePhashWorkflowResult"},"ConvexSyncService":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"hostname":{"type":"string","title":"Hostname"},"convex_url":{"type":"string","title":"Convex Url"},"poll_interval_ms":{"type":"number","title":"Poll Interval Ms"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"heartbeat_at":{"type":"string","format":"date-time","title":"Heartbeat At"},"lock_expires_at":{"type":"string","format":"date-time","title":"Lock Expires At","description":"The holder renews this; past it, the lock is free."},"stopped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stopped At","description":"Set when the holder shut down cleanly."},"stop_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stop Reason"},"tables":{"items":{"$ref":"#/components/schemas/ConvexSyncTableStatus"},"type":"array","title":"Tables","description":"One entry per mirrored table, sorted by table name."}},"type":"object","required":["instance_id","hostname","convex_url","poll_interval_ms","started_at","heartbeat_at","lock_expires_at","stopped_at","stop_reason","tables"],"title":"ConvexSyncService"},"ConvexSyncStatusResponse":{"properties":{"state":{"type":"string","enum":["not_configured","never_started","running","stopped","unresponsive"],"title":"State","description":"`not_configured`: DATABASE_URL is unset. `never_started`: no status record in the schema. `stopped`: the service shut down cleanly. `unresponsive`: its lock expired without a clean shutdown (crashed or hung). `running`: it holds the lock."},"schema_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Name","description":"The Postgres schema the record is read from: CONVEX_SYNC_SCHEMA."},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At","description":"The database clock when the record was read."},"service":{"anyOf":[{"$ref":"#/components/schemas/ConvexSyncService"},{"type":"null"}]}},"type":"object","required":["state","schema_name","checked_at","service"],"title":"ConvexSyncStatusResponse"},"ConvexSyncTableStatus":{"properties":{"table":{"type":"string","title":"Table","description":"The Convex table name."},"status":{"type":"string","enum":["starting","snapshotting","stale","upToDate"],"title":"Status"},"last_page_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Page At","description":"When the last page of changes was applied."},"upserted":{"type":"integer","title":"Upserted"},"deleted":{"type":"integer","title":"Deleted"},"consecutive_errors":{"type":"integer","title":"Consecutive Errors"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"last_error_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Error At"}},"type":"object","required":["table","status","last_page_at","upserted","deleted","consecutive_errors","last_error","last_error_at"],"title":"ConvexSyncTableStatus"},"CreativeAssetFeaturesPageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/CreativeAssetFeaturesRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"CreativeAssetFeaturesPageResponse"},"CreativeAssetFeaturesRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"creative_asset_id":{"type":"string","title":"Creative Asset Id"},"creative_id":{"type":"string","title":"Creative Id"},"extracted_at":{"type":"string","format":"date-time","title":"Extracted At"},"features_json":{"type":"string","title":"Features Json"}},"type":"object","required":["brand_id","creative_asset_id","creative_id","extracted_at","features_json"],"title":"CreativeAssetFeaturesRow","description":"The latest AI-extracted feature values of one published creative asset.\n\n``features_json`` is a JSON object keyed by feature column name\n(``visual_style``, ``caption_copy__hook_type``, ...) with string values,\n``null`` where the extraction left a field empty. Only the groupable\ndimensions are carried — the same set ``creative_feature_lift`` pools —\nso a consumer can compute lifts at creative grain on exactly the keys\nthe pipeline measures, plus anything it derives from the asset itself.\nNot windowed: features describe the creative, not a period."},"CreativeFeatureLiftPageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/CreativeFeatureLiftRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"CreativeFeatureLiftPageResponse"},"CreativeFeatureLiftRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"window_days":{"type":"integer","title":"Window Days"},"feature_key":{"type":"string","title":"Feature Key"},"feature_value":{"type":"string","title":"Feature Value"},"organic_posts_with":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organic Posts With"},"organic_posts_without":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organic Posts Without"},"organic_reach_with":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Reach With"},"organic_reach_without":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Reach Without"},"organic_er_with":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Er With"},"organic_er_without":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Er Without"},"organic_er_lift_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Er Lift Pct"},"organic_er_lift_pct_smoothed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Er Lift Pct Smoothed"},"paid_posts_with":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paid Posts With"},"paid_posts_without":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paid Posts Without"},"paid_impressions_with":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Impressions With"},"paid_impressions_without":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Impressions Without"},"paid_ctr_with":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Ctr With"},"paid_ctr_without":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Ctr Without"},"paid_ctr_lift_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Ctr Lift Pct"},"paid_ctr_lift_pct_smoothed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Ctr Lift Pct Smoothed"}},"type":"object","required":["brand_id","platform","account_id","window_days","feature_key","feature_value"],"title":"CreativeFeatureLiftRow","description":"Creative lift of one AI-extracted feature value, per leg.\n\nOrganic and paid are measured separately in the metric native to each:\nthe organic leg pools engagement rate (``organic_er_with``, percent) of\npublications carrying the feature against publications without it, the\npaid leg pools CTR (``paid_ctr_with``, percent, clicks over impressions)\nthe same way. All columns of a leg are null when the feature had no\ndelivery on that side. Sample counts are the true post counts — no\nsample-size minimums are applied; thin rows are the consumer's cue to\nnudge toward publishing more of the feature, not to suppress it. Each\n``*_lift_pct`` is null when its complement's pooled rate is zero (the\nratio is undefined). ``*_lift_pct_smoothed`` is the Beta-smoothed\nlift: both pooled rates gain five average posts' worth of\npseudo-evidence at the account-window pool rate before the ratio, so\nthin samples read near 0% — rank by it, cite the raw lift and true\ncounts alongside. The paid leg exists only on platforms that report CTR\nnatively."},"CreativePerformancePageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/CreativePerformanceRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"CreativePerformancePageResponse"},"CreativePerformanceRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"creative_asset_id":{"type":"string","title":"Creative Asset Id"},"window_days":{"type":"integer","title":"Window Days"},"publication_ids":{"items":{"type":"string"},"type":"array","title":"Publication Ids"},"publication_count":{"type":"integer","title":"Publication Count"},"organic_post_count":{"type":"integer","title":"Organic Post Count"},"paid_ad_count":{"type":"integer","title":"Paid Ad Count"},"reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reach"},"impressions":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Impressions"},"engagement_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engagement Rate"},"organic_reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Reach"},"organic_engagement_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Engagement Rate"},"organic_views":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Views"},"paid_reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Reach"},"paid_impressions":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Impressions"},"paid_engagement_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Engagement Rate"},"spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend"},"purchase_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchase Value"},"roas":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Roas"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"er_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Er Score"},"reach_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reach Score"},"performance_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Performance Score"},"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank"},"organic_er_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Er Score"},"organic_reach_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Reach Score"},"organic_performance_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Performance Score"},"organic_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organic Rank"},"paid_er_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Er Score"},"paid_reach_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Reach Score"},"paid_performance_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Performance Score"},"paid_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paid Rank"}},"type":"object","required":["brand_id","platform","account_id","creative_asset_id","window_days","publication_ids","publication_count","organic_post_count","paid_ad_count"],"title":"CreativePerformanceRow","description":"Publication performance of one account aggregated up to one creative asset.\n\nSame metric names, scale and semantics as ``PublicationPerformanceRow``;\nper-publication detail is reached through ``publication_ids``. A\npublication carrying N assets contributes its full metrics to each asset's\nrow, so sums across assets exceed account totals."},"CtaStylesPatch":{"properties":{"kind":{"type":"string","const":"cta_styles","title":"Kind"},"styles":{"items":{"$ref":"#/components/schemas/DesignSystemCtaStyle"},"type":"array","title":"Styles"}},"type":"object","required":["kind","styles"],"title":"CtaStylesPatch"},"CutoutSubject":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"left":{"type":"integer","title":"Left"},"top":{"type":"integer","title":"Top"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"}},"type":"object","required":["s3_key","url","left","top","width","height"],"title":"CutoutSubject","description":"The cut-out cropped to its subject; the box is in the full cut-out's pixels."},"DailySeriesPackedPageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/DailySeriesPackedRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"DailySeriesPackedPageResponse"},"DailySeriesPackedRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"start_day":{"type":"string","format":"date","title":"Start Day"},"end_day":{"type":"string","format":"date","title":"End Day"},"reach":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Reach"},"impressions":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Impressions"},"engagement_rate":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Engagement Rate"},"organic_reach":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Reach"},"organic_impressions":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Impressions"},"organic_engagement_rate":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Engagement Rate"},"organic_er_interactions":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Er Interactions"},"follower_count":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Follower Count"},"profile_visits":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Profile Visits"},"link_clicks":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Link Clicks"},"organic_follower_gain":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Follower Gain"},"paid_follower_gain":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Paid Follower Gain"},"organic_reach_followers":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Reach Followers"},"organic_reach_non_followers":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Reach Non Followers"},"organic_impressions_followers":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Impressions Followers"},"organic_impressions_non_followers":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Impressions Non Followers"},"organic_interactions":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Interactions"},"organic_likes":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Likes"},"organic_comments":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Comments"},"organic_shares":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Shares"},"organic_saves":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Saves"},"organic_reactions":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Reactions"},"follows":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Follows"},"unfollows":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Unfollows"},"organic_reach_ads":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Reach Ads"},"organic_impressions_ads":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Impressions Ads"},"organic_er_interactions_ads":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Er Interactions Ads"},"organic_interactions_ads":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Interactions Ads"},"organic_likes_ads":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Likes Ads"},"organic_comments_ads":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Comments Ads"},"organic_shares_ads":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Shares Ads"},"organic_saves_ads":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Saves Ads"},"organic_reach_ads_followers":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Reach Ads Followers"},"organic_reach_ads_non_followers":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Reach Ads Non Followers"},"organic_impressions_ads_followers":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Impressions Ads Followers"},"organic_impressions_ads_non_followers":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Organic Impressions Ads Non Followers"},"paid_reach":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Paid Reach"},"paid_impressions":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Paid Impressions"},"paid_engagement_rate":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Paid Engagement Rate"},"paid_interactions":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Paid Interactions"},"spend":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Spend"},"purchase_value":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Purchase Value"},"roas":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Roas"},"cpc":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Cpc"},"clicks":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Clicks"},"ctr":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Ctr"}},"type":"object","required":["brand_id","platform","account_id","start_day","end_day"],"title":"DailySeriesPackedRow"},"DesignRulesPatch":{"properties":{"kind":{"type":"string","const":"design_rules","title":"Kind"},"rules":{"items":{"type":"string"},"type":"array","title":"Rules"}},"type":"object","required":["kind","rules"],"title":"DesignRulesPatch"},"DesignSystemAestheticFailedWebhook":{"properties":{"event":{"type":"string","const":"design_system_aesthetic.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"DesignSystemAestheticFailedWebhook"},"DesignSystemAestheticSucceededWebhook":{"properties":{"event":{"type":"string","const":"design_system_aesthetic.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/DesignSystemAestheticWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"DesignSystemAestheticSucceededWebhook"},"DesignSystemAestheticWorkflowInputAPI":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"design_system_id":{"type":"string","title":"Design System Id"},"references":{"items":{"$ref":"#/components/schemas/DesignSystemReferenceAPI"},"type":"array","maxItems":10,"minItems":1,"title":"References"},"current_aesthetic":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Current Aesthetic"},"rewrite_aesthetic":{"type":"boolean","title":"Rewrite Aesthetic"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["brand_id","design_system_id","references","rewrite_aesthetic"],"title":"DesignSystemAestheticWorkflowInputAPI","description":"Redraw a design system's reference contact sheet and, when ``rewrite_aesthetic`` is set,\nrewrite its aesthetic from the references, keeping the current wording where it still\nfits. Answers with ``design_system_aesthetic.succeeded`` or ``.failed``."},"DesignSystemAestheticWorkflowResult":{"properties":{"design_system_id":{"type":"string","title":"Design System Id"},"contact_sheet_s3_key":{"type":"string","title":"Contact Sheet S3 Key"},"aesthetic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aesthetic"},"reference_s3_keys":{"items":{"type":"string"},"type":"array","title":"Reference S3 Keys"},"based_on_aesthetic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Based On Aesthetic"},"cost_usd":{"type":"number","title":"Cost Usd"}},"type":"object","required":["design_system_id","contact_sheet_s3_key","reference_s3_keys","cost_usd"],"title":"DesignSystemAestheticWorkflowResult","description":"``reference_s3_keys`` and ``based_on_aesthetic`` say what the result was made from,\nso the receiver can drop it when the design system has changed since."},"DesignSystemCtaStyle":{"properties":{"variant":{"anyOf":[{"type":"string","enum":["filled","outline","ghost","underline"]},{"type":"null"}],"title":"Variant"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"border_radius":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Border Radius"},"border_width":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Border Width"},"border_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Border Color"},"padding_x":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Padding X"},"padding_y":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Padding Y"},"font_size":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Font Size"},"font_weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Font Weight"},"font_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Family"},"text_transform":{"anyOf":[{"type":"string","enum":["uppercase","lowercase","capitalize","none"]},{"type":"null"}],"title":"Text Transform"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"usage":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Usage"}},"type":"object","required":["name"],"title":"DesignSystemCtaStyle","description":"One button style; ``usage`` says when the guide uses it."},"DesignSystemExtractionFailedWebhook":{"properties":{"event":{"type":"string","const":"design_system_extraction.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/DesignSystemExtractionFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"DesignSystemExtractionFailedWebhook"},"DesignSystemExtractionFailurePayload":{"properties":{"error":{"type":"string","title":"Error"},"retry_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry Count"},"error_code":{"anyOf":[{"type":"string","enum":["content_policy","invalid_input","processing_error","internal_error"]},{"type":"null"}],"title":"Error Code"},"error_reason":{"anyOf":[{"type":"string","enum":["third_party_content","safety","person_generation","video_edit_intent","video_speech_edit"]},{"type":"null"}],"title":"Error Reason"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"reason":{"anyOf":[{"type":"string","enum":["unreadable","password_protected","too_many_pages","too_large","unsupported_format"]},{"type":"null"}],"title":"Reason"}},"type":"object","required":["error"],"title":"DesignSystemExtractionFailurePayload","description":"``design_system_extraction.failed``: ``reason`` is set when the source itself cannot be\nimported."},"DesignSystemExtractionStepPayload":{"properties":{"step_id":{"type":"string","title":"Step Id"},"label":{"type":"string","title":"Label"},"patch":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/LogoPatch"},{"$ref":"#/components/schemas/ElementPatch"},{"$ref":"#/components/schemas/ReferencePatch"},{"$ref":"#/components/schemas/PalettePatch"},{"$ref":"#/components/schemas/TypographyPatch"},{"$ref":"#/components/schemas/CtaStylesPatch"},{"$ref":"#/components/schemas/GuidelinesPatch"},{"$ref":"#/components/schemas/DesignRulesPatch"},{"$ref":"#/components/schemas/TextPatch"},{"$ref":"#/components/schemas/FlagPatch"}],"discriminator":{"propertyName":"kind","mapping":{"aesthetic":"#/components/schemas/TextPatch","cta_styles":"#/components/schemas/CtaStylesPatch","design_rules":"#/components/schemas/DesignRulesPatch","element":"#/components/schemas/ElementPatch","flag":"#/components/schemas/FlagPatch","logo":"#/components/schemas/LogoPatch","palette":"#/components/schemas/PalettePatch","photography":"#/components/schemas/GuidelinesPatch","reference":"#/components/schemas/ReferencePatch","typography":"#/components/schemas/TypographyPatch","voice":"#/components/schemas/GuidelinesPatch"}}},{"type":"null"}],"title":"Patch"}},"type":"object","required":["step_id","label"],"title":"DesignSystemExtractionStepPayload","description":"``design_system_extraction.step``: one change to the draft design system, or none for a progress\nstep. ``step_id`` is unique within the run, so a redelivered step is applied once."},"DesignSystemExtractionStepWebhook":{"properties":{"event":{"type":"string","const":"design_system_extraction.step","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/DesignSystemExtractionStepPayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"DesignSystemExtractionStepWebhook"},"DesignSystemExtractionSucceededWebhook":{"properties":{"event":{"type":"string","const":"design_system_extraction.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/DesignSystemExtractionWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"DesignSystemExtractionSucceededWebhook"},"DesignSystemExtractionWorkflowInputAPI":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"design_system_id":{"type":"string","title":"Design System Id"},"source":{"oneOf":[{"$ref":"#/components/schemas/DesignSystemFileSourceAPI"},{"$ref":"#/components/schemas/DesignSystemWebsiteSourceAPI"}],"title":"Source","discriminator":{"propertyName":"kind","mapping":{"file":"#/components/schemas/DesignSystemFileSourceAPI","website":"#/components/schemas/DesignSystemWebsiteSourceAPI"}}},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["brand_id","design_system_id","source"],"title":"DesignSystemExtractionWorkflowInputAPI","description":"Build a draft design system from brand guidelines or a website.\n\nA tool-using model reads the source and sends each change to the draft as a\n``design_system_extraction.step`` webhook, then ``design_system_extraction.succeeded`` or\n``.failed``. Saved logos, elements, references and font files are written under\n``brands/<brand_id>/identity/design-systems/<design_system_id>/``. A file is capped at 100 pages\nand 50 MB."},"DesignSystemExtractionWorkflowResult":{"properties":{"model":{"type":"string","title":"Model"},"turns":{"type":"integer","title":"Turns"},"tool_calls":{"type":"integer","title":"Tool Calls"},"stop_reason":{"type":"string","enum":["finished","turn_limit","spend_limit","stalled"],"title":"Stop Reason"},"cost_usd":{"type":"number","title":"Cost Usd"}},"type":"object","required":["model","turns","tool_calls","stop_reason","cost_usd"],"title":"DesignSystemExtractionWorkflowResult","description":"``cost_usd`` is internal COGS: extraction is free to the user."},"DesignSystemFileSourceAPI":{"properties":{"kind":{"type":"string","const":"file","title":"Kind"},"s3_key":{"type":"string","title":"S3 Key"},"file_name":{"type":"string","maxLength":255,"minLength":1,"title":"File Name"},"mime_type":{"type":"string","title":"Mime Type"}},"type":"object","required":["kind","s3_key","file_name","mime_type"],"title":"DesignSystemFileSourceAPI","description":"A guidelines PDF or PPTX the user uploaded, under the brand's guidelines prefix."},"DesignSystemFont":{"properties":{"family":{"type":"string","title":"Family"},"language":{"type":"string","enum":["latin","arabic"],"title":"Language"},"role":{"anyOf":[{"type":"string","enum":["headline","body","accent"]},{"type":"null"}],"title":"Role"},"usage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usage"},"weights":{"items":{"type":"string"},"type":"array","title":"Weights"},"font_file_s3_keys":{"items":{"type":"string"},"type":"array","title":"Font File S3 Keys"}},"type":"object","required":["family","language"],"title":"DesignSystemFont","description":"``font_file_s3_keys`` are the embedded files saved for this family, one per face; the\nplatform reads each face's weight and style from the file itself."},"DesignSystemReferenceAPI":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"name":{"type":"string","maxLength":200,"title":"Name"}},"type":"object","required":["s3_key","name"],"title":"DesignSystemReferenceAPI"},"DesignSystemWebsiteSourceAPI":{"properties":{"kind":{"type":"string","const":"website","title":"Kind"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Title"},"markdown":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Markdown"},"screenshot_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Screenshot Url"},"branding":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Branding"}},"type":"object","required":["kind","url"],"title":"DesignSystemWebsiteSourceAPI","description":"The platform scrapes the site first and passes on what the scrape returned: the\npage as markdown, a full-page screenshot, and the branding profile."},"EffectSource":{"properties":{"kind":{"type":"string","const":"effect","title":"Kind"},"prompt":{"type":"string","maxLength":600,"minLength":1,"title":"Prompt"},"seconds":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0.5},{"type":"null"}],"title":"Seconds"}},"additionalProperties":false,"type":"object","required":["kind","prompt"],"title":"EffectSource"},"ElementPatch":{"properties":{"kind":{"type":"string","const":"element","title":"Kind"},"image":{"$ref":"#/components/schemas/SavedImage"},"usage_note":{"type":"string","title":"Usage Note"}},"type":"object","required":["kind","image","usage_note"],"title":"ElementPatch"},"Evidence":{"properties":{"evidence_id":{"type":"string","title":"Evidence Id"},"source":{"type":"string","title":"Source"},"metric":{"type":"string","title":"Metric"},"value":{"type":"number","title":"Value"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["evidence_id","source","metric","value"],"title":"Evidence","description":"One number cited by an insight, traceable to a recorded query result."},"ExportGifWorkflowInputAPI":{"properties":{"source_s3_key":{"type":"string","title":"Source S3 Key"},"output_path":{"type":"string","title":"Output Path"}},"type":"object","required":["source_s3_key","output_path"],"title":"ExportGifWorkflowInputAPI","description":"API input for converting a brand's video to an animated GIF.\n\n``source_s3_key`` is the video (``brands/<brandId>/...``); the GIF is stored\nunder ``output_path`` (``brands/<brandId>/...``)."},"ExportLayeredWorkflowInputAPI":{"properties":{"pages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":10,"minItems":1,"title":"Pages"},"format":{"type":"string","enum":["svg","psd"],"title":"Format"},"output_path":{"type":"string","title":"Output Path"}},"type":"object","required":["pages","format","output_path"],"title":"ExportLayeredWorkflowInputAPI","description":"API input for exporting a design as editable layers.\n\nEach of the 1 to 10 ``pages`` is a media-composer composition of a still\ndesign; ``format`` is ``svg`` (Illustrator, Figma) or ``psd`` (Photoshop,\nPhotopea, Canva, Affinity)."},"ExtractCreativeFeaturesFailedWebhook":{"properties":{"event":{"type":"string","const":"extract_creative_features.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"ExtractCreativeFeaturesFailedWebhook"},"ExtractCreativeFeaturesSucceededWebhook":{"properties":{"event":{"type":"string","const":"extract_creative_features.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/ExtractCreativeFeaturesWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"ExtractCreativeFeaturesSucceededWebhook"},"ExtractCreativeFeaturesWorkflowInputAPI":{"properties":{"creative_id":{"type":"string","title":"Creative Id"},"s3_key":{"type":"string","title":"S3 Key"},"content_type":{"type":"string","title":"Content Type"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["creative_id","s3_key","content_type"],"title":"ExtractCreativeFeaturesWorkflowInputAPI"},"ExtractCreativeFeaturesWorkflowResult":{"properties":{"creative_id":{"type":"string","title":"Creative Id"},"features":{"additionalProperties":true,"type":"object","title":"Features"},"model_id":{"type":"string","title":"Model Id"},"extracted_at":{"type":"string","title":"Extracted At"}},"type":"object","required":["creative_id","features","model_id","extracted_at"],"title":"ExtractCreativeFeaturesWorkflowResult"},"FlagPatch":{"properties":{"kind":{"type":"string","const":"flag","title":"Kind"},"section":{"type":"string","enum":["logos","colorPalette","typography","ctaStyle","brandVoice","photographyGuidelines","designRules","references","aesthetic","graphicElements"],"title":"Section"},"message":{"type":"string","title":"Message"}},"type":"object","required":["kind","section","message"],"title":"FlagPatch"},"Flux3FailedWebhook":{"properties":{"event":{"type":"string","const":"flux_3.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"Flux3FailedWebhook"},"Flux3SucceededWebhook":{"properties":{"event":{"type":"string","const":"flux_3.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/Flux3WorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"Flux3SucceededWebhook"},"Flux3WorkflowInputAPI":{"properties":{"prompt":{"type":"string","maxLength":2500,"minLength":1,"title":"Prompt"},"image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Key"},"end_image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Key"},"resolution":{"type":"string","enum":["720p","1080p"],"title":"Resolution","default":"720p"},"duration":{"type":"integer","maximum":20.0,"minimum":5.0,"title":"Duration","default":5},"aspect_ratio":{"anyOf":[{"type":"string","enum":["21:9","2:1","16:9","4:3","1:1","3:4","9:16"]},{"type":"null"}],"title":"Aspect Ratio"},"generate_audio":{"type":"boolean","title":"Generate Audio","default":true},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["prompt"],"title":"Flux3WorkflowInputAPI","description":"API input for FLUX 3 video generation workflow.\n\nimage_key alone runs image-to-video; adding end_image_key runs\nfirst-last-frame-to-video; with neither, text-to-video. aspect_ratio is\naccepted in every mode; when omitted the provider derives it from the\nstart frame (or picks one for text-to-video)."},"Flux3WorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"type":{"type":"string","const":"video","title":"Type","default":"video"},"prompt":{"type":"string","title":"Prompt"},"resolution":{"type":"string","enum":["720p","1080p"],"title":"Resolution"},"duration":{"type":"integer","title":"Duration"},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","prompt","resolution","duration","size_mb"],"title":"Flux3WorkflowResult"},"GeminiOmniFlashFailedWebhook":{"properties":{"event":{"type":"string","const":"gemini_omni_flash.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GeminiOmniFlashFailedWebhook"},"GeminiOmniFlashSucceededWebhook":{"properties":{"event":{"type":"string","const":"gemini_omni_flash.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/GeminiOmniFlashWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GeminiOmniFlashSucceededWebhook"},"GeminiOmniFlashWorkflowInputAPI":{"properties":{"parts":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/TextPart"},{"$ref":"#/components/schemas/ImagePart"},{"$ref":"#/components/schemas/VideoPart"}]},"type":"array"},{"type":"null"}],"title":"Parts"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"starting_image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Starting Image Key"},"ending_image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ending Image Key"},"reference_image_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reference Image Keys"},"reference_video_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reference Video Keys"},"input_video_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Video Key"},"task":{"anyOf":[{"type":"string","enum":["generate","edit","extend","upscale"]},{"type":"null"}],"title":"Task"},"aspect_ratio":{"anyOf":[{"type":"string","enum":["16:9","9:16"]},{"type":"null"}],"title":"Aspect Ratio"},"duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration"},"resolution":{"anyOf":[{"type":"string","enum":["360p","720p","1080p","4k"]},{"type":"null"}],"title":"Resolution"},"previous_interaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Interaction Id"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","title":"GeminiOmniFlashWorkflowInputAPI","description":"API input for the Gemini Omni Flash video workflow.\n\nTwo mutually-exclusive input styles are accepted:\n\n1. **Parts**: an interleaved ``parts`` list (``TextPart`` / ``ImagePart``\n   / ``VideoPart``), identical to our other multimodal endpoints. Image\n   parts carry a ``role``: ``first_frame`` (image-to-video), an optional\n   ``last_frame`` next to it (the clip ends on that image; ``duration``\n   3-10 when set), or ``reference_image`` (reference-to-video, up to 6).\n   A video part is the source clip of an edit, or with role\n   ``reference_video`` a reference clip (up to 3, or 1 when ``duration``\n   is above 10; each is cut to its first 3 s). Reference images and\n   videos combine. Authoring order is preserved.\n\n2. **Discrete**: ``prompt`` plus optional ``starting_image_key`` (first\n   frame) and ``ending_image_key`` (last frame), ``reference_image_keys``\n   (up to 6) and ``reference_video_keys``, or ``input_video_key`` (the\n   source clip). Normalized to the parts form at the API edge.\n\n``task`` names the intent: ``generate`` (text-, image- or\nreference-to-video, picked by the part roles), ``edit`` (restyle or\nmodify the source clip), ``extend`` (continue the source clip by\n``duration`` seconds, 3-10, required; source + continuation at most 30 s;\nthe result is the whole clip) or ``upscale`` (raise the source clip to\n``resolution``, required; source at most 15 s and 720p-class; a 360p\nsource goes to 720p/1080p, a 720p source to 1080p/4k; the prompt is\noptional). Omitted, a request with a source video is an edit and anything\nelse is a generation.\n\n``previous_interaction_id`` (the ``interaction_id`` of an earlier result,\nkept 7 days) makes a follow-up edit of that result: a text prompt and\nnothing else (no media, ``duration``, ``aspect_ratio`` or\n``resolution``); ``task`` omitted or ``edit``. An expired id fails the run\nwith ``invalid_input``.\n\n``aspect_ratio`` (``16:9``/``9:16``) is auto-detected from the first-frame\nimage when omitted. ``resolution`` (``360p``/``720p``/``1080p``/``4k``)\nsets the output of a generation; omitted, the provider serves 720p. It is\nthe target of an upscale.\n\nVideo editing: input clips up to 15s (MP4/WebM/MOV...; oversized inputs\nare transcoded down to 720p-class automatically); a longer clip is\nrejected. ``aspect_ratio``, ``duration`` and ``resolution`` cannot be set\nfor edits; the output tracks the input clip."},"GeminiOmniFlashWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"type":{"type":"string","const":"video","title":"Type","default":"video"},"prompt":{"type":"string","title":"Prompt"},"aspect_ratio":{"type":"string","title":"Aspect Ratio"},"duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration"},"resolution":{"anyOf":[{"type":"string","enum":["360p","720p","1080p","4k"]},{"type":"null"}],"title":"Resolution"},"source_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Source Seconds"},"continuation_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Continuation Seconds"},"interaction_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interaction Id"},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","prompt","aspect_ratio","size_mb"],"title":"GeminiOmniFlashWorkflowResult"},"GenerateAudioFailedWebhook":{"properties":{"event":{"type":"string","const":"generate_audio.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GenerateAudioFailedWebhook"},"GenerateAudioSucceededWebhook":{"properties":{"event":{"type":"string","const":"generate_audio.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/GenerateAudioWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GenerateAudioSucceededWebhook"},"GenerateAudioWorkflowInputAPI":{"properties":{"source":{"oneOf":[{"$ref":"#/components/schemas/SpeechSource"},{"$ref":"#/components/schemas/MusicSource"},{"$ref":"#/components/schemas/EffectSource"},{"$ref":"#/components/schemas/ComposeSource"}],"title":"Source","description":"What to generate: `speech` (text read aloud by a `voice` from `GET /audio/voices`, optional ISO 639-1 `language`), `music` (an instrumental piece of `seconds`, 3-30), `effect` (a sound effect, `seconds` 0.5-10 or left to the prompt) or `compose` (a synthesised score the designer model writes from the prompt, `seconds` 0.5-30, optional `role` music or sfx).","discriminator":{"propertyName":"kind","mapping":{"compose":"#/components/schemas/ComposeSource","effect":"#/components/schemas/EffectSource","music":"#/components/schemas/MusicSource","speech":"#/components/schemas/SpeechSource"}}},"output_path":{"type":"string","title":"Output Path","description":"S3 prefix for the audio file (e.g. 'brands/<brand_id>/audio')"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["source","output_path"],"title":"GenerateAudioWorkflowInputAPI","description":"API input for the generate_audio workflow."},"GenerateAudioWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"seconds":{"type":"number","title":"Seconds"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"type":"object","required":["s3_key","url","seconds","content_type","size_bytes"],"title":"GenerateAudioWorkflowResult"},"GptImage25FailedWebhook":{"properties":{"event":{"type":"string","const":"gpt_image_2_5.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GptImage25FailedWebhook"},"GptImage25ResizeFailedWebhook":{"properties":{"event":{"type":"string","const":"gpt_image_2_5_resize.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GptImage25ResizeFailedWebhook"},"GptImage25ResizeSucceededWebhook":{"properties":{"event":{"type":"string","const":"gpt_image_2_5_resize.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/GptImage25ResizeWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GptImage25ResizeSucceededWebhook"},"GptImage25ResizeWorkflowInputAPI":{"properties":{"image_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Image Url"},"image_s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image S3 Key"},"target_aspect":{"anyOf":[{"prefixItems":[{"type":"integer"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Target Aspect"},"output_size":{"anyOf":[{"prefixItems":[{"type":"integer"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Output Size"},"quality":{"type":"string","enum":["low","medium","high","xhigh","max","auto"],"title":"Quality","default":"high"},"extra_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Prompt"},"focal_point":{"anyOf":[{"type":"string","enum":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"]},{"type":"null"}],"title":"Focal Point"},"blank_space_sides":{"anyOf":[{"items":{"type":"string","enum":["top","bottom","left","right"]},"type":"array"},{"type":"null"}],"title":"Blank Space Sides"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"output_format":{"type":"string","enum":["png","jpeg"],"title":"Output Format","default":"png"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","title":"GptImage25ResizeWorkflowInputAPI","description":"API input for resize by outpainting.\n\nProvide one input image (via `image_url` or `image_s3_key`) and exactly one of:\n\n- `output_size` as `[width, height]` in pixels: the delivered file is exactly\n  that size. Shortest edge at least 100, longest at most 3840, ratio up to\n  3:1, at most 8,294,400 pixels. The source is centred on the new canvas\n  unless `focal_point` or `blank_space_sides` places it.\n- `target_aspect` as `[width, height]`, up to 3:1: the output pixel\n  dimensions are computed for you. Placement is left to the model and\n  `extra_prompt`.\n\nWith `output_size`, `focal_point` (one of nine regions, such as\n`top-center`) slides the source to that side of the axis the new area is\nadded on. Each side in `blank_space_sides` (`top`, `bottom`, `left`,\n`right`) is kept clear: the source moves to the opposite side, and when it\nalready fills that axis it is shrunk so the side gets a margin of 25% of\nthe canvas. A blank side wins over a focal point on the same axis. Only the\nnew area is repainted. A content-policy fallback to Nano Banana Pro reads\n`extra_prompt` only.\n\nThe subject keeps its proportions and the scene is outpainted to fill the\nnew frame. `output_format` is `png` (the default) or `jpeg`, a smaller file\nwith any transparency flattened on white.\n\nExample:\n\n{\n    \"image_url\": \"https://example.com/portrait.jpg\",\n    \"output_size\": [1080, 1350],\n    \"output_format\": \"jpeg\"\n}"},"GptImage25ResizeWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"target_aspect":{"prefixItems":[{"type":"integer"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2,"title":"Target Aspect"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"model":{"type":"string","enum":["gpt_image_2_5","nano_banana_pro","resample"],"title":"Model"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["s3_key","target_aspect","width","height","model"],"title":"GptImage25ResizeWorkflowResult"},"GptImage25SucceededWebhook":{"properties":{"event":{"type":"string","const":"gpt_image_2_5.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/GptImage25WorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GptImage25SucceededWebhook"},"GptImage25WorkflowInputAPI":{"properties":{"parts":{"items":{"anyOf":[{"$ref":"#/components/schemas/TextPart"},{"$ref":"#/components/schemas/ImagePart"}]},"type":"array","title":"Parts"},"mask":{"anyOf":[{"$ref":"#/components/schemas/ImagePart"},{"type":"null"}],"description":"Precision-edit mask for the first image part: fully transparent pixels are repainted, opaque pixels are kept. PNG/WebP with alpha; resampled to the first image's size."},"size":{"type":"string","title":"Size","default":"auto"},"quality":{"type":"string","enum":["low","medium","high","xhigh","max","auto"],"title":"Quality","default":"high"},"background":{"anyOf":[{"type":"string","enum":["transparent","opaque","auto"]},{"type":"null"}],"title":"Background","description":"Background of the output: `transparent` (png/webp output only), `opaque`, or `auto`. Omitted = provider default (`auto`)."},"output_format":{"type":"string","enum":["png","jpeg","webp"],"title":"Output Format","default":"png"},"output_compression":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Output Compression","default":100},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["parts"],"title":"GptImage25WorkflowInputAPI","description":"API input for the GPT Image workflow, with interleaved text/image\nparts.\n\nText-only parts produce text-to-image via /v1/images/generations; including\none or more image parts triggers /v1/images/edits. ``size`` accepts\n``\"auto\"`` or any ``WIDTHxHEIGHT`` string with both edges a multiple of 16,\nmax edge 3840, ratio ≤3:1 and total pixels in [655_360, 8_294_400].\n``quality`` is one of ``low``, ``medium``, ``high``, ``xhigh``, ``max`` or\n``auto`` and defaults to ``high``.\n\nPrecision editing: ``mask`` is an image part (``url`` or ``s3_key``) whose\nfully transparent pixels mark the region of the **first** image part to\nrepaint; opaque pixels are preserved. It needs an alpha channel and is\nresampled to the first image's dimensions server-side. Requires at least\none image part. ``background: \"transparent\"`` requests an alpha background\n(png or webp output only).\n\nA content-policy block retries once on Nano Banana Pro, with the same parts,\nwhen the request has no mask, an opaque background, ``png`` output and a\n``size`` within 2% of a Nano Banana Pro native ratio."},"GptImage25WorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"size":{"type":"string","title":"Size"},"quality":{"type":"string","title":"Quality"},"output_format":{"type":"string","title":"Output Format"},"revised_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Prompt"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["s3_key","width","height","size","quality","output_format"],"title":"GptImage25WorkflowResult"},"GraphicsAgentBrandFont":{"properties":{"family":{"type":"string","minLength":1,"title":"Family"},"s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Key"},"weights":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Weights"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"role":{"anyOf":[{"type":"string","enum":["headline","body","accent"]},{"type":"null"}],"title":"Role"}},"type":"object","required":["family"],"title":"GraphicsAgentBrandFont","description":"One family the ad may set as ``fontFamily``.\n\nA bundled family (one of ``standard_fonts.json``) needs nothing but its\nname: the renderer resolves it. A custom family must carry the ``s3_key``\nof its font file, which the workflow turns into the document's\n``tokens.fonts`` block so the renderer can actually load the face —\nwithout it the family silently falls back to a system face.\n``weights`` are the CSS weights that file should serve (default 400/700)."},"GraphicsAgentBudget":{"properties":{"max_steps":{"type":"integer","maximum":40.0,"minimum":1.0,"title":"Max Steps","default":24},"max_previews":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Max Previews","default":4},"max_scenes":{"type":"integer","maximum":6.0,"minimum":0.0,"title":"Max Scenes","default":2},"max_blocks":{"type":"integer","maximum":20.0,"minimum":0.0,"title":"Max Blocks","default":8},"max_audio":{"type":"integer","maximum":8.0,"minimum":0.0,"title":"Max Audio","default":3},"max_image_edits":{"type":"integer","maximum":6.0,"minimum":0.0,"title":"Max Image Edits","default":3},"max_cutouts":{"type":"integer","maximum":6.0,"minimum":0.0,"title":"Max Cutouts","default":3}},"type":"object","title":"GraphicsAgentBudget","description":"Caps on how many *calls* the workflow makes; the prompt only announces\nthem. They are call-count caps, not cost caps: a provider activity that\nfails and is retried bills every attempt against one counted call. The\ntoken budget (``GRAPHICS_AGENT_TOKEN_BUDGET``) is the cost-shaped cap."},"GraphicsAgentCost":{"properties":{"model":{"type":"number","title":"Model","default":0.0},"images":{"type":"number","title":"Images","default":0.0},"render":{"type":"number","title":"Render","default":0.0},"critic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Critic"},"audio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Audio"},"footage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Footage"},"total":{"type":"number","title":"Total","default":0.0},"model_priced":{"type":"boolean","title":"Model Priced","default":true}},"type":"object","title":"GraphicsAgentCost","description":"Estimated USD: the designer model, generated images, render compute,\na free-design clip's critic (its own model), generated sound and generated\nfootage, and their sum. ``model_priced`` is false when a model, audio provider\nor footage tier has no list price in the table (its share is then 0, not a\nguess)."},"GraphicsAgentCtaStyle":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"usage":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Usage"},"variant":{"anyOf":[{"type":"string","enum":["filled","outline","ghost","underline"]},{"type":"null"}],"title":"Variant"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"border_radius":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Border Radius"},"text_transform":{"anyOf":[{"type":"string","enum":["uppercase","lowercase","capitalize","none"]},{"type":"null"}],"title":"Text Transform"}},"type":"object","required":["name"],"title":"GraphicsAgentCtaStyle","description":"One of the design system's call-to-action buttons, in the renderer's terms: ``color`` is\nthe label of a filled button and the whole button of any other variant.\n``usage`` is the brand's note on when to use it."},"GraphicsAgentDesignSystem":{"properties":{"colors":{"items":{"type":"string"},"type":"array","title":"Colors"},"color_roles":{"additionalProperties":{"type":"string","enum":["primary","secondary","accent","background","text"]},"type":"object","title":"Color Roles"},"fonts":{"items":{"$ref":"#/components/schemas/GraphicsAgentBrandFont"},"type":"array","title":"Fonts"},"cta_styles":{"items":{"$ref":"#/components/schemas/GraphicsAgentCtaStyle"},"type":"array","title":"Cta Styles"},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice"},"guidelines":{"items":{"type":"string"},"type":"array","title":"Guidelines"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"design_rules":{"items":{"type":"string"},"type":"array","title":"Design Rules"},"aesthetic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aesthetic"},"contact_sheet_s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Sheet S3 Key"}},"type":"object","title":"GraphicsAgentDesignSystem","description":"The design system the run was submitted with: everything about the look the agent must honor.\n\n``colors`` and ``fonts`` are *locks*: validation rejects any other value.\n``color_roles`` maps a locked hex to its role. ``cta_styles`` lists the design system's\nbuttons, primary first: a button's variant must be one of theirs, and their\ncolours are allowed on buttons beside the palette. ``voice``, ``guidelines``,\n``design_rules`` and ``aesthetic`` are prompt-only; nothing can check them. ``contact_sheet_s3_key`` is one image of\nthe design system's reference work, shown only when the designer asks for it."},"GraphicsAgentDocuments":{"properties":{"composition_s3_key":{"type":"string","title":"Composition S3 Key"},"composition_url":{"type":"string","title":"Composition Url"},"resolved_composition_s3_key":{"type":"string","title":"Resolved Composition S3 Key"},"resolved_composition_url":{"type":"string","title":"Resolved Composition Url"}},"type":"object","required":["composition_s3_key","composition_url","resolved_composition_s3_key","resolved_composition_url"],"title":"GraphicsAgentDocuments","description":"Where a free-design clip's documents are stored: the editable document\nwith image sources resolved to URLs (``composition``) and what the\nrenderer drew (``resolved_composition``), each as an S3 key and its public\nURL.\n\nA clip's documents run to tens of kilobytes, so its workflow result\ncarries them by reference and ``composition``/``resolved_composition``\nare empty there; the completion webhook carries them inline, read back\nfrom these files just before it is sent."},"GraphicsAgentElapsed":{"properties":{"total":{"type":"number","title":"Total","default":0.0},"prepare":{"type":"number","title":"Prepare","default":0.0},"model":{"type":"number","title":"Model","default":0.0},"tools":{"type":"number","title":"Tools","default":0.0},"deliver":{"type":"number","title":"Deliver","default":0.0},"draw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Draw"},"critic":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Critic"},"render":{"additionalProperties":{"type":"number"},"type":"object","title":"Render"}},"type":"object","title":"GraphicsAgentElapsed","description":"Wall seconds. ``total`` is the whole run; the stages are the ones it\nhas: ``prepare`` (assets, library), ``model`` (the designer's own turns),\n``tools`` (every tool call: renders, checks, image generation, and for a\nfree-design clip the parallel scene drawing and the reviews), ``deliver`` (the\nfinal render, upload and thumbnail). A free-design clip also reports ``draw``\n(drawing every scene at once; part of ``tools``), ``critic`` (the\ncritic's requests; part of ``tools``) and ``render`` (render seconds by\nkind of render)."},"GraphicsAgentFailedWebhook":{"properties":{"event":{"type":"string","const":"graphics_agent.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/GraphicsAgentFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GraphicsAgentFailedWebhook"},"GraphicsAgentFailurePayload":{"properties":{"error":{"type":"string","title":"Error"},"retry_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry Count"},"error_code":{"anyOf":[{"type":"string","enum":["content_policy","invalid_input","processing_error","internal_error"]},{"type":"null"}],"title":"Error Code"},"error_reason":{"anyOf":[{"type":"string","enum":["third_party_content","safety","person_generation","video_edit_intent","video_speech_edit"]},{"type":"null"}],"title":"Error Reason"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"telemetry":{"anyOf":[{"$ref":"#/components/schemas/GraphicsAgentTelemetry"},{"type":"null"}]}},"type":"object","required":["error"],"title":"GraphicsAgentFailurePayload","description":"``graphics_agent.failed``: the failure plus the run's ``telemetry``,\nwhen it got far enough to have any (internal COGS)."},"GraphicsAgentImage":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"role":{"type":"string","enum":["product","scene","reference","logo","place","ambassador","element"],"title":"Role"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["s3_key","role"],"title":"GraphicsAgentImage","description":"An input image, referenced by S3 key. The workflow turns it into an asset."},"GraphicsAgentLibraryImage":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"role":{"type":"string","enum":["product","scene","reference","logo","place","ambassador","client_logo"],"title":"Role"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["s3_key","role"],"title":"GraphicsAgentLibraryImage","description":"One image of the brand's library, offered to a clip designed from the\nbrief (free design) to choose from."},"GraphicsAgentMotion":{"properties":{"duration":{"type":"number","maximum":30.0,"minimum":2.0,"title":"Duration"},"fps":{"type":"integer","maximum":60.0,"minimum":12.0,"title":"Fps","default":30}},"type":"object","required":["duration"],"title":"GraphicsAgentMotion","description":"Asks for a video (an mp4) instead of a still, designed by free design: the clip is\nplanned and drawn scene by scene and reviewed as it plays (``free_session``).\n\n``duration`` is the clip length; ``fps`` is the capture rate of the render."},"GraphicsAgentPage":{"properties":{"composition":{"additionalProperties":true,"type":"object","title":"Composition"},"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"}},"type":"object","required":["composition","s3_key","url","thumbnail_url","width","height"],"title":"GraphicsAgentPage","description":"One delivered page of a carousel, in order. It has no resolved composition: the\nplatform keeps none for a row with pages."},"GraphicsAgentProgressPayload":{"properties":{"layer_ids":{"items":{"type":"string"},"type":"array","title":"Layer Ids"},"seq":{"type":"integer","title":"Seq"}},"type":"object","required":["layer_ids","seq"],"title":"GraphicsAgentProgressPayload","description":"``graphics_agent.progress``: the layers a still redo is changing. ``seq`` rises with\neach event of a run, so a delivery that arrives late is dropped."},"GraphicsAgentProgressWebhook":{"properties":{"event":{"type":"string","const":"graphics_agent.progress","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/GraphicsAgentProgressPayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GraphicsAgentProgressWebhook"},"GraphicsAgentReference":{"properties":{"document":{"additionalProperties":true,"type":"object","title":"Document"},"render_s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Render S3 Key"},"render_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Render Url"}},"type":"object","required":["document"],"title":"GraphicsAgentReference","description":"A finished design to adapt instead of designing from scratch.\n\n``document`` is the composition the platform stores for a delivered ad:\nimage sources are media-host URLs on the way in, and ``asset:source-<n>``\nhandles once the workflow has prepared them. Its layers are the structure\nthe new ad must keep (see ``reference.validate_reference``); what changes is\nwhat the brief asks to change, usually the product.\n\n``render_s3_key`` is the delivered still, shown to the agent so it sees the\nad it is reproducing; ``render_url`` is that key resolved by the workflow.\nA clip has no still to show: its timing is read off the document."},"GraphicsAgentScene":{"properties":{"image_model":{"type":"string","enum":["nano_banana_pro","gpt_image_2_5"],"title":"Image Model","default":"nano_banana_pro"},"image_size":{"type":"string","enum":["1K","2K","4K"],"title":"Image Size","default":"2K"},"brand":{"$ref":"#/components/schemas/HalaxBrandAssets"},"photography_guidelines":{"type":"string","title":"Photography Guidelines","default":""},"allow_religious_content":{"type":"boolean","title":"Allow Religious Content","default":false},"market":{"type":"string","maxLength":120,"title":"Market","default":""}},"type":"object","title":"GraphicsAgentScene","description":"Settings for the halaX brief behind ``generate_scene``.\n\nNone of this reaches the designer: it is read once, when the scene tool\nbuilds its brief, so it stays off the per-step job payload rather than\nbeing re-serialised on every one of up to 40 agent steps."},"GraphicsAgentSucceededWebhook":{"properties":{"event":{"type":"string","const":"graphics_agent.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/GraphicsAgentWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GraphicsAgentSucceededWebhook"},"GraphicsAgentTelemetry":{"properties":{"model":{"type":"string","title":"Model","default":""},"effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effort"},"turns":{"type":"integer","title":"Turns","default":0},"scene_requests":{"type":"integer","title":"Scene Requests","default":0},"critic_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Critic Model"},"critic_requests":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Critic Requests"},"review_failures":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Review Failures"},"review_retries":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Review Retries"},"review_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Mode"},"tokens":{"$ref":"#/components/schemas/GraphicsAgentTokens"},"cost_usd":{"$ref":"#/components/schemas/GraphicsAgentCost"},"elapsed_s":{"$ref":"#/components/schemas/GraphicsAgentElapsed"}},"type":"object","title":"GraphicsAgentTelemetry","description":"The run's cost and time, for tuning. See the module docstring."},"GraphicsAgentTokens":{"properties":{"input":{"type":"integer","title":"Input","default":0},"cache_write":{"type":"integer","title":"Cache Write","default":0},"cache_read":{"type":"integer","title":"Cache Read","default":0},"output":{"type":"integer","title":"Output","default":0},"thinking":{"type":"integer","title":"Thinking","default":0}},"type":"object","title":"GraphicsAgentTokens","description":"The designer model's tokens over the run (every turn; a free-design clip's\nparallel scene requests included). ``input`` is the uncached prompt;\n``cache_write`` and ``cache_read`` are the prompt tokens written to and\nread from the provider's cache; ``output`` excludes ``thinking``, which is\nbilled as output too."},"GraphicsAgentWorkflowInputAPI":{"properties":{"prompt":{"type":"string","maxLength":10000,"minLength":1,"title":"Prompt","description":"The ad brief"},"images":{"items":{"$ref":"#/components/schemas/GraphicsAgentImage"},"type":"array","maxItems":12,"title":"Images","description":"Input images by S3 key with a role (product, scene, reference, logo, place, ambassador, element: one of the design system's graphic elements, used only where the design calls for it); a logo may carry its layout (mark, horizontal, stacked)"},"width":{"type":"integer","maximum":4096.0,"minimum":256.0,"title":"Width","description":"Canvas width in pixels"},"height":{"type":"integer","maximum":4096.0,"minimum":256.0,"title":"Height","description":"Canvas height in pixels"},"carousel":{"type":"boolean","title":"Carousel","description":"A carousel of 2 to 10 still pages on the one canvas, designed as one sequence; the designer picks the count from the brief unless `pages` fixes it, and the webhook carries every page in `pages`. Not with motion or reference; reference_pages adapts an existing carousel","default":false},"pages":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":2.0},{"type":"null"}],"title":"Pages","description":"A carousel of exactly this many pages, over any count the brief names. Needs carousel"},"brand":{"$ref":"#/components/schemas/GraphicsAgentDesignSystem","description":"Design system: palette/font/CTA locks with colour and type roles, voice and guidelines, design rules, aesthetic, the brand's name, and the S3 key of the contact sheet of the design system's reference images, which the designer may ask to see"},"reference":{"anyOf":[{"$ref":"#/components/schemas/GraphicsAgentReference"},{"type":"null"}],"description":"Adapt mode: a delivered ad's composition (image sources as media URLs) to reproduce for this brief, plus the S3 key of its rendered still when it has one"},"reference_pages":{"anyOf":[{"items":{"$ref":"#/components/schemas/GraphicsAgentReference"},"type":"array","maxItems":10,"minItems":2},{"type":"null"}],"title":"Reference Pages","description":"Adapt a carousel: every page of a delivered carousel in order, each its composition (image sources as media URLs) and the S3 key of its rendered still, every page on one canvas. Needs carousel; the run makes exactly this many pages on this canvas, re-laid out when it is another"},"reference_video_s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Video S3 Key","description":"A finished video (S3 key on the media host, at most 60 s) to make the video like, with the brand's own products. Requires motion; not combinable with reference"},"review_mode":{"anyOf":[{"type":"string","enum":["independent","self","auto"]},{"type":"null"}],"title":"Review Mode","description":"How a video's drafts are reviewed: 'independent' (a critic model), 'self' (the designer compares its own frames, against the reference when there is one) or 'auto' ('self' with a reference video, else 'independent'). Omit for the deployment's default"},"budget":{"$ref":"#/components/schemas/GraphicsAgentBudget","description":"Call-count caps on turns, previews and scene generations (not a cost cap: retried provider attempts bill against one call)"},"scene":{"$ref":"#/components/schemas/GraphicsAgentScene","description":"The halaX brief behind generate_scene: image_model, image_size, brand (identity for the palette), photography_guidelines and allow_religious_content. Read only by the scene tool."},"motion":{"anyOf":[{"$ref":"#/components/schemas/GraphicsAgentMotion"},{"type":"null"}],"description":"Makes a video: clip duration (2-30 s) and fps; the result is an mp4. The designer model draws every scene of the clip as editable layers (sections, cuts, motion groups) and reviews it as it plays. With reference, the design is animated or redone at its own length."},"library":{"items":{"$ref":"#/components/schemas/GraphicsAgentLibraryImage"},"type":"array","maxItems":36,"title":"Library","description":"The brand library a video may show (up to 36 images by S3 key, with a role and a name). Requires motion."},"placement":{"anyOf":[{"type":"string","enum":["instagram_feed","instagram_story","instagram_story_ad","instagram_reels","instagram_reels_ad","tiktok_organic","tiktok_ad","snapchat","snapchat_ad","linkedin_feed","linkedin_video","linkedin_video_ad","google_display","youtube_instream","youtube_shorts","youtube_shorts_ad"]},{"type":"null"}],"title":"Placement","description":"Where the ad will run, which narrows the enforced ad specs (safe zone, type and logo floors) to that placement. Omit for the strictest numbers across every placement that ships this aspect ratio. Must ship the requested width/height ratio."},"direction":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Direction","description":"Art direction the agent must follow. Omit to let the workflow assign one of its built-in directions from variation_index."},"variation_index":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Variation Index","description":"Position of this run among its sibling variations; rotates the assigned art direction so each variation differs. Ignored when direction is set."},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Effort","description":"How hard the designer model thinks on each turn: `low`, `medium` or `high`. More effort buys better design judgement for a longer run that costs more; less is faster and cheaper. It applies to whichever designer model the deployment runs (Claude's effort, Gemini's thinking level of the same name). Omit for the deployment's default; any other value is treated as omitted."},"output_path":{"type":"string","title":"Output Path","description":"S3 prefix for the render, thumbnail and intermediate assets (e.g. 'brands/<brand_id>/creativeAssets')"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"},"progress_webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Progress Webhook Url"}},"type":"object","required":["prompt","width","height","output_path"],"title":"GraphicsAgentWorkflowInputAPI","description":"API input for the Graphics Agent workflow.\n\nA Gemini tool-calling agent designs a complete, editable ad as a\nmedia-composer document. It may generate a text-free scene (halaX: the\nenhancement agent, then the brand's image model, with the product passed\nas a reference so it is rendered natively in the scene; there is no\nbackground removal), validate and preview its own render, and finish.\nThe final document is rendered, thumbnailed and uploaded; the\n``graphics_agent.succeeded`` webhook carries the image plus ``composition``\n(image sources resolved to URLs, ready for the editor) and\n``resolved_composition``.\n\nA scene is generated by halaX:\nthe enhancement agent rewrites the designer's photography brief with its\ncultural-attire and brand-identity tools, then the brand's image model\ndraws it. Everything that brief needs is under ``scene`` —\n``scene.image_model`` (Nano Banana Pro by default), ``scene.image_size``,\n``scene.brand.identity`` (color palette with per-color instructions and a\npalette image), ``scene.photography_guidelines`` and\n``scene.allow_religious_content``. None of it reaches the designer, which\nreads ``brand`` instead.\n\n``brand.colors`` and ``brand.fonts`` are hard locks enforced by validation,\nand so is the variant of each ``brand.cta_styles`` entry (the design system's buttons,\nprimary first, whose colours are allowed on buttons); ``brand.voice`` and\n``brand.guidelines`` only steer the prompt. Each ``brand.fonts`` entry is ``{family, s3_key?, weights?}``:\na family bundled with the renderer is allowed by name, and any other family\nmust carry the ``s3_key`` of its font file, which the workflow attaches to\nthe document as a ``tokens.fonts`` entry so the face actually resolves.\n\n``budget`` caps how many *calls* the run makes — turns, previews, scene\ngenerations. It is not a cost cap: a provider call\nthat fails is retried, and every attempt is billed against the one call it\ncounted. Token spend is capped separately by the server-side\n``GRAPHICS_AGENT_TOKEN_BUDGET``; exceeding it ends the run on the\n``budget_exhausted`` path with the last valid draft. A single-page still run\nmay cut a product or a person out of its picture's background, up to\n``budget.max_cutouts`` calls.\n\n``motion`` makes the result a video, an mp4 (``type: \"video\"``,\n``duration``), instead of a PNG. A video is designed by free design, from\nthe brief or from a ``reference``: the designer model plans the clip and draws every\nscene as media-composer layers (all scenes at once, from the plan); an\nindependent reviewer watches each draft as it plays and lists the\nproblems a viewer would notice, and the designer revises until the\nreviewer would ship it or the reviews run out. The engine only\nvalidates, renders and checks. The document is ordinary editable layers\norganised in sections with cuts and motion groups, and the result\ncarries it by reference in ``documents`` (the completion webhook inlines\nit). Free design runs on the deployment's free-design model and effort.\n\n``library`` is the brand library a clip designed from the brief may\nchoose from, on top of ``images``: each entry is measured (size, a logo's\nlight or dark ink, faces) and shown to the agent as labelled thumbnail\nsheets. A non-empty ``library`` needs a video. ``brand.name`` is the\nbrand as the viewer knows it, named in the free-design prompt.\n\n``reference`` switches the job to adapt mode: ``reference.document`` is the\n``composition`` of an ad this endpoint delivered earlier, and the agent\nreproduces that ad for what the brief now asks (another product, another\noffer) instead of designing from a blank canvas. The design's images reach\nthe agent as ``asset:source-<n>`` handles. Validation keeps every layer of\nthe design (same id, type and order) and, on a clip redone at its own\ncanvas, each layer's ``motion`` and ``visibility`` and each scene's window;\ncolours, families and node types the design already uses stay legal even\noutside the brand lock. The job's own shape says what kind of redo it is:\nthe design's canvas adapts it, another canvas re-lays it out, and\n``motion`` on a still design animates it. With ``motion`` the design is\nwritten into the clip as its scenes (a sectioned design's sections, else\none scene) and the designer revises them rather than planning anew. A clip\nkeeps its length: ``motion.duration`` must be the design's. With\n``budget.max_scenes`` at 0 the redo cannot make new imagery, which is what\na copy edit, a translation or a graphics-only change is. A redo of a still\nor of a carousel may edit and resize the design's pictures, up to\n``budget.max_image_edits`` calls (a carousel gets one more per page past the\nfirst), with or without a scene budget: copy painted into a picture is\nerased from it and set again as text. ``progress_webhook_url`` then receives\n``graphics_agent.progress``: the layers the run is changing, best effort, one\ndelivery attempt per event.\n\n``reference_pages`` adapts a finished carousel the same way, page for page: with\n``carousel``, each entry is one page's ``composition`` and the S3 key of its\ndelivered still, in order, and page n of the new carousel keeps the layers of\npage n. The carousel keeps its page count (``pages`` may be omitted, and must\notherwise equal it). Its pages share one canvas; on another ``width`` x\n``height`` every page is re-laid out for it, and a full-bleed photo is\noutpainted to the new shape once for every page it fills. An image several\npages show reaches the designer once.\n\n``reference_video_s3_key`` makes a video (``motion``) like a\nfinished video, with the brand's own products: the video (on the media host,\nat most 60 s) is read once for its cuts and frames, which the designer is\nshown, and every review sets the clip's frame at each moment beside the\nvideo's (a video of another length maps in proportion). It is a target to\nmatch, not a design to edit: the clip is planned and drawn from scratch, and\nit cannot be combined with ``reference``.\n\n``review_mode`` overrides the deployment's review mode for a video:\n``independent`` has a critic model watch each draft; ``self`` calls no critic\nmodel and shows the designer the frames the critic would see (beside the\nreference's, with one) and asks it to fix what differs; ``auto`` is ``self``\nwith a ``reference_video_s3_key`` and ``independent`` without (a\n``reference`` design is changed as the brief asks, which a critic judges).\n\n``placement`` names where the ad will run and narrows the enforced ad specs\n— safe zone, minimum type sizes, minimum logo width and its clear space —\nto that placement's row. Omit it and the specs resolve to the strictest\nnumbers across every placement that ships this aspect ratio, so the asset\nis legible wherever it is posted. A placement that does not ship the\nrequested canvas ratio is a 422.\n\n``effort`` sets how hard the designer model thinks on each turn, in every\nmode above: ``high`` designs better and runs longer and costs more,\n``low`` is faster and cheaper. Omitted, the deployment's default applies;\nany other value is read as omitted (logged, never a 422)."},"GraphicsAgentWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"type":{"type":"string","enum":["image","video"],"title":"Type","default":"image"},"mime_type":{"type":"string","title":"Mime Type","default":"image/png"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"composition":{"additionalProperties":true,"type":"object","title":"Composition"},"resolved_composition":{"additionalProperties":true,"type":"object","title":"Resolved Composition"},"prompt":{"type":"string","title":"Prompt"},"status":{"type":"string","enum":["finished","budget_exhausted"],"title":"Status"},"steps":{"type":"integer","title":"Steps"},"previews":{"type":"integer","title":"Previews"},"scenes":{"type":"integer","title":"Scenes"},"tool_trace":{"items":{"$ref":"#/components/schemas/ToolTraceEntry"},"type":"array","title":"Tool Trace"},"spec_fixes":{"items":{"type":"string"},"type":"array","title":"Spec Fixes"},"spec_issues":{"items":{"type":"string"},"type":"array","title":"Spec Issues"},"documents":{"anyOf":[{"$ref":"#/components/schemas/GraphicsAgentDocuments"},{"type":"null"}]},"pages":{"items":{"$ref":"#/components/schemas/GraphicsAgentPage"},"type":"array","title":"Pages"},"archive_s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archive S3 Key"},"archive_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archive Url"},"telemetry":{"anyOf":[{"$ref":"#/components/schemas/GraphicsAgentTelemetry"},{"type":"null"}]},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","width","height","composition","resolved_composition","prompt","status","steps","previews","scenes","size_mb"],"title":"GraphicsAgentWorkflowResult"},"GrokV15VideoFailedWebhook":{"properties":{"event":{"type":"string","const":"grok_v15_video.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GrokV15VideoFailedWebhook"},"GrokV15VideoSucceededWebhook":{"properties":{"event":{"type":"string","const":"grok_v15_video.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/GrokV15WorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"GrokV15VideoSucceededWebhook"},"GrokV15WorkflowInputAPI":{"properties":{"prompt":{"type":"string","title":"Prompt"},"starting_image_key":{"type":"string","title":"Starting Image Key"},"duration":{"type":"integer","title":"Duration","default":6},"resolution":{"type":"string","enum":["720p","480p"],"title":"Resolution","default":"720p"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["prompt","starting_image_key"],"title":"GrokV15WorkflowInputAPI","description":"API input for Grok Imagine v1.5 image-to-video workflow via fal.ai.\n\nv1.5 is image-to-video only, so starting_image_key is required. There is\nno aspect_ratio parameter; the output follows the input image."},"GrokV15WorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"type":{"type":"string","const":"video","title":"Type","default":"video"},"prompt":{"type":"string","title":"Prompt"},"resolution":{"type":"string","title":"Resolution"},"duration":{"type":"integer","title":"Duration"},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","prompt","resolution","duration","size_mb"],"title":"GrokV15WorkflowResult"},"GuidelinesPatch":{"properties":{"kind":{"type":"string","enum":["voice","photography"],"title":"Kind"},"guidelines":{"items":{"type":"string"},"type":"array","title":"Guidelines"}},"type":"object","required":["kind","guidelines"],"title":"GuidelinesPatch"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HalaxBrandAssets":{"properties":{"light_logo_s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Light Logo S3 Key"},"dark_logo_s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dark Logo S3 Key"},"colors":{"items":{"type":"string"},"type":"array","title":"Colors"},"fonts":{"items":{"type":"string"},"type":"array","title":"Fonts"}},"type":"object","title":"HalaxBrandAssets","description":"Brand records the enhancement agent may pull in with its tools."},"Ideogram45FailedWebhook":{"properties":{"event":{"type":"string","const":"ideogram_4_5.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"Ideogram45FailedWebhook"},"Ideogram45SucceededWebhook":{"properties":{"event":{"type":"string","const":"ideogram_4_5.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/Ideogram45WorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"Ideogram45SucceededWebhook"},"Ideogram45WorkflowInputAPI":{"properties":{"parts":{"items":{"anyOf":[{"$ref":"#/components/schemas/TextPart"},{"$ref":"#/components/schemas/ImagePart"}]},"type":"array","title":"Parts"},"edit_precision":{"type":"string","enum":["regular","high"],"title":"Edit Precision","default":"high"},"quality":{"type":"string","enum":["very_low","low","medium","high"],"title":"Quality","default":"medium"},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size","description":"Output size `WIDTHxHEIGHT` for `regular` edits; omitted keeps the source geometry."},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["parts"],"title":"Ideogram45WorkflowInputAPI","description":"API input for the image edit workflow via fal.ai.\n\nTakes the same interleaved text/image parts as ``gpt_image_2_5``. The\n**last** image part is the image to edit; up to four earlier image parts\nare references. Text parts become the prompt, with each image's position\nmarked (``[reference image N]``, ``[the image being edited]``).\n\n``edit_precision`` ``high`` (default) is Precise Edit: unchanged pixels are\nrestored and the output keeps the source geometry, so ``size`` must be\nomitted. ``regular`` accepts ``size`` (``WIDTHxHEIGHT``, multiples of 32,\nmin edge 256, at most 4,194,304 pixels, ratio up to 6:1) for reframes.\n``quality`` sets the flat per-image price: ``very_low``, ``low``,\n``medium`` (default) or ``high``."},"Ideogram45WorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"mime_type":{"type":"string","title":"Mime Type"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"size_bytes":{"type":"integer","title":"Size Bytes"},"edit_precision":{"type":"string","title":"Edit Precision"},"quality":{"type":"string","title":"Quality"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["s3_key","url","mime_type","width","height","size_bytes","edit_precision","quality"],"title":"Ideogram45WorkflowResult"},"ImagePart":{"properties":{"type":{"type":"string","const":"image","title":"Type","default":"image"},"url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Url"},"s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Key"},"role":{"anyOf":[{"type":"string","enum":["first_frame","last_frame","reference_image"]},{"type":"null"}],"title":"Role"}},"type":"object","title":"ImagePart","description":"An image content part - provide either url or s3_key.\n\nThe optional ``role`` is used by workflows that need to distinguish\nimages semantically (e.g. Gemini Omni Flash expects ``first_frame``,\n``last_frame`` or ``reference_image``). Workflows that don't care\nabout roles ignore the field."},"ImageUploadReservation":{"properties":{"id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Id"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Sha256"},"expires_at":{"type":"integer","title":"Expires At"}},"type":"object","required":["id","sha256","expires_at"],"title":"ImageUploadReservation"},"ImportPsdWorkflowInputAPI":{"properties":{"source_s3_key":{"type":"string","title":"Source S3 Key"},"asset_path":{"type":"string","title":"Asset Path"},"fonts":{"items":{"$ref":"#/components/schemas/PsdImportFont"},"type":"array","title":"Fonts"}},"type":"object","required":["source_s3_key","asset_path","fonts"],"title":"ImportPsdWorkflowInputAPI","description":"API input for importing a Photoshop file as editable designs.\n\n``source_s3_key`` is the uploaded ``.psd`` (``brands/<brandId>/...``);\nlayer images and the PSD's own preview are stored under ``asset_path``\n(``brands/<brandId>/...``). ``fonts`` are the brand's font faces, matched\nto the PSD's fonts by PostScript name, then by family, weight and style."},"InputMapping":{"properties":{"from_operation":{"type":"string","title":"From Operation","description":"Name of a previously defined operation to pull data from"},"from_field":{"type":"string","title":"From Field","description":"Field name from the source operation's output"},"to_field":{"type":"string","title":"To Field","description":"Parameter name in the current operation to map the value to"}},"type":"object","required":["from_operation","from_field","to_field"],"title":"InputMapping","description":"Maps an output from a previous operation to an input of the current operation."},"Insight":{"properties":{"kind":{"type":"string","enum":["metric_fact","actionable"],"title":"Kind"},"title":{"type":"string","title":"Title"},"narrative":{"type":"string","title":"Narrative"},"evidence":{"items":{"$ref":"#/components/schemas/Evidence"},"type":"array","title":"Evidence"},"recommendation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommendation"}},"type":"object","required":["kind","title","narrative","evidence"],"title":"Insight"},"KlingFailedWebhook":{"properties":{"event":{"type":"string","const":"kling.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"KlingFailedWebhook"},"KlingSucceededWebhook":{"properties":{"event":{"type":"string","const":"kling.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/KlingWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"KlingSucceededWebhook"},"KlingTurboFailedWebhook":{"properties":{"event":{"type":"string","const":"kling_turbo.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"KlingTurboFailedWebhook"},"KlingTurboSucceededWebhook":{"properties":{"event":{"type":"string","const":"kling_turbo.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/KlingTurboWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"KlingTurboSucceededWebhook"},"KlingTurboWorkflowInputAPI":{"properties":{"prompt":{"type":"string","title":"Prompt"},"image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Key"},"tail_image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tail Image Key"},"duration":{"type":"integer","enum":[5,10],"title":"Duration","default":5},"negative_prompt":{"type":"string","title":"Negative Prompt","default":"blur, distort, and low quality"},"cfg_scale":{"type":"number","title":"Cfg Scale","default":0.5},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["prompt"],"title":"KlingTurboWorkflowInputAPI","description":"API input for Kling 2.5 Turbo video generation workflow.\n\nIf image_key is provided, uses image-to-video mode.\nIf image_key is omitted, uses text-to-video mode.\ntail_image_key is optional end-frame image (i2v only)."},"KlingTurboWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"type":{"type":"string","const":"video","title":"Type","default":"video"},"prompt":{"type":"string","title":"Prompt"},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","prompt","size_mb"],"title":"KlingTurboWorkflowResult"},"KlingV3FailedWebhook":{"properties":{"event":{"type":"string","const":"kling_v3.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"KlingV3FailedWebhook"},"KlingV3MultiPromptSegment":{"properties":{"prompt":{"type":"string","title":"Prompt"},"duration":{"type":"integer","maximum":15.0,"minimum":1.0,"title":"Duration","default":5}},"type":"object","required":["prompt"],"title":"KlingV3MultiPromptSegment","description":"One shot of a multi-shot storyboard.\n\n``duration`` is seconds for this shot; fal expects it as a string enum\n(\"1\"..\"15\"), which the payload builder handles."},"KlingV3SucceededWebhook":{"properties":{"event":{"type":"string","const":"kling_v3.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/KlingV3WorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"KlingV3SucceededWebhook"},"KlingV3WorkflowInputAPI":{"properties":{"prompt":{"anyOf":[{"type":"string","maxLength":2500},{"type":"null"}],"title":"Prompt"},"multi_prompt":{"anyOf":[{"items":{"$ref":"#/components/schemas/KlingV3MultiPromptSegment"},"type":"array"},{"type":"null"}],"title":"Multi Prompt"},"image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Key"},"end_image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Key"},"tier":{"type":"string","enum":["standard","pro","4k"],"title":"Tier","default":"pro"},"duration":{"type":"integer","maximum":15.0,"minimum":3.0,"title":"Duration","default":5},"aspect_ratio":{"anyOf":[{"type":"string","enum":["16:9","9:16","1:1"]},{"type":"null"}],"title":"Aspect Ratio"},"negative_prompt":{"type":"string","title":"Negative Prompt","default":"blur, distort, and low quality"},"cfg_scale":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Cfg Scale","default":0.5},"generate_audio":{"type":"boolean","title":"Generate Audio","default":true},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","title":"KlingV3WorkflowInputAPI","description":"API input for Kling v3 video generation workflow.\n\nIf image_key is provided, uses image-to-video mode (end_image_key adds an\noptional end frame); otherwise text-to-video. Provide exactly one of\nprompt or multi_prompt. aspect_ratio applies to text-to-video only —\nimage-to-video derives it from the input image."},"KlingV3WorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"type":{"type":"string","const":"video","title":"Type","default":"video"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"tier":{"type":"string","enum":["standard","pro","4k"],"title":"Tier"},"duration":{"type":"integer","title":"Duration"},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","tier","duration","size_mb"],"title":"KlingV3WorkflowResult"},"KlingWorkflowInputAPI":{"properties":{"prompt":{"type":"string","title":"Prompt"},"image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Key"},"duration":{"type":"integer","enum":[5,10],"title":"Duration","default":5},"negative_prompt":{"type":"string","title":"Negative Prompt","default":"blur, distort, and low quality"},"cfg_scale":{"type":"number","title":"Cfg Scale","default":0.5},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["prompt"],"title":"KlingWorkflowInputAPI","description":"API input for Kling video generation workflow.\n\nIf image_key is provided, uses image-to-video mode.\nIf image_key is omitted, uses text-to-video mode."},"KlingWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"type":{"type":"string","const":"video","title":"Type","default":"video"},"prompt":{"type":"string","title":"Prompt"},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","prompt","size_mb"],"title":"KlingWorkflowResult"},"LogoPatch":{"properties":{"kind":{"type":"string","const":"logo","title":"Kind"},"variant":{"type":"string","enum":["light","dark","additional"],"title":"Variant"},"image":{"$ref":"#/components/schemas/SavedImage"}},"type":"object","required":["kind","variant","image"],"title":"LogoPatch","description":"``light`` is the logo for light backgrounds, ``dark`` for dark ones."},"MagicEditFailedWebhook":{"properties":{"event":{"type":"string","const":"magic_edit.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"MagicEditFailedWebhook"},"MagicEditSucceededWebhook":{"properties":{"event":{"type":"string","const":"magic_edit.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/MagicEditWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"MagicEditSucceededWebhook"},"MagicEditWorkflowInputAPI":{"properties":{"parts":{"items":{"anyOf":[{"$ref":"#/components/schemas/TextPart"},{"$ref":"#/components/schemas/ImagePart"}]},"type":"array","title":"Parts"},"aspect_ratio":{"anyOf":[{"type":"string","enum":["1:1","9:16","16:9","4:3","3:4","21:9","3:2","2:3","5:4","4:5"]},{"type":"null"}],"title":"Aspect Ratio","description":"Output aspect ratio. Omitted keeps the source's framing, read from `source_width` / `source_height`."},"image_size":{"type":"string","enum":["1K","2K","4K"],"title":"Image Size","description":"Resolution tier the edit was billed at. A 4K edit starts on GPT Image."},"source_width":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Source Width","description":"Pixel width of the image being edited"},"source_height":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Source Height","description":"Pixel height of the image being edited"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["parts","image_size"],"title":"MagicEditWorkflowInputAPI","description":"API input for a magic edit: an instruction-led edit of one image that falls back\nacross image models.\n\n``parts`` are interleaved text/image parts with no edit instruction; the workflow\ngives each model the instruction the way it takes one. The **last** image part is\nthe image to edit and every earlier image part is a reference."},"MagicEditWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"model":{"type":"string","enum":["ideogram_4_5","gpt_image_2_5","nano_banana_2"],"title":"Model"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["s3_key","url","width","height","model"],"title":"MagicEditWorkflowResult"},"MetricsIngestInputAPI":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"platform":{"type":"string","enum":["instagram","facebook","linkedin","tiktok","meta_ads","linkedin_ads","tiktok_ads","google_ads","snapchat_ads"],"title":"Platform"},"channel":{"type":"string","enum":["organic_social","paid_social"],"title":"Channel"},"account_id":{"type":"string","title":"Account Id"},"vault_object_id":{"type":"string","title":"Vault Object Id"},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id"},"window":{"$ref":"#/components/schemas/MetricsIngestWindowAPI"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"},"post_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Post Ids"},"backfill_mark":{"anyOf":[{"type":"string","enum":["2h","6h","24h","48h","7d"]},{"type":"null"}],"title":"Backfill Mark"}},"type":"object","required":["brand_id","platform","channel","account_id","vault_object_id","window"],"title":"MetricsIngestInputAPI","description":"API input for the unified metrics ingestion trigger (contract §7)."},"MetricsIngestWindowAPI":{"properties":{"days_back":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Days Back"},"from_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From Day"},"to_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To Day"}},"type":"object","title":"MetricsIngestWindowAPI","description":"Ingestion window: exactly one of ``days_back`` or ``from_day``+``to_day``."},"MetricsIngestionFailedPayload":{"properties":{"platform":{"type":"string","title":"Platform"},"channel":{"type":"string","title":"Channel"},"account_id":{"type":"string","title":"Account Id"},"window":{"$ref":"#/components/schemas/MetricsWindow"},"error":{"type":"string","title":"Error"},"retry_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry Count"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"}},"type":"object","required":["platform","channel","account_id","window","error"],"title":"MetricsIngestionFailedPayload","description":"``metrics.ingestion.failed`` payload built by ``send_metrics_ingestion_webhook``.\n\nSame ``error_code`` / ``error_type`` exclusivity as ``WorkflowFailurePayload``."},"MetricsIngestionFailedWebhook":{"properties":{"event":{"type":"string","const":"metrics.ingestion.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/MetricsIngestionFailedPayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"MetricsIngestionFailedWebhook"},"MetricsIngestionSucceededPayload":{"properties":{"platform":{"type":"string","title":"Platform"},"channel":{"type":"string","title":"Channel"},"account_id":{"type":"string","title":"Account Id"},"window":{"$ref":"#/components/schemas/MetricsWindow"},"dataset_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Dataset Counts"}},"type":"object","required":["platform","channel","account_id","window","dataset_counts"],"title":"MetricsIngestionSucceededPayload","description":"``metrics.ingestion.succeeded`` payload built by ``send_metrics_ingestion_webhook``."},"MetricsIngestionSucceededWebhook":{"properties":{"event":{"type":"string","const":"metrics.ingestion.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/MetricsIngestionSucceededPayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"MetricsIngestionSucceededWebhook"},"MetricsWindow":{"properties":{"from_day":{"type":"string","title":"From Day"},"to_day":{"type":"string","title":"To Day"}},"type":"object","required":["from_day","to_day"],"title":"MetricsWindow","description":"Inclusive ISO-date window an ingestion run covers (§9.6: window is a\nvalue, resolved at the API edge and threaded through unchanged)."},"MinimaxH3FailedWebhook":{"properties":{"event":{"type":"string","const":"minimax_h3.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"MinimaxH3FailedWebhook"},"MinimaxH3SucceededWebhook":{"properties":{"event":{"type":"string","const":"minimax_h3.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/MinimaxH3WorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"MinimaxH3SucceededWebhook"},"MinimaxH3WorkflowInputAPI":{"properties":{"prompt":{"type":"string","maxLength":50000,"title":"Prompt"},"image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Key"},"end_image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Key"},"reference_image_keys":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":9},{"type":"null"}],"title":"Reference Image Keys"},"reference_video_keys":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Reference Video Keys","description":"Each clip must be 2-15s; combined length <= 15s"},"reference_audio_keys":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Reference Audio Keys","description":"Each clip must be 2-15s; combined length <= 15s. Audio cannot be the only reference type"},"duration":{"type":"integer","maximum":15.0,"minimum":5.0,"title":"Duration","default":5},"resolution":{"type":"string","enum":["480P","768P"],"title":"Resolution","default":"768P"},"aspect_ratio":{"anyOf":[{"type":"string","enum":["adaptive","21:9","16:9","4:3","1:1","3:4","9:16"]},{"type":"null"}],"title":"Aspect Ratio","description":"Only sent when provided. Not supported for image-to-video ('adaptive' is reference-to-video only). At most 12 reference files in total."},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["prompt"],"title":"MinimaxH3WorkflowInputAPI","description":"API input for the MiniMax H3 Max (Hailuo 3.0) video workflow via fal.ai.\n\nOne endpoint, three modes, picked from the inputs:\n\n- **Text-to-video** — ``prompt`` only\n- **Image-to-video** — ``prompt`` + ``image_key`` (first frame), plus an\n  optional ``end_image_key`` for first-to-last keyframe generation. The\n  output aspect follows the first frame, so ``aspect_ratio`` is rejected.\n- **Reference-to-video** — ``prompt`` + any ``reference_*_keys``. Cite the\n  assets in the prompt as ``Image 1``, ``Video 1``, ``Audio 1`` following\n  list order.\n\n``image_key`` and the ``reference_*`` keys are mutually exclusive (they map\nto different fal endpoints)."},"MinimaxH3WorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"type":{"type":"string","const":"video","title":"Type","default":"video"},"prompt":{"type":"string","title":"Prompt"},"resolution":{"type":"string","title":"Resolution"},"duration":{"type":"integer","title":"Duration"},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","prompt","resolution","duration","size_mb"],"title":"MinimaxH3WorkflowResult"},"MusicSource":{"properties":{"kind":{"type":"string","const":"music","title":"Kind"},"prompt":{"type":"string","maxLength":600,"minLength":1,"title":"Prompt"},"seconds":{"type":"number","maximum":30.0,"minimum":3.0,"title":"Seconds"}},"additionalProperties":false,"type":"object","required":["kind","prompt","seconds"],"title":"MusicSource"},"NanoBanana2FailedWebhook":{"properties":{"event":{"type":"string","const":"nano_banana_2.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"NanoBanana2FailedWebhook"},"NanoBanana2SucceededWebhook":{"properties":{"event":{"type":"string","const":"nano_banana_2.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/NanoBanana2WorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"NanoBanana2SucceededWebhook"},"NanoBanana2WorkflowInputAPI":{"properties":{"parts":{"items":{"anyOf":[{"$ref":"#/components/schemas/TextPart"},{"$ref":"#/components/schemas/ImagePart"}]},"type":"array","title":"Parts"},"system_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Instruction"},"aspect_ratio":{"type":"string","enum":["1:1","9:16","16:9","4:3","3:4","21:9","3:2","2:3","5:4","4:5","1:4","4:1","1:8","8:1"],"title":"Aspect Ratio","default":"1:1"},"image_size":{"type":"string","enum":["1K","2K","4K"],"title":"Image Size","default":"1K"},"thinking_level":{"anyOf":[{"type":"string","enum":["MINIMAL","LOW","HIGH"]},{"type":"null"}],"title":"Thinking Level"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["parts"],"title":"NanoBanana2WorkflowInputAPI","description":"API input for Nano Banana 2 workflow with interleaved text/image parts.\n\nSame as Nano_banana Pro with expanded aspect ratios and optional\nthinking config."},"NanoBanana2WorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"aspect_ratio":{"type":"string","title":"Aspect Ratio"},"image_size":{"type":"string","title":"Image Size"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["s3_key","aspect_ratio","image_size","width","height"],"title":"NanoBanana2WorkflowResult","description":"Result from Nano Banana 2 parts-based workflow."},"NanoBananaProPartsFailedWebhook":{"properties":{"event":{"type":"string","const":"nano_banana_pro_parts.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"NanoBananaProPartsFailedWebhook"},"NanoBananaProPartsSucceededWebhook":{"properties":{"event":{"type":"string","const":"nano_banana_pro_parts.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/NanoBananaProPartsWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"NanoBananaProPartsSucceededWebhook"},"NanoBananaProPartsWorkflowInputAPI":{"properties":{"parts":{"items":{"anyOf":[{"$ref":"#/components/schemas/TextPart"},{"$ref":"#/components/schemas/ImagePart"}]},"type":"array","title":"Parts"},"system_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Instruction"},"aspect_ratio":{"type":"string","enum":["1:1","9:16","16:9","4:3","3:4","21:9","3:2","2:3","5:4","4:5"],"title":"Aspect Ratio","default":"1:1"},"image_size":{"type":"string","enum":["1K","2K","4K"],"title":"Image Size","default":"2K"},"fallback_on_third_party_content":{"anyOf":[{"type":"string","const":"gpt_image_2_5"},{"type":"null"}],"title":"Fallback On Third Party Content","description":"Retry once on this model, with the same parts and system instruction, when Nano Banana Pro blocks the image as third-party content (Gemini's IMAGE_RECITATION). Safety and person-generation blocks still fail. Omitted: no fallback. The result's `image_model` names the model that drew the image."},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["parts"],"title":"NanoBananaProPartsWorkflowInputAPI","description":"API input for Nano_banana Pro workflow with interleaved text/image parts.\n\nThis allows for inline image references within the prompt, e.g.:\nparts: [\n    {\"type\": \"image\", \"url\": \"https://example.com/product.jpg\"},\n    {\"type\": \"text\", \"content\": \"Use this product image with the following style...\"},\n    {\"type\": \"image\", \"s3_key\": \"uploads/style.png\"},\n    {\"type\": \"text\", \"content\": \"And include this logo:\"},\n    {\"type\": \"image\", \"url\": \"https://example.com/logo.png\"}\n]"},"NanoBananaProPartsWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"aspect_ratio":{"type":"string","title":"Aspect Ratio"},"image_size":{"type":"string","title":"Image Size"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"image_model":{"type":"string","enum":["nano_banana_pro","gpt_image_2_5"],"title":"Image Model","default":"nano_banana_pro"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["s3_key","aspect_ratio","image_size","width","height"],"title":"NanoBananaProPartsWorkflowResult","description":"Result from Nano_banana Pro parts-based workflow."},"NanoBananaProResizeFailedWebhook":{"properties":{"event":{"type":"string","const":"nano_banana_pro_resize.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"NanoBananaProResizeFailedWebhook"},"NanoBananaProResizeSucceededWebhook":{"properties":{"event":{"type":"string","const":"nano_banana_pro_resize.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/NanoBananaProResizeWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"NanoBananaProResizeSucceededWebhook"},"NanoBananaProResizeWorkflowInputAPI":{"properties":{"image_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Image Url"},"image_s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image S3 Key"},"target_aspect":{"prefixItems":[{"type":"integer"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2,"title":"Target Aspect"},"image_size":{"type":"string","enum":["1K","2K","4K"],"title":"Image Size","default":"2K"},"extra_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extra Prompt"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["target_aspect"],"title":"NanoBananaProResizeWorkflowInputAPI","description":"API input for Nano_banana Pro aspect-ratio resize.\n\nProvide one input image (via `image_url` or `image_s3_key`) and a target\naspect ratio as `[width, height]`. The model preserves the subject's\nproportions and outpaints the scene to fill the new aspect ratio.\n\nThe output's aspect ratio matches the target within ~1%; pixel\ndimensions are chosen by the model and cannot be controlled exactly.\nSupported aspect range: between 1:3 and 3:1."},"NanoBananaProResizeWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"target_aspect":{"prefixItems":[{"type":"integer"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2,"title":"Target Aspect"},"image_size":{"type":"string","title":"Image Size"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["s3_key","target_aspect","image_size","width","height"],"title":"NanoBananaProResizeWorkflowResult","description":"Result from Nano_banana Pro aspect-ratio resize workflow."},"NormalizeVideoFailedWebhook":{"properties":{"event":{"type":"string","const":"normalize_video.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"NormalizeVideoFailedWebhook"},"NormalizeVideoSucceededWebhook":{"properties":{"event":{"type":"string","const":"normalize_video.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/NormalizeVideoWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"NormalizeVideoSucceededWebhook"},"NormalizeVideoWorkflowInputAPI":{"properties":{"asset_id":{"type":"string","minLength":1,"title":"Asset Id"},"source_key":{"type":"string","title":"Source Key"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["asset_id","source_key"],"title":"NormalizeVideoWorkflowInputAPI"},"NormalizeVideoWorkflowResult":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"source_key":{"type":"string","title":"Source Key"},"master":{"$ref":"#/components/schemas/VideoRendition"},"proxy":{"$ref":"#/components/schemas/VideoRendition"},"poster":{"$ref":"#/components/schemas/VideoRendition"},"duration_ms":{"type":"integer","title":"Duration Ms"},"fps":{"$ref":"#/components/schemas/VideoFps"},"frame_count":{"type":"integer","title":"Frame Count"},"has_audio":{"type":"boolean","title":"Has Audio"},"source_was_vfr":{"type":"boolean","title":"Source Was Vfr"},"proxy_skipped":{"type":"boolean","title":"Proxy Skipped"}},"type":"object","required":["asset_id","source_key","master","proxy","poster","duration_ms","fps","frame_count","has_audio","source_was_vfr","proxy_skipped"],"title":"NormalizeVideoWorkflowResult","description":"Result from the video normalization workflow."},"OperationDefinition":{"properties":{"name":{"type":"string","title":"Name","description":"Unique identifier for this operation"},"type":{"type":"string","enum":["generate_image","gpt_image_2_5","nano_banana_2","seedream","generate_video_kling","generate_video_kling_turbo","generate_video_kling_v3","generate_video_flux_3","generate_video_minimax_h3","generate_video_grok_v15","generate_video_seed_dance_2_5","generate_video_gemini_omni_flash","place_on_canvas","remove_background","optimise_image","output"],"title":"Type","description":"Operation type"},"params":{"additionalProperties":true,"type":"object","title":"Params","description":"Operation-specific parameters (see operation type docs)"},"input_mappings":{"items":{"$ref":"#/components/schemas/InputMapping"},"type":"array","title":"Input Mappings","description":"Map outputs from previous operations to this operation's params"}},"type":"object","required":["name","type"],"title":"OperationDefinition","description":"Single operation in a compose workflow.\n\n## Operation Types\n\n### generate_image\nGenerates images using AI. Output fields: `s3_key`, `url`, `width`, `height`, `mime_type`, `thumbnail_url`\n\n### gpt_image_2_5\nGenerates or edits images using GPT Image (optional `mask` for precision edits). Output fields: `s3_key`, `url`, `width`, `height`, `mime_type`, `thumbnail_url`\n\n### nano_banana_2\nGenerates or edits images using Nano Banana 2 with a parts-based prompt. Output fields: `s3_key`, `url`, `width`, `height`, `mime_type`, `thumbnail_url`\n\n### seedream\nGenerates or edits images using Seedream 5.0 pro via BytePlus. `image_keys` picks the mode:\nnone is text-to-image, one is an edit, 2-10 compose. Output fields: `s3_key`, `url`, `width`,\n`height`, `mime_type`, `size_bytes`, `thumbnail_url`\n\n### generate_video_kling\nGenerates videos from images using Kling. Output fields: `s3_key`, `url`, `type`, `size_bytes`, `thumbnail_url`\n\n### generate_video_kling_turbo\nGenerates videos using Kling 2.5 Turbo. Supports tail_image_url for end-frame. Output fields: `s3_key`, `url`, `type`, `size_bytes`, `thumbnail_url`\n\n### generate_video_kling_v3\nGenerates videos using Kling v3 (`standard`/`pro`/`4k` tiers, 3-15s). Supports text-to-video, image-to-video\n(with an optional end frame) and multi-shot storyboards via `multi_prompt`.\nOutput fields: `s3_key`, `url`, `type`, `size_bytes`, `mime_type`, `prompt`, `tier`, `duration`, `thumbnail_url`\n\n### generate_video_flux_3\nGenerates videos using FLUX 3 (`720p`/`1080p`, 5-20s, native audio). Supports text-to-video,\nimage-to-video and first-last-frame-to-video (start frame plus end frame).\nOutput fields: `s3_key`, `url`, `type`, `size_bytes`, `mime_type`, `prompt`, `resolution`, `duration`, `thumbnail_url`\n\n### generate_video_minimax_h3\nGenerates videos using MiniMax H3 Max (Hailuo 3.0, 5-15s, 480P/768P). Supports text-to-video,\nfirst-frame i2v (with an optional end frame) and reference-to-video (images, videos, audio).\nOutput fields: `s3_key`, `url`, `type`, `size_bytes`, `mime_type`, `prompt`, `resolution`, `duration`, `thumbnail_url`\n\n### generate_video_grok_v15\nGenerates videos using Grok Imagine v1.5 (image-to-video only; requires `starting_image_key`; no aspect_ratio). Output fields: `s3_key`, `url`, `type`, `size_bytes`, `resolution`, `duration`, `thumbnail_url`\n\n### generate_video_seed_dance_2_5\nGenerates videos using Seedance 2.5 via BytePlus (4-30s or \"auto\", 480p/720p/1080p). Supports text-to-video,\nfirst-frame i2v (with an optional end frame) and reference-to-video (images, videos, audio).\nOutput fields: `s3_key`, `url`, `type`, `size_bytes`, `mime_type`, `prompt`, `resolution`, `duration`, `thumbnail_url`\n\n### generate_video_gemini_omni_flash\nGenerates videos using Gemini Omni Flash. Uses a parts-based prompt (text + image entries with\nrole `first_frame`, `last_frame` or `reference_image`, up to 6 references; video entries with role\n`reference_video`, up to 3). Supports text-, image- (first frame, optional last frame) and\nreference-to-video, and editing a source video.\nOptional `duration` (3-15 seconds; model decides when omitted) and `resolution`\n(`360p`/`720p`/`1080p`/`4k`; 720p when omitted).\n`task`: `generate`, `edit`, `extend` (continue the source clip by `duration` 3-10 s) or\n`upscale` (raise the source clip to `resolution`). `previous_interaction_id` (an earlier\nresult's `interaction_id`) with a text part only makes a follow-up edit of that result.\nOutput fields: `s3_key`, `url`, `type`, `size_bytes`, `aspect_ratio`, `duration`, `resolution`,\n`source_seconds`, `continuation_seconds`, `interaction_id`, `prompt`, `thumbnail_url`\n\n### remove_background\nRemoves the background from an image (`image_url` or `image_key`), cropped to the kept subject.\nOptional `prompt` changes what is kept, e.g. \"only the bottle\".\nOptional `canvas` (`width`, `height` 64-4096 px, `padding_px` from the subject's box to every\nedge, leaving at least 16 px of box, `background_color` \"#RRGGBB\") places the cut-out centred\ninside the padding on an opaque canvas of that size, scaled up (at most 4x) or down to fit.\nOutput fields: `s3_key`, `url`, `width`, `height`, `mime_type`, `thumbnail_url`\n\n### place_on_canvas\nPlaces the subject of an image (`image_url` or `image_key`) centred inside `padding_px` on an\nopaque `canvas` (`width`, `height` 64-4096 px, `padding_px` leaving at least 16 px of box,\n`background_color` \"#RRGGBB\"), scaled up (at most 4x) or down to fit.\n`remove_background`: `auto` (default) removes it only when the image has neither transparency\nnor a flat border matching `background_color`; `always`; `off`. The subject is the opaque\npixels of a transparent image, what differs from a flat border, or else the whole frame.\nOutput fields: `s3_key`, `url`, `width`, `height`, `mime_type`, `thumbnail_url`\n\n### optimise_image\nRe-encodes an image (`image_key`) as `format` (`jpeg`, `webp`, `avif` or `png`) under\n`max_bytes`: quality drops first, then the pixels shrink. The stored file never exceeds the\ncap; an image that cannot fit fails with `invalid_input`. JPEG flattens transparency on white.\nOutput fields: `s3_key`, `url`, `width`, `height`, `mime_type`, `size_bytes`, `quality`,\n`scale`, `thumbnail_url`\n\n### output\nDefines final webhook payload. Must be the last operation.","example":{"input_mappings":[{"from_field":"s3_key","from_operation":"image_gen","to_field":"image_key"}],"name":"create_video","params":{"duration":6,"prompt":"Camera pans across the scene"},"type":"generate_video_seed_dance_2_5"}},"OrganicBaselineRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"window_days":{"type":"integer","title":"Window Days"},"metric":{"type":"string","title":"Metric"},"p25":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P25"},"median":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median"},"p75":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P75"},"current":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current"},"sample_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Size"}},"type":"object","required":["brand_id","platform","account_id","window_days","metric"],"title":"OrganicBaselineRow","description":"Percentile band + current value for one organic metric.\n\n``metric`` is one of the window-grain metrics (``engagementRate``,\n``reach``, ``views``: band over rolling ``window_days``-day windows,\ncurrent = the latest window) or the post-grain metrics\n(``postEngagementRate``, ``reachPerFollower``, ``viewsPerPost``,\n``savesPer1kReach``: band across individual posts, current = pooled\nover posts published in the last ``window_days`` days). Values are\ndisplay-scale: rates are percents, ``savesPer1kReach`` is per 1,000\nreach. Metrics with fewer than 5 samples have no row; ``current`` is\nNone when the band exists but the latest period has no data."},"OrganicBaselinesPageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/OrganicBaselineRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"OrganicBaselinesPageResponse"},"PaidTimeseriesPackedPageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/PaidTimeseriesPackedRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"PaidTimeseriesPackedPageResponse"},"PaidTimeseriesPackedRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"entity_type":{"type":"string","enum":["campaign","ad_group","ad"],"title":"Entity Type"},"entity_id":{"type":"string","title":"Entity Id"},"start_day":{"type":"string","format":"date","title":"Start Day"},"end_day":{"type":"string","format":"date","title":"End Day"},"spend":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Spend"},"impressions":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Impressions"},"reach":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Reach"},"clicks":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Clicks"},"purchases":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Purchases"},"leads":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Leads"}},"type":"object","required":["brand_id","platform","account_id","entity_type","entity_id","start_day","end_day"],"title":"PaidTimeseriesPackedRow","description":"Daily paid delivery of one campaign, ad group or ad, packed.\n\n``values[i]`` is the value on ``start_day + i``; values are per day, not\ncumulative, and a null is a day the entity has no row (nothing ran). Ad\ngroups carry no reach, since ad reach does not sum."},"PaletteColor":{"properties":{"name":{"type":"string","title":"Name"},"hex":{"type":"string","title":"Hex"},"role":{"anyOf":[{"type":"string","enum":["primary","secondary","accent","background","text"]},{"type":"null"}],"title":"Role"},"usage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usage"}},"type":"object","required":["name","hex"],"title":"PaletteColor"},"PalettePatch":{"properties":{"kind":{"type":"string","const":"palette","title":"Kind"},"colors":{"items":{"$ref":"#/components/schemas/PaletteColor"},"type":"array","title":"Colors"}},"type":"object","required":["kind","colors"],"title":"PalettePatch"},"PostTimeseriesPackedPageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/PostTimeseriesPackedRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"PostTimeseriesPackedPageResponse"},"PostTimeseriesPackedRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"channel":{"type":"string","title":"Channel"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"post_id":{"type":"string","title":"Post Id"},"post_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Type"},"start_day":{"type":"string","format":"date","title":"Start Day"},"end_day":{"type":"string","format":"date","title":"End Day"},"likes":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Likes"},"comments":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Comments"},"shares":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Shares"},"saves":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Saves"},"follows":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Follows"},"replies":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Replies"},"reach":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Reach"},"views":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Views"},"profile_visits":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Profile Visits"},"total_interactions":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Total Interactions"},"reels_total_watch_time":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Reels Total Watch Time"},"reels_avg_watch_time":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Reels Avg Watch Time"},"completion_rate":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Completion Rate"},"skip_rate":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Skip Rate"},"engagement_rate":{"anyOf":[{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},{"type":"null"}],"title":"Engagement Rate"}},"type":"object","required":["brand_id","channel","platform","account_id","post_id","start_day","end_day"],"title":"PostTimeseriesPackedRow"},"PsdImportFont":{"properties":{"post_script_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Script Name"},"family":{"type":"string","title":"Family"},"weight":{"type":"integer","title":"Weight"},"style":{"type":"string","enum":["normal","italic","oblique"],"title":"Style"},"url":{"type":"string","title":"Url"}},"type":"object","required":["family","weight","style","url"],"title":"PsdImportFont","description":"A brand font face a PSD's fonts are matched against: by PostScript name\nfirst, then by family, weight and style. ``url`` is the face file's full\nmedia URL."},"PublicationPerformancePageResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/PublicationPerformanceRow"},"type":"array","title":"Rows"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["rows"],"title":"PublicationPerformancePageResponse"},"PublicationPerformanceRow":{"properties":{"brand_id":{"type":"string","title":"Brand Id"},"native_id":{"type":"string","title":"Native Id"},"platform":{"type":"string","title":"Platform"},"account_id":{"type":"string","title":"Account Id"},"window_days":{"type":"integer","title":"Window Days"},"reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reach"},"impressions":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Impressions"},"engagement_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Engagement Rate"},"organic_reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Reach"},"organic_engagement_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Engagement Rate"},"organic_views":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Views"},"paid_reach":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Reach"},"paid_impressions":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Impressions"},"paid_engagement_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Engagement Rate"},"spend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend"},"purchase_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Purchase Value"},"roas":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Roas"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"er_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Er Score"},"reach_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reach Score"},"performance_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Performance Score"},"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank"},"organic_er_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Er Score"},"organic_reach_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Reach Score"},"organic_performance_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Organic Performance Score"},"organic_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organic Rank"},"paid_er_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Er Score"},"paid_reach_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Reach Score"},"paid_performance_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Paid Performance Score"},"paid_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paid Rank"}},"type":"object","required":["brand_id","native_id","platform","account_id","window_days"],"title":"PublicationPerformanceRow"},"QuiverWorkflowInputAPI":{"properties":{"prompt":{"type":"string","title":"Prompt"},"model":{"type":"string","title":"Model","default":"arrow-2"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presence Penalty"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"reference_image_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reference Image Keys"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["prompt"],"title":"QuiverWorkflowInputAPI","description":"API input for Quiver text-to-SVG workflow.\n\nQuiver is a synchronous text-to-SVG endpoint. Only ``model`` has a hard\ndefault; all other tuning fields are optional and pass through to Quiver\nwhen set, letting the provider apply its own defaults."},"QuiverWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"mime_type":{"type":"string","title":"Mime Type","default":"image/svg+xml"},"credits":{"type":"integer","title":"Credits","default":0},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","size_mb"],"title":"QuiverWorkflowResult"},"ReferencePatch":{"properties":{"kind":{"type":"string","const":"reference","title":"Kind"},"image":{"$ref":"#/components/schemas/SavedImage"}},"type":"object","required":["kind","image"],"title":"ReferencePatch"},"RemoveBackgroundFailedWebhook":{"properties":{"event":{"type":"string","const":"remove_background.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"RemoveBackgroundFailedWebhook"},"RemoveBackgroundSucceededWebhook":{"properties":{"event":{"type":"string","const":"remove_background.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/RemoveBackgroundWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"RemoveBackgroundSucceededWebhook"},"RemoveBackgroundWorkflowInputAPI":{"properties":{"image_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Image Url"},"image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Key"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Plain words for how to change the default cutout of the image's obvious subject, e.g. \"only the bottle\" or \"the person and the chair\". Omit for the plain cutout."},"autocrop":{"type":"boolean","title":"Autocrop","description":"True crops the cutout to its subject. False keeps the source's size, with the subject where it was, and also returns `subject`: the same cutout cropped to its subject, with its box in the full-size image.","default":true},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","title":"RemoveBackgroundWorkflowInputAPI","description":"API input for background removal workflow.\n\nProvide either ``image_url`` (a public URL) or ``image_key`` (an S3 key\nthat will be presigned at runtime). Exactly one is required."},"RemoveBackgroundWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"mime_type":{"type":"string","title":"Mime Type"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"subject":{"anyOf":[{"$ref":"#/components/schemas/CutoutSubject"},{"type":"null"}],"description":"Only with `autocrop` false: the same cut-out cropped to its subject, and where that crop sits in the full-size image. Absent when nothing was kept or the subject fills the image."}},"type":"object","required":["s3_key","url","mime_type","width","height","size_bytes"],"title":"RemoveBackgroundWorkflowResult","description":"Result from background removal workflow."},"RenderImageFailedWebhook":{"properties":{"event":{"type":"string","const":"render_image.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"RenderImageFailedWebhook"},"RenderImageSucceededWebhook":{"properties":{"event":{"type":"string","const":"render_image.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/RenderImageWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"RenderImageSucceededWebhook"},"RenderImageWorkflowInputAPI":{"properties":{"document":{"additionalProperties":true,"type":"object","title":"Document"},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"},"output":{"anyOf":[{"$ref":"#/components/schemas/RenderOutputSpec"},{"type":"null"}]},"upscale_sources":{"type":"boolean","title":"Upscale Sources","default":false}},"type":"object","required":["document"],"title":"RenderImageWorkflowInputAPI","description":"API input for design-to-media rendering workflow.\n\nRenders a media-composer composition document to a still image or an\nencoded video. ``output`` states which; when it is omitted, documents with\nonly image layers produce a PNG and documents containing video/audio\nlayers produce an mp4. ``upscale_sources`` runs image sources that the\noutput would stretch (a 1600 px photo in a frame captured at 4000 px)\nthrough a faithful super-resolution model before rendering; the resolved\ncomposition reports the replacement sources."},"RenderImageWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"resolved_composition":{"additionalProperties":true,"type":"object","title":"Resolved Composition"},"media_type":{"type":"string","enum":["image","video"],"title":"Media Type","default":"image"},"mime_type":{"type":"string","title":"Mime Type","default":"image/png"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","width","height","resolved_composition","size_mb"],"title":"RenderImageWorkflowResult"},"RenderOutputSpec":{"properties":{"type":{"type":"string","enum":["image","video"],"title":"Type"},"format":{"anyOf":[{"type":"string","enum":["png","jpeg","webp","mp4","webm","mov","gif"]},{"type":"null"}],"title":"Format"},"scale":{"anyOf":[{"type":"number","maximum":4.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Scale"},"min_edge":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Min Edge"},"transparent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Transparent"}},"type":"object","required":["type"],"title":"RenderOutputSpec","description":"What a render should produce.\n\n``type`` decides between a still and an encoded video; ``format`` must\nbelong to that type (``png``/``jpeg``/``webp`` for images,\n``mp4``/``webm``/``mov``/``gif`` for video) and defaults to ``png`` or\n``mp4``. ``scale`` is the capture device scale: video defaults to 1 so the\nencoded frame equals the composition's pixel size; images keep the\nrenderer's default. ``min_edge`` (images only) is a floor on the output's\nshort edge in pixels: a composition too small to reach it captures at a\nraised scale, so a layout authored in a few CSS pixels still exports at a\nusable size. ``transparent`` renders the composition's background away and\nkeeps an alpha channel; the renderer rejects it for ``mp4``, which has none."},"RenderPagesFailedWebhook":{"properties":{"event":{"type":"string","const":"render_pages.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"RenderPagesFailedWebhook"},"RenderPagesSucceededWebhook":{"properties":{"event":{"type":"string","const":"render_pages.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/RenderPagesWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"RenderPagesSucceededWebhook"},"RenderPagesWorkflowInputAPI":{"properties":{"documents":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":10,"minItems":2,"title":"Documents"},"output_path":{"type":"string","title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["documents","output_path"],"title":"RenderPagesWorkflowInputAPI","description":"API input for the multi-page (carousel) rendering workflow.\n\nRenders each media-composer document in ``documents`` to a PNG still, in\norder, then zips the PNGs (``page-01.png``, ``page-02.png``, ...) into one\narchive under ``output_path``."},"RenderPagesWorkflowResult":{"properties":{"pages":{"items":{"$ref":"#/components/schemas/RenderedPage"},"type":"array","title":"Pages"},"archive_s3_key":{"type":"string","title":"Archive S3 Key"},"archive_url":{"type":"string","title":"Archive Url"}},"type":"object","required":["pages","archive_s3_key","archive_url"],"title":"RenderPagesWorkflowResult","description":"Result from the multi-page rendering workflow.\n\n``pages`` follow the order of the submitted documents; the archive is a zip\nof their PNGs named ``page-01.png``, ``page-02.png`` and so on."},"RenderedPage":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"}},"type":"object","required":["s3_key","url","thumbnail_url","width","height"],"title":"RenderedPage","description":"One rendered page of a multi-page composition, in document order."},"SavedImage":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"name":{"type":"string","title":"Name"}},"type":"object","required":["s3_key","width","height","name"],"title":"SavedImage"},"SeedDance25VideoFailedWebhook":{"properties":{"event":{"type":"string","const":"seed_dance_2_5_video.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"SeedDance25VideoFailedWebhook"},"SeedDance25VideoSucceededWebhook":{"properties":{"event":{"type":"string","const":"seed_dance_2_5_video.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/SeedDance25WorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"SeedDance25VideoSucceededWebhook"},"SeedDance25WorkflowInputAPI":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Video description"},"image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Key","description":"S3 key for the first frame (image-to-video)"},"end_image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Key","description":"S3 key for the last frame; requires image_key"},"input_video_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Video Key","description":"S3 key of the clip to edit (video editing). Cited as @Video1. The output runs as long as the clip and keeps its aspect ratio, so 'duration' and 'aspect_ratio' cannot be set; the clip must be 4-30s. Cannot be combined with image_key or reference_video_keys"},"reference_image_keys":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":30},{"type":"null"}],"title":"Reference Image Keys","description":"Reference images, cited in the prompt as @Image1, @Image2, ... JPG/PNG/WebP/BMP/TIFF/GIF/HEIC/HEIF, <= 30MB each"},"reference_video_keys":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Reference Video Keys","description":"Reference videos, cited as @Video1, @Video2, ... Each clip must be 2-30s; combined length <= 30s. MP4/MOV, <= 200MB each, 480p or 720p, 300-6000px per side, aspect ratio 0.4-2.5, 24-60 fps"},"reference_audio_keys":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Reference Audio Keys","description":"Reference audio, cited as @Audio1, @Audio2, ... Each clip must be 2-30s; combined length <= 30s. MP3/WAV, <= 15MB each. Audio cannot be the only reference type"},"duration":{"type":"string","enum":["auto","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],"title":"Duration","description":"Clip length in seconds (\"4\"-\"30\"), or \"auto\" to let the model pick from the prompt","default":"auto"},"resolution":{"type":"string","enum":["480p","720p","1080p"],"title":"Resolution","description":"480p for faster generation, 720p for balance, 1080p for high quality (~2.4x the cost of 720p)","default":"720p"},"aspect_ratio":{"anyOf":[{"type":"string","enum":["auto","21:9","16:9","4:3","1:1","3:4","9:16"]},{"type":"null"}],"title":"Aspect Ratio","description":"Defaults to 'auto', which infers the aspect ratio from the input image (or the prompt in text-to-video). Ignored when 'image_key' is set: keyframe tasks always inherit the first frame's aspect ratio. At most 50 reference files in total."},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Generate synchronized audio (sound effects, ambience, lip-synced speech). Pricing is the same either way","default":true},"output_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Path"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"}},"type":"object","required":["prompt"],"title":"SeedDance25WorkflowInputAPI","description":"API input for the Seedance 2.5 video workflow via BytePlus ModelArk.\n\nOne endpoint, three modes, picked from the inputs:\n\n- **Text-to-video** — ``prompt`` only\n- **Image-to-video** — ``prompt`` + ``image_key`` (first frame), plus an\n  optional ``end_image_key`` to generate between a first and last keyframe.\n- **Reference-to-video** — ``prompt`` + any ``reference_*_keys``. Cite the\n  assets in the prompt as ``@Image1``, ``@Video1``, ``@Audio1`` following\n  list order.\n- **Video editing** — ``prompt`` + ``input_video_key``: the prompt is an\n  instruction applied to the clip (``@Video1``), optionally alongside\n  ``reference_image_keys`` / ``reference_audio_keys``. The output inherits\n  the clip's length and aspect ratio, so ``duration`` and ``aspect_ratio``\n  are rejected for edits, and the clip must run 4-30s.\n\n``image_key`` and the ``reference_*`` / ``input_video_key`` keys are\nmutually exclusive (they map to different BytePlus task types), as are\n``input_video_key`` and ``reference_video_keys``. Seedance 2.5 tops out at\n1080p.\n\nAn explicit ``aspect_ratio`` is ignored when ``image_key`` is set: keyframe\ntasks always inherit the first frame's aspect ratio."},"SeedDance25WorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"url":{"type":"string","title":"Url"},"size_bytes":{"type":"integer","title":"Size Bytes"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Height"},"type":{"type":"string","const":"video","title":"Type","default":"video"},"prompt":{"type":"string","title":"Prompt"},"resolution":{"type":"string","title":"Resolution"},"duration":{"type":"string","title":"Duration"},"size_mb":{"type":"number","title":"Size Mb"}},"type":"object","required":["s3_key","url","size_bytes","prompt","resolution","duration","size_mb"],"title":"SeedDance25WorkflowResult"},"SpeechSource":{"properties":{"kind":{"type":"string","const":"speech","title":"Kind"},"text":{"type":"string","maxLength":600,"minLength":1,"title":"Text"},"voice":{"type":"string","title":"Voice","description":"A voice id from GET /audio/voices (any case); there is no default voice."},"language":{"anyOf":[{"type":"string","pattern":"^[a-z]{2}$"},{"type":"null"}],"title":"Language","description":"ISO 639-1, as en or ar."},"stability":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Stability","description":"Lower is more expressive, higher more even; omitted = the deployment's default."}},"additionalProperties":false,"type":"object","required":["kind","text","voice"],"title":"SpeechSource"},"SpeechVoiceItem":{"properties":{"id":{"type":"string","title":"Id","description":"The value for `source.voice`."},"hint":{"type":"string","title":"Hint","description":"A word on how the voice sounds."}},"type":"object","required":["id","hint"],"title":"SpeechVoiceItem"},"SpeechVoicesResponse":{"properties":{"provider":{"type":"string","enum":["none","fal","google"],"title":"Provider"},"voices":{"items":{"$ref":"#/components/schemas/SpeechVoiceItem"},"type":"array","title":"Voices"}},"type":"object","required":["provider","voices"],"title":"SpeechVoicesResponse"},"SyncSpend":{"properties":{"vendor_calls":{"additionalProperties":{"type":"integer"},"type":"object","title":"Vendor Calls"},"vendor_cost_usd":{"type":"number","title":"Vendor Cost Usd"},"model_cost_usd":{"type":"number","title":"Model Cost Usd","default":0.0}},"type":"object","required":["vendor_calls","vendor_cost_usd"],"title":"SyncSpend","description":"``ad_intelligence_sync.progress``: the vendor calls the run has made so far and\nwhat its comment model steps cost, sent as it goes so a run that dies part-way still\ncounts them toward its cycle. Each report carries the run's running totals, never\nless than an earlier one. ``vendor_cost_usd`` prices the vendor calls alone."},"TextPart":{"properties":{"type":{"type":"string","const":"text","title":"Type","default":"text"},"content":{"type":"string","title":"Content"}},"type":"object","required":["content"],"title":"TextPart","description":"A text content part."},"TextPatch":{"properties":{"kind":{"type":"string","const":"aesthetic","title":"Kind"},"text":{"type":"string","title":"Text"}},"type":"object","required":["kind","text"],"title":"TextPatch"},"TextToSvgFailedWebhook":{"properties":{"event":{"type":"string","const":"text_to_svg.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"TextToSvgFailedWebhook"},"TextToSvgSucceededWebhook":{"properties":{"event":{"type":"string","const":"text_to_svg.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/QuiverWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"TextToSvgSucceededWebhook"},"ToolTraceEntry":{"properties":{"step":{"type":"integer","title":"Step"},"tool":{"type":"string","title":"Tool"},"summary":{"type":"string","title":"Summary"},"ok":{"type":"boolean","title":"Ok"},"seconds":{"type":"number","title":"Seconds"}},"type":"object","required":["step","tool","summary","ok","seconds"],"title":"ToolTraceEntry","description":"One tool call as reported on the result, for debugging and analytics."},"TypographyPatch":{"properties":{"kind":{"type":"string","const":"typography","title":"Kind"},"fonts":{"items":{"$ref":"#/components/schemas/DesignSystemFont"},"type":"array","title":"Fonts"}},"type":"object","required":["kind","fonts"],"title":"TypographyPatch"},"UploadCompleteError":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"UploadCompleteError","description":"Error body for the documented non-2xx outcomes of /uploads/complete."},"UploadCompleteRequest":{"properties":{"token":{"type":"string","title":"Token"},"sync":{"type":"boolean","title":"Sync","default":false},"sync_timeout":{"type":"integer","minimum":1.0,"title":"Sync Timeout","default":60}},"type":"object","required":["token"],"title":"UploadCompleteRequest","description":"Request to complete a direct-to-R2 upload session.\n\nIdempotent: duplicate calls (e.g. a browser and a reconciliation sweeper\nracing) return the same workflow id."},"UploadPartTarget":{"properties":{"part_number":{"type":"integer","title":"Part Number"},"url":{"type":"string","title":"Url"},"content_length":{"type":"integer","title":"Content Length"}},"type":"object","required":["part_number","url","content_length"],"title":"UploadPartTarget","description":"One part of a multipart upload session."},"UploadSessionRequest":{"properties":{"path":{"type":"string","title":"Path"},"kind":{"type":"string","enum":["image","video","audio"],"title":"Kind"},"content_type":{"type":"string","title":"Content Type"},"content_length":{"type":"integer","exclusiveMinimum":0.0,"title":"Content Length"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id"},"max_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Size Bytes"},"normalize":{"type":"boolean","title":"Normalize","default":false}},"type":"object","required":["path","kind","content_type","content_length"],"title":"UploadSessionRequest","description":"Request to create a direct-to-R2 upload session."},"UploadSessionResponse":{"properties":{"upload_id":{"type":"string","title":"Upload Id"},"mode":{"type":"string","enum":["single","multipart"],"title":"Mode"},"staging_key":{"type":"string","title":"Staging Key"},"complete_token":{"type":"string","title":"Complete Token"},"expires_at":{"type":"integer","title":"Expires At"},"max_size_bytes":{"type":"integer","title":"Max Size Bytes"},"put_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Put Url"},"part_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Part Size"},"parts":{"anyOf":[{"items":{"$ref":"#/components/schemas/UploadPartTarget"},"type":"array"},{"type":"null"}],"title":"Parts"}},"type":"object","required":["upload_id","mode","staging_key","complete_token","expires_at","max_size_bytes"],"title":"UploadSessionResponse","description":"Response containing presigned upload URL(s) and a completion token.\n\nmode=\"single\": PUT the raw bytes to put_url.\nmode=\"multipart\": split the file into parts of part_size bytes (the last\npart is the remainder) and PUT each slice to its part URL — parts can be\nuploaded in parallel and retried individually."},"UploadSyncResponse":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"thumbnail_url":{"type":"string","title":"Thumbnail Url"}},"type":"object","required":["s3_key","thumbnail_url"],"title":"UploadSyncResponse","description":"Fast-path response for uploads with webhook_url in token.\n\nReturns immediately with a presigned URL to the raw file.\nProcessing (thumbnail, optimize) happens async via workflow + webhook."},"UploadTokenRequest":{"properties":{"op":{"type":"string","enum":["upload","download"],"title":"Op","default":"upload"},"path":{"type":"string","title":"Path"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id"},"normalize":{"type":"boolean","title":"Normalize","default":false},"image_reservation":{"anyOf":[{"$ref":"#/components/schemas/ImageUploadReservation"},{"type":"null"}]}},"type":"object","required":["path"],"title":"UploadTokenRequest","description":"Request to generate an upload token for a specific path."},"UploadTokenResponse":{"properties":{"token":{"type":"string","title":"Token"},"path":{"type":"string","title":"Path"},"expires_at":{"type":"integer","title":"Expires At"}},"type":"object","required":["token","path","expires_at"],"title":"UploadTokenResponse","description":"Response containing the upload token."},"UploadsFailedWebhook":{"properties":{"event":{"type":"string","const":"uploads.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"UploadsFailedWebhook"},"UploadsSucceededWebhook":{"properties":{"event":{"type":"string","const":"uploads.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/UploadsWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"UploadsSucceededWebhook"},"UploadsWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"hash":{"type":"string","title":"Hash"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"thumbnail_s3_key":{"type":"string","title":"Thumbnail S3 Key"},"thumbnail_url":{"type":"string","title":"Thumbnail Url"}},"type":"object","required":["s3_key","hash","width","height","thumbnail_s3_key","thumbnail_url"],"title":"UploadsWorkflowResult","description":"Result from uploads workflow."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VideoFps":{"properties":{"rational":{"type":"string","title":"Rational"},"decimal":{"type":"number","title":"Decimal"}},"type":"object","required":["rational","decimal"],"title":"VideoFps","description":"Exact frame rate — the anchor space for per-frame comments."},"VideoPart":{"properties":{"type":{"type":"string","const":"video","title":"Type","default":"video"},"url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Url"},"s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Key"},"role":{"anyOf":[{"type":"string","enum":["source_video","reference_video"]},{"type":"null"}],"title":"Role"}},"type":"object","title":"VideoPart","description":"A video content part - provide either url or s3_key.\n\nCurrently only used by Gemini Omni Flash. ``role`` omitted or\n``source_video`` is the clip an edit works on; ``reference_video`` is a\nreference clip for reference-to-video (its first 3 s are used)."},"VideoRendition":{"properties":{"key":{"type":"string","title":"Key"},"url":{"type":"string","title":"Url"},"bytes":{"type":"integer","title":"Bytes"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"}},"type":"object","required":["key","url","bytes","width","height"],"title":"VideoRendition","description":"One stored output of video normalization (master, proxy, or poster)."},"VideoUploadsFailedWebhook":{"properties":{"event":{"type":"string","const":"video_uploads.failed","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/WorkflowFailurePayload"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"VideoUploadsFailedWebhook"},"VideoUploadsSucceededWebhook":{"properties":{"event":{"type":"string","const":"video_uploads.succeeded","title":"Event"},"workflow_id":{"type":"string","title":"Workflow Id"},"timestamp":{"type":"string","title":"Timestamp"},"payload":{"$ref":"#/components/schemas/VideoUploadsWorkflowResult"}},"type":"object","required":["event","workflow_id","timestamp","payload"],"title":"VideoUploadsSucceededWebhook"},"VideoUploadsWorkflowResult":{"properties":{"s3_key":{"type":"string","title":"S3 Key"},"hash":{"type":"string","title":"Hash"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"duration_seconds":{"type":"number","title":"Duration Seconds"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"thumbnail_s3_key":{"type":"string","title":"Thumbnail S3 Key"},"thumbnail_url":{"type":"string","title":"Thumbnail Url"},"normalize_workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Normalize Workflow Id"}},"type":"object","required":["s3_key","hash","width","height","duration_seconds","thumbnail_s3_key","thumbnail_url"],"title":"VideoUploadsWorkflowResult","description":"Result from video uploads workflow."},"WorkflowFailurePayload":{"properties":{"error":{"type":"string","title":"Error"},"retry_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry Count"},"error_code":{"anyOf":[{"type":"string","enum":["content_policy","invalid_input","processing_error","internal_error"]},{"type":"null"}],"title":"Error Code"},"error_reason":{"anyOf":[{"type":"string","enum":["third_party_content","safety","person_generation","video_edit_intent","video_speech_edit"]},{"type":"null"}],"title":"Error Reason"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"}},"type":"object","required":["error"],"title":"WorkflowFailurePayload","description":"``*.failed`` payload built by ``send_workflow_webhook``.\n\n``error_code`` is the classified, closed-enum channel and is present\nwhenever the workflow classifies its failure; ``error_type`` carries the\nraw exception name and is present (possibly null) otherwise.\n``error_reason`` sub-classifies ``content_policy`` and ``invalid_input`` only."},"WorkflowStatusError":{"properties":{"message":{"type":"string","title":"Message"},"error_code":{"anyOf":[{"type":"string","enum":["content_policy","invalid_input","processing_error","internal_error"]},{"type":"null"}],"title":"Error Code"},"error_reason":{"anyOf":[{"type":"string","enum":["third_party_content","safety","person_generation","video_edit_intent","video_speech_edit"]},{"type":"null"}],"title":"Error Reason"}},"type":"object","required":["message","error_code","error_reason"],"title":"WorkflowStatusError","description":"Why a workflow ended without a result: the same message and codes a sync\nrequest's 500 carries."},"WorkflowStatusResponse":{"properties":{"workflow_id":{"type":"string","title":"Workflow Id"},"status":{"type":"string","title":"Status"},"result":{"anyOf":[{},{"type":"null"}],"title":"Result"},"error":{"anyOf":[{"$ref":"#/components/schemas/WorkflowStatusError"},{"type":"null"}]}},"type":"object","required":["workflow_id","status"],"title":"WorkflowStatusResponse","description":"`error` is set when `status` is failed, terminated, canceled or timed_out."},"WorkflowSubmissionResponse":{"properties":{"workflow_id":{"type":"string","title":"Workflow Id"},"status":{"type":"string","title":"Status","default":"submitted"}},"type":"object","required":["workflow_id"],"title":"WorkflowSubmissionResponse","description":"Response from workflow submission."}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}