REST API: Rooms - Twilio
Register for SIGNAL by 8/31 for $250 off. Register now.

REST API: Rooms

Overview

The Programmable Video Rooms resource represents a communications session among multiple endpoints using one of Twilio's Programmable Video SDKs. Connected users (Participants) can share video and audio Tracks to the Room, and receive video and audio Tracks from other Participants in the Room.

The Rooms resource lets you dynamically create and complete Rooms and configure a Room's topology and behavior. Use this API to set Room properties such as its name, type, TURN configuration, webhook status callback URL, and the maximum number of Participants.

All Programmable Video REST API resources use the following base URL.

https://video.twilio.com

Contents

Room Instance Resource

Resource URI

/v1/Rooms/{RoomNameOrSid}

Resource Properties

Name Description
account_sid

The unique ID of the Account associated with this Room. (not PII)

date_created

The date that this resource was created, given as a UTC ISO 8601 Timestamp. (not PII)

date_updated

The date that this resource was last updated, given as a UTC ISO 8601 Timestamp. (not PII)

duration

The duration of the Room in seconds. (not PII)

enable_turn

Enable Twilio's Network Traversal TURN service. TURN service is used when direct peer-to-peer media connections cannot be established due to firewall restrictions. When used, TURN bandwidth usage is billed according to Network Traversal Service rates. This setting only applies to Rooms with type peer-to-peer. (not PII)

end_time

The end time of the Room, given as a UTC ISO 8601 Timestamp. (not PII)

max_participants

Maximum number of concurrent Participants allowed in the Room. (not PII)

media_region

Region for the media server in Group Rooms. See the available Media RegionsThis feature is not available in peer-to-peer rooms. (not PII)

record_participants_on_connect

Start recording when Participants connect. This feature is not available in peer-to-peer rooms. (not PII)

sid

A system-generated 34-character string that uniquely identifies this resource. (not PII)

status

A string representing the status of the Room. It can be one of in-progress, failed or completed. (not PII)

status_callback

A URL that Twilio sends asynchronous webhook requests to on every Room event. See Status Callbacks for details. (not PII)

status_callback_method

HTTP method Twilio should use when requesting the above URL. (not PII)

type

Type of Room, either peer-to-peer, group-small or group. Will be group by default. (not PII)

unique_name

A developer-supplied Name of the Room. This is unique for in-progress rooms. SDK clients can use this name to connect to the Room. REST API clients can use this name in place of the Room Sid to interact with the Room as long as the room is in-progress. (not PII)

url

The absolute URL for this resource. (not PII)

HTTP GET

Returns a single Room resource represented by {RoomNameOrSid} .

Retrieve an in-progress Room instance by UniqueName

You can retrieve an in-progress Room instance object using the Room's UniqueName. This makes it easier to interact with Twilio's REST API without having to keep track of Twilio's Room SID identifiers.

For example:

GET /Rooms/DailyStandup
Loading Code Samples...
Language
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms('DailyStandup')
            .fetch()
            .then(room => console.log(room.uniqueName))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Fetch(pathSid: "DailyStandup");

        Console.WriteLine(room.UniqueName);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms("DailyStandup")
                          ->fetch();

print($room->uniqueName);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms('DailyStandup').fetch

puts room.unique_name
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms('DailyStandup').fetch()

print(room.unique_name)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.fetcher("DailyStandup").fetch();

        System.out.println(room.getUniqueName());
    }
}
curl -X GET 'https://video.twilio.com/v1/Rooms/DailyStandup' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "peer-to-peer",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "unique_name",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "",
  "record_participants_on_connect": false,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
Retrieve an in-progress Room instance by UniqueName

Will return the Room instance object for the Room DailyStandup if the room is currently in-progress. If no Room exists by the name DailyStandup, or a Room by that name is only in completed status, the above request will return an HTTP 404 response.

Retrieve an in-progress or completed Room instance by RoomSid

A Room's Sid property is Twilio's own canonical unique identifier for a Room. You can always use the Room Sid to retrieve the Room, whether the room is in-progress or completed.

For example:

GET /Rooms/RMxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Loading Code Samples...
Language
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
            .fetch()
            .then(room => console.log(room.uniqueName))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Fetch(pathSid: "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");

        Console.WriteLine(room.UniqueName);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                          ->fetch();

print($room->uniqueName);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch

puts room.unique_name
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()

print(room.unique_name)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.fetcher("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch();

        System.out.println(room.getUniqueName());
    }
}
curl -X GET 'https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "peer-to-peer",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "unique_name",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "",
  "record_participants_on_connect": false,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
