List of all Track recordings.

GET /v1/Recordings

Single-track, single-media recordings

List of all Track recordings.

Query parameters

  • Status string

    Read only the recordings that have this status. Can be: processing, completed, or deleted.

    Values are processing, completed, deleted, or failed.

  • SourceSid string

    Read only the recordings that have this source_sid.

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

  • GroupingSid array[string]

    Read only recordings with this grouping_sid, which may include a participant_sid and/or a room_sid.

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

  • DateCreatedAfter string(date-time)

    Read only recordings that started on or after this ISO 8601 date-time with time zone.

  • DateCreatedBefore string(date-time)

    Read only recordings that started before this ISO 8601 date-time with time zone, given as YYYY-MM-DDThh:mm:ss+|-hh:mm or YYYY-MM-DDThh:mm:ssZ.

  • MediaType string

    Read only recordings that have this media type. Can be either audio or video.

    Values are audio, video, or data.

  • PageSize integer(int64)

    How many resources to return in each list page.

    Minimum value is 1, maximum value is 100. Default value is 50.

  • Page integer

    The page index. This value is simply for client state.

    Minimum value is 0.

  • PageToken string

    The page token. This is provided by the API.

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
    • recordings array[object]
      Hide recordings attributes Show recordings 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.

    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri) | null
      • page integer
      • page_size integer
      • previous_page_url string(uri) | null
      • url string(uri)
GET /v1/Recordings
curl \
 --request GET 'https://video.twilio.com/v1/Recordings' \
 --user "username:password"
Response examples (200)
{
  "meta": {
    "key": "recordings",
    "url": "https://video.twilio.com/v1/Recordings?Status=completed&SourceSid=MTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&MediaType=audio&GroupingSid=RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://video.twilio.com/v1/Recordings?Status=completed&SourceSid=MTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&MediaType=audio&GroupingSid=RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
    "previous_page_url": null
  },
  "recordings": []
}
{
  "meta": {
    "key": "recordings",
    "url": "https://video.twilio.com/v1/Recordings?Status=completed&DateCreatedAfter=2017-01-01T00%3A00%3A01Z&DateCreatedBefore=2017-12-31T23%3A59%3A59Z&SourceSid=MTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&MediaType=audio&GroupingSid=RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://video.twilio.com/v1/Recordings?Status=completed&DateCreatedAfter=2017-01-01T00%3A00%3A01Z&DateCreatedBefore=2017-12-31T23%3A59%3A59Z&SourceSid=MTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&MediaType=audio&GroupingSid=RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
    "previous_page_url": null
  },
  "recordings": [
    {
      "sid": "RTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "url": "https://video.twilio.com/v1/Recordings/RTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "size": 23,
      "type": "audio",
      "codec": "opus",
      "links": {
        "media": "https://video.twilio.com/v1/Recordings/RTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media"
      },
      "offset": 10,
      "status": "completed",
      "duration": 10,
      "source_sid": "MTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "track_name": "A name",
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "date_created": "2015-07-30T20:00:00Z",
      "date_deleted": "2015-07-30T22:00:00Z",
      "date_updated": "2015-07-30T21:00:00Z",
      "grouping_sids": {
        "room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "participant_sid": "PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
      },
      "encryption_key": "public_key",
      "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/"
    }
  ]
}