POST
/
v2
/
queues
/
curl -XPOST https://qstash.upstash.io/v2/queues/ \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "queueName": "my-queue" , 
    "parallelism" : 5,
  }'

Request

queueName
string
required

The name of the queue.

parallelism
int
required

The number of parallel consumers consuming from the queue.

Response

This endpoint returns

  • 200 if the queue is added successfully.
  • 412 if it fails because of the the allowed number of queues limit