Runs
Batch Trigger Workflow Runs
Start multiple workflow runs in a single request.
POST/v2/batch/trigger
cURL
curl --request POST \
--url https://qstash-{region}.upstash.io/v2/batch/trigger \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[{"destination":"<string>","body":"<string>","headers":"<string>"}]'201Response
[
{
"workflowRunId": "<string>",
"workflowCreatedAt": 123,
"deduplicated": true
}
]Authorization
Authorizationheaderstringrequired
Bearer authentication header of the form Bearer <token>.
Body
bodyobject[]required
Response
201 — Workflow runs triggered successfully
400 — Bad Request
errorstringrequired
Error message
401 — Unauthorized
errorstringrequired
Error message
500 — Internal Server Error
errorstringrequired
Error message