Retrieve an in-progress or completed Room instance by RoomSid

Will return the Room instance object for the Room with Sid RMxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, regardless of its status. If no Room exists with that Sid, the above request will return an HTTP 404 response.

HTTP POST

Modifies a Room resource.

Supported POST parameters

Name Description
Status

Required. Set to completed to end the Room. (not PII)

Complete a Room

Update a Room's status to completed with the following request to end the Room. All connected Participants will be immediately disconnected from the Room.

Loading Code Samples...
Language
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
            .update({status: 'completed'})
            .then(room => console.log(room.uniqueName))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Update(
            status: RoomResource.RoomStatusEnum.Completed,
            pathSid: "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
        );

        Console.WriteLine(room.UniqueName);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                          ->update("completed");

print($room->uniqueName);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
                    .update(status: 'completed')

puts room.unique_name
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
                   .update(status='completed')

print(room.unique_name)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.updater(
                "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",    Room.RoomStatus.COMPLETED)
            .update();

        System.out.println(room.getUniqueName());
    }
}
curl -X POST https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
--data-urlencode "Status=completed" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "completed",
  "type": "peer-to-peer",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "unique_name",
  "max_participants": 10,
  "status_callback_method": "POST",
  "status_callback": "",
  "record_participants_on_connect": false,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "duration": 10,
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
Complete a Room

Rooms List Resource

Resource URI

/v1/Rooms

HTTP POST

Create a new Room with an HTTP POST to the Rooms list resource.

Supported POST parameters

Name Description
EnableTurn

Optional. Use Twilio Network Traversal for TURN service. Defaults to true. Only applicable to Rooms with type peer-to-peer. (not PII)

MaxParticipants

Optional. Maximum number of Participants in the Room. Peer-to-peer rooms can have a maximum of 10 Participants. Small Group rooms can have a max of 4 Participants. Group rooms can have a max of 50 Participants (not PII)

MediaRegion

Optional. Region for the media server in Group Rooms. Default region is us1. See the list of available Media Regions.This feature is not available in peer-to-peer rooms. (not PII)

RecordParticipantsOnConnect

Optional. Start Participant recording when connected. This feature is not available in peer-to-peer rooms. (not PII)

StatusCallback

Optional. A URL that Twilio sends asynchronous webhook requests to on every room event. If not provided, status callback events will not be dispatched. (not PII)

StatusCallbackMethod

Optional. HTTP method Twilio should use when requesting the above URL. Defaults to POST. (not PII)

Type

Optional. Type of room, either peer-to-peer, group-small or group. Will be group by default. (not PII)

UniqueName

Optional. Name of the Room. This is unique for in-progress rooms. If not provided, Room name will be set to the Room Sid. (not PII)

VideoCodecs

Optional. An array of video codecs supported when publishing a Track in the Room. VP8 and H264 codecs are supported. This feature is not available in peer-to-peer rooms (not PII)

Note: Rooms created via the REST API exist for five minutes to allow the first Participant to connect. If no Participants join within five minutes, the Room times out and a new Room must be created.

Example 1: Create a Room called "DailyStandup"

Loading Code Samples...
Language
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms.create({uniqueName: 'DailyStandup'})
                  .then(room => console.log(room.sid))
                  .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Create(uniqueName: "DailyStandup");

        Console.WriteLine(room.Sid);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms
                          ->create(array("uniqueName" => "DailyStandup"));

print($room->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms.create(unique_name: 'DailyStandup')

puts room.sid
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms.create(unique_name='DailyStandup')

print(room.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.creator().setUniqueName("DailyStandup").create();

        System.out.println(room.getSid());
    }
}
curl -X POST https://video.twilio.com/v1/Rooms \
--data-urlencode "UniqueName=DailyStandup" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "peer-to-peer",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "DailyStandup",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "",
  "record_participants_on_connect": false,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
Create a Room
Loading Code Samples...
Language
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms
            .create({
               enableTurn: true,
               statusCallback: 'http://example.org',
               type: 'peer-to-peer',
               uniqueName: 'DailyStandup'
             })
            .then(room => console.log(room.sid))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Create(
            enableTurn: true,
            statusCallback: new Uri("http://example.org"),
            type: RoomResource.RoomTypeEnum.PeerToPeer,
            uniqueName: "DailyStandup"
        );

        Console.WriteLine(room.Sid);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms
                          ->create(array(
                                       "enableTurn" => True,
                                       "statusCallback" => "http://example.org",
                                       "type" => "peer-to-peer",
                                       "uniqueName" => "DailyStandup"
                                   )
                          );

