Create a queue

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

Queues of calls

Create a queue

Path parameters

Body

  • FriendlyName string Required

    A descriptive string that you created to describe this resource. It can be up to 64 characters long.

  • MaxSize integer

    The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000.

Responses

  • Created

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created this 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 | null

      Average wait time of members in the queue

    • current_size integer | null

      The number of calls currently in the queue.

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

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

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

      The RFC 2822 date and time in GMT that this resource was last updated

    • friendly_name string | null

      A string that you assigned to describe this resource

    • max_size integer | null

      The max number of calls allowed in the queue

    • sid string | null

      The unique string that identifies this resource

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

    • uri string(uri) | null

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

POST /2010-04-01/Accounts/{AccountSid}/Queues.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FriendlyName=string&MaxSize=42'
Request example
{
  "FriendlyName": "string",
  "MaxSize": 42
}
Request examples
{
  "FriendlyName": "string",
  "MaxSize": 42
}
Response examples (201)
{
  "account_sid": "string",
  "average_wait_time": 42,
  "current_size": 42,
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "max_size": 42,
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "average_wait_time": 42,
  "current_size": 42,
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "max_size": 42,
  "sid": "string",
  "uri": "https://example.com"
}