Returns a single Recording resource identified by a Recording SID.

GET /v1/Recordings/{Sid}

Single-track, single-media recordings

Returns a single Recording resource identified by a Recording SID.

Path parameters

  • Sid string Required

    The SID of the Recording resource to fetch.

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

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the Recording resource.

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

    • status string

      The status of the recording. Can be: processing, completed, or deleted. processing indicates the recording is still being captured; completed indicates the recording has been captured and is now available for download. deleted means the recording media has been deleted from the system, but its metadata is still available.

      Values are processing, completed, deleted, or failed.

    • date_created string(date-time) | null

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

    • sid string | null

      The unique string that we created to identify the Recording resource.

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

    • source_sid string | null

      The SID of the recording source. For a Room Recording, this value is a track_sid.

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

    • size integer(int64) | null

      The size of the recorded track, in bytes.

    • url string(uri) | null

      The absolute URL of the resource.

    • type string

      The recording's media type. Can be: audio or video.

      Values are audio, video, or data.

    • duration integer | null

      The duration of the recording in seconds rounded to the nearest second. Sub-second tracks have a Duration property of 1 second

    • container_format string

      Values are mka or mkv.

    • codec string

      The codec used to encode the track. Can be: VP8, H264, OPUS, and PCMU.

      Values are VP8, H264, OPUS, or PCMU.

    • grouping_sids object | null

      A list of SIDs related to the recording. Includes the room_sid and participant_sid.

    • track_name string | null

      The name that was given to the source track of the recording. If no name is given, the source_sid is used.

    • offset integer(int64) | null

      The time in milliseconds elapsed between an arbitrary point in time, common to all group rooms, and the moment when the source room of this track started. This information provides a synchronization mechanism for recordings belonging to the same room.

    • media_external_location string(uri) | null

      The URL of the media file associated with the recording when stored externally. See External S3 Recordings for more details.

    • status_callback string(uri) | null

      The URL called using the status_callback_method to send status information on every recording event.

    • status_callback_method string(http-method) | null

      The HTTP method used to call status_callback. Can be: POST or GET, defaults to POST.

      Values are GET or POST.

GET /v1/Recordings/{Sid}
curl \
 --request GET 'https://video.twilio.com/v1/Recordings/{Sid}' \
 --user "username:password"
Response examples (200)
{
  "sid": "RTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://video.twilio.com/v1/Recordings/RTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "size": 0,
  "type": "audio",
  "codec": "opus",
  "links": {
    "media": "https://video.twilio.com/v1/Recordings/RTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media"
  },
  "offset": 10,
  "status": "processing",
  "duration": 0,
  "source_sid": "MTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "track_name": "A name",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "date_created": "2015-07-30T20:00:00Z",
  "grouping_sids": {
    "room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "status_callback": "https://mycallbackurl.com",
  "container_format": "mka",
  "status_callback_method": "POST",
  "media_external_location": "https://my-super-duper-bucket.s3.amazonaws.com/my/path/"
}