print($room->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms.create(
                             enable_turn: true,
                             status_callback: 'http://example.org',
                             type: 'peer-to-peer',
                             unique_name: 'DailyStandup'
                           )

puts room.sid
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms.create(
                              enable_turn=True,
                              status_callback='http://example.org',
                              type='peer-to-peer',
                              unique_name='DailyStandup'
                          )

print(room.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

import java.net.URI;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.creator()
            .setEnableTurn(true)
            .setStatusCallback(URI.create("http://example.org"))
            .setType(Room.RoomType.PEER_TO_PEER)
            .setUniqueName("DailyStandup")
            .create();

        System.out.println(room.getSid());
    }
}
curl -X POST https://video.twilio.com/v1/Rooms \
--data-urlencode "EnableTurn=True" \
--data-urlencode "StatusCallback=http://example.org" \
--data-urlencode "Type=peer-to-peer" \
--data-urlencode "UniqueName=DailyStandup" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "peer-to-peer",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "DailyStandup",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "http://example.org",
  "record_participants_on_connect": false,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
Create a Peer-to-Peer Room
Loading Code Samples...
Language
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms
            .create({
               recordParticipantsOnConnect: true,
               statusCallback: 'http://example.org',
               type: 'group',
               uniqueName: 'DailyStandup'
             })
            .then(room => console.log(room.sid))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Create(
            recordParticipantsOnConnect: true,
            statusCallback: new Uri("http://example.org"),
            type: RoomResource.RoomTypeEnum.Group,
            uniqueName: "DailyStandup"
        );

        Console.WriteLine(room.Sid);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms
                          ->create(array(
                                       "recordParticipantsOnConnect" => True,
                                       "statusCallback" => "http://example.org",
                                       "type" => "group",
                                       "uniqueName" => "DailyStandup"
                                   )
                          );

print($room->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms.create(
                             record_participants_on_connect: true,
                             status_callback: 'http://example.org',
                             type: 'group',
                             unique_name: 'DailyStandup'
                           )

puts room.sid
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms.create(
                              record_participants_on_connect=True,
                              status_callback='http://example.org',
                              type='group',
                              unique_name='DailyStandup'
                          )

print(room.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

import java.net.URI;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.creator()
            .setRecordParticipantsOnConnect(true)
            .setStatusCallback(URI.create("http://example.org"))
            .setType(Room.RoomType.GROUP)
            .setUniqueName("DailyStandup")
            .create();

        System.out.println(room.getSid());
    }
}
curl -X POST https://video.twilio.com/v1/Rooms \
--data-urlencode "RecordParticipantsOnConnect=True" \
--data-urlencode "StatusCallback=http://example.org" \
--data-urlencode "Type=group" \
--data-urlencode "UniqueName=DailyStandup" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "group",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "DailyStandup",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "http://example.org",
  "record_participants_on_connect": true,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
Create a Group Room
Loading Code Samples...
Language
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms
            .create({
               recordParticipantsOnConnect: true,
               statusCallback: 'http://example.org',
               type: 'group-small',
               uniqueName: 'SmallDailyStandup'
             })
            .then(room => console.log(room.sid))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Create(
            recordParticipantsOnConnect: true,
            statusCallback: new Uri("http://example.org"),
            type: RoomResource.RoomTypeEnum.GroupSmall,
            uniqueName: "SmallDailyStandup"
        );

        Console.WriteLine(room.Sid);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms
                          ->create(array(
                                       "recordParticipantsOnConnect" => True,
                                       "statusCallback" => "http://example.org",
                                       "type" => "group-small",
                                       "uniqueName" => "SmallDailyStandup"
                                   )
                          );

print($room->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms.create(
                             record_participants_on_connect: true,
                             status_callback: 'http://example.org',
                             type: 'group-small',
                             unique_name: 'SmallDailyStandup'
                           )

puts room.sid
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms.create(
                              record_participants_on_connect=True,
                              status_callback='http://example.org',
                              type='group-small',
                              unique_name='SmallDailyStandup'
                          )

print(room.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

import java.net.URI;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.creator()
            .setRecordParticipantsOnConnect(true)
            .setStatusCallback(URI.create("http://example.org"))
            .setType(Room.RoomType.GROUP_SMALL)
            .setUniqueName("SmallDailyStandup")
            .create();

        System.out.println(room.getSid());
    }
}
curl -X POST https://video.twilio.com/v1/Rooms \
--data-urlencode "RecordParticipantsOnConnect=True" \
--data-urlencode "StatusCallback=http://example.org" \
--data-urlencode "Type=group-small" \
--data-urlencode "UniqueName=SmallDailyStandup" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "group-small",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "SmallDailyStandup",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "http://example.org",
  "record_participants_on_connect": true,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
