NAME

Twilio::Rest::Insights::V1::Room - The Room resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $room ($client->insights->v1->rooms->read({}, 20)) {
  ...
}
my $room = $client->insights->v1->rooms($room_sid)->fetch;

DESCRIPTION

This file holds RoomList, RoomPage, RoomContext and RoomInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

RoomList

Returned by $client->insights->v1->rooms. See also Twilio::ListResource.

read

my @records = $client->insights->v1->rooms->read(\%options, $limit, $page_size);

Get a list of Programmable Video Rooms. Returns the records as a list, fetching as many pages as it needs.

The options are:

codec

Codecs used by participants in the room. Can be VP8, H264, or VP9. One of VP8, H264, VP9 or opus. An array reference.

created_after

Only read rooms that started on or after this ISO 8601 timestamp. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

created_before

Only read rooms that started before this ISO 8601 timestamp. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

room_name

Room friendly name.

room_type

Type of room. Can be go, peer_to_peer, group, or group_small. One of go, peer_to_peer, group or group_small. An array reference.

stream

my $stream = $client->insights->v1->rooms->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->insights->v1->rooms->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->insights->v1->rooms->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->insights->v1->rooms->get_context($room_sid);

Returns a RoomContext, and makes no request.

RoomPage

A Twilio::Page of RoomInstance objects.

records_key

build_instance

Used by Twilio::Page.

RoomContext

Returned by $client->insights->v1->rooms($room_sid). It makes no request until one of these methods is called.

fetch

my $room = $client->insights->v1->rooms($room_sid)->fetch;

Get Video Log Analyzer data for a Room. Returns a RoomInstance.

participants

my $list = $object->participants;

my $context = $object->participants($participant_sid);

See Twilio::Rest::Insights::V1::Room::Participant.

RoomInstance

See also Twilio::InstanceResource.

It has fetch and participants, which work as they do on the context.

Its fields are:

account_sid

Account SID associated with this room.

codecs

Codecs used by participants in the room. Can be VP8, H264, or VP9.

concurrent_participants

Actual number of concurrent participants.

create_time

Creation time of the room. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

created_method

How the room was created. Can be sdk, ad_hoc, or api. One of sdk, ad_hoc or api.

duration_sec

Total room duration from create time to end time.

edge_location

Edge location of Twilio media servers for the room. See the list of public edge locations for the possible values. One of ashburn, dublin, frankfurt, singapore, sydney, sao_paulo, roaming, umatilla or tokyo.

end_reason

Reason the room ended. Can be room_ended_via_api or timeout. One of room_ended_via_api or timeout.

end_time

End time for the room. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

Room subresources.

max_concurrent_participants

Maximum number of participants allowed in the room at the same time allowed by the application settings.

max_participants

Max number of total participants allowed by the application settings.

media_region

Region of Twilio media servers for the room. See the list of possible media servers here. One of us1, us2, au1, br1, ie1, jp1, sg1, in1, de1 or gll.

processing_state

Video Log Analyzer resource state. Will be either in-progress or complete. in-progress indicates that more details may be appended to the resource. complete indicates no further information will be added. One of complete, in_progress, timeout or not_started.

recording_enabled

Boolean indicating if recording is enabled for the room.

room_name

Room friendly name.

room_sid

Unique identifier for the room.

room_status

Status of the room. Can be in_progress or completed. One of in_progress or completed.

room_type

Type of room. Can be go, peer_to_peer, group, or group_small. One of go, peer_to_peer, group or group_small.

status_callback

Webhook provided for status callbacks.

status_callback_method

HTTP method provided for status callback URL. One of GET or POST.

total_participant_duration_sec

Combined amount of participant time in the room.

total_recording_duration_sec

Combined amount of recorded seconds for participants in the room.

unique_participant_identities

Unique number of participant identities.

unique_participants

Number of participants. May include duplicate identities for participants who left and rejoined.

url

URL for the room resource.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.