Member Resource
The Member resource is a subresource of the Queue resource and represents a single call in a call queue.
All members in a call queue can be identified by their unique CallSid
, and the member at the front of the queue can be identified by the Front
sid.
Member properties
Resource Properties in REST API format | |
---|---|
call_sid
|
The SID of the Call the Member resource is associated with. |
date_enqueued
|
The date that the member was enqueued, given in RFC 2822 format. |
position
|
This member's current position in the queue. |
uri
|
The URI of the resource, relative to |
wait_time
|
The number of seconds the member has been in the queue. |
queue_sid
|
The SID of the Queue the member is in. |
Fetch a Member resource
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json
You can address the member to fetch by its unique CallSid
or by the Front
sid to fetch the member at the front of the queue.
Parameters
Parameters in REST API format | |
---|---|
account_sid
Path
|
The SID of the Account that created the Member resource(s) to fetch. |
queue_sid
Path
|
The SID of the Queue in which to find the members to fetch. |
call_sid
Path
|
The Call SID of the resource(s) to fetch. |
Example 1
Example 2
Read multiple Member resources
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json
Parameters
Parameters in REST API format | |
---|---|
account_sid
Path
|
The SID of the Account that created the Member resource(s) to read. |
queue_sid
Path
|
The SID of the Queue in which to find the members |
Example 1
Update a Member resource
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json
Updating a Member resource dequeues the member to begin executing the TwiML document at that URL.
You can address the member to dequeue by its unique CallSid
or by the Front
sid.
If you successfully dequeue a member by its unique CallSid
, it will no longer be queued so a second update action on that same member will fail.
When dequeueing a member by using the Front
SID, that member will be dequeued and the next member in the queue will take its place.
Parameters
Parameters in REST API format | |
---|---|
account_sid
Path
|
The SID of the Account that created the Member resource(s) to update. |
queue_sid
Path
|
The SID of the Queue in which to find the members to update. |
call_sid
Path
|
The Call SID of the resource(s) to update. |
url
Required
|
The absolute URL of the Queue resource. |
method
Optional
|
How to pass the update request data. Can be |
Example 1
Example 2
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 by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.