Returns a list of MediaRecordings

GET /v1/MediaRecordings

A MediaRecording resource exposes recording metadata and allows the deletion of a particular recording.

Returns a list of MediaRecordings.

Query parameters

  • Order string

    The sort order of the list by date_created. Can be: asc (ascending) or desc (descending) with desc as the default.

    Values are asc or desc.

  • Status string

    Status to filter by, with possible values processing, completed, deleted, or failed.

    Values are processing, completed, deleted, or failed.

  • SID of a MediaProcessor to filter by.

  • SID of a MediaRecording source to filter by.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • media_recordings array[object]
      Hide media_recordings attributes Show media_recordings attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • bitrate integer | null

        The bitrate of the media

      • date_created string(date-time) | null

        The ISO 8601 date and time in GMT when the resource was created

      • date_updated string(date-time) | null

        The ISO 8601 date and time in GMT when the resource was last updated

      • duration integer | null

        The duration of the MediaRecording

      • format string | null

        The format of the MediaRecording

        Values are mp4 or webm.

      • processor_sid string | null

        The SID of the MediaProcessor

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZX[0-9a-fA-F]{32}$.

      • resolution string | null

        The dimensions of the video image in pixels

      • sid string | null

        The unique string that identifies the resource

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^KV[0-9a-fA-F]{32}$.

      • size integer | null

        The size of the recording

      • source_sid string | null

        The SID of the resource that generated the original media

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$.

      • status string | null

        The status of the MediaRecording

        Values are processing, completed, deleted, or failed.

      • status_callback string(uri) | null

        The URL to which Twilio will send MediaRecording event updates

      • status_callback_method string(http-method) | null

        The HTTP method Twilio should use to call the status_callback URL

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • url string(uri) | null

        The absolute URL of the resource

    • meta object
      Hide meta attributes Show meta attributes object
GET /v1/MediaRecordings
curl \
 -X GET https://media.twilio.com/v1/MediaRecordings \
 --user "username:password"
Response examples (200)
{
  "media_recordings": [
    {
      "account_sid": "string",
      "bitrate": 42,
      "date_created": "2023-05-04T09:42:00+00:00",
      "date_updated": "2023-05-04T09:42:00+00:00",
      "duration": 42,
      "format": "mp4",
      "links": {},
      "processor_sid": "string",
      "resolution": "string",
      "sid": "string",
      "size": 42,
      "source_sid": "string",
      "status": "processing",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "url": "https://example.com"
    }
  ],
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  }
}
Response examples (200)
{
  "media_recordings": [
    {
      "account_sid": "string",
      "bitrate": 42,
      "date_created": "2024-05-04T09:42:00+00:00",
      "date_updated": "2024-05-04T09:42:00+00:00",
      "duration": 42,
      "format": "mp4",
      "links": {},
      "processor_sid": "string",
      "resolution": "string",
      "sid": "string",
      "size": 42,
      "source_sid": "string",
      "status": "processing",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "url": "https://example.com"
    }
  ],
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  }
}