{"openapi":"3.1.0","info":{"title":"api.video (BYOK) API","version":"0.1.0","description":"api.video (BYOK) lets an AI assistant read your own api.video data through the api.video API with a key you supply (production API key (sent as the Basic auth user name)). Read-only: 10 tools (list_videos, get_video, get_video_status, list_video_captions, list_live_streams, get_live_stream, list_players, list_watermarks, get_metric_total, get_metric_timeseries). The BYOK key travels with each...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-apivideo.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-apivideo/docs"},"termsOfService":"https://connectorbay.com/byok-apivideo/terms"},"servers":[{"url":"https://byok-apivideo.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-apivideo/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_videos":{"post":{"operationId":"list_videos","summary":"List the videos of the workspace with title, description, tags, publish status and playback URLs, optionally filtered an","description":"List the videos of the workspace with title, description, tags, publish status and playback URLs, optionally filtered and sorted. Use for \"Which videos do I have on api.video\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"title":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only videos whose title matches this text.","title":"Title"},"description":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only videos whose description matches this text.","title":"Description"},"live_stream_id":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only videos recorded from this live stream ID.","title":"Live Stream Id"},"sort_by":{"anyOf":[{"enum":["title","createdAt","publishedAt","updatedAt"],"type":"string"},{"type":"null"}],"default":null,"description":"Field to sort by: title, createdAt, publishedAt, updatedAt.","title":"Sort By"},"sort_order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction: asc or desc.","title":"Sort Order"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Results per page (1 to 100, default 25).","title":"Page Size"}},"title":"list_videosArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_video":{"post":{"operationId":"get_video","summary":"Get one video's title, description, tags, publish and update times, player and playback URLs. Use for \"Show details of a","description":"Get one video's title, description, tags, publish and update times, player and playback URLs. Use for \"Show details of api.video video vi4blUQJFrYWbaG44NChkH27\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"video_id":{"description":"The video ID (for example vi4blUQJFrYWbaG44NChkH27), from list_videos.","maxLength":200,"title":"Video Id","type":"string"}},"required":["video_id"],"title":"get_videoArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_video_status":{"post":{"operationId":"get_video_status","summary":"Get a video's upload and encoding status: whether it is playable, available qualities and media metadata (duration, bitr","description":"Get a video's upload and encoding status: whether it is playable, available qualities and media metadata (duration, bitrate, codecs). Use for \"Is api.video video vi4blUQJFrYWbaG44NChkH27 done encoding\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"video_id":{"description":"The video ID (for example vi4blUQJFrYWbaG44NChkH27), from list_videos.","maxLength":200,"title":"Video Id","type":"string"}},"required":["video_id"],"title":"get_video_statusArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_video_captions":{"post":{"operationId":"list_video_captions","summary":"List the caption tracks of one video with language and default flag. Use for \"What captions does api.video video vi4blUQ","description":"List the caption tracks of one video with language and default flag. Use for \"What captions does api.video video vi4blUQJFrYWbaG44NChkH27 have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"video_id":{"description":"The video ID (for example vi4blUQJFrYWbaG44NChkH27), from list_videos.","maxLength":200,"title":"Video Id","type":"string"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Results per page (1 to 100, default 25).","title":"Page Size"}},"required":["video_id"],"title":"list_video_captionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_live_streams":{"post":{"operationId":"list_live_streams","summary":"List live streams with name, broadcasting flag, player and playback URLs (the stream key is not returned). Use for \"Is a","description":"List live streams with name, broadcasting flag, player and playback URLs (the stream key is not returned). Use for \"Is any api.video live stream broadcasting right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only streams whose name contains this text.","title":"Name"},"sort_by":{"anyOf":[{"enum":["name","createdAt","updatedAt"],"type":"string"},{"type":"null"}],"default":null,"description":"Field to sort by: name, createdAt, updatedAt.","title":"Sort By"},"sort_order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction: asc or desc.","title":"Sort Order"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Results per page (1 to 100, default 25).","title":"Page Size"}},"title":"list_live_streamsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_live_stream":{"post":{"operationId":"get_live_stream","summary":"Get one live stream with broadcasting state, restream targets' names and playback URLs (the stream key is not returned).","description":"Get one live stream with broadcasting state, restream targets' names and playback URLs (the stream key is not returned). Use for \"Show api.video live stream li400mYKSgQ6xs7taUeSaEKr\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"live_stream_id":{"description":"The live stream ID, from list_live_streams.","maxLength":200,"title":"Live Stream Id","type":"string"}},"required":["live_stream_id"],"title":"get_live_streamArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_players":{"post":{"operationId":"list_players","summary":"List player themes with name, control and autoplay settings and update time. Use for \"Which player themes do I have on a","description":"List player themes with name, control and autoplay settings and update time. Use for \"Which player themes do I have on api.video\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"sort_by":{"anyOf":[{"enum":["name","createdAt","updatedAt"],"type":"string"},{"type":"null"}],"default":null,"description":"Field to sort by: name, createdAt, updatedAt.","title":"Sort By"},"sort_order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction: asc or desc.","title":"Sort Order"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Results per page (1 to 100, default 25).","title":"Page Size"}},"title":"list_playersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_watermarks":{"post":{"operationId":"list_watermarks","summary":"List the watermark images defined in the workspace. Use for \"Which watermarks are set up on api.video\".","description":"List the watermark images defined in the workspace. Use for \"Which watermarks are set up on api.video\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Results per page (1 to 100, default 25).","title":"Page Size"}},"title":"list_watermarksArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_metric_total":{"post":{"operationId":"get_metric_total","summary":"Get one aggregated viewing metric (plays, impressions, watch time, concurrent viewers...) for a period. Use for \"How man","description":"Get one aggregated viewing metric (plays, impressions, watch time, concurrent viewers...) for a period. Use for \"How many plays did my api.video videos get this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"metric":{"description":"Metric: play, start, end, impression, impression-time, watch-time, ccv or view.","enum":["play","start","end","impression","impression-time","watch-time","ccv","view"],"title":"Metric","type":"string"},"aggregation":{"description":"How to aggregate: count, rate, total, average, sum, peak or live (not every metric supports every aggregation).","enum":["count","rate","total","average","sum","peak","live"],"title":"Aggregation","type":"string"},"window_start":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the analytics period, ISO 8601 (default: a recent window chosen by the API).","title":"Window Start"},"window_end":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"End of the analytics period, ISO 8601.","title":"Window End"}},"required":["metric","aggregation"],"title":"get_metric_totalArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_metric_timeseries":{"post":{"operationId":"get_metric_timeseries","summary":"Get a viewing metric over time (per minute, hour or day) for a period. Use for \"Show daily plays on api.video for the pa","description":"Get a viewing metric over time (per minute, hour or day) for a period. Use for \"Show daily plays on api.video for the past two weeks\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"metric":{"description":"Metric: play, play-rate, start, end, impression, ccv-peak, ccv-average or view.","enum":["play","play-rate","start","end","impression","ccv-peak","ccv-average","view"],"title":"Metric","type":"string"},"window_start":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the analytics period, ISO 8601 (default: a recent window chosen by the API).","title":"Window Start"},"window_end":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"End of the analytics period, ISO 8601.","title":"Window End"},"interval":{"anyOf":[{"enum":["minute","hour","day"],"type":"string"},{"type":"null"}],"default":null,"description":"Granularity: minute, hour or day.","title":"Interval"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Results per page (1 to 100, default 25).","title":"Page Size"}},"required":["metric"],"title":"get_metric_timeseriesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}