{"openapi":"3.1.0","info":{"title":"Vdoup API","version":"v1","description":"Upload, ingest, automate and publish videos. Keys: `Authorization: Bearer vdk_live_…` (or `vdk_test_…`, which never publishes). Every POST accepts an `Idempotency-Key`. Errors are RFC 9457 problem+json with a stable `code`. Webhooks are signed: `Vdoup-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, t + \".\" + body)>`."},"servers":[{"url":"https://api.vdoup.com"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"vdk_live_… / vdk_test_…"}},"schemas":{"Problem":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer"},"code":{"type":"string"},"detail":{"type":"string"},"details":{"type":"array","items":{"type":"object"}},"request_id":{"type":"string"}}}}},"paths":{"/v1/me":{"get":{"summary":"The key, its workspace, mode and scopes","tags":["Account"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/brands":{"get":{"summary":"Brands in the workspace","tags":["Brands"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/connections":{"get":{"summary":"Connected platform accounts","tags":["Connections"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/connections/{id}/destinations":{"get":{"summary":"An account’s playlists, boards or pages (synced and entered by hand)","tags":["Connections"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/media":{"post":{"summary":"Declare an upload: returns a multipart plan (then sign parts, PUT them, complete)","tags":["Media"],"security":[{"apiKey":[]}],"x-vdoup-scope":"ingest","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"brand_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["video","image"]},"file_name":{"type":"string","minLength":1,"maxLength":255},"content_type":{"type":"string","maxLength":100},"size":{"type":"integer","minimum":1,"maximum":68719476736}},"required":["brand_id","kind","file_name","content_type","size"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/media/{id}/parts":{"post":{"summary":"Presigned PUT URLs for parts (each valid for its exact size, 1 hour)","tags":["Media"],"security":[{"apiKey":[]}],"x-vdoup-scope":"ingest","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"parts":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","minimum":1,"maximum":10000}}},"required":["parts"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/media/{id}/complete":{"post":{"summary":"Finish an upload: verified, fingerprinted, deduplicated per brand, then probed","tags":["Media"],"security":[{"apiKey":[]}],"x-vdoup-scope":"ingest","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/media/{id}":{"get":{"summary":"A media item","tags":["Media"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/videos":{"get":{"summary":"Videos of a brand, newest first","tags":["Videos"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"brand_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Create a video (universal metadata)","tags":["Videos"],"security":[{"apiKey":[]}],"x-vdoup-scope":"write","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"about":{"default":null,"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"seo_title":{"default":null,"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"seo_description":{"default":null,"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"seo_tags":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"hash_tags":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"brand_links":{"default":null,"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"sponsor_links":{"default":null,"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"suggested_links":{"default":null,"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"resource_links":{"default":null,"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"social_links":{"default":null,"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"time_stamps":{"default":null,"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"language":{"default":null,"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"brand_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"primary_media_id":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"thumbnail_media_id":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"external_ref":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"required":["title","brand_id"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/videos/{id}":{"get":{"summary":"A video","tags":["Videos"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"summary":"Update a video’s metadata","tags":["Videos"],"security":[{"apiKey":[]}],"x-vdoup-scope":"write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"about":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"seo_title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"seo_description":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"seo_tags":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"hash_tags":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"brand_links":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"sponsor_links":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"suggested_links":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"resource_links":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"social_links":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"time_stamps":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"language":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"primary_media_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"thumbnail_media_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/videos/{id}/copy":{"get":{"summary":"A video’s per-platform copy (only the fields set; the rest inherit) and field sources","tags":["Platform copy"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/videos/{id}/copy/{platform}":{"put":{"summary":"Set a video’s copy for one platform; a null field inherits again. `template` reorders or hides the text blocks for this platform (null: back to the profile’s or platform’s)","tags":["Platform copy"],"security":[{"apiKey":[]}],"x-vdoup-scope":"write","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"platform","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fields":{"default":{},"type":"object","propertyNames":{"type":"string","maxLength":60},"additionalProperties":{}},"template":{"anyOf":[{"type":"object","properties":{"blocks":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"source":{"type":"string","minLength":1,"maxLength":40},"label":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"priority":{"type":["number","null"]}},"required":["source"]}},"separator":{"type":"string","maxLength":10}},"required":["blocks"]},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/ingest":{"post":{"summary":"Send a video in (plan §13.6): creates the video and starts its run","tags":["Ingest"],"security":[{"apiKey":[]}],"x-vdoup-scope":"ingest","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"brand_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"media_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source_url":{"type":"string","maxLength":2048,"format":"uri"},"title":{"type":"string","minLength":1,"maxLength":200},"metadata":{"default":{},"type":"object","properties":{"about":{"type":"string","maxLength":5000},"seo_title":{"type":"string","maxLength":200},"seo_description":{"type":"string","maxLength":10000},"seo_tags":{"type":"string","maxLength":2000},"hash_tags":{"type":"string","maxLength":2000},"language":{"type":"string","maxLength":20}}},"platform_fields":{"default":{},"type":"object","propertyNames":{"type":"string","enum":["youtube","tiktok","instagram","facebook","linkedin","threads","x","pinterest","bluesky","sandbox"]},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"targets":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"connection_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"post_type":{"type":"string","maxLength":30},"visibility":{"default":"public","type":"string","enum":["public","unlisted","private","draft"]},"destination_id":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"destination_name":{"type":"string","minLength":1,"maxLength":150},"fields":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["connection_id"]}},"mode":{"default":"inbox","type":"string","enum":["inbox","auto"]},"workflow_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"schedule":{"default":null,"anyOf":[{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"timezone":{"default":"UTC","type":"string","minLength":1,"maxLength":64}},"required":["at"]},{"type":"null"}]},"external_ref":{"type":"string","minLength":1,"maxLength":200},"callback_url":{"type":"string","maxLength":2000,"format":"uri"}},"required":["brand_id","title"]}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/ingest/{id}":{"get":{"summary":"An ingest item: received, importing, ready (in the inbox), accepted or rejected, with the reason and the video and run it produced","tags":["Ingest"],"security":[{"apiKey":[]}],"x-vdoup-scope":"ingest","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/ingest/batch":{"post":{"summary":"Send up to 50 videos in one request; each result or error is returned in order","tags":["Ingest"],"security":[{"apiKey":[]}],"x-vdoup-scope":"ingest","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"minItems":1,"maxItems":50,"type":"array","items":{}}},"required":["items"]}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workflows":{"get":{"summary":"Workflows","tags":["Workflows"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workflows/{id}":{"get":{"summary":"A workflow with its trigger and steps","tags":["Workflows"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workflows/{id}/runs":{"post":{"summary":"Run a workflow (202 + run; poll it, use a webhook, or pass callback_url)","tags":["Workflows"],"security":[{"apiKey":[]}],"x-vdoup-scope":"workflows","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"video_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brand_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"external_ref":{"type":"string","minLength":1,"maxLength":200},"simulate":{"default":false,"type":"boolean"},"test_mode":{"type":"boolean"},"callback_url":{"type":"string","maxLength":2000,"format":"uri"}}}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/runs":{"get":{"summary":"Runs, newest first; search by external_ref, or a video's runs by video_id","tags":["Runs"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"workflow_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"external_ref","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"video_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/runs/{id}":{"get":{"summary":"A run with its steps","tags":["Runs"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/runs/{id}/cancel":{"post":{"summary":"Cancel a run","tags":["Runs"],"security":[{"apiKey":[]}],"x-vdoup-scope":"workflows","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/runs/{id}/retry":{"post":{"summary":"Retry a failed run from the step that stopped it","tags":["Runs"],"security":[{"apiKey":[]}],"x-vdoup-scope":"workflows","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/actions/{name}":{"post":{"summary":"Call one registry action (e.g. only AI metadata) as a one-step run","tags":["Actions"],"security":[{"apiKey":[]}],"x-vdoup-scope":"workflows","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"config":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"external_ref":{"type":"string","maxLength":200}}}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/publications":{"get":{"summary":"A video’s publications","tags":["Publications"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"video_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Queue a video to one account (test keys: simulated, never sent)","tags":["Publications"],"security":[{"apiKey":[]}],"x-vdoup-scope":"publish","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"video_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connection_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"post_type":{"type":"string","maxLength":30},"visibility":{"type":"string","enum":["public","unlisted","private","draft"]},"destination_id":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"destination_name":{"type":"string","minLength":1,"maxLength":150},"schedule":{"default":null,"anyOf":[{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"timezone":{"default":"UTC","type":"string","minLength":1,"maxLength":64}},"required":["at"]},{"type":"null"}]},"use_default_time":{"type":"boolean"},"fields":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"publish_again":{"default":false,"type":"boolean"},"engine":{"type":"string","enum":["api","browser"]}},"required":["video_id","connection_id"]}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/publications/{id}":{"get":{"summary":"A publication","tags":["Publications"],"security":[{"apiKey":[]}],"x-vdoup-scope":"read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/publications/{id}/cancel":{"post":{"summary":"Cancel a publication before the platform holds the file","tags":["Publications"],"security":[{"apiKey":[]}],"x-vdoup-scope":"publish","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/publications/{id}/retry":{"post":{"summary":"Retry a failed publication","tags":["Publications"],"security":[{"apiKey":[]}],"x-vdoup-scope":"publish","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks":{"get":{"summary":"Webhook endpoints","tags":["Webhooks"],"security":[{"apiKey":[]}],"x-vdoup-scope":"webhooks","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Register an endpoint; its signing secret is returned once","tags":["Webhooks"],"security":[{"apiKey":[]}],"x-vdoup-scope":"webhooks","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri"},"description":{"type":"string","maxLength":200},"events":{"minItems":1,"maxItems":23,"type":"array","items":{"type":"string","enum":["video.created","video.ready","video.deleted","media.ready","run.started","run.step.completed","run.waiting","run.succeeded","run.failed","run.needs_attention","publication.published","publication.failed","publication.scheduled","publication.needs_attention","publication.deferred","publication.missed","publication.cancelled","connection.connected","connection.removed","connection.needs_reauth","ingest.received","workflow.paused","workflow.event"]}},"brand_ids":{"default":null,"anyOf":[{"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"workflow_ids":{"default":null,"anyOf":[{"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]}},"required":["url","events"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks/{id}":{"patch":{"summary":"Change events, filters, URL or enable / disable","tags":["Webhooks"],"security":[{"apiKey":[]}],"x-vdoup-scope":"webhooks","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri"},"description":{"type":"string","maxLength":200},"events":{"minItems":1,"maxItems":23,"type":"array","items":{"type":"string","enum":["video.created","video.ready","video.deleted","media.ready","run.started","run.step.completed","run.waiting","run.succeeded","run.failed","run.needs_attention","publication.published","publication.failed","publication.scheduled","publication.needs_attention","publication.deferred","publication.missed","publication.cancelled","connection.connected","connection.removed","connection.needs_reauth","ingest.received","workflow.paused","workflow.event"]}},"brand_ids":{"anyOf":[{"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"workflow_ids":{"anyOf":[{"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]},"enabled":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"summary":"Remove an endpoint","tags":["Webhooks"],"security":[{"apiKey":[]}],"x-vdoup-scope":"webhooks","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks/{id}/rotate-secret":{"post":{"summary":"New signing secret (the old one also signs for 24 h)","tags":["Webhooks"],"security":[{"apiKey":[]}],"x-vdoup-scope":"webhooks","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks/{id}/test":{"post":{"summary":"Send a test event","tags":["Webhooks"],"security":[{"apiKey":[]}],"x-vdoup-scope":"webhooks","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks/{id}/deliveries":{"get":{"summary":"The 7-day delivery log","tags":["Webhooks"],"security":[{"apiKey":[]}],"x-vdoup-scope":"webhooks","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhook-deliveries/{id}/redeliver":{"post":{"summary":"Deliver again","tags":["Webhooks"],"security":[{"apiKey":[]}],"x-vdoup-scope":"webhooks","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":200}}],"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"default":{"description":"An RFC 9457 problem","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/hooks/{token}":{"post":{"summary":"Start a workflow from its trigger URL (signed with Vdoup-Signature unless the workflow allows unsigned)","tags":["Workflows"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}},{"name":"Vdoup-Signature","in":"header","required":false,"schema":{"type":"string","example":"t=1700000000,v1=<hex>"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"202":{"description":"Run started"}}}},"/v1/callbacks/{token}":{"post":{"summary":"Resume an http.request step that waits for a callback (the URL arrives as {{callback_url}} and the Vdoup-Callback-Url header; it works once)","tags":["Workflows"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{}}}},"responses":{"202":{"description":"The step continues with this body as its callback output"},"404":{"description":"Unknown, used or expired callback URL"}}}}}}