POST
/
media
curl --request POST \
  --url https://api.trytldw.ai/v1/media/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collection_id": "c1a2b3c4-1a2b-3c4d-5e6f-7g8h9i0j1k2l",
  "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
collection_id
string
required

The ID of the collection to add the video to

Example:

"c1a2b3c4-1a2b-3c4d-5e6f-7g8h9i0j1k2l"

media_list
object[]
required

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

Example:
{
  "external_id": "video_1",
  "title": "My Video1",
  "url": "https//example.com/video1.mp4"
}

Response

200
application/json
Successful Response
media_list
object[]
required