Queues

Create a Queue.

Create a call queue.

Permissions

The API token must include the following scopes: Voice.

post/Accounts/{AccountSid}/Queues

Path parameters

AccountSidstring uuid required

The unique identifier for the account this Queue is associated with.

Request body

FriendlyNamestring required

A description that distinguishes a queue.

MaxSizestring

The maximum number of calls that are allowed to wait in a queue.

Example request

{
  "FriendlyName": "Queue1",
  "MaxSize": "123"
}

Response

The request has succeeded.

account_sidstring

The unique identifier for the account this Queue is associated with.

average_wait_timestring

The average wait time, in seconds, of callers in a queue.

current_sizestring

The number of calls waiting in the queue.

date_createdstring

The date and time, in ISO 8601 format, the Queue was created.

date_updatedstring

The date and time, in ISO 8601 format, the Queue was updated.

friendly_namestring

A description that distinguishes a queue.

max_sizestring

The maximum number of calls that are allowed to wait in a queue.

sidstring

The unique identifier for the queue.

uristring

The URL of this resource.

Example response

{
  "account_sid": "b3877c40-da60-4998-90ad-b792e98472af",
  "average_wait_time": "0",
  "current_size": "0",
  "date_created": "Wed, 26 Sept 2018 18:00:00 +0000",
  "date_updated": "Thur, 27 Sept 2018 19:00:00 +0000",
  "friendly_name": "Queue1",
  "max_size": "123",
  "sid": "b3877c40-da60-4998-90ad-b792e98472qu",
  "uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Queues/b3877c40-da60-4998-90ad-b792e98472qu.json"
}

Changes