Create queue
Creates a voice call queue in the project for calls that need to wait for later handling. Queue names must be unique among active queues; a deleted queue's name can be reused. The call workflow is responsible for placing callers into the queue. Use Compatibility [Create queue](/docs/compatibility-api/rest/queues/create-queue) for form-encoded requests.
#### Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_.
[Learn more about API scopes](/docs/platform/your-signalwire-api-space).
Authentication
AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing
the word Basic followed by a space and a base64-encoded string of project_id:token.
The project ID will be used as the username and the API token as the password.
Example:
```
Authorization: Basic base64(project_id:token)
```
Request
This endpoint expects an object.
name
The name of the queue.
max_size
The maximum number of callers allowed in the queue.
Response
The request has succeeded and a new resource has been created as a result.
id
The unique identifier of the queue.
project_id
The project ID associated with this queue.
friendly_name
The friendly name of the queue.
max_size
The maximum number of callers allowed in the queue.
current_size
The current number of callers in the queue.
average_wait_time
The average wait time in seconds.
uri
The URL of this queue.
date_created
Timestamp when the queue was created.
date_updated
Timestamp when the queue was last updated.
Errors
401
Unauthorized Error
422
Unprocessable Entity Error
500
Internal Server Error