Create a webhook
Create a webhook to be called when certain events occur.
Complete guide: Webhooks.
Authentication
X-Api-Keystring
API Key authentication via header
Request
This endpoint expects an object.
url
The URL of the webhook
events
A list of events that this webhook subscribes to
hmac_secret
A customer-provided 32-byte secret encoded as 64 hexadecimal characters. Used for HMAC-SHA256 of <unix seconds>.<raw request body>, sent in the X-Ntropy-Signature header as t=<unix seconds>,sha256=<hex digest>.
token
A secret string used to authenticate the webhook. This value will be included in the X-Ntropy-Token header when sending requests to the webhook
Response
Successful Response
url
The URL of the webhook
events
A list of events that this webhook subscribes to
id
A generated unique identifier for the webhook
created_at
The date and time when the webhook was created.
enabled
Whether the webhook is enabled or not.
token
A secret string used to authenticate the webhook. This value will be included in the X-Ntropy-Token header when sending requests to the webhook
Errors
422
Unprocessable Entity Error