> 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/api/export-project/custom-webhook.md).

# Custom Webhook

Exporting data via API to a webhook helps transfer files directly from Datasaur to the URL destination of your choice.

## Request method

`PUT`

## Request headers

```javascript
X-Datasaur-Signature: HMAC-SHA256(secret, body)
Content-Type: application/json
```

## Request body

```javascript
{
   "userId": 1, // user who triggers export
   "fileUrl": "https://url-to-file/file.zip",
   "projectId": "projectId",
   "documentId": "documentId" // required only exportTextProjectDocument query
}
```

## Expected response

```javascript
HTTP 1.1 200 OK
Content-Type: application/json
{}
```