Create a Small Group Room

Once a Room is created, generate an Access Token containing the Room name and use one of Twilio's Video SDKs to connect to the Room.

For example, using the JavaScript SDK:

Twilio.Video.connect('$AccessTokenContainingRoomName').then(function(room) {
  console.log('Successfully joined a Room: ', room);
}, function(error) {
    console.error('Unable to connect to Room: ' +  error.message);
});

HTTP GET

Returns a list of Room resources created in the given account. The list includes paging information.

List Filters

The following GET query string parameters allow you to limit the list returned. Note, parameters are case-sensitive.

Name Description
DateCreatedAfter

Optional. Only show Rooms that started on or after this date, given as YYYY-MM-DD. (not PII)

DateCreatedBefore

Optional. Only show Rooms that started before this date, given as YYYY-MM-DD. (not PII)

Status

Optional. Only show Rooms with the given status. (not PII)

UniqueName

Optional. Only show Rooms with the provided Name. (not PII)

Loading Code Samples...
Language
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms.each({
                     uniqueName: 'DailyStandup'
                   },
                       rooms => console.log(rooms.sid)
                   );
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var rooms = RoomResource.Read(uniqueName: "DailyStandup");

        foreach(var record in rooms)
        {
           Console.WriteLine(record.Sid);
        }
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$rooms = $twilio->video->v1->rooms
                           ->read(array("uniqueName" => "DailyStandup"));

foreach ($rooms as $record) {
    print($record->sid);
}
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

rooms = @client.video.rooms.list(unique_name: 'DailyStandup')

rooms.each do |record|
  puts record.sid
end
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

rooms = client.video.rooms.list(unique_name='DailyStandup')

for record in rooms:
    print(record.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<Room> rooms = Room.reader()
            .setUniqueName("DailyStandup").read();

        for(Room record : rooms) {
            System.out.println(record.getSid());
        }
    }
}
curl -X GET 'https://video.twilio.com/v1/Rooms?UniqueName=DailyStandup' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "rooms": [
    {
      "sid": "RM4070b618362c1682b2385b1f9982833c",
      "status": "completed",
      "date_created": "2017-04-03T22:21:49Z",
      "date_updated": "2017-04-03T22:21:51Z",
      "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "type": "peer-to-peer",
      "enable_turn": true,
      "unique_name": "RM4070b618362c1682b2385b1f9982833c",
      "status_callback": null,
      "status_callback_method": "POST",
      "end_time": "2017-04-03T22:21:51Z",
      "duration": 2,
      "max_participants": 10,
      "record_participants_on_connect": false,
      "video_codecs": [
        "VP8"
      ],
      "media_region": "us1",
      "url": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c",
      "links": {
        "participants": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Participants",
        "recordings": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Recordings"
      }
    }
  ],
  "meta": {
    "page": 0,
    "page_size": 50,
    "first_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "previous_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "next_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=1",
    "key": "rooms"
  },
  "unique_name": "DailyStandup"
}
Retrieve a list of Rooms by UniqueName

Returns a list containing any Rooms with the name DailyStandup.

Filter Rooms by Status

Loading Code Samples...
Language
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms.each({
                     status: 'completed'
                   },
                       rooms => console.log(rooms.sid)
                   );
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var rooms = RoomResource.Read(status: RoomResource.RoomStatusEnum.Completed);

        foreach(var record in rooms)
        {
           Console.WriteLine(record.Sid);
        }
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$rooms = $twilio->video->v1->rooms
                           ->read(array("status" => "completed"));

foreach ($rooms as $record) {
    print($record->sid);
}
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

rooms = @client.video.rooms.list(status: 'completed')

rooms.each do |record|
  puts record.sid
end
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

rooms = client.video.rooms.list(status='completed')

