Query structured spec data via REST or MCP. Get exactly what your agent needs.
https://ws.api.video
https://sandbox.api.video
No endpoints found for this provider.
403-error-schema
{
"type": "object",
"title": "403 Forbidden",
"properties": {
"name": {
"type": "string",
"nullable": true,
"description": "The name of the parameter that caused the error."
},
"type": {
"type": "string",
"description": "A link to the error documentation."
},
"title": {
"type": "string",
"description": "A description of the error that occurred."
},
"status": {
"type": "integer",
"description": "The HTTP status code."
}
}
}
access-token
{
"type": "object",
"title": "AccessToken",
"example": {
"expires_in": 3600,
"token_type": "qui nulla l",
"access_token": "est",
"refresh_token": "cillum"
},
"properties": {
"expires_in": {
"type": "integer",
"description": "Lists the time in seconds when your access token expires. It lasts for one hour."
},
"token_type": {
"type": "string",
"default": "bearer",
"description": "The type of token you have."
},
"access_token": {
"type": "string",
"example": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjUyZWM4NWUyMjFkODZjOWI0NDQ5NzBhMjQwMzUyOWQ4MDQyNGQ3ZmJjYjFlYWM2MjVlM2VkMjI2YWRlNTcxMDY2NDUyZDc0NjdhN2E4NjI0In0.eyJhdWQiOiJsaWJjYXN0IiwianRpIjoiNTJlYzg1ZTIyMWQ4NmM5YjQ0NDk3MGEyNDAzNTI5ZDgwNDI0ZDdmYmNiMWVhYzYyNWUzZWQyMjZhZGU1NzEwNjY0NTJkNzQ2N2E3YTg2MjQiLCJpYXQiOjE1MjUyNzYxNDcsIm5iZiI6MTUyNTI3NjE0NywiZXhwIjoxNTI1Mjc5NzQ3LCJzdWIiOiJ1c01vbml0b3IiLCJzY29wZXMiOlsibW9uaXRvci5saWJjYXN0LmNvbSJdLCJjb250ZXh0Ijp7InVzZXIiOiJ1c01vbml0b3IiLCJwcm9qZWN0IjoicHJNb25pdG9yIiwibWVtYmVyIjoibWVNb25pdG9yIn19.rUvishDNyJLNlI4W5VmguNecm5KD2uZgPkKJQbaqw-cJbSrVxkSbiKYtk_E3cz3WT7-IS2yFTsYN3uIo5Rbit8_HftweyEp2bdBRI8yjR6oZZ1sNJJXswISN1i2kk4r-aaxu7Xxf_LtsjOMUj_YZsvcc2nqBXPKjHbJCJryx3DDJaIcymOqao7nhQaCCQyrQooAXNTYs4E9fWN1dC_x2O-zok5TuG-xhEW-umwxfSUMWNgSTkz38ACceQ0PCJSgB3jqjDH4MwC7B3ppEPZuK5E6JhKeyRlalswRyYq3UQPnVeMTam7YQHsuTgbehF6WySW8i44o7V_MCe9hjPdp-WA",
"description": "The access token containing security credentials allowing you to acccess the API. The token lasts for one hour."
},
"refresh_token": {
"type": "string",
"example": "def50200a28d88fb9aaa921be78eeb5604b071101a334899a7d5fc7492cf8ea752962ddc8961fe5c126101d4ecacd980396eb2fd494995b812dffcb98256c4277f790d1f658fc2d2e34f350740544e5232d69d68d34c648271d706c5e7049adac0b1832d0fdf71809715cc7e97fa63f65966deadb501a55ff469b0fd23a637cb6acbe9d9b8594a17f09efc2efeed82984764a0065d5e29c950c7b081a61ba2aaa192be3085c400ee37eac50fa9320ce2cfe8916c8165418d23e9f91b6a5c8515e1d74ee193a5a1ca01954fbff27361c20184240be2359e0afbed0bf1c762cf872450b5e8b5d4704f4fd9583e4470adc98409dd42965709712806bd9019378a72eea0b4912ce684ffd833db5806ab84174f905db2a75380071d004615c944bb8f8c4045cce7234c2be9a2330522cf7f067b8e58f57cffb6edb4b7ef91313e12bcde47e5e76ceee7fa52990132288f345d33ed917ae4fd54b7284f8964d898e97e1ee3bc4157f75d7fee63976e4be66ac1ec32ef74afa533f0eb593523f226cbec57d196ac8962",
"description": "A token you can use to get the next access token when your current access token expires."
}
}
}
additional-bad-request-errors
{
"type": "object",
"title": "BadRequest",
"properties": {
"name": {
"type": "string",
"description": "The name of the parameter that caused the error."
},
"type": {
"type": "string",
"description": "A link to the error documentation."
},
"title": {
"type": "string",
"description": "A description of the error that occurred."
},
"status": {
"type": "integer",
"description": "The HTTP status code."
}
}
}
analytics-data
{
"type": "object",
"title": "Play event analytics data",
"required": [
"value",
"plays"
],
"properties": {
"plays": {
"type": "integer",
"example": 100,
"description": "Shows the number of play events for one specific `value`."
},
"value": {
"type": "string",
"example": "vi3q7HxhApxRF1c8F8r6VeaI",
"description": "Shows a value for the property you have specified for `dimension` in your request. For example, if you requested `dimension=videoId`, each `value` field in the response returns a different videoId."
}
}
}
analytics-plays-400-error
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the parameter that caused the error."
},
"type": {
"type": "string",
"description": "A link to the error documentation."
},
"title": {
"type": "string",
"description": "A description of the error that occurred."
},
"detail": {
"type": "string",
"description": "A solution for the error."
},
"status": {
"type": "integer",
"description": "The HTTP status code."
}
}
}
analytics-plays-response
{
"type": "object",
"title": "Play event analytics response",
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/analytics-data"
}
},
"pagination": {
"$ref": "#/components/schemas/pagination"
}
}
}
authenticate-payload
{
"type": "object",
"title": "ApiKey",
"example": {
"apiKey": "9VxMaPgsaFg7EBqmuspSzF7"
},
"required": [
"apiKey"
],
"properties": {
"apiKey": {
"type": "string",
"description": "Your account API key. You can use your sandbox API key, or you can use your production API key."
}
}
}
bad-request
{
"type": "object",
"title": "BadRequest",
"properties": {
"name": {
"type": "string",
"description": "The name of the parameter that caused the error."
},
"type": {
"type": "string",
"description": "A link to the error documentation."
},
"title": {
"type": "string",
"description": "A description of the error that occurred."
},
"status": {
"type": "integer",
"description": "The HTTP status code."
},
"problems": {
"type": "array",
"items": {
"$ref": "#/components/schemas/additional-bad-request-errors"
},
"description": "Returns any additional problems in the request in an array of objects.",
"uniqueItems": true
}
}
}
bytes-range
{
"type": "object",
"title": "BytesRange",
"properties": {
"to": {
"type": "integer",
"example": 9999,
"description": "The ending point for the range of bytes for a chunk of a video."
},
"from": {
"type": "integer",
"example": 0,
"description": "The starting point for the range of bytes for a chunk of a video."
},
"total": {
"type": "integer",
"example": 10000,
"description": "The total number of expected bytes."
}
}
}
caption
{
"type": "object",
"title": "Caption",
"properties": {
"src": {
"type": "string",
"example": "https://cdn.api.video/vod/vi1111DinStg3oBbN79GklWS/captions/sr-Cyrl.vtt",
"description": "A direct URL to the uploaded caption file."
},
"uri": {
"type": "string",
"example": "/videos/vi1111DinStg3oBbN79GklWS/captions/sr-Cyrl",
"description": "The unique resource identifier of the uploaded caption."
},
"default": {
"type": "boolean",
"default": false,
"example": false,
"description": "Whether you will have subtitles or not. True for yes you will have subtitles, false for no you will not have subtitles."
},
"srclang": {
"type": "string",
"example": "sr-Cyrl",
"description": "Indicates the language of the uploaded caption file using IETF language tags."
},
"languageName": {
"type": "string",
"example": "српски (ћирилица)",
"description": "Returns the native name of the caption language in UTF-8 encoding."
}
}
}
captions-list-response
{
"type": "object",
"title": "VideoCaptions",
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/caption"
}
},
"pagination": {
"$ref": "#/components/schemas/pagination"
}
}
}
captions-update-payload
{
"type": "object",
"title": "CaptionsUpdatePayload",
"properties": {
"default": {
"type": "boolean"
}
}
}
captions-upload-payload
{
"type": "object",
"title": "CaptionsUploadPayload",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary",
"description": "The video text track (VTT) you want to upload."
}
}
}
chapter
{
"type": "object",
"title": "Chapter",
"properties": {
"src": {
"type": "string",
"example": "https://cdn.api.video/vod/vi3N6cDinStg3oBbN79GklWS/chapters/fr.vtt",
"description": "The link to your VTT file, which contains your chapters information for the video."
},
"uri": {
"type": "string"
},
"language": {
"type": "string"
}
}
}
chapters-list-response
{
"type": "object",
"title": "VideoChapters",
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/chapter"
}
},
"pagination": {
"$ref": "#/components/schemas/pagination"
}
}
}
chapters-update-payload
{
"type": "object",
"title": "ChaptersUpdatePayload",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary",
"description": "The VTT file describing the chapters you want to upload."
}
}
}
link
{
"type": "object",
"properties": {
"rel": {
"type": "string"
},
"uri": {
"type": "string"
}
}
}
live-stream
{
"type": "object",
"title": "LiveStream",
"required": [
"liveStreamId",
"restreams"
],
"properties": {
"name": {
"type": "string",
"example": "My Live Stream",
"description": "The name of your live stream."
},
"assets": {
"$ref": "#/components/schemas/live-stream-assets"
},
"public": {
"type": "boolean",
"example": true,
"description": "Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/delivery-analytics/video-privacy-access-management)."
},
"playerId": {
"type": "string",
"example": "pl45d5vFFGrfdsdsd156dGhh",
"description": "The unique identifier for the player."
},
"createdAt": {
"type": "string",
"format": "date-time",
"example": "2020-01-31T10:17:47+00:00",
"description": "When the player was created, presented in ISO-8601 format."
},
"restreams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/restreams-response-object"
},
"description": "Returns the list of RTMP restream destinations."
},
"streamKey": {
"type": "string",
"example": "dw-dew8-q6w9-k67w-1ws8",
"description": "The unique, private stream key that you use to begin streaming."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"example": "2020-01-31T10:18:47+00:00",
"description": "When the player was last updated, presented in ISO-8601 format."
},
"broadcasting": {
"type": "boolean",
"example": true,
"description": "Whether or not you are broadcasting the live video you recorded for others to see. True means you are broadcasting to viewers, false means you are not."
},
"liveStreamId": {
"type": "string",
"example": "li400mYKSgQ6xs7taUeSaEKr",
"description": "The unique identifier for the live stream. Live stream IDs begin with \"li.\""
}
}
}
live-stream-assets
{
"type": "object",
"title": "LiveStreamAssets",
"properties": {
"hls": {
"type": "string",
"format": "uri",
"example": "https://live.api.video/li4pqNqGUkhKfWcBGpZVLRY5.m3u8",
"description": "The http live streaming (HLS) link for your live video stream."
},
"iframe": {
"type": "string",
"example": "<iframe src=\\\"https://embed.api.video/live/li4pqNqGUkhKfWcBGpZVLRY5\\\" width=\\\"100%\\\" height=\\\"100%\\\" frameborder=\\\"0\\\" scrolling=\\\"no\\\" allowfullscreen=\\\"\\\"></iframe>",
"description": "The embed code for the iframe containing your live video stream."
},
"player": {
"type": "string",
"format": "uri",
"example": "https://embed.api.video/live/li400mYKSgQ6xs7taUeSaEKr",
"description": "A link to the video player that is playing your live stream."
},
"thumbnail": {
"type": "string",
"format": "uri",
"example": "https://live.api.video/li400mYKSgQ6xs7taUeSaEKr/thumbnail.jpg",
"description": "A link to the thumbnail for your video."
}
}
}
live-stream-creation-payload
{
"type": "object",
"title": "LiveStreamCreationPayload",
"example": {
"name": "Test live",
"playerId": "pl4f4ferf5erfr5zed4fsdd",
"restreams": [
{
"name": "YouTube",
"serverUrl": "rtmp://youtube.broadcast.example.com",
"streamKey": "dw-dew8-q6w9-k67w-1ws8"
},
{
"name": "Twitch",
"serverUrl": "rtmp://twitch.broadcast.example.com",
"streamKey": "dw-dew8-q6w9-k67w-1ws8"
}
]
},
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"example": "My Live Stream Video",
"description": "Add a name for your live stream here."
},
"public": {
"type": "boolean",
"description": "Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/delivery-analytics/video-privacy-access-management)."
},
"playerId": {
"type": "string",
"example": "pl4f4ferf5erfr5zed4fsdd",
"description": "The unique identifier for the player."
},
"restreams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/restreams-request-object"
},
"maxItems": 5,
"description": "Use this parameter to add, edit, or remove RTMP services where you want to restream a live stream. The list can only contain up to 5 destinations."
}
}
}
live-stream-list-response
{
"type": "object",
"title": "LiveStreams",
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/live-stream"
}
},
"pagination": {
"$ref": "#/components/schemas/pagination"
}
}
}
live-stream-session
{
"type": "object",
"title": "LiveStreamSession",
"properties": {
"os": {
"$ref": "#/components/schemas/video-session-os"
},
"client": {
"$ref": "#/components/schemas/live-stream-session-client"
},
"device": {
"$ref": "#/components/schemas/live-stream-session-device"
},
"session": {
"$ref": "#/components/schemas/live-stream-session-session"
},
"location": {
"$ref": "#/components/schemas/live-stream-session-location"
},
"referrer": {
"$ref": "#/components/schemas/live-stream-session-referrer"
}
}
}
live-stream-session-client
{
"type": "object",
"title": "LiveStreamSessionClient",
"properties": {
"name": {
"type": "string",
"example": "Firefox",
"description": "The name of the browser used to view the live stream session."
},
"type": {
"type": "string",
"example": "browser",
"description": "The type of client used to view the live stream session."
},
"version": {
"type": "string",
"example": "67.0",
"description": "The version of the browser used to view the live stream session."
}
},
"description": "What kind of browser the viewer is using for the live stream session."
}
live-stream-session-device
{
"type": "object",
"title": "LiveStreamSessionDevice",
"properties": {
"type": {
"type": "string",
"example": "desktop",
"description": "What the type is like desktop, laptop, mobile."
},
"model": {
"type": "string",
"example": "unknown",
"description": "The specific model of the device, if known."
},
"vendor": {
"type": "string",
"example": "Dell",
"description": "If known, what the brand of the device is, like Apple, Dell, etc."
}
},
"description": "What type of device the user is on when in the live stream session."
}
live-stream-session-location
{
"type": "object",
"title": "LiveStreamSessionLocation",
"properties": {
"city": {
"type": "string",
"example": "Paris",
"description": "The city of the viewer of the live stream."
},
"country": {
"type": "string",
"example": "France",
"description": "The country of the viewer of the live stream."
}
},
"description": "The location of the viewer of the live stream."
}
live-stream-session-referrer
{
"type": "object",
"title": "LiveStreamSessionReferrer",
"properties": {
"url": {
"type": "string",
"example": "https://api.video",
"description": "The website the viewer of the live stream was referred to in order to view the live stream."
},
"medium": {
"type": "string",
"example": "organic",
"description": "The type of search that brought the viewer to the live stream. Organic would be they found it on their own, paid would be they found it via an advertisement."
},
"source": {
"type": "string",
"example": "https://google.com",
"description": "Where the viewer came from to see the live stream (usually where they searched from)."
},
"searchTerm": {
"type": "string",
"example": "video stream",
"description": "What term they searched for that led them to the live stream."
}
}
}
live-stream-session-session
{
"type": "object",
"title": "LiveStreamSessionSession",
"properties": {
"endedAt": {
"type": "string",
"format": "date-time",
"example": "2019-06-24T12:45:01.109Z",
"description": "When the session ended, with the date and time presented in ISO-8601 format."
},
"loadedAt": {
"type": "string",
"format": "date-time",
"example": "2019-06-24T11:45:01.109Z",
"description": "When the session started, with the date and time presented in ISO-8601 format."
},
"sessionId": {
"type": "string",
"description": "A unique identifier for your session. You can use this to track what happens during a specific session."
}
}
}
live-stream-thumbnail-upload-payload
{
"type": "object",
"title": "LiveStreamThumbnailUploadPayload",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary",
"description": "The image to be added as a thumbnail. The mime type should be image/jpeg, image/png or image/webp. The max allowed size is 8 MiB."
}
}
}
live-stream-update-payload
{
"type": "object",
"title": "LiveStreamUpdatePayload",
"properties": {
"name": {
"type": "string",
"example": "My Live Stream Video",
"description": "The name you want to use for your live stream."
},
"public": {
"type": "boolean",
"description": "Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/delivery-analytics/video-privacy-access-management)."
},
"playerId": {
"type": "string",
"example": "pl45KFKdlddgk654dspkze",
"description": "The unique ID for the player associated with a live stream that you want to update."
},
"restreams": {
"type": "array",
"items": {
"$ref": "#/components/schemas/restreams-request-object"
},
"maxItems": 5,
"description": "Use this parameter to add, edit, or remove RTMP services where you want to restream a live stream. The list can only contain up to 5 destinations. This operation updates all restream destinations in the same request. If you do not want to modify an existing restream destination, you need to include it in your request, otherwise it is removed."
}
}
}
metadata
{
"type": "object",
"title": "Metadata",
"properties": {
"key": {
"type": "string",
"example": "Color",
"description": "The constant that defines the data set."
},
"value": {
"type": "string",
"example": "Green",
"description": "A variable which belongs to the data set."
}
},
"x-client-all-args-constructor": true
}
not-found
{
"type": "object",
"title": "NotFound",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"title": {
"type": "string"
},
"status": {
"type": "integer"
}
}
}
pagination
{
"type": "object",
"title": "Pagination",
"example": {
"links": {
"last": {
"rel": "last",
"uri": "/videos/search?currentPage=6&pageSize=20"
},
"next": {
"rel": "next",
"uri": "/videos/search?currentPage=4&pageSize=20"
},
"first": {
"rel": "first",
"uri": "/videos/search?currentPage=1&pageSize=20"
},
"previous": {
"rel": "previous",
"uri": "/videos/search?currentPage=2&pageSize=20"
}
},
"pageSize": 20,
"itemsTotal": 123,
"pagesTotal": 7,
"currentPage": 3,
"currentPageItems": 20
},
"required": [
"links"
],
"properties": {
"links": {
"type": "array",
"items": {
"$ref": "#/components/schemas/pagination-link"
}
},
"pageSize": {
"type": "integer",
"readOnly": true,
"description": "Maximum number of item per page."
},
"itemsTotal": {
"type": "integer",
"readOnly": true,
"description": "Total number of items that exist."
},
"pagesTotal": {
"type": "integer",
"readOnly": true,
"description": "Number of items listed in the current page."
},
"currentPage": {
"type": "integer",
"readOnly": true,
"description": "The current page index."
},
"currentPageItems": {
"type": "integer",
"readOnly": true,
"description": "The number of items on the current page."
}
}
}
pagination-link
{
"type": "object",
"title": "PaginationLink",
"properties": {
"rel": {
"type": "string"
},
"uri": {
"type": "string",
"format": "uri"
}
}
}
player-session-event
{
"type": "object",
"title": "PlayerSessionEvent",
"properties": {
"at": {
"type": "integer"
},
"to": {
"type": "integer"
},
"from": {
"type": "integer"
},
"type": {
"type": "string",
"example": "play",
"description": "Possible values are: ready, play, pause, resume, seek.backward, seek.forward, end"
},
"emittedAt": {
"type": "string",
"format": "date-time",
"example": "2019-06-24T11:45:01.109Z",
"description": "When an event occurred, presented in ISO-8601 format."
}
}
}
player-theme
{
"type": "object",
"title": "PlayerTheme",
"required": [
"playerId"
],
"properties": {
"link": {
"type": "string",
"description": "RGBA color for all controls. Default: rgba(255, 255, 255, 1)"
},
"name": {
"type": "string",
"description": "The name of the player theme"
},
"text": {
"type": "string",
"description": "RGBA color for timer text. Default: rgba(255, 255, 255, 1)"
},
"assets": {
"type": "object",
"properties": {
"link": {
"type": "string",
"example": "path/to/my/logo/mylogo.jpg",
"description": "The path to the file containing your logo."
},
"logo": {
"type": "string",
"example": "mylogo.jpg",
"description": "The name of the file containing the logo you want to use."
}
}
},
"playerId": {
"type": "string",
"example": "pl45KFKdlddgk654dspkze"
},
"createdAt": {
"type": "string",
"format": "date-time",
"example": "2020-01-31T10:17:47+00:00",
"description": "When the player was created, presented in ISO-8601 format."
},
"enableApi": {
"type": "boolean",
"description": "enable/disable player SDK access. Default: true"
},
"forceLoop": {
"type": "boolean",
"description": "enable/disable looping. Default: false"
},
"hideTitle": {
"type": "boolean",
"description": "enable/disable title. Default: false"
},
"linkHover": {
"type": "string",
"description": "RGBA color for all controls when hovered. Default: rgba(255, 255, 255, 1)"
},
"updatedAt": {
"type": "string",
"format": "date-time",
"example": "2020-01-31T10:18:47+00:00",
"description": "When the player was last updated, presented in ISO-8601 format."
},
"linkActive": {
"type": "string",
"description": "RGBA color for the play button when hovered."
},
"trackPlayed": {
"type": "string",
"description": "RGBA color playback bar: played content. Default: rgba(88, 131, 255, .95)"
},
"backgroundTop": {
"type": "string",
"description": "RGBA color: top 50% of background. Default: rgba(0, 0, 0, .7)"
},
"forceAutoplay": {
"type": "boolean",
"description": "enable/disable player autoplay. Default: false"
},
"trackUnplayed": {
"type": "string",
"description": "RGBA color playback bar: downloaded but unplayed (buffered) content. Default: rgba(255, 255, 255, .35)"
},
"backgroundText": {
"type": "string",
"description": "RGBA color for title text. Default: rgba(255, 255, 255, 1)"
},
"enableControls": {
"type": "boolean",
"description": "enable/disable player controls. Default: true"
},
"trackBackground": {
"type": "string",
"description": "RGBA color playback bar: background. Default: rgba(255, 255, 255, .2)"
},
"backgroundBottom": {
"type": "string",
"description": "RGBA color: bottom 50% of background. Default: rgba(0, 0, 0, .7)"
}
}
}
player-theme-creation-payload
{
"type": "object",
"title": "PlayerThemeCreationPayload",
"example": {
"link": "rgba(255, 0, 0, .95)",
"name": "My nice theme",
"text": "rgba(255, 255, 255, .95)",
"assets": {
"link": "https://api.video",
"logo": "https://cdn.api.video/player/pl14Db6oMJRH6SRVoOwORacK/logo.png"
},
"language": "en",
"enableApi": true,
"forceLoop": false,
"hideTitle": false,
"linkHover": "rgba(255, 255, 255, .75)",
"linkActive": "rgba(255, 0, 0, .75)",
"shapeAspect": "flat",
"shapeMargin": 10,
"shapeRadius": 3,
"trackPlayed": "rgba(255, 255, 255, .95)",
"backgroundTop": "rgba(72, 4, 45, 1)",
"forceAutoplay": false,
"trackUnplayed": "rgba(255, 255, 255, .1)",
"backgroundText": "rgba(255, 255, 255, .95)",
"enableControls": true,
"trackBackground": "rgba(0, 0, 0, 0)",
"backgroundBottom": "rgba(94, 95, 89, 1)",
"shapeBackgroundTop": "rgba(50, 50, 50, .7)",
"shapeBackgroundBottom": "rgba(50, 50, 50, .8)"
},
"properties": {
"link": {
"type": "string",
"description": "RGBA color for all controls. Default: rgba(255, 255, 255, 1)"
},
"name": {
"type": "string",
"maxLength": 100,
"description": "Add a name for your player theme here."
},
"text": {
"type": "string",
"description": "RGBA color for timer text. Default: rgba(255, 255, 255, 1)"
},
"enableApi": {
"type": "boolean",
"default": true,
"description": "enable/disable player SDK access. Default: true"
},
"forceLoop": {
"type": "boolean",
"default": false,
"description": "enable/disable looping. Default: false"
},
"hideTitle": {
"type": "boolean",
"default": false,
"description": "enable/disable title. Default: false"
},
"linkHover": {
"type": "string",
"description": "RGBA color for all controls when hovered. Default: rgba(255, 255, 255, 1)"
},
"linkActive": {
"type": "string",
"description": "RGBA color for the play button when hovered."
},
"trackPlayed": {
"type": "string",
"description": "RGBA color playback bar: played content. Default: rgba(88, 131, 255, .95)"
},
"backgroundTop": {
"type": "string",
"description": "RGBA color: top 50% of background. Default: rgba(0, 0, 0, .7)"
},
"forceAutoplay": {
"type": "boolean",
"default": false,
"description": "enable/disable player autoplay. Default: false"
},
"trackUnplayed": {
"type": "string",
"description": "RGBA color playback bar: downloaded but unplayed (buffered) content. Default: rgba(255, 255, 255, .35)"
},
"backgroundText": {
"type": "string",
"description": "RGBA color for title text. Default: rgba(255, 255, 255, 1)"
},
"enableControls": {
"type": "boolean",
"default": true,
"description": "enable/disable player controls. Default: true"
},
"trackBackground": {
"type": "string",
"description": "RGBA color playback bar: background. Default: rgba(255, 255, 255, .2)"
},
"backgroundBottom": {
"type": "string",
"description": "RGBA color: bottom 50% of background. Default: rgba(0, 0, 0, .7)"
}
}
}
player-theme-update-payload
{
"type": "object",
"title": "PlayerThemeUpdatePayload",
"properties": {
"link": {
"type": "string",
"description": "RGBA color for all controls. Default: rgba(255, 255, 255, 1)"
},
"name": {
"type": "string",
"maxLength": 100,
"description": "Add a name for your player theme here."
},
"text": {
"type": "string",
"description": "RGBA color for timer text. Default: rgba(255, 255, 255, 1)"
},
"enableApi": {
"type": "boolean",
"description": "enable/disable player SDK access. Default: true"
},
"forceLoop": {
"type": "boolean",
"description": "enable/disable looping. Default: false"
},
"hideTitle": {
"type": "boolean",
"description": "enable/disable title. Default: false"
},
"linkHover": {
"type": "string",
"description": "RGBA color for all controls when hovered. Default: rgba(255, 255, 255, 1)"
},
"linkActive": {
"type": "string",
"description": "RGBA color for the play button when hovered."
},
"trackPlayed": {
"type": "string",
"description": "RGBA color playback bar: played content. Default: rgba(88, 131, 255, .95)"
},
"backgroundTop": {
"type": "string",
"description": "RGBA color: top 50% of background. Default: rgba(0, 0, 0, .7)"
},
"forceAutoplay": {
"type": "boolean",
"description": "enable/disable player autoplay. Default: false"
},
"trackUnplayed": {
"type": "string",
"description": "RGBA color playback bar: downloaded but unplayed (buffered) content. Default: rgba(255, 255, 255, .35)"
},
"backgroundText": {
"type": "string",
"description": "RGBA color for title text. Default: rgba(255, 255, 255, 1)"
},
"enableControls": {
"type": "boolean",
"description": "enable/disable player controls. Default: true"
},
"trackBackground": {
"type": "string",
"description": "RGBA color playback bar: background. Default: rgba(255, 255, 255, .2)"
},
"backgroundBottom": {
"type": "string",
"description": "RGBA color: bottom 50% of background. Default: rgba(0, 0, 0, .7)"
}
}
}
player-theme-upload-logo-payload
{
"type": "object",
"title": "PlayerThemeUploadLogoPayload",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary",
"example": "mylogo.jpg",
"description": "The name of the file you want to use for your logo."
},
"link": {
"type": "string",
"format": "string",
"example": "https://my-company.com",
"description": "A public link that you want to advertise in your player. For example, you could add a link to your company. When a viewer clicks on your logo, they will be taken to this address."
}
}
}
player-themes-list-response
{
"type": "object",
"title": "PlayerThemes",
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/player-theme"
}
},
"pagination": {
"$ref": "#/components/schemas/pagination"
}
}
}
quality
{
"type": "object",
"title": "Quality",
"properties": {
"type": {
"enum": [
"hls",
"mp4"
],
"type": "string",
"example": "hls",
"description": "The type of video (hls or mp4)."
},
"status": {
"enum": [
"waiting",
"encoding",
"encoded",
"failed"
],
"type": "string",
"description": "The status of your video. Statuses include waiting - the video is waiting to be encoded. encoding - the video is in the process of being encoded. encoded - the video was successfully encoded. failed - the video failed to be encoded."
},
"quality": {
"enum": [
"240p",
"360p",
"480p",
"720p",
"1080p",
"2160p"
],
"type": "string",
"example": "720p",
"description": "The quality of the video you have, in pixels. Choices include 360p, 480p, 720p, 1080p, and 2160p."
}
}
}
refresh-token-payload
{
"type": "object",
"title": "RefreshToken",
"example": {
"refreshToken": "def502005346d9cc2bd79a7793ab5bdabfefcaabfbb8c253f14733f1262077e1a3f38c4751d6d20f590c3784e531a82adc11f05fc1949aa46d5575aaa99cb84b9334ba66ac773576b5d7a418937ae337de62811d086dd42ad1164b12f87d67be6ffea18f2d50be9b95697b21c4d3c4372849bdb2287259cb80541570e913691a08b2fa33c85885930de15cebea627fc09f0255562ab3d39d87d4ff8fc02b00e252afcd480421dec7de9d1411176bcf669c527762e22294b453bc9ea06e9fa8ba5b873feb2ee14ce0a6a6ddd4b78c580631e210e9b9387265dc2bec9478a66a09dcdce1c40d2f856689e9d81742c9628a0b87b359e0b218ea1f07427eef89f999e47af89792f598e05847bd008fddc32ee63f4a601ffb4cd2ad08977f1c854ec358238322c918f05aa5a41f8a171dee497218408abc8283473f6112aeed7310815416a0fa36c63667e0ed014fa40b8992891bf58bae400d901c01450101c88f4978938ad138adc19cfe5698d60fd82cb27c586f6a8f70f4393c7c9e579df8739d46d249fb76d7"
},
"required": [
"refreshToken"
],
"properties": {
"refreshToken": {
"type": "string",
"description": "The refresh token is either the first refresh token you received when you authenticated with the auth/api-key endpoint, or it's the refresh token from the last time you used the auth/refresh endpoint. Place this in the body of your request to obtain a new access token (which is valid for an hour) and a new refresh token.\n"
}
}
}
restreams-request-object
{
"type": "object",
"title": "Restreams request object",
"required": [
"name",
"serverUrl",
"streamKey"
],
"properties": {
"name": {
"type": "string",
"example": "My RTMP server",
"description": "Use this parameter to define a name for the restream destination."
},
"serverUrl": {
"type": "string",
"example": "rtmp://my.broadcast.example.com/app",
"description": "Use this parameter to set the RTMP URL of the restream destination."
},
"streamKey": {
"type": "string",
"example": "dw-dew8-q6w9-k67w-1ws8",
"description": "Use this parameter to provide the unique key of the live stream that you want to restream."
}
},
"description": "Adding restream destinations is optional. However, if you set a restream destination, you must provide all attributes for each destination."
}
restreams-response-object
{
"type": "object",
"title": "Restreams response object",
"properties": {
"name": {
"type": "string",
"example": "My RTMP server",
"description": "Returns the name of a restream destination."
},
"serverUrl": {
"type": "string",
"example": "rtmp://my.broadcast.example.com/app",
"description": "Returns the RTMP URL of a restream destination."
},
"streamKey": {
"type": "string",
"example": "dw-dew8-q6w9-k67w-1ws8",
"description": "Returns the unique key of the live stream that is set up for restreaming."
}
}
}
token-creation-payload
{
"type": "object",
"title": "TokenCreationPayload",
"example": {
"ttl": 3600
},
"properties": {
"ttl": {
"type": "integer",
"default": 0,
"maximum": 2147483647,
"minimum": 0,
"description": "Time in seconds that the token will be active. A value of 0 means that the token has no exipration date. The default is to have no expiration."
}
}
}
token-list-response
{
"type": "object",
"title": "UploadTokens",
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/upload-token"
},
"title": "uploadToken"
},
"pagination": {
"$ref": "#/components/schemas/pagination"
}
}
}
token-upload-payload
{
"type": "object",
"title": "tokenUploadPayload",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary",
"example": "path/to/video/video.mp4",
"description": "The path to the video you want to upload.",
"x-client-chunk-upload": "true"
},
"videoId": {
"type": "string",
"description": "The video id returned by the first call to this endpoint in a large video upload scenario.",
"x-client-ignore": true,
"x-client-copy-from-response": true
}
}
}
upload-token
{
"type": "object",
"title": "UploadToken",
"properties": {
"ttl": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0,
"description": "Time-to-live - how long the upload token is valid for."
},
"token": {
"type": "string",
"example": "to1tcmSFHeYY5KzyhOqVKMKb",
"description": "The unique identifier for the token you will use to authenticate an upload."
},
"createdAt": {
"type": "string",
"format": "date-time",
"example": "2019-12-16T08:25:51.000Z",
"description": "When the token was created, displayed in ISO-8601 format."
},
"expiresAt": {
"type": "string",
"format": "date-time",
"example": "2019-12-16T09:25:51.000Z",
"nullable": true,
"description": "When the token expires, displayed in ISO-8601 format."
}
}
}
video
{
"type": "object",
"title": "Video",
"example": {
"tags": [
"maths",
"string theory",
"video"
],
"title": "Maths video",
"actions": [
"video_delete",
"video_download",
"video_update"
],
"videoId": "vi4k0jvEUuaTdRAEjQ4Jfrgz",
"metadata": [
{
"key": "Author",
"value": "John Doe"
},
{
"key": "Format",
"value": "Tutorial"
}
],
"createdAt": "4251-03-03T12:52:03.085Z",
"description": "An amazing video explaining the string theory",
"publishedAt": "4665-07-14T23:36:18.598Z"
},
"required": [
"videoId"
],
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": "\"tags\": [\"maths\", \"string theory\", \"video\"]",
"description": "One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces. \n"
},
"title": {
"type": "string",
"example": "Maths video",
"description": "The title of the video content.\n"
},
"assets": {
"$ref": "#/components/schemas/video-assets"
},
"public": {
"type": "boolean",
"example": false,
"description": "Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos/).\n"
},
"source": {
"$ref": "#/components/schemas/video-source"
},
"videoId": {
"type": "string",
"example": "vi4k0jvEUuaTdRAEjQ4Prklg",
"description": "The unique identifier of the video object."
},
"metadata": {
"type": "array",
"items": {
"$ref": "#/components/schemas/metadata"
},
"example": "[{\"key\":\"Author\", \"value\":\"John Doe\"}, {\"key\":\"Format\", \"value\":\"Tutorial\"}]",
"description": "Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata/) allows you to define a key that allows any value pair.\n"
},
"playerId": {
"type": "string",
"example": "pl45KFKdlddgk654dspkze",
"description": "The id of the player that will be applied on the video.\n"
},
"createdAt": {
"type": "string",
"format": "date-time",
"example": "2019-06-24T11:45:01.109+00",
"description": "When a video was created, presented in ISO-8601 format."
},
"panoramic": {
"type": "boolean",
"example": false,
"description": "Defines if video is panoramic.\n"
},
"updatedAt": {
"type": "string",
"format": "date-time",
"example": "2019-12-16T08:15:51.000Z",
"description": "The date and time the video was updated. Date and time are provided using ISO-8601 UTC format."
},
"mp4Support": {
"type": "boolean",
"example": true,
"description": "This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.\n"
},
"description": {
"type": "string",
"example": "An amazing video explaining string theory.",
"description": "A description for the video content.\n"
},
"publishedAt": {
"type": "string",
"format": "date-time",
"example": "2019-12-16T08:25:51.000Z",
"description": "The date and time the API created the video. Date and time are provided using ISO-8601 UTC format."
}
}
}
video-assets
{
"type": "object",
"title": "VideoAssets",
"properties": {
"hls": {
"type": "string",
"format": "uri",
"description": "This is the manifest URL. For HTTP Live Streaming (HLS), when a HLS video stream is initiated, the first file to download is the manifest. This file has the extension M3U8, and provides the video player with information about the various bitrates available for streaming."
},
"mp4": {
"type": "string",
"format": "uri",
"example": "https://cdn.api.video/vod/vi4k0jvEUuaTdRAEjQ4Jfrgz/token/8fd70443-d9f0-45d2-b01c-12c8cfc707c9/mp4/source.mp4",
"description": "Available only if mp4Support is enabled. Raw mp4 url."
},
"iframe": {
"type": "string",
"example": "<iframe src=\"//embed.api.video/c188ed58-3403-46a2-b91b-44603d10b2c9?token=831a9bd9-9f50-464c-a369-8e9d914371ae\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"\"></iframe>",
"description": "Code to use video from a third party website"
},
"player": {
"type": "string",
"format": "uri",
"example": "https://embed.api.video/1b9d6ae8-8f57-4b6d-8552-d636926b4f5f?token=831a9bd9-9f50-464c-a369-8e9d914371ae",
"description": "Raw url of the player."
},
"thumbnail": {
"type": "string",
"format": "uri",
"example": "https://cdn.api.video/stream/831a9bd9-9f50-464c-a369-8e9d914371ae/thumbnail.jpg",
"description": "Poster of the video."
}
},
"description": "Collection of details about the video object that you can use to work with the video object."
}
video-clip
{
"type": "object",
"properties": {
"endTimecode": {
"type": "string",
"example": "00:02:33",
"pattern": "^(?:\\d{2,3}:[0-5]\\d:[0-5]\\d(?:\\.\\d{1,3}|\\:\\d{1,2})?|\\d{1,7})$",
"description": "The timestamp that defines the end of the video clip you want to create. The value must follow the `HH:MM:SS` format."
},
"startTimecode": {
"type": "string",
"example": "00:01:15",
"pattern": "^(?:\\d{2,3}:[0-5]\\d:[0-5]\\d(?:\\.\\d{1,3}|\\:\\d{1,2})?|\\d{1,7})$",
"description": "The timestamp that defines the beginning of the video clip you want to create. The value must follow the `HH:MM:SS` format."
}
},
"description": "Use this object to create a smaller clip from a video you upload. \n- You can only create video clips in the same request where you create the video container.\n- You cannot update the starting or ending timestamps of a video clip after you created the video container.\n- When you upload a video file into a container where you defined a starting and ending timestamp, the API trims the video according to those timestamps to create a clip."
}
video-creation-payload
{
"type": "object",
"title": "VideoCreationPayload",
"example": {
"tags": [
"maths",
"string theory",
"video"
],
"title": "Maths video",
"public": false,
"metadata": [
{
"key": "Author",
"value": "John Doe"
},
{
"key": "Format",
"value": "Tutorial"
}
],
"playerId": "pl45KFKdlddgk654dspkze",
"panoramic": false,
"watermark": {
"id": "watermark_1BWr2L5MTQwxGkuxKjzh6i",
"right": "10px",
"width": "50%",
"bottom": "10px",
"opacity": "70%"
},
"mp4Support": true,
"description": "An amazing video explaining string theory."
},
"required": [
"title"
],
"properties": {
"clip": {
"$ref": "#/components/schemas/video-clip"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": "[\"maths\", \"string theory\", \"video\"]",
"description": "A list of tags you want to use to describe your video."
},
"title": {
"type": "string",
"example": "Maths video",
"description": "The title of your new video."
},
"public": {
"type": "boolean",
"default": true,
"example": true,
"description": "Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/delivery-analytics/video-privacy-access-management)"
},
"source": {
"type": "string",
"example": "https://www.myvideo.url.com/video.mp4 OR vi4k0jvEUuaTdRAEjQ4JfOyl",
"description": "You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create."
},
"metadata": {
"type": "array",
"items": {
"$ref": "#/components/schemas/metadata"
},
"example": "[{\"key\": \"Author\", \"value\": \"John Doe\"}]",
"description": "A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. Read more on [dynamic metadata](https://api.video/blog/endpoints/dynamic-metadata/)."
},
"playerId": {
"type": "string",
"example": "pl45KFKdlddgk654dspkze",
"description": "The unique identification number for your video player."
},
"panoramic": {
"type": "boolean",
"default": false,
"example": false,
"description": "Indicates if your video is a 360/immersive video."
},
"watermark": {
"$ref": "#/components/schemas/video-watermark"
},
"mp4Support": {
"type": "boolean",
"default": true,
"example": true,
"description": "Enables mp4 version in addition to streamed version."
},
"description": {
"type": "string",
"example": "A video about string theory.",
"description": "A brief description of your video."
}
}
}
video-session
{
"type": "object",
"title": "VideoSession",
"example": {
"os": {
"name": "Microsoft Windows",
"version": "Windows10",
"shortname": "W10"
},
"client": {
"name": "Firefox",
"type": "browser",
"version": "67.0"
},
"device": {
"type": "desktop",
"model": "unknown",
"vendor": "Dell"
},
"session": {
"endedAt": "2019-06-24T11:49:19.243Z",
"loadedAt": "2019-06-24T11:45:01.109Z",
"sessionId": "psEmFwGQUAXR2lFHj5nDOpy"
},
"location": {
"city": "Paris",
"country": "France"
},
"referrer": {
"url": "https://api.video",
"medium": "organic",
"source": "https://google.com",
"searchTerm": "video encoding hosting and delivery"
}
},
"properties": {
"os": {
"$ref": "#/components/schemas/video-session-os"
},
"client": {
"$ref": "#/components/schemas/video-session-client"
},
"device": {
"$ref": "#/components/schemas/video-session-device"
},
"session": {
"$ref": "#/components/schemas/video-session-session"
},
"location": {
"$ref": "#/components/schemas/video-session-location"
},
"referrer": {
"$ref": "#/components/schemas/video-session-referrer"
}
}
}
video-session-client
{
"type": "object",
"title": "VideoSessionClient",
"properties": {
"name": {
"type": "string",
"example": "Firefox",
"description": "The name of the browser used to view the video session."
},
"type": {
"type": "string",
"example": "browser",
"description": "The type of client used to view the video session."
},
"version": {
"type": "string",
"example": "67.0",
"description": "The version of the browser used to view the video session."
}
},
"description": "What kind of browser the viewer is using for the video session."
}
video-session-device
{
"type": "object",
"title": "VideoSessionDevice",
"properties": {
"type": {
"type": "string",
"example": "desktop",
"description": "What the type is like desktop, laptop, mobile."
},
"model": {
"type": "string",
"example": "unknown",
"description": "The specific model of the device, if known."
},
"vendor": {
"type": "string",
"example": "Dell",
"description": "If known, what the brand of the device is, like Apple, Dell, etc."
}
},
"description": "What type of device the user is on when in the video session."
}
video-session-location
{
"type": "object",
"title": "VideoSessionLocation",
"properties": {
"city": {
"type": "string",
"example": "Paris",
"nullable": true,
"description": "The city of the viewer."
},
"country": {
"type": "string",
"example": "France",
"description": "The country of the viewer."
}
},
"description": "The location of the viewer."
}
video-session-os
{
"type": "object",
"title": "VideoSessionOs",
"properties": {
"name": {
"type": "string",
"example": "Microsoft Windows",
"description": "The name of the operating system."
},
"version": {
"type": "string",
"example": "Windows 10",
"description": "The version of the operating system."
},
"shortname": {
"type": "string",
"example": "W10",
"description": "The nickname for the operating system, often representing the version."
}
},
"description": "The operating system the viewer is on."
}
video-session-referrer
{
"type": "object",
"title": "VideoSessionReferrer",
"properties": {
"url": {
"type": "string",
"example": "https://api.video",
"nullable": true,
"description": "The link the viewer used to reach the video session."
},
"medium": {
"type": "string",
"example": "organic",
"description": "How they arrived at the site, for example organic or paid. Organic meaning they found it themselves and paid meaning they followed a link from an advertisement."
},
"source": {
"type": "string",
"example": "https://google.com",
"description": "The source the referrer came from to the video session. For example if they searched through google to find the stream."
},
"searchTerm": {
"type": "string",
"description": "The search term they typed to arrive at the video session."
}
}
}
video-session-session
{
"type": "object",
"title": "VideoSessionSession",
"properties": {
"endedAt": {
"type": "string",
"format": "date-time",
"example": "2019-06-24T12:45:01.109Z",
"description": "When the video session ended, presented in ISO-8601 format."
},
"loadedAt": {
"type": "string",
"format": "date-time",
"example": "2019-06-24T11:45:01.109Z",
"description": "When the video session started, presented in ISO-8601 format."
},
"metadata": {
"type": "array",
"items": {
"$ref": "#/components/schemas/metadata"
},
"example": "[{\"key\": \"Author\", \"value\": \"John Doe\"}]",
"description": "A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos."
},
"sessionId": {
"type": "string",
"example": "psEmFwGQUAXR2lFHj5nDOpy",
"description": "The unique identifier for the session that you can use to track what happens during it."
}
}
}
video-source
{
"type": "object",
"title": "VideoSource",
"properties": {
"uri": {
"type": "string",
"example": "/videos/vi4k0jvEUuaTdRAEjQ4Prklg/source",
"description": "The URL where the video is stored."
},
"type": {
"type": "string"
},
"liveStream": {
"$ref": "#/components/schemas/video-source-live-stream"
}
},
"description": "Source information about the video."
}
video-source-live-stream
{
"type": "object",
"properties": {
"links": {
"type": "array",
"items": {
"$ref": "#/components/schemas/video-source-live-stream-link"
}
},
"liveStreamId": {
"type": "string",
"example": "li400mYKSgQ6xs7taUeSaEKr",
"description": "The unique identifier for the live stream."
}
},
"description": "This appears if the video is from a Live Record."
}
video-source-live-stream-link
{
"type": "object",
"properties": {
"rel": {
"type": "string"
},
"uri": {
"type": "string"
}
}
}
video-status
{
"type": "object",
"title": "VideoStatus",
"example": {
"ingest": {
"status": "uploaded",
"filesize": 273579401,
"receivedBytes": [
{
"to": 134217727,
"from": 0,
"total": 273579401
},
{
"to": 268435455,
"from": 134217728,
"total": 273579401
},
{
"to": 273579400,
"from": 268435456,
"total": 273579401
}
]
},
"encoding": {
"metadata": {
"width": 424,
"height": 240,
"bitrate": 411.218,
"duration": 4176,
"framerate": 24,
"audioCodec": "aac",
"samplerate": 48000,
"videoCodec": "h264",
"aspectRatio": "16/9"
},
"playable": true,
"qualities": [
{
"status": "encoded",
"quality": "240p"
},
{
"status": "encoded",
"quality": "360p"
},
{
"status": "encoded",
"quality": "480p"
},
{
"status": "encoded",
"quality": "720p"
},
{
"status": "encoding",
"quality": "1080p"
},
{
"status": "waiting",
"quality": "2160p"
}
]
}
},
"properties": {
"ingest": {
"$ref": "#/components/schemas/video-status-ingest"
},
"encoding": {
"$ref": "#/components/schemas/video-status-encoding"
}
}
}
video-status-encoding
{
"type": "object",
"title": "VideoStatusEncoding",
"properties": {
"metadata": {
"$ref": "#/components/schemas/video-status-encoding-metadata"
},
"playable": {
"type": "boolean",
"example": true,
"description": "Whether the video is playable or not."
},
"qualities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/quality"
},
"description": "Available qualities the video can be viewed in."
}
}
}
video-status-encoding-metadata
{
"type": "object",
"title": "VideoStatusEncodingMetadata",
"properties": {
"width": {
"type": "integer",
"nullable": true,
"description": "The width of the video in pixels."
},
"height": {
"type": "integer",
"nullable": true,
"description": "The height of the video in pixels."
},
"bitrate": {
"type": "number",
"nullable": true,
"description": "The number of bits processed per second."
},
"duration": {
"type": "integer",
"nullable": true,
"description": "The length of the video."
},
"framerate": {
"type": "integer",
"example": 60,
"nullable": true,
"description": "The frequency with which consecutive images or frames appear on a display. Shown in this API as frames per second (fps)."
},
"audioCodec": {
"type": "string",
"nullable": true,
"description": "The method used to compress and decompress digital audio for your video."
},
"samplerate": {
"type": "integer",
"example": 48000,
"nullable": true,
"description": "How many samples per second a digital audio system uses to record an audio signal. The higher the rate, the higher the frequencies that can be recorded. They are presented in this API using hertz."
},
"videoCodec": {
"type": "string",
"nullable": true,
"description": "The method used to compress and decompress digital video. API Video supports all codecs in the libavcodec library. "
},
"aspectRatio": {
"type": "string",
"nullable": true
}
}
}
video-status-ingest
{
"type": "object",
"title": "VideoStatusIngest",
"properties": {
"status": {
"enum": [
"uploading",
"uploaded",
"ingesting",
"ingested"
],
"type": "string",
"example": "uploaded",
"description": "There are four possible statuses depending on how you provide a video file:\n- `uploading` - the API is gathering the video source file from an upload.\n- `uploaded` - the video file is fully uploaded.\n- `ingesting` - the API is gathering the video source file from either a URL, or from cloning.\n- `ingested` - the video file is fully stored.\n"
},
"filesize": {
"type": "integer",
"example": 200000,
"nullable": true,
"description": "The size of your file in bytes."
},
"receivedBytes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/bytes-range"
},
"description": "The total number of bytes received, listed for each chunk of the upload."
},
"receivedParts": {
"type": "object",
"properties": {
"parts": {
"type": "array",
"items": {
"type": "integer"
},
"example": "[1, 2, 3]",
"description": "The parts that have been uploaded, ordered. For example, if part 2 was sent before part 1, and both have been uploaded, the output will be [1, 2]."
},
"total": {
"type": "integer",
"example": 3,
"nullable": true,
"description": "Contains the number of expected parts. The total will be listed as \"null\" until the total number of parts is known."
}
}
}
},
"description": "Details about the capturing, transferring, and storing of your video for use immediately or in the future."
}
video-thumbnail-pick-payload
{
"type": "object",
"title": "ThumbnailPickPayload",
"example": {
"timecode": "00:00:00.000"
},
"required": [
"timecode"
],
"properties": {
"timecode": {
"type": "string",
"pattern": "\\d{2}:\\d{2}:\\d{2}(\\.\\d{2})?",
"description": "Frame in video to be used as a placeholder before the video plays. \nExample: '\"00:01:00.000\" for 1 minute into the video.'\nValid Patterns: \n\"hh:mm:ss.ms\"\n\"hh:mm:ss:frameNumber\"\n\"124\" (integer value is reported as seconds) \nIf selection is out of range, \"00:00:00.00\" will be chosen."
}
}
}
video-thumbnail-upload-payload
{
"type": "object",
"title": "VideoThumbnailUploadPayload",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary",
"description": "The image to be added as a thumbnail. The mime type should be image/jpeg, image/png or image/webp. The max allowed size is 8 MiB."
}
}
}
video-update-payload
{
"type": "object",
"title": "VideoUpdatePayload",
"example": {
"tags": [
"maths",
"string theory",
"video"
],
"title": "String theory",
"public": false,
"metadata": [
{
"key": "Author",
"value": "John Doe"
},
{
"key": "Format",
"value": "Tutorial"
}
],
"playerId": "pl45KFKdlddgk654dspkze",
"panoramic": false,
"mp4Support": true,
"description": "An amazing video explaining the string theory"
},
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": "[\"maths\", \"string theory\", \"video\"]",
"description": "A list of terms or words you want to tag the video with. Make sure the list includes all the tags you want as whatever you send in this list will overwrite the existing list for the video."
},
"title": {
"type": "string",
"description": "The title you want to use for your video."
},
"public": {
"type": "boolean",
"example": true,
"description": "Whether the video is publicly available or not. False means it is set to private. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos/)."
},
"metadata": {
"type": "array",
"items": {
"$ref": "#/components/schemas/metadata"
},
"description": "A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video. [Dynamic Metadata](https://api.video/blog/endpoints/dynamic-metadata/) allows you to define a key that allows any value pair."
},
"playerId": {
"type": "string",
"example": "pl4k0jvEUuaTdRAEjQ4Jfrgz",
"description": "The unique ID for the player you want to associate with your video.",
"x-optional-nullable": true
},
"panoramic": {
"type": "boolean",
"example": false,
"description": "Whether the video is a 360 degree or immersive video."
},
"mp4Support": {
"type": "boolean",
"example": true,
"description": "Whether the player supports the mp4 format."
},
"description": {
"type": "string",
"example": "A film about good books.",
"description": "A brief description of the video."
}
}
}
video-upload-payload
{
"type": "object",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary",
"example": "@/path/to/video.mp4",
"description": "The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the \"/videos\" endpoint and add the \"source\" parameter when you create a new video.",
"x-client-chunk-upload": "true"
}
}
}
video-watermark
{
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "watermark_1BWr2L5MTQwxGkuxKjzh6i",
"description": "id of the watermark"
},
"top": {
"type": "string",
"example": "10px",
"description": "Distance expressed in px or % between the top-border of the video and the watermark-image."
},
"left": {
"type": "string",
"example": "10px",
"description": "Distance expressed in px or % between the left-border of the video and the watermark-image."
},
"right": {
"type": "string",
"example": "10px",
"description": "Distance expressed in px or % between the right-border of the video and the watermark-image."
},
"width": {
"type": "string",
"example": "initial",
"description": "Width of the watermark-image relative to the video if expressed in %. Otherwise a fixed width. NOTE: To keep intrinsic watermark-image width use `initial`."
},
"bottom": {
"type": "string",
"example": "10px",
"description": "Distance expressed in px or % between the bottom-border of the video and the watermark-image."
},
"height": {
"type": "string",
"example": "initial",
"description": "Height of the watermark-image relative to the video if expressed in %. Otherwise a fixed height. NOTE: To keep intrinsic watermark-image height use `initial`."
},
"opacity": {
"type": "string",
"example": "70%",
"description": "Opacity expressed in % only to specify the degree of the watermark-image transparency with the video."
}
}
}
videos-list-response
{
"type": "object",
"title": "Videos",
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/video"
}
},
"pagination": {
"$ref": "#/components/schemas/pagination"
}
}
}
watermark
{
"type": "object",
"title": "Watermark",
"properties": {
"createdAt": {
"type": "string",
"format": "date-time",
"example": "2019-06-24T11:45:01.109+00",
"description": "When the watermark was created, presented in ISO-8601 format."
},
"watermarkId": {
"type": "string",
"example": "watermark_1BWr2L5MTQwxGkuxKjzh6i",
"description": "The unique identifier of the watermark."
}
}
}
watermark-upload-payload
{
"type": "object",
"title": "WatermarkUploadPayload",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary",
"description": "The `.jpg` or `.png` image to be added as a watermark."
}
}
}
watermarks-list-response
{
"type": "object",
"title": "Watermarks",
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/watermark"
}
},
"pagination": {
"$ref": "#/components/schemas/pagination"
}
}
}
webhook
{
"type": "object",
"title": "Webhook",
"properties": {
"url": {
"type": "string",
"example": "http://clientnotificationserver.com/notif?myquery=query",
"description": "URL of the webhook"
},
"events": {
"type": "array",
"items": {
"type": "string"
},
"example": "[\"video.encoding.quality.completed\"]",
"description": "A list of events that will trigger the webhook."
},
"createdAt": {
"type": "string",
"format": "date-time",
"example": "2019-06-24T11:45:01.109Z",
"description": "When an webhook was created, presented in ISO-8601 format."
},
"webhookId": {
"type": "string",
"example": "webhook_XXXXXXXXXXXXXXX",
"description": "Unique identifier of the webhook"
}
}
}
webhooks-creation-payload
{
"type": "object",
"title": "WebhooksCreationPayload",
"example": {
"url": "http://clientnotificationserver.com/notif?myquery=query",
"events": [
"video.encoding.quality.completed"
]
},
"required": [
"events",
"url"
],
"properties": {
"url": {
"type": "string",
"example": "https://example.com/webhooks",
"description": "The the url to which HTTP notifications are sent. It could be any http or https URL."
},
"events": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"video.encoding.quality.completed"
],
"description": "A list of the webhooks that you are subscribing to. There are Currently four webhook options:\n* ```video.encoding.quality.completed``` Occurs when a new video is uploaded into your account, it will be encoded into several different HLS and mp4 qualities. When each version is encoded, your webhook will get a notification. It will look like ```{ \\\"type\\\": \\\"video.encoding.quality.completed\\\", \\\"emittedAt\\\": \\\"2021-01-29T16:46:25.217+01:00\\\", \\\"videoId\\\": \\\"viXXXXXXXX\\\", \\\"encoding\\\": \\\"hls\\\", \\\"quality\\\": \\\"720p\\\"} ```. This request says that the 720p HLS encoding was completed.\n* ```live-stream.broadcast.started``` When a live stream begins broadcasting, the broadcasting parameter changes from false to true, and this webhook fires.\n* ```live-stream.broadcast.ended``` This event fires when a live stream has finished broadcasting.\n* ```video.source.recorded``` Occurs when a live stream is recorded and submitted for encoding."
}
}
}
webhooks-list-response
{
"type": "object",
"title": "Webhooks",
"required": [
"data",
"pagination"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/webhook"
}
},
"pagination": {
"$ref": "#/components/schemas/pagination"
}
}
}