List room

GET /v1/Rooms

Video rooms with one or more participants

Query parameters

  • Status string

    Read only the rooms with this status. Can be: in-progress (default) or completed

    Values are in-progress, completed, or failed.

  • Read only rooms with the this unique_name.

  • DateCreatedAfter string(date-time)

    Read only rooms that started on or after this date, given as YYYY-MM-DD.

  • DateCreatedBefore string(date-time)

    Read only rooms that started before this date, given as YYYY-MM-DD.

  • 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
    • meta object
      Hide meta attributes Show meta attributes object
    • rooms array[object]
      Hide rooms attributes Show rooms 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}$.

      • audio_only boolean | null

        Indicates whether the room will only contain audio track participants for group rooms.

      • 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 room in seconds

      • empty_room_timeout integer | null

        The time a room will remain active after last participant leaves.

      • enable_turn boolean | null

        Enable Twilio's Network Traversal TURN service

      • end_time string(date-time) | null

        The UTC end time of the room in UTC ISO 8601 format

      • large_room boolean | null

        Indicates if this is a large room.

      • The maximum number of published tracks allowed in the room at the same time

      • The maximum number of seconds a Participant can be connected to the room

      • max_participants integer | null

        The maximum number of concurrent Participants allowed in the room

      • media_region string | null

        The region for the media server in Group Rooms

      • Whether to start recording when Participants connect

      • sid string | null

        The unique string that identifies the resource

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

      • status string | null

        The status of the room

        Values are in-progress, completed, or failed.

      • status_callback string(uri) | null

        The URL to send status information to your application

      • status_callback_method string(http-method) | null

        The HTTP method we use to call status_callback

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

      • type string | null

        The type of room

        Values are go, peer-to-peer, group, or group-small.

      • unique_name string | null

        An application-defined string that uniquely identifies the resource

      • unused_room_timeout integer | null

        The time a room will remain active when no one joins.

      • url string(uri) | null

        The absolute URL of the resource

      • video_codecs array[string] | null

        An array of the video codecs that are supported when publishing a track in the room

        Values are VP8 or H264.

GET /v1/Rooms
curl \
 -X GET https://video.twilio.com/v1/Rooms \
 --user "username:password"
Response examples (200)
{
  "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"
  },
  "rooms": [
    {
      "account_sid": "string",
      "audio_only": true,
      "date_created": "2023-05-04T09:42:00+00:00",
      "date_updated": "2023-05-04T09:42:00+00:00",
      "duration": 42,
      "empty_room_timeout": 42,
      "enable_turn": true,
      "end_time": "2023-05-04T09:42:00+00:00",
      "large_room": true,
      "links": {},
      "max_concurrent_published_tracks": 42,
      "max_participant_duration": 42,
      "max_participants": 42,
      "media_region": "string",
      "record_participants_on_connect": true,
      "sid": "string",
      "status": "in-progress",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "type": "go",
      "unique_name": "string",
      "unused_room_timeout": 42,
      "url": "https://example.com",
      "video_codecs": [
        "VP8"
      ]
    }
  ]
}
Response examples (200)
{
  "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"
  },
  "rooms": [
    {
      "account_sid": "string",
      "audio_only": true,
      "date_created": "2024-05-04T09:42:00+00:00",
      "date_updated": "2024-05-04T09:42:00+00:00",
      "duration": 42,
      "empty_room_timeout": 42,
      "enable_turn": true,
      "end_time": "2024-05-04T09:42:00+00:00",
      "large_room": true,
      "links": {},
      "max_concurrent_published_tracks": 42,
      "max_participant_duration": 42,
      "max_participants": 42,
      "media_region": "string",
      "record_participants_on_connect": true,
      "sid": "string",
      "status": "in-progress",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "type": "go",
      "unique_name": "string",
      "unused_room_timeout": 42,
      "url": "https://example.com",
      "video_codecs": [
        "VP8"
      ]
    }
  ]
}