for record in rooms:
    print(record.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<Room> rooms = Room.reader()
            .setStatus(Room.RoomStatus.COMPLETED).read();

        for(Room record : rooms) {
            System.out.println(record.getSid());
        }
    }
}
curl -X GET 'https://video.twilio.com/v1/Rooms?Status=completed' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "rooms": [
    {
      "sid": "RM4070b618362c1682b2385b1f9982833c",
      "status": "completed",
      "date_created": "2017-04-03T22:21:49Z",
      "date_updated": "2017-04-03T22:21:51Z",
      "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "type": "peer-to-peer",
      "enable_turn": true,
      "unique_name": "RM4070b618362c1682b2385b1f9982833c",
      "status_callback": null,
      "status_callback_method": "POST",
      "end_time": "2017-04-03T22:21:51Z",
      "duration": 2,
      "max_participants": 10,
      "record_participants_on_connect": false,
      "video_codecs": [
        "VP8"
      ],
      "media_region": "us1",
      "url": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c",
      "links": {
        "participants": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Participants",
        "recordings": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Recordings"
      }
    }
  ],
  "meta": {
    "page": 0,
    "page_size": 50,
    "first_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "previous_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "next_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=1",
    "key": "rooms"
  },
  "status": "completed"
}
Retrieve a list of Rooms by Status
Loading Code Samples...
Language
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms.each({
                     status: 'completed',
                     uniqueName: 'DailyStandup'
                   },
                       rooms => console.log(rooms.sid)
                   );
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var rooms = RoomResource.Read(
            status: RoomResource.RoomStatusEnum.Completed,
            uniqueName: "DailyStandup"
        );

        foreach(var record in rooms)
        {
           Console.WriteLine(record.Sid);
        }
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$rooms = $twilio->video->v1->rooms
                           ->read(array(
                                      "status" => "completed",
                                      "uniqueName" => "DailyStandup"
                                  )
                           );

foreach ($rooms as $record) {
    print($record->sid);
}
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

rooms = @client.video.rooms.list(
                              status: 'completed',
                              unique_name: 'DailyStandup'
                            )

rooms.each do |record|
  puts record.sid
end
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

rooms = client.video.rooms.list(status='completed', unique_name='DailyStandup')

for record in rooms:
    print(record.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<Room> rooms = Room.reader()
            .setStatus(Room.RoomStatus.COMPLETED)
            .setUniqueName("DailyStandup")
            .read();

        for(Room record : rooms) {
            System.out.println(record.getSid());
        }
    }
}
curl -X GET 'https://video.twilio.com/v1/Rooms?Status=completed&UniqueName=DailyStandup' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "rooms": [
    {
      "sid": "RM4070b618362c1682b2385b1f9982833c",
      "status": "completed",
      "date_created": "2017-04-03T22:21:49Z",
      "date_updated": "2017-04-03T22:21:51Z",
      "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "type": "peer-to-peer",
      "enable_turn": true,
      "unique_name": "RM4070b618362c1682b2385b1f9982833c",
      "status_callback": null,
      "status_callback_method": "POST",
      "end_time": "2017-04-03T22:21:51Z",
      "duration": 2,
      "max_participants": 10,
      "record_participants_on_connect": false,
      "video_codecs": [
        "VP8"
      ],
      "media_region": "us1",
      "url": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c",
      "links": {
        "participants": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Participants",
        "recordings": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Recordings"
      }
    }
  ],
  "meta": {
    "page": 0,
    "page_size": 50,
    "first_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "previous_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "next_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=1",
    "key": "rooms"
  },
  "status": "completed",
  "unique_name": "DailyStandup"
}
Retrieve a list of completed Rooms

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.

Loading Code Samples...
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms('DailyStandup')
            .fetch()
            .then(room => console.log(room.uniqueName))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Fetch(pathSid: "DailyStandup");

        Console.WriteLine(room.UniqueName);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms("DailyStandup")
                          ->fetch();

print($room->uniqueName);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms('DailyStandup').fetch

puts room.unique_name
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms('DailyStandup').fetch()

print(room.unique_name)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.fetcher("DailyStandup").fetch();

        System.out.println(room.getUniqueName());
    }
}
curl -X GET 'https://video.twilio.com/v1/Rooms/DailyStandup' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "peer-to-peer",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "unique_name",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "",
  "record_participants_on_connect": false,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
            .fetch()
            .then(room => console.log(room.uniqueName))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Fetch(pathSid: "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");

        Console.WriteLine(room.UniqueName);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                          ->fetch();

print($room->uniqueName);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch

puts room.unique_name
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()

