Messages

Batch Messages

Send multiple messages in a single request

POST/v2/batch
cURL
curl --request POST \
  --url https://qstash-{region}.upstash.io/v2/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[{"destination":"<string>","body":"<string>","headers":"<string>","queue":"<string>"}]'
200Response
[
  {
    "messageId": "<string>",
    "deduplicated": true
  }
]

Authorization

Authorizationheaderstringrequired

Bearer authentication header of the form Bearer <token>.

Body

bodyobject[]required

Response

200 — Messages published successfully

400 — Bad request

errorstringrequired

Error message

Loading search…