Custom Webhook

Exporting data via API to a webhook can be helpful for transferring files directly from Datasaur to the URL destination of your choice.

Request Method

PUT

Request Headers

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

Request Body

{
"userId": 1, // user who triggers export
"fileUrl": "https://url-to-file/file.zip",
"projectId": "projectId",
"documentId": "documentId" // document_id is optional when we select Export Project
}

Expected Response

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