Custom Headers
We also support custom headers to fulfill your additional requirements when making the API requests.
Let's take a look at illustration below, making the completed project event as the example. The webhook now will also provide the additional request headers of key1
and key2
items.
Project Created
A PROJECT_CREATED
event will be sent when a new project is created.
Example
Request Header
{
"accept-encoding": "gzip, compress, deflate, br",
"accept": "application/json, text/plain, */*",
"content-length": "200",
"content-type": "application/json",
"key1": "value1",
"key2": "value2",
"user-agent": "Datasaur",
"x-datasaur-signature": "643a34cd1a649b37a6d3611ff7fb561a0255e899ca89a9475c79b38764775033"
}
Request Body
{
"eventType": "PROJECT_CREATED",
"data": {
"timestamp": "2023-11-17T09:02:45.258Z",
"project": {
"id": "N2E4MjNlYTc",
"name": "hamlet.TXT",
"tags": [
"CUSTOM"
]
},
"team": {
"id": "1",
"name": "User's Team Workspace"
}
}
}
Last updated