Datasaur
Search…
Welcome to Datasaur 🦕
Datasaur Basics
Advanced
Extensions and Shortcuts
Tokenizers
Datasaur APIs
Webhook Notifications
Webhook Signature
Events
ML Assisted Labeling
Robosaur
Supported Formats
Recommended Machine Specifications
Common Terminology
Powered By
GitBook
Webhook Signature
You have to verify whether a request really originated from Datasaur, so we provide a signature in every request
1
X
-
Datasaur
-
Signature
:
HMAC
-
SHA256
(
secret
,
body
)
Copied!
When registering your webhook on Datasaur, you should provide a
secret
. We will generate a signature with the secret that you provided.
Example:
1
// example in node.js
2
const
requestBody
=
'{"body":"sample"}'
;
3
const
secret
=
'secret'
4
const
signature
=
crypto
.
createHmac
(
'sha256'
,
secret
).
update
(
requestBody
).
digest
(
'hex'
);
5
6
// The signature:
7
// "0278b1a603de4c561ac0feb960354d0d00e8846b74813d81bddb43ad45bff767"
Copied!
Previous
Webhook Notifications
Next
Events
Last modified
3mo ago
Copy link