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.
Property name Type PII Description
The SID of the Call the Member resource is associated with.
Pattern: ^CA[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
date_enqueued string<date-time-rfc-2822> The date that the member was enqueued, given in RFC 2822 format.
This member's current position in the queue.
The URI of the resource, relative to https://api.twilio.com
.
The number of seconds the member has been in the queue.
The SID of the Queue the member is in.
Pattern: ^QU[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
GET 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.
Property name Type Required PII Description
AccountSid SID<AC> required The SID of the Account that created the Member resource(s) to fetch.
Pattern: ^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Queue in which to find the members to fetch.
Pattern: ^QU[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Call SID of the resource(s) to fetch.
_19 // Download the helper library from https://www.twilio.com/docs/node/install
_19 const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_19 // Find your Account SID and Auth Token at twilio.com/console
_19 // and set the environment variables. See http://twil.io/secure
_19 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19 const authToken = process.env.TWILIO_AUTH_TOKEN;
_19 const client = twilio(accountSid, authToken);
_19 async function fetchMember() {
_19 const member = await client
_19 .queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_19 console.log(member.callSid);
_10 "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "call_sid": "CallSid",
_10 "date_enqueued": "Tue, 07 Aug 2012 22:57:41 +0000",
_10 "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
Fetch the Member resource at the front of the queue _19 // Download the helper library from https://www.twilio.com/docs/node/install
_19 const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_19 // Find your Account SID and Auth Token at twilio.com/console
_19 // and set the environment variables. See http://twil.io/secure
_19 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19 const authToken = process.env.TWILIO_AUTH_TOKEN;
_19 const client = twilio(accountSid, authToken);
_19 async function fetchMember() {
_19 const member = await client
_19 .queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_19 console.log(member.callSid);
_10 "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "date_enqueued": "Tue, 07 Aug 2012 22:57:41 +0000",
_10 "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
Read multiple Member resources GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json
Property name Type Required PII Description
AccountSid SID<AC> required The SID of the Account that created the Member resource(s) to read.
Pattern: ^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Queue in which to find the members
Pattern: ^QU[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Property name Type Required PII Description
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum: 1
Maximum: 1000
The page index. This value is simply for client state.
Minimum: 0
The page token. This is provided by the API.
Read multiple Member resources _18 // Download the helper library from https://www.twilio.com/docs/node/install
_18 const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18 // Find your Account SID and Auth Token at twilio.com/console
_18 // and set the environment variables. See http://twil.io/secure
_18 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18 const authToken = process.env.TWILIO_AUTH_TOKEN;
_18 const client = twilio(accountSid, authToken);
_18 async function listMember() {
_18 const members = await client
_18 .queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_18 .members.list({ limit: 20 });
_18 members.forEach((m) => console.log(m.callSid));
_20 "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members.json?PageSize=50&Page=0",
_20 "next_page_uri": null,
_20 "previous_page_uri": null,
_20 "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_20 "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_20 "date_enqueued": "Mon, 17 Dec 2018 18:36:39 +0000",
_20 "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
_20 "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members.json?PageSize=50&Page=0"
POST 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.
Property name Type Required PII Description
AccountSid SID<AC> required The SID of the Account that created the Member resource(s) to update.
Pattern: ^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Queue in which to find the members to update.
Pattern: ^QU[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Call SID of the resource(s) to update.
Property name Type Required PII Description
The absolute URL of the Queue resource.
Method enum<http-method> Optional How to pass the update request data. Can be GET
or POST
and the default is POST
. POST
sends the data as encoded form data and GET
sends the data as query parameters.
_19 // Download the helper library from https://www.twilio.com/docs/node/install
_19 const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_19 // Find your Account SID and Auth Token at twilio.com/console
_19 // and set the environment variables. See http://twil.io/secure
_19 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19 const authToken = process.env.TWILIO_AUTH_TOKEN;
_19 const client = twilio(accountSid, authToken);
_19 async function updateMember() {
_19 const member = await client
_19 .queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_19 .update({ url: "https://www.example.com" });
_19 console.log(member.callSid);
_10 "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "call_sid": "CallSid",
_10 "date_enqueued": "Thu, 06 Dec 2018 18:42:47 +0000",
_10 "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
Update the Member resource at the front of the queue _19 // Download the helper library from https://www.twilio.com/docs/node/install
_19 const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_19 // Find your Account SID and Auth Token at twilio.com/console
_19 // and set the environment variables. See http://twil.io/secure
_19 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19 const authToken = process.env.TWILIO_AUTH_TOKEN;
_19 const client = twilio(accountSid, authToken);
_19 async function updateMember() {
_19 const member = await client
_19 .queues("QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_19 .update({ url: "https://www.example.com" });
_19 console.log(member.callSid);
_10 "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_10 "date_enqueued": "Thu, 06 Dec 2018 18:42:47 +0000",
_10 "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",