You’ll need to authenticate your requests to access any of the endpoints in the QStash API. In this guide, we’ll look at how authentication works.
When making requests to QStash, you will need your
QSTASH_TOKEN — you will
find it in the console. Here’s how to add
the token to the request header using cURL:
curl https://qstash.upstash.com/v2/publish/... \ -H "Authorization: Bearer <QSTASH_TOKEN>"
In environments where setting the header is not possible, you can use the
qstash_token query parameter instead.
Always keep your token safe and reset it if you suspect it has been compromised.