Retrieve a list of queues belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Queues.json

Queues of calls

Retrieve a list of queues belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Queue resources to read.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

Query parameters

  • PageSize integer(int64)

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

  • Page integer

    The page index. This value is simply for client state.

    Minimum value is 0.

  • PageToken string

    The page token. This is provided by the API.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • queues array[object]
      Hide queues attributes Show queues attributes object
      • date_updated string(date-time-rfc-2822) | null

        The date and time in GMT that this resource was last updated, specified in RFC 2822 format.

      • current_size integer

        The number of calls currently in the queue.

        Default value is 0.

      • friendly_name string | null

        A string that you assigned to describe this resource.

      • uri string | null

        The URI of this resource, relative to https://api.twilio.com.

      • account_sid string | null

        The SID of the Account that created this Queue resource.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • average_wait_time integer

        The average wait time in seconds of the members in this queue. This is calculated at the time of the request.

        Default value is 0.

      • sid string | null

        The unique string that that we created to identify this Queue resource.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^QU[0-9a-fA-F]{32}$.

      • date_created string(date-time-rfc-2822) | null

        The date and time in GMT that this resource was created specified in RFC 2822 format.

      • max_size integer

        The maximum number of calls that can be in the queue. The default is 1000 and the maximum is 5000.

        Default value is 0.

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri) | null
    • page integer
    • page_size integer
    • previous_page_uri string(uri) | null
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Queues.json
curl \
 --request GET 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues.json' \
 --user "username:password"
Response examples (200)
{
  "end": 0,
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues.json?PageSize=1&Page=0",
  "page": 0,
  "start": 0,
  "queues": [
    {
      "sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
      "max_size": 100,
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "current_size": 0,
      "date_created": "Tue, 04 Aug 2015 18:39:09 +0000",
      "date_updated": "Tue, 04 Aug 2015 18:39:09 +0000",
      "friendly_name": "0.361280134646222",
      "subresource_uris": {
        "members": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members.json"
      },
      "average_wait_time": 0
    }
  ],
  "page_size": 1,
  "next_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues.json?PageSize=1&Page=1&PageToken=PAQUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues.json?PageSize=1&Page=0",
  "previous_page_uri": null
}
{
  "end": 0,
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues.json?PageSize=1&Page=0",
  "page": 0,
  "start": 0,
  "queues": [],
  "page_size": 1,
  "next_page_uri": null,
  "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues.json?PageSize=1&Page=0",
  "previous_page_uri": null
}