> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-dx-3089.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Receiver

When receiving a message from QStash, you should [verify the signature](/qstash/howto/signature).
The QStash Typescript SDK provides a helper function for this.

```typescript theme={null}
import { Receiver } from "@upstash/qstash";

const receiver = new Receiver({
  currentSigningKey: "YOUR_CURRENT_SIGNING_KEY",
  nextSigningKey: "YOUR_NEXT_SIGNING_KEY",
});

// ... in your request handler

const signature = req.headers["Upstash-Signature"];
const body = req.body;

const isValid = await receiver.verify({
  body,
  signature,
  url: "YOUR-SITE-URL",
});
```


## Related topics

- [Receiver](/qstash/sdks/py/examples/receiver.md)
- [Use as Webhook Receiver](/qstash/howto/webhook.md)
- [Vercel - Upstash Redis Integration](/redis/howto/vercelintegration.md)
- [Verify Signatures](/qstash/howto/signature.md)
- [Cloudflare Workers](/qstash/quickstarts/cloudflare-workers.md)
