Returns a single MediaRecording resource identified by a SID

GET /v1/MediaRecordings/{Sid}

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

Returns a single MediaRecording resource identified by a SID.

Path parameters

  • Sid string Required

    The SID of the MediaRecording resource to fetch.

Responses

  • OK

    Hide response attributes Show response attributes 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

GET /v1/MediaRecordings/{Sid}
curl \
 -X GET https://media.twilio.com/v1/MediaRecordings/{Sid} \
 --user "username:password"
Response examples (200)
{
  "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"
}
Response examples (200)
{
  "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"
}