Sample - Twilio API
GET/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json

Retrieve a queue

Retrieves a specific queue for an account. Supply the queue identifier in Sid together with the owning account identifier in AccountSid. The response includes queue capacity, current size, average wait time, and resource timestamps.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
AccountSidstringrequired
The account SID that created the queue. Must be a 34-character value matching `^AC[0-9a-fA-F]{32}$`.
Sidstringrequired
The unique queue SID to retrieve. Must be a 34-character value matching `^QU[0-9a-fA-F]{32}$`.

1 status code
200Returns the queue object with its SID, account SID, friendly name, current size, maximum size, average wait time, resource URI, and creation and update timestamps.
date_updatedstringoptional
The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
current_sizeintegeroptional
The number of calls currently in the queue.
Default:0
friendly_namestringoptional
A string that you assigned to describe this resource.
uristringoptional
The URI of this resource, relative to `https://api.twilio.com`.
account_sidstringoptional
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue resource.
average_wait_timeintegeroptional
The average wait time in seconds of the members in this queue. This is calculated at the time of the request.
Default:0
sidstringoptional
The unique string that that we created to identify this Queue resource.
date_createdstringoptional
The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
max_sizeintegeroptional
The maximum number of calls that can be in the queue. The default is 1000 and the maximum is 5000.
Default:0

Error handling

AccountSid must be a 34-character account SID matching the AC prefix format, and Sid must be a 34-character queue SID matching the QU prefix format. Both identifiers must refer to the account and queue you want to retrieve.