print(room.unique_name)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.fetcher("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch();

        System.out.println(room.getUniqueName());
    }
}
curl -X GET 'https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "peer-to-peer",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "unique_name",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "",
  "record_participants_on_connect": false,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
            .update({status: 'completed'})
            .then(room => console.log(room.uniqueName))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Update(
            status: RoomResource.RoomStatusEnum.Completed,
            pathSid: "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
        );

        Console.WriteLine(room.UniqueName);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms("RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                          ->update("completed");

print($room->uniqueName);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
                    .update(status: 'completed')

puts room.unique_name
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
                   .update(status='completed')

print(room.unique_name)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.updater(
                "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",    Room.RoomStatus.COMPLETED)
            .update();

        System.out.println(room.getUniqueName());
    }
}
curl -X POST https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
--data-urlencode "Status=completed" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "completed",
  "type": "peer-to-peer",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "unique_name",
  "max_participants": 10,
  "status_callback_method": "POST",
  "status_callback": "",
  "record_participants_on_connect": false,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "duration": 10,
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms.create({uniqueName: 'DailyStandup'})
                  .then(room => console.log(room.sid))
                  .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Create(uniqueName: "DailyStandup");

        Console.WriteLine(room.Sid);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms
                          ->create(array("uniqueName" => "DailyStandup"));

print($room->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms.create(unique_name: 'DailyStandup')

puts room.sid
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms.create(unique_name='DailyStandup')

print(room.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.creator().setUniqueName("DailyStandup").create();

        System.out.println(room.getSid());
    }
}
curl -X POST https://video.twilio.com/v1/Rooms \
--data-urlencode "UniqueName=DailyStandup" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "peer-to-peer",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "DailyStandup",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "",
  "record_participants_on_connect": false,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms
            .create({
               enableTurn: true,
               statusCallback: 'http://example.org',
               type: 'peer-to-peer',
               uniqueName: 'DailyStandup'
             })
            .then(room => console.log(room.sid))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Create(
            enableTurn: true,
            statusCallback: new Uri("http://example.org"),
            type: RoomResource.RoomTypeEnum.PeerToPeer,
            uniqueName: "DailyStandup"
        );

        Console.WriteLine(room.Sid);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms
                          ->create(array(
                                       "enableTurn" => True,
                                       "statusCallback" => "http://example.org",
                                       "type" => "peer-to-peer",
                                       "uniqueName" => "DailyStandup"
                                   )
                          );

print($room->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms.create(
                             enable_turn: true,
                             status_callback: 'http://example.org',
                             type: 'peer-to-peer',
                             unique_name: 'DailyStandup'
                           )

puts room.sid
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms.create(
                              enable_turn=True,
                              status_callback='http://example.org',
                              type='peer-to-peer',
                              unique_name='DailyStandup'
                          )

print(room.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

import java.net.URI;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.creator()
            .setEnableTurn(true)
            .setStatusCallback(URI.create("http://example.org"))
            .setType(Room.RoomType.PEER_TO_PEER)
            .setUniqueName("DailyStandup")
            .create();

        System.out.println(room.getSid());
    }
}
curl -X POST https://video.twilio.com/v1/Rooms \
--data-urlencode "EnableTurn=True" \
--data-urlencode "StatusCallback=http://example.org" \
--data-urlencode "Type=peer-to-peer" \
--data-urlencode "UniqueName=DailyStandup" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "peer-to-peer",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "DailyStandup",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "http://example.org",
  "record_participants_on_connect": false,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms
            .create({
               recordParticipantsOnConnect: true,
               statusCallback: 'http://example.org',
               type: 'group',
               uniqueName: 'DailyStandup'
             })
            .then(room => console.log(room.sid))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Create(
            recordParticipantsOnConnect: true,
            statusCallback: new Uri("http://example.org"),
            type: RoomResource.RoomTypeEnum.Group,
            uniqueName: "DailyStandup"
        );

        Console.WriteLine(room.Sid);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms
                          ->create(array(
                                       "recordParticipantsOnConnect" => True,
                                       "statusCallback" => "http://example.org",
                                       "type" => "group",
                                       "uniqueName" => "DailyStandup"
                                   )
                          );

print($room->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms.create(
                             record_participants_on_connect: true,
                             status_callback: 'http://example.org',
                             type: 'group',
                             unique_name: 'DailyStandup'
                           )

puts room.sid
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms.create(
                              record_participants_on_connect=True,
                              status_callback='http://example.org',
                              type='group',
                              unique_name='DailyStandup'
                          )

print(room.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

import java.net.URI;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.creator()
            .setRecordParticipantsOnConnect(true)
            .setStatusCallback(URI.create("http://example.org"))
            .setType(Room.RoomType.GROUP)
            .setUniqueName("DailyStandup")
            .create();

        System.out.println(room.getSid());
    }
}
curl -X POST https://video.twilio.com/v1/Rooms \
--data-urlencode "RecordParticipantsOnConnect=True" \
--data-urlencode "StatusCallback=http://example.org" \
--data-urlencode "Type=group" \
--data-urlencode "UniqueName=DailyStandup" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "group",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "DailyStandup",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "http://example.org",
  "record_participants_on_connect": true,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms
            .create({
               recordParticipantsOnConnect: true,
               statusCallback: 'http://example.org',
               type: 'group-small',
               uniqueName: 'SmallDailyStandup'
             })
            .then(room => console.log(room.sid))
            .done();
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var room = RoomResource.Create(
            recordParticipantsOnConnect: true,
            statusCallback: new Uri("http://example.org"),
            type: RoomResource.RoomTypeEnum.GroupSmall,
            uniqueName: "SmallDailyStandup"
        );

        Console.WriteLine(room.Sid);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$room = $twilio->video->v1->rooms
                          ->create(array(
                                       "recordParticipantsOnConnect" => True,
                                       "statusCallback" => "http://example.org",
                                       "type" => "group-small",
                                       "uniqueName" => "SmallDailyStandup"
                                   )
                          );

