> For the complete documentation index, see [llms.txt](https://docs.datasaur.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasaur.ai/integrations/webhook-notifications/webhook-signature.md).

# Webhook Signature

You should verify whether a request really originated from Datasaur, so a signature is included in every request.

```javascript
X-Datasaur-Signature: HMAC-SHA256(secret, body)
```

When registering your webhook on Datasaur, you should provide a **secret**. We will generate a signature with the secret that you provided.

For example:

{% code overflow="wrap" %}

```typescript
// example in node.js
const requestBody = '{"body":"sample"}';
const secret = 'secret'
const signature = crypto.createHmac('sha256', secret).update(requestBody).digest('hex');

// The signature:
// "0278b1a603de4c561ac0feb960354d0d00e8846b74813d81bddb43ad45bff767"
```

{% endcode %}
