Query parameters
-
Read only the rooms with this status. Can be:
in-progress
(default) orcompleted
Values are
in-progress
,completed
, orfailed
. -
Read only rooms with the this
unique_name
. -
Read only rooms that started on or after this date, given as
YYYY-MM-DD
. -
Read only rooms that started before this date, given as
YYYY-MM-DD
. -
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
. -
The page index. This value is simply for client state.
Minimum value is
0
. -
The page token. This is provided by the API.
GET
/v1/Rooms
curl \
--request GET 'https://video.twilio.com/v1/Rooms' \
--user "username:password"
Response examples (200)
Read empty
{
"meta": {
"key": "rooms",
"url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
"previous_page_url": null
},
"rooms": []
}
{
"meta": {
"key": "rooms",
"url": "https://video.twilio.com/v1/Rooms?Status=completed&PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://video.twilio.com/v1/Rooms?Status=completed&PageSize=50&Page=0",
"previous_page_url": null
},
"rooms": [
{
"sid": "RM4070b618362c1682b2385b1f9982833c",
"url": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c",
"type": "peer-to-peer",
"links": {
"recordings": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Recordings",
"participants": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Participants",
"transcriptions": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Transcriptions",
"recording_rules": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/RecordingRules"
},
"status": "completed",
"duration": 2,
"end_time": "2017-04-03T22:21:51Z",
"audio_only": false,
"large_room": false,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"enable_turn": true,
"unique_name": "RM4070b618362c1682b2385b1f9982833c",
"date_created": "2017-04-03T22:21:49Z",
"date_updated": "2017-04-03T22:21:51Z",
"media_region": "us1",
"video_codecs": [
"VP8"
],
"status_callback": null,
"max_participants": 10,
"empty_room_timeout": 5,
"unused_room_timeout": 5,
"status_callback_method": "POST",
"max_participant_duration": 86400,
"record_participants_on_connect": false,
"max_concurrent_published_tracks": 10
}
]
}