# api.video ## API Docs - Account [Show account](https://apidog.com/apidoc/docs-site/347154/api-3540922.md): Deprecated. Authenticate and get a token, then you can use the bearer token here to retrieve details about your account. - Analytics [List live stream player sessions](https://apidog.com/apidoc/docs-site/347154/api-3540925.md): - Analytics [List player session events](https://apidog.com/apidoc/docs-site/347154/api-3540924.md): Useful to track and measure video's engagement. - Analytics [List video player sessions](https://apidog.com/apidoc/docs-site/347154/api-3540926.md): Retrieve all available user sessions for a specific video. Tutorials that use the [analytics endpoint](https://api.video/blog/endpoints/analytics). - Authentication [Authenticate](https://apidog.com/apidoc/docs-site/347154/api-3540932.md): To get started, submit your API key in the body of your request. api.video returns an access token that is valid for one hour (3600 seconds). A refresh token is also returned. View a [tutorial](https://api.video/blog/tutorials/authentication-tutorial) on authentication. - Authentication [Refresh token](https://apidog.com/apidoc/docs-site/347154/api-3540931.md): Use the refresh endpoint with the refresh token you received when you first authenticated using the api-key endpoint. Send the refresh token in the body of your request. The api.video API returns a new access token that is valid for one hour (3600 seconds) and a new refresh token. - Live [List all live streams](https://apidog.com/apidoc/docs-site/347154/api-3540939.md): With no parameters added to the url, this will return all livestreams. Query by name or key to limit the list. - Live [Create live stream](https://apidog.com/apidoc/docs-site/347154/api-3540933.md): A live stream will give you the 'connection point' to RTMP your video stream to api.video. It will also give you the details for viewers to watch the same livestream. The public=false 'private livestream' is available as a BETA feature, and should be limited to livestreams of 3,000 viewers or fewer. See our [Live Stream Tutorial](https://api.video/blog/tutorials/live-stream-tutorial) for a walkthrough of this API with OBS. Your RTMP endpoint for the livestream is rtmp://broadcast.api.video/s/{streamKey} - Live [Delete a live stream](https://apidog.com/apidoc/docs-site/347154/api-3540920.md): - Live [Show live stream](https://apidog.com/apidoc/docs-site/347154/api-3540921.md): Supply a LivestreamId, and you'll get all the details for streaming into, and watching the livestream. Tutorials that use the [show livestream endpoint](https://api.video/blog/endpoints/live-stream-status). - Live [Update a live stream](https://apidog.com/apidoc/docs-site/347154/api-3540934.md): Use this endpoint to update the player, or to turn recording on/off (saving a copy of the livestream). NOTE: If the livestream is actively streaming, changing the recording status will only affect the NEXT stream. The public=false 'private livestream' is available as a BETA feature, and should be limited to livestreams of 3,000 viewers or fewer. - Live [Delete a thumbnail](https://apidog.com/apidoc/docs-site/347154/api-3540928.md): Send the unique identifier for a live stream to delete it from the system. - Live [Upload a thumbnail](https://apidog.com/apidoc/docs-site/347154/api-3540936.md): Upload an image to use as a backdrop for your livestream. Tutorials that [update live stream thumbnails](https://api.video/blog/endpoints/live-upload-a-thumbnail). - Players [List all players](https://apidog.com/apidoc/docs-site/347154/api-3540937.md): Retrieve a list of all the players you created, as well as details about each one. - Players [Create a player](https://apidog.com/apidoc/docs-site/347154/api-3540923.md): Create a player for your video, and customise it. - Players [Delete a player](https://apidog.com/apidoc/docs-site/347154/api-3540930.md): Delete a player if you no longer need it. You can delete any player that you have the player ID for. - Players [Show a player](https://apidog.com/apidoc/docs-site/347154/api-3540927.md): Use a player ID to retrieve details about the player and display it for viewers. - Players [Update a player](https://apidog.com/apidoc/docs-site/347154/api-3540935.md): Use a player ID to update specific details for a player. NOTE: It may take up to 10 min before the new player configuration is available from our CDN. - Players [Delete logo](https://apidog.com/apidoc/docs-site/347154/api-3540929.md): - Players [Upload a logo](https://apidog.com/apidoc/docs-site/347154/api-3540938.md): The uploaded image maximum size should be 200x100 and its weight should be 200KB. It will be scaled down to 30px height and converted to PNG to be displayed in the player. - Videos - Delegated upload [Upload with an upload token](https://apidog.com/apidoc/docs-site/347154/api-3540940.md): When given a token, anyone can upload a file to the URI `https://ws.api.video/upload?token=`. - Videos - Delegated upload [List all active upload tokens.](https://apidog.com/apidoc/docs-site/347154/api-3540941.md): A delegated token is used to allow secure uploads without exposing your API key. Use this endpoint to retrieve a list of all currently active delegated tokens. - Videos - Delegated upload [Generate an upload token](https://apidog.com/apidoc/docs-site/347154/api-3540942.md): Use this endpoint to generate an upload token. You can use this token to authenticate video uploads while keeping your API key safe. Tutorials using [delegated upload](https://api.video/blog/endpoints/delegated-upload). - Videos - Delegated upload [Delete an upload token](https://apidog.com/apidoc/docs-site/347154/api-3540943.md): Delete an existing upload token. This is especially useful for tokens you may have created that do not expire. - Videos - Delegated upload [Show upload token](https://apidog.com/apidoc/docs-site/347154/api-3540944.md): You can retrieve details about a specific upload token if you have the unique identifier for the upload token. Add it in the path of the endpoint. Details include time-to-live (ttl), when the token was created, and when it will expire. - Videos [List all videos](https://apidog.com/apidoc/docs-site/347154/api-3540945.md): Requests to this endpoint return a list of your videos (with all their details). With no parameters added to this query, the API returns all videos. You can filter what videos the API returns using the parameters described below. We have [several tutorials](https://api.video/blog/endpoints/video-list) that demonstrate this endpoint. - Videos [Create a video](https://apidog.com/apidoc/docs-site/347154/api-3540946.md): To create a video, you create its container¶meters first, before adding the video file (exception - when using an existing HTTP source). - Videos [Delete a video](https://apidog.com/apidoc/docs-site/347154/api-3540949.md): If you do not need a video any longer, you can send a request to delete it. All you need is the videoId. Tutorials using [video deletion](https://api.video/blog/endpoints/video-delete). - Videos [Show a video](https://apidog.com/apidoc/docs-site/347154/api-3540947.md): This call provides the same JSON information provided on video creation. For private videos, it will generate a unique token url. Use this to retrieve any details you need about a video, or set up a private viewing URL. Tutorials using [video GET](https://api.video/blog/endpoints/video-get). - Videos [Update a video](https://apidog.com/apidoc/docs-site/347154/api-3540948.md): Use this endpoint to update the parameters associated with your video. The video you are updating is determined by the video ID you provide in the path. For each parameter you want to update, include the update in the request body. NOTE: If you are updating an array, you must provide the entire array as what you provide here overwrites what is in the system rather than appending to it. Tutorials using [video update](https://api.video/blog/endpoints/video-update). - Videos [Upload a video](https://apidog.com/apidoc/docs-site/347154/api-3540951.md): To upload a video to the videoId you created. Replace {videoId} with the id you'd like to use, {access_token} with your token, and /path/to/video.mp4 with the path to the video you'd like to upload. You can only upload your video to the videoId once. - Videos [Show video status](https://apidog.com/apidoc/docs-site/347154/api-3540953.md): This API provides upload status & encoding status to determine when the video is uploaded or ready to playback. Once encoding is completed, the response also lists the available stream qualities. Tutorials using [video status](https://api.video/blog/endpoints/video-status). - Videos [Pick a thumbnail](https://apidog.com/apidoc/docs-site/347154/api-3540950.md): Pick a thumbnail from the given time code. If you'd like to upload an image for your thumbnail, use the [Upload a Thumbnail](https://docs.api.video/reference#post_videos-videoid-thumbnail) endpoint. There may be a short delay for the thumbnail to update. - Videos [Upload a thumbnail](https://apidog.com/apidoc/docs-site/347154/api-3540952.md): The thumbnail is the poster that appears in the player window before video playback begins. - Captions [List video captions](https://apidog.com/apidoc/docs-site/347154/api-3540954.md): Retrieve a list of available captions for the videoId you provide. - Captions [Delete a caption](https://apidog.com/apidoc/docs-site/347154/api-3540957.md): Delete a caption in a specific language by providing the video ID for the video you want to delete the caption from and the language the caption is in. - Captions [Show a caption](https://apidog.com/apidoc/docs-site/347154/api-3540956.md): Display a caption for a video in a specific language. If the language is available, the caption is returned. Otherwise, you will get a response indicating the caption was not found. - Captions [Update caption](https://apidog.com/apidoc/docs-site/347154/api-3540955.md): To have the captions on automatically, use this PATCH to set default: true. - Captions [Upload a caption](https://apidog.com/apidoc/docs-site/347154/api-3540960.md): Upload a VTT file to add captions to your video. - Chapters [List video chapters](https://apidog.com/apidoc/docs-site/347154/api-3540958.md): Retrieve a list of all chapters for a specified video. - Chapters [Delete a chapter](https://apidog.com/apidoc/docs-site/347154/api-3540959.md): - Chapters [Show a chapter](https://apidog.com/apidoc/docs-site/347154/api-3540961.md): Chapters help your viewers find the sections of the video they are most interested in viewing. Tutorials that use the [chapters endpoint](https://api.video/blog/endpoints/chapters). - Chapters [Upload a chapter](https://apidog.com/apidoc/docs-site/347154/api-3540962.md): Chapters help break the video into sections. Read our [tutorial](https://api.video/blog/tutorials/adding-chapters-to-your-videos) for more details. - Webhooks [List all webhooks](https://apidog.com/apidoc/docs-site/347154/api-3540963.md): Requests to this endpoint return a list of your webhooks (with all their details). You can filter what the webhook list that the API returns using the parameters described below. - Webhooks [Create Webhook](https://apidog.com/apidoc/docs-site/347154/api-3540964.md): Webhooks can push notifications to your server, rather than polling api.video for changes. We currently offer four events: - Webhooks [Delete a Webhook](https://apidog.com/apidoc/docs-site/347154/api-3540965.md): This endpoint will delete the indicated webhook. - Webhooks [Show Webhook details](https://apidog.com/apidoc/docs-site/347154/api-3540966.md): This call provides the same JSON information provided on Webjhook creation.