Availability

Public/Private/Secured

There are 2 types of API Keys: - Public; Use the public key for client side GET Requests - Private; Use the private key for server side POST Requests.

Video's can have 3 access tiers: - Public; video can be accessed using a HTTP GET Request. - Private; video can be accessed using a HTTP GET Request or HTTP POST Request. - Secured; video can only be accessed using a HTTP POST Request using the Private API Key.

In order to protect your Private API Key from being publicly visible, a server side request has to be made to https://embed.videodocker.io/.

Public

GET https://embed.videodocker.io/videos/:id

This endpoint allows you to embed a video on your domain.

Path Parameters

Name
Type
Description

id

string

ID of the video to get.

Query Parameters

Name
Type
Description

APIKey

string

Public API key.

Headers

Name
Type
Description

Authentication

string

Authentication token of the domain.

{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}

Private/Secured

POST https://embed.videodocker.io/videos/:id

This endpoint allows you to embed a video on your domain.

Path Parameters

Name
Type
Description

id

string

ID of the video to get.

Headers

Name
Type
Description

Authentication

string

Authentication token of the domain.

Request Body

Name
Type
Description

APIKey

string

Private API key.

Secured

POST https://embed.videodocker.io/videos/:id

This endpoint allows you to embed a video on your domain.

Path Parameters

Name
Type
Description

id

string

ID of the video to get.

Headers

Name
Type
Description

Authentication

string

Authentication token of the domain.

Request Body

Name
Type
Description

APIKey

string

Private API key.

Last updated

Was this helpful?