Videos


Model properties

  • Name
    id
    Type
    string
    Description

    Unique identifier for the video.

  • Name
    is_failed
    Type
    boolean
    Description

    Whether or not the video has failed to be processed.

  • Name
    is_ready
    Type
    boolean
    Description

    Whether or not the video is ready for consumption.

  • Name
    download_url
    Type
    url
    conditional
    Description

    URL to download the video file. Shown only if the video is ready.

  • Name
    stream_url
    Type
    url
    conditional
    Description

    URL to stream the video file. Shown only if the video is ready.

  • Name
    flow_id
    Type
    string
    conditional
    Description

    Unique identifier for the parent workflow. Only shown if the video was generated by a Flow.

  • Name
    metadata
    Type
    object
    Description

    An object containing user-supplied metadata about the video.


GET/v2/videos

List all videos

This endpoint allows you to retrieve a paginated list of all your videos. By default, a maximum of 15 videos are shown per page.

Request parameters

  • Name
    page
    Type
    integer
    Description

    Specify the page number to retrieve. Default is 1.

  • Name
    per_page
    Type
    integer
    Description

    Limit the number of videos returned per page. Default is 15.

Request

GET
/v2/videos
curl -G https://api.editframe.com/v2/videos \
  -H "Authorization: Bearer {token}" \
  -d limit=10

Response

{
  "data": [
    {
      "id": "PgQQX3hrtZ",
      "is_failed": false,
      "is_ready": true,
      "download_url": "https://api.editframe.com/v2/videos/PgQQX3hrtZ/download",
      "stream_url": "https://api.editframe.com/v2/videos/PgQQX3hrtZ/stream",
      "metadata": { ... },
    },
    {
      // ...
    }
  ],
  "meta": {
    "current_page": 1,
    "last_page": 1,
    "per_page": 15,
    "total": 2,
    "from": 1,
    "to": 10
  }
}

GET/v2/videos/:id

Retrieve a video

This endpoint allows you to retrieve an individual video by providing the video id. Refer to the model properties to see which properties are included with video objects.

Request

GET
/v2/videos/PgQQX3hrtZ
curl https://api.editframe.com/v2/videos/PgQQX3hrtZ \
  -H "Authorization: Bearer {token}"

Response

{
  "id": "PgQQX3hrtZ",
  "is_failed": false,
  "is_ready": true,
  "download_url": "https://api.editframe.com/v2/videos/PgQQX3hrtZ/download",
  "stream_url": "https://api.editframe.com/v2/videos/PgQQX3hrtZ/stream",
  "metadata": { ... }
},

DELETE/v2/videos/:id

Delete a video

This endpoint allows you to delete your videos generated by Tools or the Commposition API.

Request

DELETE
/v2/videos/PgQQX3hrtZ
curl -X DELETE https://api.editframe.com/v2/videos/PgQQX3hrtZ \
  -H "Authorization: Bearer {token}"