The Conference REST resource allows you to query and manage the state of conferences. When a caller joins a conference via the Dial verb and Conference noun, a Conference Instance Resource is created to represent the conference room and a Participant Instance Resource is created to represent the caller who joined.
/2008-08-01/Accounts/{YourAccountSid}/Conferences
A
| Property | Description |
|---|---|
| Sid | A 34 character string that uniquely identifies this resource. |
| FriendlyName | A user provided string that identifies this conference room |
| Status | An integer representing the state of the conference 0=init, 1=in-progress, 2=completed |
| DateCreated | The date that this resource was created, given in RFC 2822 format. |
| DateUpdated | The date that this resource was last updated, given in RFC 2822 format. |
| AccountSid | The 34 character id of the Account this Call is associated with. (Your account!) |
Returns a list of conferences made by your account. Each is represented by a <Conference> element, under a <Conferences> list element that includes paging information. The list is sorted by DateUpdated, with newest conferences first. Example:
<TwilioResponse>
<Conferences page="0" numpages="1" pagesize="50" total="1" start="0" end="0">
<Conference>
<Sid>CFd0a50bbe038c437e87f6c82db8f37f21</Sid>
<AccountSid>AC5ea872f6da5a21de157d80997a64bd33</AccountSid>
<FriendlyName>1234</FriendlyName>
<Status>2</Status>
<DateCreated>Thu, 03 Sep 2009 23:37:53 -0700</DateCreated>
<DateUpdated>Fri, 04 Sep 2009 00:35:02 -0700</DateUpdated>
</Conference>
</Conferences>
</TwilioResponse>
Not supported
Not supported
Not supported
You may limit the list by providing certain query string parameters to the listing resource. Note, parameters are case-sensitive:
Examples:
/2008-08-01/Accounts/AC309475e5fede1b49e100272a8640f438/Conferences?Status=1&FriendlyName=MyRoom
Would show the in progress conference named "MyRoom"
/2008-08-01/Accounts/AC309475e5fede1b49e100272a8640f438/Conferences?Status=2&StartTime=2009-07-06
Would only show completed conferences started on Jul 06th, 2009.
/2008-08-01/Accounts/AC309475e5fede1b49e100272a8640f438/Conferences?Status=1&StartTime>=2009-07-06
Would only show in progress conferences started on or after midnight Jul 06th, 2009.
This resource represents an individual conference instance. Each conference that starts and ends is considered a unique conference instance. There can be many conference instances that share the same FriendlyName, but only one can be in-progress at any given time.
<TwilioResponse>
<Conference>
<Sid>CFd0a50bbe038c437e87f6c82db8f37f21</Sid>
<AccountSid>AC5ea872f6da5a21de157d80997a64bd33</AccountSid>
<FriendlyName>1234</FriendlyName>
<Status>2</Status>
<DateCreated>Thu, 03 Sep 2009 23:37:53 -0700</DateCreated>
<DateUpdated>Fri, 04 Sep 2009 00:35:02 -0700</DateUpdated>
</Conference>
</TwilioResponse>
Not supported
Not supported
Not supported
The Participants sub resource allows you to query and manipulate the participants who are currently connected to an in-progress conference.
/2008-08-01/Accounts/{YourAccountSid}/Conferences/{ConferenceSid}/Participants
A
| Property | Description |
|---|---|
| CallSid | A 34 character string that uniquely identifies the call that is connected to this conference |
| ConferenceSid | A 34 character string that identifies the conference this participant is in |
| DateCreated | The date that this resource was created, given in RFC 2822 format. |
| DateUpdated | The date that this resource was last updated, given in RFC 2822 format. |
| AccountSid | The 34 character id of the Account this Call is associated with. (Your account!) |
| Muted | Is this participant currently muted (true or false) |
| StartConferenceOnEnter | Was the startConferenceOnEnter attribute set on this participant (true or false) |
| EndConferenceOnExit | Was the endConferenceOnExit attribute set on this participant (true or false) |
/2008-08-01/Accounts/{YourAccountSid}/Conferences/{ConferenceSid}/Participants
Returns a list of Participants that are currently in a conference
<TwilioResponse>
<Participants page="0" numpages="1" pagesize="50" total="2" start="0" end="1">
<Participant>
<ConferenceSid>CF9f2ead1ae43cdabeab102fa30d938378</ConferenceSid>
<AccountSid>AC5ea872f6da5a21de157d80997a64bd33</AccountSid>
<CallSid>CA9ae8e040497c0598481c2031a154919e</CallSid>
<Muted>false</Muted>
<StartConferenceOnEnter>true</StartConferenceOnEnter>
<EndConferenceOnExit>false</EndConferenceOnExit>
<DateCreated>Wed, 31 Dec 1969 16:33:29 -0800</DateCreated>
<DateUpdated>Wed, 31 Dec 1969 16:33:29 -0800</DateUpdated>
</Participant>
<Participant>
<ConferenceSid>CF9f2ead1ae43cdabeab102fa30d938378</ConferenceSid>
<AccountSid>AC5ea872f6da5a21de157d80997a64bd33</AccountSid>
<CallSid>CA3c3c002e06c4cdaa5367e814ade05c76</CallSid>
<Muted>false</Muted>
<StartConferenceOnEnter>true</StartConferenceOnEnter>
<EndConferenceOnExit>false</EndConferenceOnExit>
<DateCreated>Wed, 31 Dec 1969 16:33:29 -0800</DateCreated>
<DateUpdated>Wed, 31 Dec 1969 16:33:29 -0800</DateUpdated>
</Participant>
</Participants>
</TwilioResponse>
Not supported
Not supported
Not supported
You may limit the list by providing certain query string parameters to the listing resource. Note, parameters are case-sensitive:
A single Participant Instance Resource, identified by CallSid
/2008-08-01/Accounts/{YourAccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}
Returns a representation of the Conference status of this participant:
<TwilioResponse>
<Participant>
<ConferenceSid>CF9f2ead1ae43cdabeab102fa30d938378</ConferenceSid>
<AccountSid>AC5ea872f6da5a21de157d80997a64bd33</AccountSid>
<CallSid>CA9ae8e040497c0598481c2031a154919e</CallSid>
<Muted>false</Muted>
<StartConferenceOnEnter>true</StartConferenceOnEnter>
<EndConferenceOnExit>false</EndConferenceOnExit>
<DateCreated>Wed, 31 Dec 1969 16:33:29 -0800</DateCreated>
<DateUpdated>Wed, 31 Dec 1969 16:33:29 -0800</DateUpdated>
</Participant>
</TwilioResponse>
Update the status of a participant. Currently supported statuses to update are:
| Property | Description |
|---|---|
| Muted | Is this participant currently muted (true or false) |
For example, you can POST to mute or unmute a participant:
POST /2008-08-01/Accounts/AC5ea872f.../Conference/CF9f2ead1ae43cdabe.../Participants/CA9ae8e04049... HTTP/1.1 Muted=true
Returns the participant with its new, <Muted>true</Muted> status:
<TwilioResponse>
<Participant>
<ConferenceSid>CF9f2ead1ae43cdabeab102fa30d938378</ConferenceSid>
<AccountSid>AC5ea872f6da5a21de157d80997a64bd33</AccountSid>
<CallSid>CA9ae8e040497c0598481c2031a154919e</CallSid>
<Muted>true</Muted>
<StartConferenceOnEnter>true</StartConferenceOnEnter>
<EndConferenceOnExit>false</EndConferenceOnExit>
<DateCreated>Wed, 31 Dec 1969 16:33:29 -0800</DateCreated>
<DateUpdated>Wed, 31 Dec 1969 16:33:29 -0800</DateUpdated>
</Participant>
</TwilioResponse>
POST /2008-08-01/Accounts/AC5ea872f.../Conference/CF9f2ead1ae43cdabe.../Participants/CA9ae8e04049... HTTP/1.1 Muted=false
Returns the participant with its new, <Muted>false</Muted> status:
<TwilioResponse>
<Participant>
<ConferenceSid>CF9f2ead1ae43cdabeab102fa30d938378</ConferenceSid>
<AccountSid>AC5ea872f6da5a21de157d80997a64bd33</AccountSid>
<CallSid>CA9ae8e040497c0598481c2031a154919e</CallSid>
<Muted>false</Muted>
<StartConferenceOnEnter>true</StartConferenceOnEnter>
<EndConferenceOnExit>false</EndConferenceOnExit>
<DateCreated>Wed, 31 Dec 1969 16:33:29 -0800</DateCreated>
<DateUpdated>Wed, 31 Dec 1969 16:33:29 -0800</DateUpdated>
</Participant>
</TwilioResponse>
Not supported
Kick this Participant from the Conference. Returns an HTTP 204 (No Content), with no body, if the participant was successful booted from the conference.
DELETE /2008-08-01/Accounts/AC309475e5fe.../Conference/CF0123456789ABCDEF0123456.../Participants/CA0123456789ABC... HTTP/1.1