{"openapi":"3.1.0","info":{"title":"Niravi API","description":"The Niravi Cloud API: search, recall, and analysis over your videos, images and documents. Every upload is read by Niravi's Video Transformation Model, engine id `arrow` in requests and responses.\n\nThis is the **public** surface (`/api/v1`). Authenticate with an API key, as `Authorization: Bearer nv_…` or `X-API-Key: nv_…`. In the Playground the request is already signed with your session; paste a key in the auth box to test as that key. First-party webapp and admin routes are intentionally excluded from this specification.\n\nChanges and deprecations: https://docs.niravi.io/changelog/","version":"1.5.0"},"tags":[{"name":"Search","description":"Semantic and typed search across your video corpus."},{"name":"Chat & Recall","description":"Conversational Q&A over the library and per-video recall."},{"name":"Videos","description":"Upload and fetch videos, images and documents; pages, regions, frames (JSON or ?format=jpeg), media."},{"name":"Analysis","description":"Per-video transcript, faces, scenes, speakers, sounds, and music."},{"name":"People","description":"Library-wide people from faces, formed automatically after each ingest: list, rename, hide, merge, split, and re-cluster on demand."},{"name":"Indexing","description":"Index options: which stages run on your uploads, and their values."},{"name":"Flags","description":"Content flags and interrogation."},{"name":"Create","description":"Generate images, music, speech and video (Niravo)."},{"name":"Exports","description":"Screenplay, subtitles (JSON, or the raw .srt / .vtt file with ?format=file), storyboard, and the portable .nmap archive (manifest, metadata and vectors of one asset)."},{"name":"Account & Keys","description":"Your identity: the key's auth context and the workspaces it can access. Keys are created and revoked in the dashboard."},{"name":"System","description":"Health check."}],"paths":{"/api/v1/me":{"get":{"tags":["Account & Keys"],"summary":"Return current auth context","operationId":"me_api_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_MeResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]}},"/api/v1/workspaces":{"get":{"tags":["Account & Keys"],"summary":"List workspaces this key can access","description":"The workspaces this key may operate on: its access list (its home, plus the\nread-only demo libraries and the owner's workspaces it was granted in the\ndashboard, Settings > API access). Target one per request by sending\n`X-Workspace-Id: <workspace_id>`. Omit it: a key uses its home workspace and a\nsigned-in session uses your home workspace. Set it to act in another workspace\nyou belong to, or to read a demo. A dashboard sign-in instead of a key lists the\nuser's workspaces and the demos, i.e. what a key can be granted.","operationId":"v1_list_workspaces_api_v1_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]}},"/api/v1/videos":{"post":{"tags":["Videos"],"summary":"Upload a video","description":"Upload a video, image or document (multipart `file`) into the key's home\nworkspace. Every upload is indexed by the Video Transformation Model (engine\n`arrow`); `options` picks its stages (GET /api/v1/index-options). There is no\nengine choice: a `pipeline` field sent by an older client is ignored, never\nrejected, and the 201 UploadAck's `pipeline` is `\"arrow\"`. Poll GET /api/v1/videos/{video_id} for\n`status`.","operationId":"v1_upload_video_api_v1_videos_post","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_v1_upload_video_api_v1_videos_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_UploadAck_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"get":{"tags":["Videos"],"summary":"List videos (paginated)","operationId":"v1_list_videos_api_v1_videos_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size (max 200)","default":50,"title":"Limit"},"description":"Page size (max 200)"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Offset into the result set","default":0,"title":"Offset"},"description":"Offset into the result set"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPage_VideoResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}":{"get":{"tags":["Videos"],"summary":"Get video detail","operationId":"v1_get_video_api_v1_videos__video_id__get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_VideoDetailResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"tags":["Videos"],"summary":"Delete a video","description":"Delete a video the key's workspace OWNS: it leaves every list at once and is\nthen purged in the background: PG rows, every search index (every registered\nlance dataset: frames, frame and region vectors, scenes, summary, transcripts),\nthe People its faces belonged to (counts, covers, matches) and its derived\nfiles in blob storage. The original file is kept when Niravi holds a source\nrecord for it (a direct upload from the web app, or a platform video it can\nfetch again). Otherwise it is deleted too, so the original of a file uploaded\nthrough this API is deleted. A data and privacy purge deletes the original in\nevery case. A video another workspace owns (shared into this one) answers 403.","operationId":"v1_delete_video_api_v1_videos__video_id__delete","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_DeleteResult_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/pages/{page}":{"get":{"tags":["Videos"],"summary":"Get one page of a document","description":"A document's page `page` (1-based; page n is frame n-1, so frame_url\nserves its render): its text, its reading-order passages with their boxes\nand every region on it (objects, faces, text spans), all normalized with a\nTOP-LEFT origin. 404 for a video / image or a page out of range.","operationId":"v1_get_page_api_v1_videos__video_id__pages__page__get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","description":"1-based page number.","title":"Page"},"description":"1-based page number.","examples":{"first_page":{"summary":"first page","value":1}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_AssetPageResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/regions":{"get":{"tags":["Videos"],"summary":"Get the regions of an asset (objects, faces, text)","description":"Every box the index holds for an image, a document or a video frame:\n`objects` (detected regions), `faces` (each with `cluster_id`, its face\ncluster in this asset, and `person_id`, its workspace person; either is null\nwhile there is none) and `text` (OCR spans). Boxes are {x, y, w, h},\nnormalized, TOP-LEFT origin.","operationId":"v1_get_regions_api_v1_videos__video_id__regions_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Documents: only this page (1-based)","title":"Page"},"description":"Documents: only this page (1-based)"},{"name":"timestamp","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"description":"Only the frame at this time","title":"Timestamp"},"description":"Only the frame at this time"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_AssetRegionsResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/engines":{"get":{"tags":["Search"],"summary":"List search engines","description":"The dense engines `engine` accepts on /search: [{id, recipe, status,\ndefault, workspace_default, deployment_default, available}], for the\nCALLER's workspace. `status`: \"current\" (`arrow`, the Video Transformation\nModel: every upload is indexed by it) or \"deprecated\" (classic: answers only for older libraries); `default` = what this workspace's /search with no\n`engine` runs (its setting, else the deployment's); `workspace_default` =\nthis workspace is set to it; `deployment_default` = what a workspace with no\nsetting gets; `available` = this API has that engine configured.","operationId":"v1_list_engines_api_v1_engines_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_list_EngineInfo__"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]}},"/api/v1/index-options":{"get":{"tags":["Indexing"],"summary":"Indexing options: stages, values, defaults and this workspace's settings","description":"What an index run can do and will do here: `stages` (id, description,\ndefault, available + reason, the values each takes), `defaults` (the\ndeployment's), `workspace` (this workspace's overrides, PUT below), `effective`\n(what an upload with no `options` runs) and the JSON `schema` of an options object.","operationId":"v1_get_index_options_api_v1_index_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_IndexOptionsResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]},"put":{"tags":["Indexing"],"summary":"Set this workspace's default indexing options","description":"Body: an options object (the upload's `options` shape). It REPLACES the\nworkspace's overrides; `{}` clears them, except `faces` and `people`: those\nkeep their stored value unless the body names them. An upload's\nown `options` still win. A change to `faces` or `people` needs a signed-in owner or admin (403\ninsufficient_role; an API key cannot make it), and cannot turn them on while\nthe owner has locked faces off (403 faces_locked). Other options stay\nwritable by any write caller. Every change is in the audit log.","operationId":"v1_put_index_options_api_v1_index_options_put","requestBody":{"description":"An options object, the upload's `options` shape; `{}` clears the workspace's overrides. `faces` and `people` keep their stored value unless the body names them. GET returns its JSON Schema as `schema`.","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","example":{"faces":true,"ocr":{"languages":["en","hi"]}}},"examples":{"faces_and_ocr":{"summary":"faces and ocr","value":{"faces":true,"ocr":{"languages":["en","hi"]}}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_IndexOptionsResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Invalid options","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]}},"/api/v1/search":{"post":{"tags":["Search"],"summary":"Semantic search across videos","description":"Rank moments across the workspace's videos, images and documents for a\nnatural-language `query`. With engine `arrow`, a search (the whole workspace, or one\nvideo with `video_id`) also reads the transcripts: a quote of what was said\n(two or more words, stopwords aside: the phrase as said, two words both in\none transcript segment, or from three words on all of them close together\nin one segment, three quarters of them past four) ranks the moment it was\nsaid first, as a hit with `source` \"transcript\", `text` the spoken line and\n`timestamp` its start. A one-word query ranks as before. With engine `arrow`, a\nwhole-workspace search returns only\nmoments that really match: a hit whose `sim` is under the relevance floor\nis dropped, and when nothing clears it (and no quote matched) `results` is\nempty with `no_match` true. Every hit carries `start` / `end`, the span it\nmatched (scene or transcript segment).","operationId":"v1_search_api_v1_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchBody"},"examples":{"whole_library":{"summary":"whole library","value":{"query":"people laughing on a beach","limit":10}},"one_video":{"summary":"one video","value":{"query":"a red car","video_id":"3f9a1c2e7b4d5a60"}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_SearchResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]}},"/api/v1/chat":{"post":{"tags":["Chat & Recall"],"summary":"Chat / ask questions about videos","operationId":"v1_chat_api_v1_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatBody"},"examples":{"library":{"summary":"library","value":{"query":"What are the main topics across my videos?"}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_ChatResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"chat_unavailable: the answer model is unavailable; retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]}},"/api/v1/search/{search_type}":{"post":{"tags":["Search"],"summary":"Magic search (character, location, music, emotion)","description":"Magic search by type: character, location, music, or emotion.\n\nAccepts JSON body with keys: query, video_id, cluster_id, source_video_id, limit.\nSearch by an uploaded face image or audio clip is not part of the public API.\n\nOn workspaces searched by `arrow`: location = captions + shot labels; emotion =\ncaptions + emotion-linked sounds and mood music (facial expression is not\nindexed); music = genre / instrument sound events + music segments (song\ntitle / artist identification is not available); character = People by\nname or person id, or a face cluster by cluster_id + source_video_id\n(neither a query nor a cluster_id: 400 validation_error). `meta.search`\nnames the legs that served and, under `unavailable`, what the type could\nnot use.","operationId":"v1_magic_search_api_v1_search__search_type__post","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"search_type","in":"path","required":true,"schema":{"type":"string","description":"What to search for: character, location, music, emotion.","enum":["character","location","music","emotion"],"title":"Search Type"},"description":"What to search for: character, location, music, emotion.","examples":{"location":{"summary":"location","value":"location"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MagicSearchBody"},"examples":{"location":{"summary":"location","value":{"query":"a beach at sunset","limit":10}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_SearchResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/transcript":{"get":{"tags":["Analysis"],"summary":"Get transcription segments","operationId":"v1_transcript_api_v1_videos__video_id__transcript_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`words`: also send each segment's words ({text, start, end, confidence, speaker, interpolated}, seconds from the video start). Off by default: a long video has many words. Since 1.4.0.","title":"Include"},"description":"`words`: also send each segment's words ({text, start, end, confidence, speaker, interpolated}, seconds from the video start). Off by default: a long video has many words. Since 1.4.0."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_TranscriptResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/faces":{"get":{"tags":["Analysis"],"summary":"Get face clusters","operationId":"v1_faces_api_v1_videos__video_id__faces_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_FacesResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/frames/{timestamp}":{"get":{"tags":["Videos"],"summary":"Get the frame at a timestamp","description":"Return the picture at a video time, base64'd inside the envelope, or as\nraw image/jpeg with `?format=jpeg` / `Accept: image/jpeg` (the envelope's\nfields then ride X-Frame-* headers). The picture is the stored keyframe\nNEAREST the time (one is kept per second), not the covering scene's.\n\nThis is the Glance grain: the nearest stored keyframe, 480 px wide. Good for\norientation and for checking whether a caption is describing this picture at\nall. Not good for reading small on-screen text — that wants a\nnative-resolution burst, and even then only when the text is missed for a\ntemporal reason.\n\nTwo fields exist to stop the caller over-claiming, and both must be read:\n`approx_within_s` is how far this picture is from the time you asked for\n(null = unknown, treat as large), and `fallback=true` means your moment had\nno frame and a different one was substituted — do not cite it as the\nrequested timestamp.\n\nRange: `timestamp` must be >= 0 and finite (else 422 `validation_error`).\nThe video's end is the later of its recorded length and its last stored\nkeyframe. A time up to 2 s (one keyframe interval) past that end is served\nwith the nearest frame; further past it returns 404 `timestamp_out_of_range`\nwith `error.max_timestamp_s` (the end) and `error.duration_s`. The JPEG\nvariant returns the same JSON error.","operationId":"v1_frame_api_v1_videos__video_id__frames__timestamp__get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"timestamp","in":"path","required":true,"schema":{"type":"number","minimum":0,"description":"Seconds from the start of the video. Must be >= 0 and at most the video's length + 2 s (one keyframe interval).","title":"Timestamp"},"description":"Seconds from the start of the video. Must be >= 0 and at most the video's length + 2 s (one keyframe interval).","examples":{"ten_seconds":{"summary":"ten seconds","value":10}}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"'json' (default) or 'jpeg' for the raw image/jpeg bytes. `Accept: image/jpeg` does the same.","title":"Format"},"description":"'json' (default) or 'jpeg' for the raw image/jpeg bytes. `Accept: image/jpeg` does the same."}],"responses":{"200":{"description":"The JSON envelope (default), or the JPEG itself with `?format=jpeg` / `Accept: image/jpeg`. The JPEG carries the envelope's fields as X-Frame-* headers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_FrameResponse_"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Video not found (`not_found`), or the timestamp is past the end of the video (`timestamp_out_of_range`, with `error.max_timestamp_s` and `error.duration_s`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/faces/{face_id}/crop":{"get":{"tags":["Analysis"],"summary":"Get a face crop","description":"The JPEG of one detected face (a `crop_url` in the faces, characters and\npeople payloads), cropped from the keyframe the detector ran on.\n\nThe v1 twin of the webapp's crop route: same bytes, but authenticated by the\nkey (and workspace) that fetched the payload, so a `crop_url` from a v1 body\nloads with the same credentials. 404 when the face is not on this video.","operationId":"v1_face_crop_api_v1_videos__video_id__faces__face_id__crop_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"face_id","in":"path","required":true,"schema":{"type":"string","description":"A face id (GET /api/v1/videos/{video_id}/faces).","title":"Face Id"},"description":"A face id (GET /api/v1/videos/{video_id}/faces).","examples":{"face":{"summary":"face","value":"3f9a1c2e7b4d5a60_face_d2edf0c0"}}}],"responses":{"200":{"description":"The face, cropped from the keyframe it was detected on, as image/jpeg.","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/scenes":{"get":{"tags":["Analysis"],"summary":"Get scenes","operationId":"v1_scenes_api_v1_videos__video_id__scenes_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_ScenesResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/shots":{"get":{"tags":["Analysis"],"summary":"Get shot metadata","description":"One row per shot (scene). On `arrow` assets (every upload now) only\n`num_people` (faces stage) and `visible_text` (OCR stage) are filled:\nshot_scale, camera_angle, shot_type, setting_indoor, setting_daytime, mood,\nobjects and actions are null or empty.","operationId":"v1_shots_api_v1_videos__video_id__shots_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_ShotsResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/speakers":{"get":{"tags":["Analysis"],"summary":"Get speaker diarization","operationId":"v1_speakers_api_v1_videos__video_id__speakers_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_SpeakersResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/characters":{"get":{"tags":["Analysis"],"summary":"Get characters","operationId":"v1_characters_api_v1_videos__video_id__characters_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_CharactersResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/audio-segments":{"get":{"tags":["Analysis"],"summary":"Get audio type timeline","operationId":"v1_audio_segments_api_v1_videos__video_id__audio_segments_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"audio_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_AudioSegmentsResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/sound-events":{"get":{"tags":["Analysis"],"summary":"Get sound events (alias)","operationId":"v1_sound_events","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_SoundEventsResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/sounds":{"get":{"tags":["Analysis"],"summary":"Get sound events","operationId":"v1_sounds","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_SoundEventsResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/music-tracks":{"get":{"tags":["Analysis"],"summary":"Get identified music tracks","description":"Songs identified in the asset (title, artist). Song identification needs a\nlicensed fingerprint provider; Niravi has none, so this is empty for assets\nindexed today. For music on the timeline use audio-segments (`audio_type` music) and\nsound-events (genres, instruments).","operationId":"v1_music_tracks_api_v1_videos__video_id__music_tracks_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_MusicTracksResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/screenplay":{"get":{"tags":["Exports"],"summary":"Get formatted screenplay","description":"Get screenplay. Default returns interactive JSON. ?format=text for plain text.","operationId":"v1_screenplay_api_v1_videos__video_id__screenplay_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_ScreenplayResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/subtitles.srt":{"get":{"tags":["Exports"],"summary":"Export SRT subtitles","operationId":"v1_subtitles_srt_api_v1_videos__video_id__subtitles_srt_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"'json' (default) or 'file' for the raw subtitle file as an attachment. An Accept header naming the file's type (or text/plain) does the same.","title":"Format"},"description":"'json' (default) or 'file' for the raw subtitle file as an attachment. An Accept header naming the file's type (or text/plain) does the same."}],"responses":{"200":{"description":"The JSON envelope (default), or the file itself with `?format=file` / `Accept: application/x-subrip` (or text/plain), sent as an attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_SubtitleResponse_"}},"application/x-subrip":{"schema":{"type":"string"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/subtitles.vtt":{"get":{"tags":["Exports"],"summary":"Export WebVTT subtitles","operationId":"v1_subtitles_vtt_api_v1_videos__video_id__subtitles_vtt_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"'json' (default) or 'file' for the raw subtitle file as an attachment. An Accept header naming the file's type (or text/plain) does the same.","title":"Format"},"description":"'json' (default) or 'file' for the raw subtitle file as an attachment. An Accept header naming the file's type (or text/plain) does the same."}],"responses":{"200":{"description":"The JSON envelope (default), or the file itself with `?format=file` / `Accept: text/vtt` (or text/plain), sent as an attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_SubtitleResponse_"}},"text/vtt":{"schema":{"type":"string"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/storyboard":{"get":{"tags":["Exports"],"summary":"Get storyboard panels","operationId":"v1_storyboard_api_v1_videos__video_id__storyboard_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_StoryboardResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/recall/{video_id}/ask":{"post":{"tags":["Chat & Recall"],"summary":"Ask a question about one video","description":"Ask a question about ONE video: video-scoped agent chat over its indexed\ndata (the workspace's search engine, transcript, scenes, document pages),\nanswered with time-coded citations. 404 when the video is not visible to\nthis workspace; 502 chat_unavailable when the answer model fails.\n\nAccepts JSON body with keys: query (str), max_tokens (int, optional).","operationId":"v1_recall_ask_api_v1_recall__video_id__ask_post","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallAskBody"},"examples":{"question":{"summary":"question","value":{"query":"What happens in the first minute?"}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_ChatResponse_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"chat_unavailable: the answer model is unavailable; retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/flags":{"get":{"tags":["Flags"],"summary":"Get interrogation flags","description":"Latest interrogation run + segment-pinned flags for the video.","operationId":"v1_video_flags_api_v1_videos__video_id__flags_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_dict_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/interrogation":{"get":{"tags":["Flags"],"summary":"Get interrogation report","description":"Latest interrogation run incl. the report (directions, lit counts, params).","operationId":"v1_video_interrogation_api_v1_videos__video_id__interrogation_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_dict_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/flags":{"get":{"tags":["Flags"],"summary":"List workspace flags","description":"Workspace-wide flag feed (newest first).","operationId":"v1_flags_feed_api_v1_flags_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_dict_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/interrogate":{"post":{"tags":["Flags"],"summary":"Run interrogation","description":"Enqueue an interrogation of this video (idempotent per bank version).\n\nRuns asynchronously on the indexing infrastructure; poll\n``GET /videos/{video_id}/flags`` for status + results.","operationId":"v1_interrogate_api_v1_videos__video_id__interrogate_post","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_dict_"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/niravo/stock/search":{"get":{"tags":["Create"],"summary":"Search stock photos/videos","operationId":"niravo_stock_search_api_v1_niravo_stock_search_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","description":"What to find in stock photos and videos.","title":"Query"},"description":"What to find in stock photos and videos.","examples":{"traffic":{"summary":"traffic","value":"city traffic at night"}}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"video","title":"Type"}},{"name":"perPage","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Perpage"}},{"name":"orientation","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orientation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"The upstream service failed or answered badly (`upstream_error`, `upstream_unreachable`, `upstream_bad_response`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"The upstream service is starting (`upstream_starting`, with Retry-After) or not configured (`not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"The upstream service did not answer in time (`upstream_timeout`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/niravo/image":{"post":{"tags":["Create"],"summary":"Generate an image","operationId":"niravo_image_api_v1_niravo_image_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenBody"},"examples":{"product_photo":{"summary":"product photo","value":{"prompt":"A clean product photo of a steel water bottle on a white table","size":"1024x1024","quality":"low"}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"The upstream service failed or answered badly (`upstream_error`, `upstream_unreachable`, `upstream_bad_response`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"The upstream service is starting (`upstream_starting`, with Retry-After) or not configured (`not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"The upstream service did not answer in time (`upstream_timeout`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]}},"/api/v1/niravo/video":{"post":{"tags":["Create"],"summary":"Generate a video clip (async job)","operationId":"niravo_video_api_v1_niravo_video_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoGenBody"},"examples":{"clip":{"summary":"clip","value":{"prompt":"Slow pan over a misty tea garden at sunrise","seconds":4}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"The upstream service failed or answered badly (`upstream_error`, `upstream_unreachable`, `upstream_bad_response`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"The upstream service is starting (`upstream_starting`, with Retry-After) or not configured (`not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"The upstream service did not answer in time (`upstream_timeout`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]}},"/api/v1/niravo/video/jobs/{video_id}":{"get":{"tags":["Create"],"summary":"Poll a video generation job","operationId":"niravo_video_job_api_v1_niravo_video_jobs__video_id__get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"The job id POST /api/v1/niravo/video returned.","title":"Video Id"},"description":"The job id POST /api/v1/niravo/video returned."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such job (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"The upstream service failed or answered badly (`upstream_error`, `upstream_unreachable`, `upstream_bad_response`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"The upstream service is starting (`upstream_starting`, with Retry-After) or not configured (`not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"The upstream service did not answer in time (`upstream_timeout`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/niravo/tts":{"post":{"tags":["Create"],"summary":"Generate a voiceover track","operationId":"niravo_tts_api_v1_niravo_tts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TtsBody"},"examples":{"voiceover":{"summary":"voiceover","value":{"input":"Welcome to the channel.","voice":"alloy"}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"The upstream service failed or answered badly (`upstream_error`, `upstream_unreachable`, `upstream_bad_response`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"The upstream service is starting (`upstream_starting`, with Retry-After) or not configured (`not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"The upstream service did not answer in time (`upstream_timeout`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]}},"/api/v1/niravo/music":{"post":{"tags":["Create"],"summary":"Generate a music track","operationId":"niravo_music_api_v1_niravo_music_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MusicBody"},"examples":{"bed":{"summary":"bed","value":{"prompt":"Calm acoustic guitar, warm, 90 bpm","durationSeconds":30}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"502":{"description":"The upstream service failed or answered badly (`upstream_error`, `upstream_unreachable`, `upstream_bad_response`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"The upstream service is starting (`upstream_starting`, with Retry-After) or not configured (`not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"504":{"description":"The upstream service did not answer in time (`upstream_timeout`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}]}},"/api/v1/videos/{video_id}/media":{"get":{"tags":["Videos"],"summary":"Get a streamable URL for a video","operationId":"v1_video_media_api_v1_videos__video_id__media_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"No such video (`not_found`) or no streamable source (`source_not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"URL signing is unavailable (`storage_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/people":{"get":{"tags":["People"],"summary":"List the workspace's people","description":"The workspace's People: one id per person across its videos, images and\ndocuments. They form on their own: after each ingest the asset's faces join the\npeople they match, then the workspace's faces are re-clustered: the ones no one\ntook form new People (3 or more alike make one) and unnamed People may be\nregrouped (named ones only gain faces), so no POST /people/recluster is needed (a library\npast 20,000 usable faces leaves that step to it). `people`: [{person_id, name,\nstatus, face_count, cover_face_id, cover_url}], named first, then by face\ncount; status is \"unverified\" (formed automatically, not named yet), \"named\",\nor \"hidden\" (listed only with include_hidden=true).","operationId":"list_people_api_v1_people_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"include_hidden","in":"query","required":false,"schema":{"type":"boolean","description":"Also list the people you hid","default":false,"title":"Include Hidden"},"description":"Also list the people you hid"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/people/recluster":{"post":{"tags":["People"],"summary":"Re-cluster the workspace's faces now (optional, background)","description":"Optional: People already form after each ingest (GET /people). This re-runs\nthe clustering over the workspace's faces now, needed only for a library past\n20,000 usable faces, where the after-ingest step is skipped. Names, merges and\n\"not them\" removals (remove with reject=true, the default) are kept; faces taken\noff with reject=false are only unassigned, so a re-cluster may put them back.\n202 {status: \"queued\"}, run in the\nbackground; dry_run=true answers 200 with the plan and writes nothing.","operationId":"recluster_api_v1_people_recluster_post","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","description":"Plan only: report what would change, write nothing.","default":false,"title":"Dry Run"},"description":"Plan only: report what would change, write nothing."}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/people/{person_id}":{"get":{"tags":["People"],"summary":"A person: faces and where they appear","operationId":"get_person_api_v1_people__person_id__get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","description":"A person id (GET /api/v1/people).","title":"Person Id"},"description":"A person id (GET /api/v1/people).","examples":{"person":{"summary":"person","value":"p_0a1b2c3d4e5f"}}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"patch":{"tags":["People"],"summary":"Rename, hide or set the cover of a person","operationId":"patch_person_api_v1_people__person_id__patch","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","description":"A person id (GET /api/v1/people).","title":"Person Id"},"description":"A person id (GET /api/v1/people).","examples":{"person":{"summary":"person","value":"p_0a1b2c3d4e5f"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonPatch"},"examples":{"rename":{"summary":"rename","value":{"name":"Asha Rao"}},"hide":{"summary":"hide","value":{"hidden":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/people/{person_id}/merge":{"post":{"tags":["People"],"summary":"Merge this person into another","operationId":"merge_person_api_v1_people__person_id__merge_post","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","description":"A person id (GET /api/v1/people).","title":"Person Id"},"description":"A person id (GET /api/v1/people).","examples":{"person":{"summary":"person","value":"p_0a1b2c3d4e5f"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeBody"},"examples":{"merge":{"summary":"merge","value":{"into":"p_9e8d7c6b5a40"}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/people/{person_id}/remove":{"post":{"tags":["People"],"summary":"Take faces off a person (split / not them)","operationId":"remove_faces_api_v1_people__person_id__remove_post","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","description":"A person id (GET /api/v1/people).","title":"Person Id"},"description":"A person id (GET /api/v1/people).","examples":{"person":{"summary":"person","value":"p_0a1b2c3d4e5f"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveBody"},"examples":{"split_off":{"summary":"split off","value":{"face_ids":["3f9a1c2e7b4d5a60_face_d2edf0c0"],"reject":true}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/videos/{video_id}/nmap":{"get":{"tags":["Exports"],"summary":"Download the .nmap archive of a video","description":"Everything the index holds for one asset, as one portable file: a ZIP named\n`<video_id>.nmap` (schema_ver 1) with\n\n- `manifest.json`: video_id, schema_ver, duration_s, pipeline (`arrow`),\n  recipe, kind (video / image / document), page_count, frame_count, content_stamp,\n  row_counts, model_registry (each vector table's model and dimension) and\n  central.omitted (the tables this asset has no source for; never fabricated).\n- `raw.json`: {table: [rows]} without vectors: videos, frames, scenes, transcriptions\n  (with words and speaker_label), speakers, face_clusters, faces, sound_events,\n  audio_segments, music_tracks, content_classification, frame_apple_signals,\n  frame_detections, frame_signals, scene_groups, asset_passages (documents), and the\n  metadata rows of each vector table (regions_arrow carries its box x1..y2, label,\n  detector, score).\n- `vectors.npz` (numpy, no pickles): `<table>__vecs` float32 N x D with `<table>__ids`\n  (or `<table>__rowidx` for one-row-per-video tables). `arrow` assets: frames_arrow\n  (SigLIP2 So400m, 1152-d, by frame_id), regions_arrow (So400m, by region_id),\n  scene_embeddings_gemma (EmbeddingGemma, 512-d, by scene_id), scene_embeddings_iv2,\n  summary_embeddings_gemma, transcript_embeddings_gemma, faces_sface (SFace, 128-d,\n  by face_id; faces found by YuNet). `classic` assets: frames, scene_embeddings,\n  scene_embeddings_gemma, faces, summary_embeddings.\n\nThe archive carries what the index holds for the asset, the same for every workspace\nthat can read it: this workspace's own edits (a rename, tags, corrected transcript\nlines) are not in it.\n\nRead it with `numpy.load(..., allow_pickle=False)` on the npz member. The ETag is the\ncontent stamp: it changes when the asset is reindexed. 409 `not_ready` while the asset\nis not completed.","operationId":"v1_video_nmap_api_v1_videos__video_id__nmap_get","security":[{"HTTPBearer":[]},{"ApiKeyAuth":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","description":"A video, image or document id (GET /api/v1/videos).","title":"Video Id"},"description":"A video, image or document id (GET /api/v1/videos).","examples":{"video":{"summary":"video","value":"3f9a1c2e7b4d5a60"}}}],"responses":{"200":{"description":"The .nmap archive (a ZIP).","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}},"headers":{"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"X-RateLimit-Limit":{"$ref":"#/components/headers/XRateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/XRateLimitRemaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/XRateLimitReset"}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Invalid or missing credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Missing required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Request validation failed (code validation_error)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limit exceeded (error.retry_after, Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"default":{"description":"Any other error (502/503/504 ...), same envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"304":{"description":"Not modified (If-None-Match matched the ETag)"},"409":{"description":"not_ready: the asset is still being indexed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"too_large: the archive is over the size limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"busy: retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/health":{"get":{"tags":["System"],"summary":"Health check (no auth required)","operationId":"health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiSuccess_HealthResponse_"}}}}}}}},"components":{"schemas":{"ApiError":{"properties":{"success":{"type":"boolean","title":"Success","default":false},"error":{"$ref":"#/components/schemas/ErrorDetail"},"meta":{"anyOf":[{"$ref":"#/components/schemas/ErrorMeta"},{"type":"null"}]},"detail":{"anyOf":[{},{"type":"null"}],"title":"Detail","description":"Deprecated compatibility mirror of the pre-envelope `detail` (a string, an object, or a list of field errors). Read `error` instead.","deprecated":true}},"type":"object","required":["error"],"title":"ApiError","description":"Standard error envelope: ``{success: false, error, meta, detail}``."},"ApiPage_VideoResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"items":{"$ref":"#/components/schemas/VideoResponse"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/Pagination"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data","pagination"],"title":"ApiPage[VideoResponse]"},"ApiSuccess_AssetPageResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/AssetPageResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[AssetPageResponse]"},"ApiSuccess_AssetRegionsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/AssetRegionsResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[AssetRegionsResponse]"},"ApiSuccess_AudioSegmentsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/AudioSegmentsResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[AudioSegmentsResponse]"},"ApiSuccess_CharactersResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/CharactersResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[CharactersResponse]"},"ApiSuccess_ChatResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/ChatResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[ChatResponse]"},"ApiSuccess_DeleteResult_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/DeleteResult"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[DeleteResult]"},"ApiSuccess_FacesResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/FacesResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[FacesResponse]"},"ApiSuccess_FrameResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/FrameResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[FrameResponse]"},"ApiSuccess_HealthResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/HealthResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[HealthResponse]"},"ApiSuccess_IndexOptionsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/IndexOptionsResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[IndexOptionsResponse]"},"ApiSuccess_MeResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/MeResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[MeResponse]"},"ApiSuccess_MusicTracksResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/MusicTracksResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[MusicTracksResponse]"},"ApiSuccess_ScenesResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/ScenesResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[ScenesResponse]"},"ApiSuccess_ScreenplayResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/ScreenplayResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[ScreenplayResponse]"},"ApiSuccess_SearchResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/SearchResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[SearchResponse]"},"ApiSuccess_ShotsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/ShotsResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[ShotsResponse]"},"ApiSuccess_SoundEventsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/SoundEventsResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[SoundEventsResponse]"},"ApiSuccess_SpeakersResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/SpeakersResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[SpeakersResponse]"},"ApiSuccess_StoryboardResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/StoryboardResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[StoryboardResponse]"},"ApiSuccess_SubtitleResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/SubtitleResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[SubtitleResponse]"},"ApiSuccess_TranscriptResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/TranscriptResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[TranscriptResponse]"},"ApiSuccess_UploadAck_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/UploadAck"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[UploadAck]"},"ApiSuccess_VideoDetailResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/VideoDetailResponse"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[VideoDetailResponse]"},"ApiSuccess_dict_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"additionalProperties":true,"type":"object","title":"Data"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[dict]"},"ApiSuccess_list_EngineInfo__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"items":{"$ref":"#/components/schemas/EngineInfo"},"type":"array","title":"Data"},"meta":{"anyOf":[{"$ref":"#/components/schemas/Meta"},{"type":"null"}]}},"type":"object","required":["data"],"title":"ApiSuccess[list[EngineInfo]]"},"AssetPageResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"page":{"type":"integer","title":"Page"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"frame_url":{"type":"string","title":"Frame Url"},"text":{"type":"string","title":"Text","default":""},"passages":{"items":{"$ref":"#/components/schemas/PassageResponse"},"type":"array","title":"Passages","default":[]},"regions":{"anyOf":[{"$ref":"#/components/schemas/AssetRegionsResponse"},{"type":"null"}]}},"type":"object","required":["video_id","page","frame_url"],"title":"AssetPageResponse","description":"GET /videos/{id}/pages/{n}: one document page (page n is frame n-1)."},"AssetRegion":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"w":{"type":"number","title":"W"},"h":{"type":"number","title":"H"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"source":{"type":"string","title":"Source","default":"object"}},"type":"object","required":["x","y","w","h"],"title":"AssetRegion","description":"Where in a still or a page the hit is: normalized, TOP-LEFT origin (x, y =\nthe box's top-left corner, w, h its size, all 0..1 of the picture). `source`\nsays what drew the box: \"object\" (a detected region), \"passage\" (a document\npassage's lines), \"face\", \"text\" (an OCR span)."},"AssetRegionsResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"kind":{"type":"string","title":"Kind"},"objects":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Objects","default":[]},"faces":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Faces","default":[]},"text":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Text","default":[]}},"type":"object","required":["video_id","kind"],"title":"AssetRegionsResponse","description":"GET /videos/{id}/regions: every box the index holds for an asset, all\nnormalized TOP-LEFT. `timestamp` places a box on its frame; `page`\n(documents) is timestamp + 1."},"AudioSegment":{"properties":{"segment_id":{"type":"string","title":"Segment Id"},"video_id":{"type":"string","title":"Video Id"},"start_time":{"type":"number","title":"Start Time"},"end_time":{"type":"number","title":"End Time"},"audio_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type"},"speaker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Id"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"}},"type":"object","required":["segment_id","video_id","start_time","end_time"],"title":"AudioSegment","description":"A single audio-type timeline segment (speech/music/silence/sfx)."},"AudioSegmentsResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"segments":{"items":{"$ref":"#/components/schemas/AudioSegment"},"type":"array","title":"Segments"},"total":{"type":"integer","title":"Total"},"summary":{"additionalProperties":{"$ref":"#/components/schemas/AudioTypeStat"},"type":"object","title":"Summary","default":{}}},"type":"object","required":["video_id","segments","total"],"title":"AudioSegmentsResponse","description":"GET /videos/{id}/audio-segments payload."},"AudioTypeStat":{"properties":{"count":{"type":"integer","title":"Count"},"total_duration":{"type":"number","title":"Total Duration"}},"type":"object","required":["count","total_duration"],"title":"AudioTypeStat"},"Body_v1_upload_video_api_v1_videos_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"language":{"type":"string","title":"Language","default":"auto"},"content_type":{"type":"string","title":"Content Type","description":"DEPRECATED and ignored. Every upload runs the `arrow` engine; choose what it indexes with `options`.","default":"auto","deprecated":true},"options":{"type":"string","title":"Options","description":"JSON index options, e.g. {\"faces\": true, \"ocr\": {\"languages\": [\"en\", \"hi\"]}, \"objects\": {\"vocabulary\": [\"logo\"]}}. Each stage (transcript, captions, speakers, sounds, labels, ocr, faces, objects, people, music) takes true / false or an object of its values; omitted fields fall back to the workspace's defaults, then the deployment's. GET /api/v1/index-options lists the stages, their values and availability.","default":"","examples":["{\"faces\": true}"]}},"type":"object","required":["file"],"title":"Body_v1_upload_video_api_v1_videos_post"},"Character":{"properties":{"character_id":{"type":"integer","title":"Character Id"},"video_id":{"type":"string","title":"Video Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"face_cluster_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Face Cluster Id"},"speaker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"first_appearance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"First Appearance"},"total_screen_time":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Screen Time"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["character_id","video_id"],"title":"Character","description":"A unified character identity (face cluster + speaker link + overlay name)."},"CharactersResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"characters":{"items":{"$ref":"#/components/schemas/Character"},"type":"array","title":"Characters"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["video_id","characters","total"],"title":"CharactersResponse","description":"GET /videos/{id}/characters payload."},"ChatBody":{"properties":{"query":{"type":"string","title":"Query","description":"Question about the library or specific videos","default":""},"video_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Video Ids","description":"Restrict the answer to these videos"},"max_tokens":{"type":"integer","title":"Max Tokens","description":"Answer-length budget in tokens (reasoning models get thinking headroom on top of it)","default":1024}},"type":"object","title":"ChatBody","description":"Body for POST /api/v1/chat."},"ChatCitation":{"properties":{"video_id":{"type":"string","title":"Video Id"},"timestamp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Timestamp"},"scene_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scene Id"},"source_tool":{"type":"string","title":"Source Tool"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"}},"type":"object","required":["video_id","source_tool"],"title":"ChatCitation","description":"A source reference from a tool call."},"ChatResponse":{"properties":{"answer":{"type":"string","title":"Answer"},"source_frames":{"items":{"$ref":"#/components/schemas/SearchResultResponse"},"type":"array","title":"Source Frames","default":[]},"citations":{"items":{"$ref":"#/components/schemas/ChatCitation"},"type":"array","title":"Citations","default":[]},"tier_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier Used"},"engine_fallback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Fallback","description":"Set when a search tool behind the answer ran without the workspace's search engine (the same coarse codes as `SearchResponse.engine_fallback`, e.g. `arrow_unavailable`; `engine_degraded` when the engine failed with no code). The answer may miss moments that exist: it does not mean the library has no such content. null when every search served normally."}},"type":"object","required":["answer"],"title":"ChatResponse"},"DeleteResult":{"properties":{"video_id":{"type":"string","title":"Video Id"},"deleted":{"type":"boolean","title":"Deleted","default":true},"purging":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Purging"}},"type":"object","required":["video_id"],"title":"DeleteResult","description":"DELETE /videos/{id} payload. ``purging``: the full purge (search indexes +\nmedia) is running in the background."},"EngineInfo":{"properties":{"id":{"type":"string","title":"Id"},"recipe":{"type":"string","title":"Recipe"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"\"current\" (the engine every upload is indexed by, and new workspaces search on) or \"deprecated\" (still searches libraries indexed on it)"},"default":{"type":"boolean","title":"Default","description":"This workspace's /search with no `engine` runs this one (the workspace's setting, else the deployment default)"},"workspace_default":{"type":"boolean","title":"Workspace Default","description":"This workspace is set to this engine (false on every engine when it has no setting, and follows the deployment default)"},"deployment_default":{"type":"boolean","title":"Deployment Default","description":"The engine a workspace with no setting searches on"},"available":{"type":"boolean","title":"Available"}},"type":"object","required":["id","recipe","default","workspace_default","deployment_default","available"],"title":"EngineInfo","description":"A dense search engine (GET /engines item), for the caller's workspace."},"ErrorDetail":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine-readable error code"},"message":{"type":"string","title":"Message","description":"Human-readable error message"},"status":{"type":"integer","title":"Status","description":"HTTP status code"},"retry_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry After","description":"429 only: seconds until the window resets"},"limit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Limit","description":"429 only: the window that was spent, `minute` or `day`"},"reset_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reset At","description":"429 only: Unix time when that window resets"}},"additionalProperties":true,"type":"object","required":["code","message","status"],"title":"ErrorDetail","description":"The error payload inside an ``ApiError`` envelope. Some codes carry more\nfields (``retry_after`` on 429, ``reason``/``role``/``workspace_id`` on the\nworkspace denials)."},"ErrorMeta":{"properties":{"request_id":{"type":"string","title":"Request Id","description":"The X-Request-ID of this response","default":""},"contract":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract","description":"The output conventions this response follows (Niravi-Contract header)."}},"type":"object","title":"ErrorMeta"},"FaceCluster":{"properties":{"cluster_id":{"type":"integer","title":"Cluster Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"face_count":{"type":"integer","title":"Face Count"},"faces":{"items":{"$ref":"#/components/schemas/FaceItem"},"type":"array","title":"Faces","default":[]},"time_range":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Time Range"}},"type":"object","required":["cluster_id","face_count"],"title":"FaceCluster","description":"A face cluster = one detected character identity within a video."},"FaceItem":{"properties":{"face_id":{"type":"string","title":"Face Id"},"timestamp":{"type":"number","title":"Timestamp"},"bbox":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Bbox","description":"As stored: normalized BOTTOM-LEFT corners [x1, y1, x2, y2] (y1 the bottom edge); legacy rows in keyframe pixels. Prefer box_n."},"box_n":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Box N","description":"[x, y, w, h] normalized to the frame, TOP-LEFT origin (the output contract's box); null for legacy pixel rows. Since 1.4.0."},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"frame_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frame Url"},"crop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crop Url"}},"type":"object","required":["face_id","timestamp"],"title":"FaceItem","description":"A single detected face within a cluster (or unclustered)."},"FacesResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"clusters":{"additionalProperties":{"$ref":"#/components/schemas/FaceCluster"},"type":"object","title":"Clusters","default":{}},"unclustered":{"items":{"$ref":"#/components/schemas/FaceItem"},"type":"array","title":"Unclustered","default":[]},"total_faces":{"type":"integer","title":"Total Faces","default":0}},"type":"object","required":["video_id"],"title":"FacesResponse","description":"GET /videos/{id}/faces payload. `clusters` keyed by cluster_id (str)."},"FrameResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"timestamp":{"type":"number","title":"Timestamp"},"requested_timestamp":{"type":"number","title":"Requested Timestamp"},"approx_within_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Approx Within S"},"fallback":{"type":"boolean","title":"Fallback","default":false},"mime":{"type":"string","title":"Mime","default":"image/jpeg"},"bytes":{"type":"integer","title":"Bytes"},"source":{"type":"string","title":"Source"},"image_b64":{"type":"string","title":"Image B64"}},"type":"object","required":["video_id","timestamp","requested_timestamp","bytes","source","image_b64"],"title":"FrameResponse","description":"GET /videos/{id}/frames/{timestamp} payload — a picture, base64'd.\n\nBase64 inside the envelope rather than raw `image/jpeg` because every v1\nconsumer (SDK transport, generated MCP tools) assumes a JSON envelope and\nunwraps `data`. The MCP binding turns `image_b64` into an image content\nblock so a connected model can actually see the frame.\n\nThis serves the nearest stored KEYFRAME (one per second by default), not\nthe frame at exactly `timestamp`.\nTwo fields carry that uncertainty and both must be read before citing a time:\n`approx_within_s` is how far the picture is from the requested moment (null =\nunknown, assume large), and `fallback` means the requested moment had no\nframe at all and a substitute was served.\nRange: a time more than 2 s past the video's end returns 404\n`timestamp_out_of_range` instead of this payload."},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status","default":"ok"},"version":{"type":"string","title":"Version","default":"1"}},"type":"object","title":"HealthResponse","description":"GET /health payload."},"ImageGenBody":{"properties":{"prompt":{"type":"string","title":"Prompt"},"provider":{"type":"string","title":"Provider","default":"azure"},"size":{"type":"string","title":"Size","default":"1024x1024"},"quality":{"type":"string","title":"Quality","default":"low"}},"type":"object","required":["prompt"],"title":"ImageGenBody"},"IndexInfo":{"properties":{"options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Options","description":"The index options the upload asked for"},"report":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Report","description":"The last run: {recipe, at, kind, options (resolved), stages {<stage>: {status ok|off|not_applicable|no_audio|skipped|failed, error?, counts, s}}, timings}. null while the first run has not finished"},"stages_failed":{"items":{"type":"string"},"type":"array","title":"Stages Failed","description":"Stages whose status in report.stages is \"failed\" (sorted); each one's reason is report.stages.<stage>.error"},"degraded":{"type":"boolean","title":"Degraded","description":"true when stages_failed is not empty: the video can be completed and searchable but missing what those stages add","default":false}},"additionalProperties":true,"type":"object","title":"IndexInfo","description":"GET /videos/{id} `index`: what the upload asked the index for and\nwhat its last run did."},"IndexOptionsResponse":{"properties":{"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"stages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Stages","description":"One per stage: id, description, default, available (+ reason), and the values it takes"},"defaults":{"additionalProperties":true,"type":"object","title":"Defaults","description":"The deployment's default options"},"workspace":{"additionalProperties":true,"type":"object","title":"Workspace","description":"This workspace's overrides (PUT sets them)"},"effective":{"additionalProperties":true,"type":"object","title":"Effective","description":"What an upload with no `options` runs with"},"schema":{"additionalProperties":true,"type":"object","title":"Schema","description":"JSON Schema of an options object"}},"type":"object","title":"IndexOptionsResponse","description":"GET / PUT /index-options payload: what an index run can do and will do\nfor this workspace."},"MagicSearchBody":{"properties":{"query":{"type":"string","title":"Query","description":"What to find (a name, place, mood, or track)","default":""},"video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Id","description":"Restrict to a single video"},"cluster_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cluster Id","description":"Face/voice cluster id, when refining by example"},"source_video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Video Id","description":"Video the cluster_id belongs to"},"limit":{"type":"integer","title":"Limit","description":"Maximum number of results","default":20}},"type":"object","title":"MagicSearchBody","description":"Body for POST /api/v1/search/{search_type}."},"MeResponse":{"properties":{"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id","description":"Home workspace: the key's home, or the signed-in user's own workspace"},"active_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Workspace Id","description":"Workspace this request runs in: X-Workspace-Id when set, else the home workspace"},"active_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Role","description":"Role in the active workspace: \"owner\", \"member\", \"viewer\", \"demo\" (a read-only demo), or \"key\" (an API key)"},"plan_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Tier"},"scope":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scope","description":"Scopes this credential carries, e.g. [\"read\", \"write\"]"},"api_key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},"type":"object","title":"MeResponse","description":"GET /me payload — the resolved auth context."},"MergeBody":{"properties":{"into":{"type":"string","maxLength":40,"minLength":1,"title":"Into","description":"The person this one is the same as."}},"type":"object","required":["into"],"title":"MergeBody"},"Meta":{"properties":{"request_id":{"type":"string","title":"Request Id","description":"Echoed X-Request-ID header","default":""},"contract":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract","description":"The output conventions this response follows, e.g. niravi.contract/1.0 (box_n, contract words, place/1). Also sent as the Niravi-Contract header."},"rate_limit":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rate Limit"}},"type":"object","title":"Meta","description":"Best-effort request metadata attached to every successful envelope."},"MusicBody":{"properties":{"prompt":{"type":"string","title":"Prompt"},"durationSeconds":{"type":"integer","maximum":120.0,"minimum":5.0,"title":"Durationseconds","default":30}},"type":"object","required":["prompt"],"title":"MusicBody"},"MusicTrack":{"properties":{"id":{"type":"integer","title":"Id"},"video_id":{"type":"string","title":"Video Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"artist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist"},"album":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Album"},"start_time":{"type":"number","title":"Start Time"},"end_time":{"type":"number","title":"End Time"},"shazam_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shazam Id"},"apple_music_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apple Music Url"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"}},"type":"object","required":["id","video_id","start_time","end_time"],"title":"MusicTrack","description":"An identified music track. Song identification needs a licensed fingerprint\nprovider and Niravi has none, so assets indexed today have no tracks: their music\nis on the audio-segments and sound-events timelines."},"MusicTracksResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"tracks":{"items":{"$ref":"#/components/schemas/MusicTrack"},"type":"array","title":"Tracks"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["video_id","tracks","total"],"title":"MusicTracksResponse","description":"GET /videos/{id}/music-tracks payload."},"Pagination":{"properties":{"limit":{"type":"integer","title":"Limit","description":"Page size requested"},"offset":{"type":"integer","title":"Offset","description":"Offset into the full result set"},"total":{"type":"integer","title":"Total","description":"Total matching items across all pages"},"has_more":{"type":"boolean","title":"Has More","description":"True if more items exist beyond this page"}},"type":"object","required":["limit","offset","total","has_more"],"title":"Pagination","description":"Cursor for list endpoints that page (limit/offset)."},"PassageResponse":{"properties":{"idx":{"type":"integer","title":"Idx"},"text":{"type":"string","title":"Text"},"bbox":{"anyOf":[{"$ref":"#/components/schemas/AssetRegion"},{"type":"null"}]}},"type":"object","required":["idx","text"],"title":"PassageResponse","description":"One reading-order passage of a document page (asset_passages)."},"PersonPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name","description":"The person's name; \"\" clears it."},"hidden":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden","description":"Hide from (or show again in) the People list."},"cover_face_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Cover Face Id","description":"Lock the cover to one of their faces."}},"type":"object","title":"PersonPatch"},"Place":{"properties":{"v":{"type":"string","const":"place/1","title":"V","description":"The place format and its version. A reader ignores keys it does not know: a later place/1 minor may add some.","default":"place/1"},"video_id":{"type":"string","title":"Video Id"},"kind":{"anyOf":[{"type":"string","enum":["video","image","document"]},{"type":"null"}],"title":"Kind","description":"The asset kind."},"t0_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"T0 Ms","description":"Start, integer ms from the asset's start."},"t1_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"T1 Ms","description":"End, integer ms; null for a point."},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page","description":"1-based page (documents)."},"box_n":{"anyOf":[{"items":{"type":"number"},"type":"array","maxItems":4,"minItems":4},{"type":"null"}],"title":"Box N","description":"[x, y, w, h] normalized to the picture, top-left origin, 0..1; null when there is no box."},"uri":{"type":"string","title":"Uri","description":"<api>/v1/videos/<id> with a Media-Fragments-style fragment (t=, xywh=percent:) or page=; an identifier, not a playable URL: the fields are the contract."}},"type":"object","required":["video_id","uri"],"title":"Place","description":"place/1: where a result sits in an asset (niravi-schema formats/percept/1/places.py). A time span (t0_ms, t1_ms) OR\na page (documents), never both; neither = the whole asset (an image). `uri` is derived from the fields."},"RecallAskBody":{"properties":{"query":{"type":"string","title":"Query","description":"Question about this specific video","default":""},"max_tokens":{"type":"integer","title":"Max Tokens","description":"Answer-length budget in tokens","default":1024}},"type":"object","title":"RecallAskBody","description":"Body for POST /api/v1/recall/{video_id}/ask."},"RemoveBody":{"properties":{"face_ids":{"items":{"type":"string"},"type":"array","maxItems":1000,"minItems":1,"title":"Face Ids"},"reject":{"type":"boolean","title":"Reject","description":"Not this person: never put these faces back.","default":true}},"type":"object","required":["face_ids"],"title":"RemoveBody"},"SceneResponse":{"properties":{"scene_id":{"type":"string","title":"Scene Id"},"scene_index":{"type":"integer","title":"Scene Index"},"start_time":{"type":"number","title":"Start Time"},"end_time":{"type":"number","title":"End Time"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"scene_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scene Type"},"visual_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visual Style"},"visual_aid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visual Aid"},"depicted_concept":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Depicted Concept"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"on_screen_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"On Screen Text"},"num_people":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num People"},"face_cluster_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Face Cluster Ids"},"dominant_speaker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dominant Speaker Id"},"audio_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Type"},"source_pipeline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Pipeline"},"description_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Source"},"apple_scene_labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Apple Scene Labels"},"apple_scene_scores":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Apple Scene Scores"},"shot_scale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shot Scale"},"camera_angle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Angle"},"setting_indoor":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Setting Indoor"},"setting_daytime":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Setting Daytime"},"mood":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mood"},"split_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Split Reason"},"rep_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rep Id"}},"type":"object","required":["scene_id","scene_index","start_time","end_time"],"title":"SceneResponse"},"ScenesResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"scenes":{"items":{"$ref":"#/components/schemas/SceneResponse"},"type":"array","title":"Scenes"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["video_id","scenes","total"],"title":"ScenesResponse","description":"GET /videos/{id}/scenes payload."},"ScreenplayResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"screenplay":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screenplay"}},"additionalProperties":true,"type":"object","required":["video_id"],"title":"ScreenplayResponse","description":"GET /videos/{id}/screenplay payload. `screenplay` set for ?format=text;\ninteractive JSON mode returns an open-shaped dict (extra keys preserved)."},"SearchBody":{"properties":{"query":{"type":"string","title":"Query","description":"Natural-language search query","default":""},"video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Id","description":"Restrict search to a single video"},"limit":{"type":"integer","title":"Limit","description":"Maximum number of results","default":20},"moments_per_video":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Moments Per Video","description":"Up to this many moments per video (1-10), each a separate hit with its own timestamp; moments of one video closer than the moment gap are merged into one. Default 1: the single best moment per video. `limit` counts moments. Ignored with video_id (a within-video search already returns every matching moment).","default":1},"search_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Search Options","description":"DEPRECATED and ignored: accepted for compatibility, no option is read","deprecated":true},"rerank":{"type":"boolean","title":"Rerank","description":"DEPRECATED and ignored: no cross-encoder reranking runs on /api/v1/search","default":true,"deprecated":true},"workspace_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Workspace Ids","description":"Search across multiple workspaces and merge into one ranked list — each result carries its own workspace_id. Only workspaces this key can read are queried. Omit to search the single active workspace."},"engine":{"anyOf":[{"type":"string","enum":["arrow","classic"],"examples":["arrow"]},{"type":"null"}],"title":"Engine","description":"Search engine: 'arrow' (current, the Video Transformation Model: picture and caption vectors, plus a speech step, whole workspace and within one video: a spoken quote ranks the moment it was said first, as a `source: \"transcript\"` hit; searches everything it indexed, including images and document pages, with page / region / passage on each hit) or 'classic' (DEPRECATED: answers only for older libraries; removal will be announced in the changelog). Omit for the workspace's default (federated: each workspace's own). GET /api/v1/engines lists them. The response's `engine` says which one answered (null when no dense engine did) and `recipe` its recipe id; if the requested engine cannot serve, classic answers where the workspace holds classic-indexed videos, else the fallback tiers do (`engine` null, `source` \"rrf\" or \"lexical\"), and `engine_fallback` carries a code: <engine>_not_configured | _breaker_open | _not_ready | _partial | _recipe_mismatch | _no_active_leg | _timeout | _unavailable."}},"type":"object","title":"SearchBody","description":"Body for POST /api/v1/search."},"SearchResponse":{"properties":{"query":{"type":"string","title":"Query"},"results":{"items":{"$ref":"#/components/schemas/SearchResultResponse"},"type":"array","title":"Results"},"total":{"type":"integer","title":"Total"},"workspaces":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Workspaces"},"coverage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Coverage"},"degraded":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Degraded"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"POST /search: which tier ranked the results: \"semantic\" (a dense engine), \"rrf\" (the multimodal fallback) or \"lexical\" (keyword). Not set on a federated search: each workspace's is under `engines`."},"unenforced_filters":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Unenforced Filters"},"signals":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Signals"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine"},"engine_fallback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Fallback"},"recipe":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipe"},"engines":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Engines"},"no_match":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"No Match","description":"`arrow`, whole workspace: true when nothing cleared the relevance floor and no spoken quote matched — `results` is empty because nothing in the library matches the query (not because a backend is down: see `engine_fallback`). false when the floor ran and did not empty the answer; null where no floor applied (within one video, classic, a fallback tier, `min_relevance` 0)."}},"type":"object","required":["query","results","total"],"title":"SearchResponse"},"SearchResultResponse":{"properties":{"frame_id":{"type":"string","title":"Frame Id"},"video_id":{"type":"string","title":"Video Id"},"video_filename":{"type":"string","title":"Video Filename"},"timestamp":{"type":"number","title":"Timestamp"},"score":{"type":"number","title":"Score","description":"Relevance in 0..1, monotone in rank (it orders the hits; for how strong one hit is on its own, read `strength`). `arrow`, whole workspace: the best hit reads its own strength (its `sim` against a full-strength match), so a weak best match reads low rather than 1.0, and every other hit sits under it by its share of the best fused score (a hit at the bottom of a small pool is scored by its own `sim`, not 0); hits under the relevance floor are not returned (see `no_match`). When a spoken quote matches, its \"transcript\" hits score 0.95 or more and every other hit is scaled by 0.94, below them — within one video too; two words of the query said in other words in one transcript segment (not the phrase) score 0.70, among the other hits. Within one video (video_id): the engine's own, absolute score."},"raw_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Raw Score","description":"The engine's own score before normalisation (the fused score; the keyword rank on the lexical fallback; for a spoken-quote \"transcript\" hit, its transcript segment's text-match rank); equals score where none was applied."},"sim":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sim","description":"`arrow` dense hits, whole workspace: the absolute similarity behind the hit (its video's best match per signal, floor-calibrated, 0..1; a video's further moments scaled down by their own strength), independent of the rest of the library; strong matches sit around 0.2. The relevance floor and the displayed score are measured on it. Null for transcript, keyword, within-video and classic hits."},"strength":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Strength","description":"How strong this hit is on its own, 0..1, for a badge (it never orders the hits: `score` does). `arrow` dense hits, whole workspace: `sim` against a full-strength match (about 0.2), capped at 1; a spoken-quote \"transcript\" hit: its score (0.95 or more said as the query, 0.70 for two of its words said in other words). Null where the engine has no absolute strength (keyword, within-video dense, classic and fallback hits)."},"start":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Start","description":"Start of the matched span in seconds (= timestamp): the scene for a visual hit, the transcript segment for a spoken quote."},"end":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"End","description":"End of the matched span in seconds (a quote that runs into the next transcript segment ends with it); null when the engine has only an instant."},"frame_url":{"type":"string","title":"Frame Url"},"source":{"type":"string","title":"Source","description":"What matched. POST /search: \"transcript\" when the words were said, else \"visual\" (the picture or its caption). With `arrow`, a text search (the whole workspace or one video) ranks the transcript segment that holds a quote of two or more words (stopwords aside) first, at the time it was said; a keyword-fallback transcript match is \"transcript\" too. POST /search/{search_type}: with `arrow` the type (character, location, music, emotion). On the RRF fallback (response `source` \"rrf\") every hit reads \"visual\", whatever matched.","default":"visual"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"The text behind the hit: on a \"transcript\" hit the spoken line (two segments joined when the quote runs across them); else, on POST /search, the matched text when the tier returns one (keyword, RRF), otherwise the caption of the scene the moment falls in, and on POST /search/{search_type} the caption or a short label of what matched (e.g. \"Sound: applause\"). Null when there is none."},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"signals":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Signals"},"agreement":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agreement"},"asset_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Kind"},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"},"region":{"anyOf":[{"$ref":"#/components/schemas/AssetRegion"},{"type":"null"}]},"passage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Passage"},"place":{"anyOf":[{"$ref":"#/components/schemas/Place"},{"type":"null"}],"description":"Where the hit is, as one place/1 object: the span of a video hit, the page of a document hit, the box of an image or page hit. Null when the asset kind could not be read or the fields form no place."}},"type":"object","required":["frame_id","video_id","video_filename","timestamp","score","frame_url"],"title":"SearchResultResponse"},"ShotMetadataResponse":{"properties":{"metadata_id":{"type":"string","title":"Metadata Id"},"video_id":{"type":"string","title":"Video Id"},"scene_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scene Id"},"timestamp":{"type":"number","title":"Timestamp"},"shot_scale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shot Scale"},"camera_angle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Camera Angle"},"shot_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shot Type"},"num_people":{"type":"integer","title":"Num People","default":0},"setting_indoor":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Setting Indoor"},"setting_daytime":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Setting Daytime"},"objects":{"items":{"type":"string"},"type":"array","title":"Objects","default":[]},"actions":{"items":{"type":"string"},"type":"array","title":"Actions","default":[]},"mood":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mood"},"visible_text":{"type":"string","title":"Visible Text","default":""},"frame_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frame Url"}},"type":"object","required":["metadata_id","video_id","timestamp"],"title":"ShotMetadataResponse"},"ShotsResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"shots":{"items":{"$ref":"#/components/schemas/ShotMetadataResponse"},"type":"array","title":"Shots"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["video_id","shots","total"],"title":"ShotsResponse","description":"GET /videos/{id}/shots payload."},"SoundEvent":{"properties":{"id":{"type":"integer","title":"Id"},"video_id":{"type":"string","title":"Video Id"},"start_time":{"type":"number","title":"Start Time"},"end_time":{"type":"number","title":"End Time"},"label":{"type":"string","title":"Label"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"confidence":{"type":"number","title":"Confidence"},"source_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Model"},"raw_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Label"}},"type":"object","required":["id","video_id","start_time","end_time","label","confidence"],"title":"SoundEvent","description":"A detected non-speech sound event."},"SoundEventsResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"events":{"items":{"$ref":"#/components/schemas/SoundEvent"},"type":"array","title":"Events"},"total":{"type":"integer","title":"Total"},"summary":{"additionalProperties":{"$ref":"#/components/schemas/AudioTypeStat"},"type":"object","title":"Summary","default":{}}},"type":"object","required":["video_id","events","total"],"title":"SoundEventsResponse","description":"GET /videos/{id}/sounds (and /sound-events) payload."},"Speaker":{"properties":{"speaker_id":{"type":"string","title":"Speaker Id"},"video_id":{"type":"string","title":"Video Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"segment_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Segment Count"},"total_duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Duration"},"segments":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Segments","default":[]}},"type":"object","required":["speaker_id","video_id"],"title":"Speaker","description":"A diarized speaker with timeline segments."},"SpeakersResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"speakers":{"items":{"$ref":"#/components/schemas/Speaker"},"type":"array","title":"Speakers"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["video_id","speakers","total"],"title":"SpeakersResponse","description":"GET /videos/{id}/speakers payload."},"StoryboardResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"total_scenes":{"type":"integer","title":"Total Scenes","default":0},"panels":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Panels","default":[]}},"type":"object","required":["video_id"],"title":"StoryboardResponse","description":"GET /videos/{id}/storyboard payload."},"SubtitleResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"format":{"type":"string","title":"Format"},"content":{"type":"string","title":"Content"}},"type":"object","required":["video_id","format","content"],"title":"SubtitleResponse","description":"GET /videos/{id}/subtitles.srt|.vtt payload: the JSON form (default).\n`?format=file` (or an Accept naming application/x-subrip / text/vtt /\ntext/plain) returns the file itself as an attachment instead."},"TranscriptResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"segments":{"items":{"$ref":"#/components/schemas/TranscriptionSegmentResponse"},"type":"array","title":"Segments"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["video_id","segments","total"],"title":"TranscriptResponse","description":"GET /videos/{id}/transcript payload."},"TranscriptionSegmentResponse":{"properties":{"segment_id":{"type":"string","title":"Segment Id"},"start_time":{"type":"number","title":"Start Time"},"end_time":{"type":"number","title":"End Time"},"text":{"type":"string","title":"Text"},"speaker_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Label"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"inferred_speaker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inferred Speaker"},"inferred_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Inferred Confidence"},"words":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Words","description":"The segment's words, seconds from the video start: {text, start, end, confidence, speaker, interpolated} (the output contract's word). /transcript sends them with include=words (since 1.4.0)."}},"type":"object","required":["segment_id","start_time","end_time","text"],"title":"TranscriptionSegmentResponse"},"TtsBody":{"properties":{"input":{"type":"string","title":"Input"},"voice":{"type":"string","title":"Voice","default":"alloy"}},"type":"object","required":["input"],"title":"TtsBody"},"UploadAck":{"properties":{"video_id":{"type":"string","title":"Video Id"},"status":{"type":"string","title":"Status"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind","description":"\"video\" | \"image\" | \"document\", from the file extension. Images and documents run on the `arrow` engine like videos; a document's duration is 1 until its pages are counted"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"},"eta_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Eta Seconds","description":"An ESTIMATE of the seconds until the upload is searchable: the work queued ahead of it on its engine (same or higher priority) spread over the live workers, plus its own processing (a video about 0.4 x duration; an image or a document well under a minute). Not a promise: poll GET /api/v1/videos/{video_id} for status"},"pipeline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline","description":"The engine the upload was queued on: always \"arrow\", the only engine. null only for a sovereign video, which is processed on-device"},"index_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Index Options","description":"The resolved index options this upload will run with (upload > workspace > deployment default; GET /api/v1/index-options)"},"index_options_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Index Options Note","description":"Set only when a sovereign video was sent `options`: it is processed on-device, without them"}},"type":"object","required":["video_id","status"],"title":"UploadAck","description":"POST /videos payload — enqueue acknowledgement (not the full video row).\n\nEvery upload is queued on the `arrow` engine (``pipeline``); poll\nGET /api/v1/videos/{video_id} for its status."},"VLMDescriptionResponse":{"properties":{"description_id":{"type":"string","title":"Description Id"},"timestamp":{"type":"number","title":"Timestamp"},"description":{"type":"string","title":"Description"},"scene_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scene Id"},"frame_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frame Url"}},"type":"object","required":["description_id","timestamp","description"],"title":"VLMDescriptionResponse"},"VideoDetailResponse":{"properties":{"video":{"$ref":"#/components/schemas/VideoResponse"},"scenes":{"items":{"$ref":"#/components/schemas/SceneResponse"},"type":"array","title":"Scenes","default":[]},"transcription":{"items":{"$ref":"#/components/schemas/TranscriptionSegmentResponse"},"type":"array","title":"Transcription","default":[]},"vlm_descriptions":{"items":{"$ref":"#/components/schemas/VLMDescriptionResponse"},"type":"array","title":"Vlm Descriptions","default":[]},"classification":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Classification"},"index":{"anyOf":[{"$ref":"#/components/schemas/IndexInfo"},{"type":"null"}]}},"type":"object","required":["video"],"title":"VideoDetailResponse"},"VideoGenBody":{"properties":{"prompt":{"type":"string","title":"Prompt"},"seconds":{"type":"integer","maximum":12.0,"minimum":2.0,"title":"Seconds","default":4},"size":{"type":"string","title":"Size","default":"1280x720"},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imageurl"}},"type":"object","required":["prompt"],"title":"VideoGenBody"},"VideoResponse":{"properties":{"video_id":{"type":"string","title":"Video Id"},"filename":{"type":"string","title":"Filename"},"default_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Name"},"duration_seconds":{"type":"number","title":"Duration Seconds"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"format":{"type":"string","title":"Format"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"fps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fps"},"created_at":{"type":"string","title":"Created At"},"processed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Processed At"},"status":{"type":"string","title":"Status"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"Stable reason code when status is failed: upload_never_completed | upload_failed | source_not_found | source_unavailable | no_video_stream | unreadable_document | no_frames | timeout | cancelled | arrow_sovereign_unsupported | processing_failed"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message","description":"A short, client-safe sentence; never worker output."},"frame_count":{"type":"integer","title":"Frame Count","default":0},"scene_count":{"type":"integer","title":"Scene Count","default":0},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"tags":{"type":"string","title":"Tags","default":"[]"},"ai_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ai Tags"},"source":{"anyOf":[{"$ref":"#/components/schemas/VideoSourceResponse"},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"summary_source_pipeline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Source Pipeline"},"nino_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legacy tier","description":"DEPRECATED legacy field: null for every video, image and document indexed today; read `index` instead.","deprecated":true},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"page_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Count"},"stages_failed":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stages Failed","description":"Stages of the last index run that failed (e.g. [\"labels\", \"ocr\"]); the rest of the index is searchable. null when the asset has no index report (legacy-indexed, or not indexed yet). Reasons: GET /videos/{id} index.report"},"degraded":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Degraded","description":"true when stages_failed is not empty: the asset is searchable but missing what those stages add. null when there is no index report"}},"type":"object","required":["video_id","filename","duration_seconds","file_size_bytes","format","created_at","status"],"title":"VideoResponse"},"VideoSourceResponse":{"properties":{"platform":{"type":"string","title":"Platform"},"source_id":{"type":"string","title":"Source Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"upload_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upload Date"},"views":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Views"},"likes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Likes"},"comments":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Comments"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"}},"type":"object","required":["platform","source_id"],"title":"VideoSourceResponse","description":"Upstream-platform metadata (YouTube, TikTok, etc.) LEFT-JOINed\nfrom ytdlp.videos on (source_platform, source_id). None for uploads."}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"`X-API-Key: nv_…`, the same API key in its own header."},"HTTPBearer":{"type":"http","scheme":"bearer","description":"`Authorization: Bearer <token>`. The token is an API key (`nv_…`, created on platform.niravi.io › API keys) or, in the Playground and Niravi's own apps, your signed-in session token. GET /api/v1/workspaces lists the workspaces the token can reach. Omit `X-Workspace-Id`: a key uses its home workspace and a signed-in session uses your home workspace. Set it to act in another workspace you belong to, or to read a demo."}},"headers":{"RetryAfter":{"description":"Seconds to wait before retrying (RFC 9110). On a 429 it counts to the reset of the window that was spent.","schema":{"type":"integer","minimum":1}},"RateLimit":{"description":"IETF RateLimit field (draft-ietf-httpapi-ratelimit-headers) for the policy nearest exhaustion: `\"min\";r=7;t=42` gives the remaining requests `r` and the seconds to reset `t`.","schema":{"type":"string"}},"RateLimitPolicy":{"description":"IETF RateLimit-Policy field: every policy on this route, for example `\"min\";q=10;w=60, \"day\";q=100;w=86400`.","schema":{"type":"string"}},"XRateLimitLimit":{"description":"Request limit of the window nearest exhaustion (minute, or day once the day has fewer requests left).","schema":{"type":"integer"}},"XRateLimitRemaining":{"description":"Requests left in the window nearest exhaustion.","schema":{"type":"integer"}},"XRateLimitReset":{"description":"Unix time when the window nearest exhaustion resets.","schema":{"type":"integer"}}}},"servers":[{"url":"https://api.niravi.io"}]}