print($room->sid);
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

room = @client.video.rooms.create(
                             record_participants_on_connect: true,
                             status_callback: 'http://example.org',
                             type: 'group-small',
                             unique_name: 'SmallDailyStandup'
                           )

puts room.sid
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

room = client.video.rooms.create(
                              record_participants_on_connect=True,
                              status_callback='http://example.org',
                              type='group-small',
                              unique_name='SmallDailyStandup'
                          )

print(room.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.video.v1.Room;

import java.net.URI;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        Room room = Room.creator()
            .setRecordParticipantsOnConnect(true)
            .setStatusCallback(URI.create("http://example.org"))
            .setType(Room.RoomType.GROUP_SMALL)
            .setUniqueName("SmallDailyStandup")
            .create();

        System.out.println(room.getSid());
    }
}
curl -X POST https://video.twilio.com/v1/Rooms \
--data-urlencode "RecordParticipantsOnConnect=True" \
--data-urlencode "StatusCallback=http://example.org" \
--data-urlencode "Type=group-small" \
--data-urlencode "UniqueName=SmallDailyStandup" \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "status": "in-progress",
  "type": "group-small",
  "sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "enable_turn": true,
  "unique_name": "SmallDailyStandup",
  "max_participants": 10,
  "duration": 0,
  "status_callback_method": "POST",
  "status_callback": "http://example.org",
  "record_participants_on_connect": true,
  "video_codecs": [
    "VP8"
  ],
  "media_region": "us1",
  "end_time": "2015-07-30T20:00:00Z",
  "url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "links": {
    "participants": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants",
    "recordings": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings"
  }
}
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms.each({
                     uniqueName: 'DailyStandup'
                   },
                       rooms => console.log(rooms.sid)
                   );
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var rooms = RoomResource.Read(uniqueName: "DailyStandup");

        foreach(var record in rooms)
        {
           Console.WriteLine(record.Sid);
        }
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$rooms = $twilio->video->v1->rooms
                           ->read(array("uniqueName" => "DailyStandup"));

foreach ($rooms as $record) {
    print($record->sid);
}
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

rooms = @client.video.rooms.list(unique_name: 'DailyStandup')

rooms.each do |record|
  puts record.sid
end
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

rooms = client.video.rooms.list(unique_name='DailyStandup')

for record in rooms:
    print(record.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<Room> rooms = Room.reader()
            .setUniqueName("DailyStandup").read();

        for(Room record : rooms) {
            System.out.println(record.getSid());
        }
    }
}
curl -X GET 'https://video.twilio.com/v1/Rooms?UniqueName=DailyStandup' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "rooms": [
    {
      "sid": "RM4070b618362c1682b2385b1f9982833c",
      "status": "completed",
      "date_created": "2017-04-03T22:21:49Z",
      "date_updated": "2017-04-03T22:21:51Z",
      "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "type": "peer-to-peer",
      "enable_turn": true,
      "unique_name": "RM4070b618362c1682b2385b1f9982833c",
      "status_callback": null,
      "status_callback_method": "POST",
      "end_time": "2017-04-03T22:21:51Z",
      "duration": 2,
      "max_participants": 10,
      "record_participants_on_connect": false,
      "video_codecs": [
        "VP8"
      ],
      "media_region": "us1",
      "url": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c",
      "links": {
        "participants": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Participants",
        "recordings": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Recordings"
      }
    }
  ],
  "meta": {
    "page": 0,
    "page_size": 50,
    "first_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "previous_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "next_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=1",
    "key": "rooms"
  },
  "unique_name": "DailyStandup"
}
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms.each({
                     status: 'completed'
                   },
                       rooms => console.log(rooms.sid)
                   );
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var rooms = RoomResource.Read(status: RoomResource.RoomStatusEnum.Completed);

        foreach(var record in rooms)
        {
           Console.WriteLine(record.Sid);
        }
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$rooms = $twilio->video->v1->rooms
                           ->read(array("status" => "completed"));

