Skip to main content
POST
/
v2
/
queues
Upsert a Queue
curl --request POST \
  --url https://qstash.upstash.io/v2/queues \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "queueName": "<string>",
  "parallelism": 1
}
'
{
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

QStash authentication token

Body

application/json
queueName
string
required

The name of the queue

parallelism
integer
default:1
required

The number of parallel consumers consuming from the queue

Response

Queue created or updated successfully