{"openapi":"3.1.0","info":{"title":"FlareClip Media API","version":"1.1.0-pilot","description":"Available to all registered users with a self-service API key. Per account: 60 requests/minute, 5000 requests/day, 50 new tasks/day; daily reset 00:00 Asia/Shanghai. Honor Retry-After on HTTP 429. Quote, explicit spending approval, idempotent submit, poll, download. Whole-job validated-deliverable settlement."},"servers":[{"url":"https://flareclip.com/api/v1/media"}],"security":[{"MediaApiKey":[]}],"components":{"securitySchemes":{"MediaApiKey":{"type":"http","scheme":"bearer","bearerFormat":"fc_media_…"}}},"paths":{"/quotes":{"post":{"operationId":"quoteMediaOperation","summary":"Get a bounded quote. Does not execute or charge.","security":[{"MediaApiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"operation":{"type":"string","const":"import"},"url":{"type":"string","maxLength":2000,"format":"uri"}},"required":["operation","url"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"import"},"file":{"type":"object","properties":{"file_name":{"type":"string","minLength":1,"maxLength":180,"pattern":"^[^/\\\\\\x00-\\x1f\\x7f]+\\.(mp4|mov|webm)$"},"content_type":{"type":"string","enum":["video/mp4","video/quicktime","video/webm"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":2147483648},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["file_name","content_type","bytes","sha256"],"additionalProperties":false}},"required":["operation","file"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"source_download"},"asset_id":{"type":"string","pattern":"^asset_[\\w-]{24}$"}},"required":["operation","asset_id"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"clips"},"asset_id":{"type":"string","pattern":"^asset_[\\w-]{24}$"},"aspect_ratio":{"default":"original","type":"string","enum":["original","9:16","1:1"]},"duration_tier":{"default":"30_60","type":"string","enum":["15_30","30_60","60_120"]}},"required":["operation","asset_id"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"transcribe"},"asset_id":{"type":"string","pattern":"^asset_[\\w-]{24}$"}},"required":["operation","asset_id"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"summarize"},"asset_id":{"type":"string","pattern":"^asset_[\\w-]{24}$"}},"required":["operation","asset_id"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"translate"},"asset_id":{"type":"string","pattern":"^asset_[\\w-]{24}$"},"target_language":{"type":"string","enum":["en","zh-Hans","zh-Hant","ja","ko","es","fr","de","pt"]}},"required":["operation","asset_id","target_language"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"operation":{"type":"string"},"request":{"anyOf":[{"type":"object","properties":{"operation":{"type":"string","const":"import"},"url":{"type":"string","maxLength":2000,"format":"uri"}},"required":["operation","url"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"import"},"file":{"type":"object","properties":{"file_name":{"type":"string","minLength":1,"maxLength":180,"pattern":"^[^/\\\\\\x00-\\x1f\\x7f]+\\.(mp4|mov|webm)$"},"content_type":{"type":"string","enum":["video/mp4","video/quicktime","video/webm"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":2147483648},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["file_name","content_type","bytes","sha256"],"additionalProperties":false}},"required":["operation","file"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"source_download"},"asset_id":{"type":"string","pattern":"^asset_[\\w-]{24}$"}},"required":["operation","asset_id"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"clips"},"asset_id":{"type":"string","pattern":"^asset_[\\w-]{24}$"},"aspect_ratio":{"default":"original","type":"string","enum":["original","9:16","1:1"]},"duration_tier":{"default":"30_60","type":"string","enum":["15_30","30_60","60_120"]}},"required":["operation","asset_id","aspect_ratio","duration_tier"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"transcribe"},"asset_id":{"type":"string","pattern":"^asset_[\\w-]{24}$"}},"required":["operation","asset_id"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"summarize"},"asset_id":{"type":"string","pattern":"^asset_[\\w-]{24}$"}},"required":["operation","asset_id"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"translate"},"asset_id":{"type":"string","pattern":"^asset_[\\w-]{24}$"},"target_language":{"type":"string","enum":["en","zh-Hans","zh-Hant","ja","ko","es","fr","de","pt"]}},"required":["operation","asset_id","target_language"],"additionalProperties":false}]},"max_credits":{"type":"integer","minimum":0,"maximum":9007199254740991},"price_version":{"type":"string"},"expires_at":{"type":"string"},"settlement":{"type":"string","const":"complete_deliverable_only"},"requires_explicit_cost_approval":{"type":"boolean","const":true}},"required":["id","operation","request","max_credits","price_version","expires_at","settlement","requires_explicit_cost_approval"],"additionalProperties":false}}}},"400":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/jobs":{"post":{"operationId":"submitMediaOperation","summary":"Submit only within explicit spending approval. Persist idempotency_key before sending.","security":[{"MediaApiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"quote_id":{"type":"string","pattern":"^quote_[\\w-]{24}$"},"max_credits":{"type":"integer","minimum":0,"maximum":100000},"idempotency_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,80}$"}},"required":["quote_id","max_credits","idempotency_key"],"additionalProperties":false}}}},"responses":{"202":{"description":"Job accepted or original job recovered. Inspect status before polling.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"operation":{"type":"string","enum":["import","source_download","clips","transcribe","summarize","translate"]},"status":{"type":"string","enum":["queued","running","reconciling","succeeded","failed","canceled"]},"phase":{"type":"string"},"billing":{"type":"object","properties":{"reserved_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"charged_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"released_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reserved_credits","charged_credits","released_credits"],"additionalProperties":false},"cancel_requested":{"type":"boolean"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"anyOf":[{"anyOf":[{"type":"object","properties":{"asset_id":{"type":"string"}},"required":["asset_id"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"source_download"},"asset_id":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["index","title","bytes"],"additionalProperties":false}}},"required":["kind","asset_id","files"],"additionalProperties":false},{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["index","title","bytes"],"additionalProperties":false}},"aspect_ratio":{"type":"string","enum":["original","9:16","1:1"]}},"required":["files","aspect_ratio"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"video-transcript"},"text":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number","minimum":0},"end":{"type":"number","exclusiveMinimum":0},"text":{"type":"string"}},"required":["start","end","text"],"additionalProperties":false}},"duration_seconds":{"type":"number"},"detected_language":{"type":"string"}},"required":["kind","text","segments","duration_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"video-summary"},"overview":{"type":"string"},"key_points":{"type":"array","items":{"type":"string"}},"chapters":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"title":{"type":"string"}},"required":["start","title"],"additionalProperties":false}},"input_kind":{"type":"string"}},"required":["kind","overview","key_points","chapters"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"subtitle-translation"},"language":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number","minimum":0},"end":{"type":"number","exclusiveMinimum":0},"text":{"type":"string"}},"required":["start","end","text"],"additionalProperties":false}},"duration_seconds":{"type":"number"}},"required":["kind","language","segments","duration_seconds"],"additionalProperties":false}]},{"type":"null"}]},"upload":{"type":"object","properties":{"status_url":{"type":"string"},"parts_url":{"type":"string"},"complete_url":{"type":"string"}},"required":["status_url","parts_url","complete_url"],"additionalProperties":false},"created_at":{"type":"string"},"deadline_at":{"type":"string"}},"required":["id","operation","status","phase","billing","cancel_requested","error_code","result","created_at","deadline_at"],"additionalProperties":false}}}},"400":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/jobs/{job_id}":{"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"operationId":"getMediaJob","summary":"Read status, settlement and validated results.","security":[{"MediaApiKey":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"operation":{"type":"string","enum":["import","source_download","clips","transcribe","summarize","translate"]},"status":{"type":"string","enum":["queued","running","reconciling","succeeded","failed","canceled"]},"phase":{"type":"string"},"billing":{"type":"object","properties":{"reserved_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"charged_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"released_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reserved_credits","charged_credits","released_credits"],"additionalProperties":false},"cancel_requested":{"type":"boolean"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"anyOf":[{"anyOf":[{"type":"object","properties":{"asset_id":{"type":"string"}},"required":["asset_id"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"source_download"},"asset_id":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["index","title","bytes"],"additionalProperties":false}}},"required":["kind","asset_id","files"],"additionalProperties":false},{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["index","title","bytes"],"additionalProperties":false}},"aspect_ratio":{"type":"string","enum":["original","9:16","1:1"]}},"required":["files","aspect_ratio"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"video-transcript"},"text":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number","minimum":0},"end":{"type":"number","exclusiveMinimum":0},"text":{"type":"string"}},"required":["start","end","text"],"additionalProperties":false}},"duration_seconds":{"type":"number"},"detected_language":{"type":"string"}},"required":["kind","text","segments","duration_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"video-summary"},"overview":{"type":"string"},"key_points":{"type":"array","items":{"type":"string"}},"chapters":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"title":{"type":"string"}},"required":["start","title"],"additionalProperties":false}},"input_kind":{"type":"string"}},"required":["kind","overview","key_points","chapters"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"subtitle-translation"},"language":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number","minimum":0},"end":{"type":"number","exclusiveMinimum":0},"text":{"type":"string"}},"required":["start","end","text"],"additionalProperties":false}},"duration_seconds":{"type":"number"}},"required":["kind","language","segments","duration_seconds"],"additionalProperties":false}]},{"type":"null"}]},"upload":{"type":"object","properties":{"status_url":{"type":"string"},"parts_url":{"type":"string"},"complete_url":{"type":"string"}},"required":["status_url","parts_url","complete_url"],"additionalProperties":false},"created_at":{"type":"string"},"deadline_at":{"type":"string"}},"required":["id","operation","status","phase","billing","cancel_requested","error_code","result","created_at","deadline_at"],"additionalProperties":false}}}},"400":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/jobs/{job_id}/cancel":{"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"post":{"operationId":"cancelMediaJob","summary":"Cancel an unfinished job; completion racing with cancellation is serialized.","security":[{"MediaApiKey":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"operation":{"type":"string","enum":["import","source_download","clips","transcribe","summarize","translate"]},"status":{"type":"string","enum":["queued","running","reconciling","succeeded","failed","canceled"]},"phase":{"type":"string"},"billing":{"type":"object","properties":{"reserved_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"charged_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"released_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reserved_credits","charged_credits","released_credits"],"additionalProperties":false},"cancel_requested":{"type":"boolean"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"anyOf":[{"anyOf":[{"type":"object","properties":{"asset_id":{"type":"string"}},"required":["asset_id"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"source_download"},"asset_id":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["index","title","bytes"],"additionalProperties":false}}},"required":["kind","asset_id","files"],"additionalProperties":false},{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["index","title","bytes"],"additionalProperties":false}},"aspect_ratio":{"type":"string","enum":["original","9:16","1:1"]}},"required":["files","aspect_ratio"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"video-transcript"},"text":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number","minimum":0},"end":{"type":"number","exclusiveMinimum":0},"text":{"type":"string"}},"required":["start","end","text"],"additionalProperties":false}},"duration_seconds":{"type":"number"},"detected_language":{"type":"string"}},"required":["kind","text","segments","duration_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"video-summary"},"overview":{"type":"string"},"key_points":{"type":"array","items":{"type":"string"}},"chapters":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"title":{"type":"string"}},"required":["start","title"],"additionalProperties":false}},"input_kind":{"type":"string"}},"required":["kind","overview","key_points","chapters"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"subtitle-translation"},"language":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number","minimum":0},"end":{"type":"number","exclusiveMinimum":0},"text":{"type":"string"}},"required":["start","end","text"],"additionalProperties":false}},"duration_seconds":{"type":"number"}},"required":["kind","language","segments","duration_seconds"],"additionalProperties":false}]},{"type":"null"}]},"upload":{"type":"object","properties":{"status_url":{"type":"string"},"parts_url":{"type":"string"},"complete_url":{"type":"string"}},"required":["status_url","parts_url","complete_url"],"additionalProperties":false},"created_at":{"type":"string"},"deadline_at":{"type":"string"}},"required":["id","operation","status","phase","billing","cancel_requested","error_code","result","created_at","deadline_at"],"additionalProperties":false}}}},"400":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/uploads":{"post":{"operationId":"startMediaUpload","summary":"Start or recover an included local-file import. Persist idempotency_key; max_credits: 0 is sufficient. Availability: direct_file_upload capability.","security":[{"MediaApiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"file":{"type":"object","properties":{"file_name":{"type":"string","minLength":1,"maxLength":180,"pattern":"^[^/\\\\\\x00-\\x1f\\x7f]+\\.(mp4|mov|webm)$"},"content_type":{"type":"string","enum":["video/mp4","video/quicktime","video/webm"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":2147483648},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["file_name","content_type","bytes","sha256"],"additionalProperties":false},"max_credits":{"type":"integer","minimum":0,"maximum":100000},"idempotency_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,80}$"}},"required":["file","max_credits","idempotency_key"],"additionalProperties":false}}}},"responses":{"202":{"description":"Job accepted or original job recovered. Inspect status before polling.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"operation":{"type":"string","enum":["import","source_download","clips","transcribe","summarize","translate"]},"status":{"type":"string","enum":["queued","running","reconciling","succeeded","failed","canceled"]},"phase":{"type":"string"},"billing":{"type":"object","properties":{"reserved_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"charged_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"released_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reserved_credits","charged_credits","released_credits"],"additionalProperties":false},"cancel_requested":{"type":"boolean"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"anyOf":[{"anyOf":[{"type":"object","properties":{"asset_id":{"type":"string"}},"required":["asset_id"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"source_download"},"asset_id":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["index","title","bytes"],"additionalProperties":false}}},"required":["kind","asset_id","files"],"additionalProperties":false},{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["index","title","bytes"],"additionalProperties":false}},"aspect_ratio":{"type":"string","enum":["original","9:16","1:1"]}},"required":["files","aspect_ratio"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"video-transcript"},"text":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number","minimum":0},"end":{"type":"number","exclusiveMinimum":0},"text":{"type":"string"}},"required":["start","end","text"],"additionalProperties":false}},"duration_seconds":{"type":"number"},"detected_language":{"type":"string"}},"required":["kind","text","segments","duration_seconds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"video-summary"},"overview":{"type":"string"},"key_points":{"type":"array","items":{"type":"string"}},"chapters":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number"},"title":{"type":"string"}},"required":["start","title"],"additionalProperties":false}},"input_kind":{"type":"string"}},"required":["kind","overview","key_points","chapters"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"subtitle-translation"},"language":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"start":{"type":"number","minimum":0},"end":{"type":"number","exclusiveMinimum":0},"text":{"type":"string"}},"required":["start","end","text"],"additionalProperties":false}},"duration_seconds":{"type":"number"}},"required":["kind","language","segments","duration_seconds"],"additionalProperties":false}]},{"type":"null"}]},"upload":{"type":"object","properties":{"status_url":{"type":"string"},"parts_url":{"type":"string"},"complete_url":{"type":"string"}},"required":["status_url","parts_url","complete_url"],"additionalProperties":false},"created_at":{"type":"string"},"deadline_at":{"type":"string"}},"required":["id","operation","status","phase","billing","cancel_requested","error_code","result","created_at","deadline_at"],"additionalProperties":false}}}},"400":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/uploads/{job_id}":{"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"operationId":"getMediaUpload","summary":"Read local upload status and completed parts for resumption. Never exposes S3 keys or upload identifiers.","security":[{"MediaApiKey":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"job_id":{"type":"string"},"status":{"type":"string","enum":["reserved","initializing","init_uncertain","uploading","completing","sealed","queued","succeeded","failed","canceled","expired"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":2147483648},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content_type":{"type":"string","enum":["video/mp4","video/quicktime","video/webm"]},"part_size":{"type":"number","const":8388608},"part_count":{"type":"integer","minimum":1,"maximum":256},"expires_at":{"type":"string"},"uploaded_parts":{"type":"array","items":{"type":"object","properties":{"part_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"size":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"etag":{"type":"string"}},"required":["part_number","size","etag"],"additionalProperties":false}},"asset_id":{"type":"string"},"error_code":{"type":"string"}},"required":["job_id","status","bytes","sha256","content_type","part_size","part_count","expires_at","uploaded_parts"],"additionalProperties":false}}}},"400":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/uploads/{job_id}/parts":{"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"post":{"operationId":"signMediaUploadParts","summary":"Sign up to 8 missing 8-MiB parts with base64 SHA-256 checksums; URLs are sensitive, valid for at most 60 seconds. A part can be signed at most 5 times.","security":[{"MediaApiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"parts":{"minItems":1,"maxItems":8,"type":"array","items":{"type":"object","properties":{"part_number":{"type":"integer","minimum":1,"maximum":256},"checksum_sha256":{"type":"string","pattern":"^[A-Za-z0-9+/]{43}=$"}},"required":["part_number","checksum_sha256"],"additionalProperties":false}}},"required":["parts"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"job_id":{"type":"string"},"parts":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"part_number":{"type":"integer","minimum":1,"maximum":256},"size":{"type":"integer","exclusiveMinimum":0,"maximum":8388608},"checksum_sha256":{"type":"string"},"url":{"type":"string","format":"uri"},"headers":{"type":"object","properties":{"content-length":{"type":"string"},"x-amz-checksum-sha256":{"type":"string"}},"required":["content-length","x-amz-checksum-sha256"],"additionalProperties":false},"expires_in_seconds":{"type":"integer","minimum":1,"maximum":60}},"required":["part_number","size","checksum_sha256","url","headers","expires_in_seconds"],"additionalProperties":false}}},"required":["job_id","parts"],"additionalProperties":false}}}},"400":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/uploads/{job_id}/complete":{"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"post":{"operationId":"completeMediaUpload","summary":"Seal and verify the same upload using server-listed parts. Send {} or no body, never a part list. Poll the same job until succeeded with asset_id; no paid analysis starts automatically.","security":[{"MediaApiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"job_id":{"type":"string"},"status":{"type":"string","enum":["reserved","initializing","init_uncertain","uploading","completing","sealed","queued","succeeded","failed","canceled","expired"]},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":2147483648},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"content_type":{"type":"string","enum":["video/mp4","video/quicktime","video/webm"]},"part_size":{"type":"number","const":8388608},"part_count":{"type":"integer","minimum":1,"maximum":256},"expires_at":{"type":"string"},"uploaded_parts":{"type":"array","items":{"type":"object","properties":{"part_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"size":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"etag":{"type":"string"}},"required":["part_number","size","etag"],"additionalProperties":false}},"asset_id":{"type":"string"},"error_code":{"type":"string"}},"required":["job_id","status","bytes","sha256","content_type","part_size","part_count","expires_at","uploaded_parts"],"additionalProperties":false}}}},"400":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/assets/{asset_id}":{"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"operationId":"getMediaAsset","summary":"Read source metadata and expiration.","security":[{"MediaApiKey":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"bytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"duration_seconds":{"type":"number","exclusiveMinimum":0},"expires_at":{"type":"string"}},"required":["id","title","bytes","duration_seconds","expires_at"],"additionalProperties":false}}}},"400":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/downloads/{delivery_id}":{"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"operationId":"streamMediaDownload","summary":"Authenticated byte stream. Send one Range header to resume.","responses":{"200":{"description":"File byte stream"},"206":{"description":"Requested byte range"},"429":{"description":"Transfer or budget limit"}}},"head":{"operationId":"headMediaDownload","summary":"Read byte size and ETag without transfer","responses":{"200":{"description":"File metadata"}}}},"/downloads":{"post":{"operationId":"getMediaDownload","summary":"Get an authenticated, resumable API download URL; repeated grants do not reset the byte allowance.","security":[{"MediaApiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["asset_id"],"properties":{"asset_id":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["job_id"],"properties":{"job_id":{"type":"string"},"index":{"type":"integer","minimum":0,"maximum":9,"default":0}},"additionalProperties":false}]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"expires_in":{"type":"number","const":300}},"required":["url","expires_in"],"additionalProperties":false}}}},"400":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"402":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"422":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"500":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Structured error; inspect error.code. No automatic replacement job.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"retry_after_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}}}}