foreach ($rooms as $record) {
    print($record->sid);
}
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

rooms = @client.video.rooms.list(status: 'completed')

rooms.each do |record|
  puts record.sid
end
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

rooms = client.video.rooms.list(status='completed')

for record in rooms:
    print(record.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<Room> rooms = Room.reader()
            .setStatus(Room.RoomStatus.COMPLETED).read();

        for(Room record : rooms) {
            System.out.println(record.getSid());
        }
    }
}
curl -X GET 'https://video.twilio.com/v1/Rooms?Status=completed' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "rooms": [
    {
      "sid": "RM4070b618362c1682b2385b1f9982833c",
      "status": "completed",
      "date_created": "2017-04-03T22:21:49Z",
      "date_updated": "2017-04-03T22:21:51Z",
      "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "type": "peer-to-peer",
      "enable_turn": true,
      "unique_name": "RM4070b618362c1682b2385b1f9982833c",
      "status_callback": null,
      "status_callback_method": "POST",
      "end_time": "2017-04-03T22:21:51Z",
      "duration": 2,
      "max_participants": 10,
      "record_participants_on_connect": false,
      "video_codecs": [
        "VP8"
      ],
      "media_region": "us1",
      "url": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c",
      "links": {
        "participants": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Participants",
        "recordings": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Recordings"
      }
    }
  ],
  "meta": {
    "page": 0,
    "page_size": 50,
    "first_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "previous_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "next_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=1",
    "key": "rooms"
  },
  "status": "completed"
}
SDK Version:
  • 5.x
Response Format:
  • json
SDK Version:
  • 7.x
SDK Version:
  • 3.x
SDK Version:
  • 5.x
SDK Version:
  • 6.x
SDK Version:
  • 5.x
Format:
  • JSON
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.video.rooms.each({
                     status: 'completed',
                     uniqueName: 'DailyStandup'
                   },
                       rooms => console.log(rooms.sid)
                   );
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Video.V1;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var rooms = RoomResource.Read(
            status: RoomResource.RoomStatusEnum.Completed,
            uniqueName: "DailyStandup"
        );

        foreach(var record in rooms)
        {
           Console.WriteLine(record.Sid);
        }
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Find your Account Sid and Auth Token at twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$rooms = $twilio->video->v1->rooms
                           ->read(array(
                                      "status" => "completed",
                                      "uniqueName" => "DailyStandup"
                                  )
                           );

foreach ($rooms as $record) {
    print($record->sid);
}
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

rooms = @client.video.rooms.list(
                              status: 'completed',
                              unique_name: 'DailyStandup'
                            )

rooms.each do |record|
  puts record.sid
end
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

rooms = client.video.rooms.list(status='completed', unique_name='DailyStandup')

for record in rooms:
    print(record.sid)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.video.v1.Room;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<Room> rooms = Room.reader()
            .setStatus(Room.RoomStatus.COMPLETED)
            .setUniqueName("DailyStandup")
            .read();

        for(Room record : rooms) {
            System.out.println(record.getSid());
        }
    }
}
curl -X GET 'https://video.twilio.com/v1/Rooms?Status=completed&UniqueName=DailyStandup' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "rooms": [
    {
      "sid": "RM4070b618362c1682b2385b1f9982833c",
      "status": "completed",
      "date_created": "2017-04-03T22:21:49Z",
      "date_updated": "2017-04-03T22:21:51Z",
      "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "type": "peer-to-peer",
      "enable_turn": true,
      "unique_name": "RM4070b618362c1682b2385b1f9982833c",
      "status_callback": null,
      "status_callback_method": "POST",
      "end_time": "2017-04-03T22:21:51Z",
      "duration": 2,
      "max_participants": 10,
      "record_participants_on_connect": false,
      "video_codecs": [
        "VP8"
      ],
      "media_region": "us1",
      "url": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c",
      "links": {
        "participants": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Participants",
        "recordings": "https://video.twilio.com/v1/Rooms/RM4070b618362c1682b2385b1f9982833c/Recordings"
      }
    }
  ],
  "meta": {
    "page": 0,
    "page_size": 50,
    "first_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "previous_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=0",
    "next_page_url": "https://video.twilio.com/v1/Rooms?PageSize=50&Page=1",
    "key": "rooms"
  },
  "status": "completed",
  "unique_name": "DailyStandup"
}