POST
/
media
/
embed
curl --request POST \
  --url https://api.trytldw.ai/v1/media/embed \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "media_list": {
    "external_id": "video_1",
    "title": "My Video1",
    "url": "https//example.com/video1.mp4"
  }
}'
{
  "media_list": [
    {
      "id": "c1a2b3c4-1a2b-3c4d-5e6f-7g8h9i0j1k2l",
      "external_id": "video_12345",
      "status": "PENDING"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
media_list
object[]
required

List of videos to add. Maximum 10 media can be added per request

Examples:
{
"external_id": "video_1",
"title": "My Video1",
"url": "https//example.com/video1.mp4"
}
{
"external_id": "video_2",
"title": "My Video2",
"url": "https//example.com/video2.mp4"
}

Response

200
application/json

Successful Response

media_list
object[]
required