Features
- Each Webhook has a unique URL.
- Specify a path and a secret that must be included in the Webhook in order for an Event to be emitted.
- Accepts Webhooks using HTTP POST method.
- Webhook parameters will be used to generate and send a new Event.
Webhook Usage
In the blink platform, you cant use webhooks when creating an Event-Based Workflows.Configuration
-
path- A path for the webhook URL, in plain text. -
secret- A token that the host will provide for authentication.
Authentication
Webhook requests are authenticated by a WebhookAPI Key or Signature. This is passed to the Webhook as part of the webhook URL. Both authentication methods are crucial for providing an additional layer of security by confirming the identity of users or applications accessing the data. This ensures controlled access to sensitive information, reinforces authorization policies, and upholds trust between the client and server.
API Key
TheAPI Key authentication method, allows the external provider to execute the webhook using only an api key which gets generated for the workflow when using the API Key method.
Signature
-
The
Signatureauthentication method involves generating a cryptographic signature for each request. -
This
Signatureformat is based on the following format<timestamp\>.<url\>.<request body\>where:-
timestampis the timestamp in numeric format. For example:892403000 -
Followed by the
.character -
Webhook Base URLis the full URL of the webhook, including query parameters. For example:
-
Followed by the
.character -
Request bodyis the raw body of a HTTP POST request.
-
- Compute an HMAC of the concatenated string with the SHA256 hash function:
- Add the timestamp and the result to the
X-BLINK-SIGNATUREHTTP header in the format:ts=<timestamp\>;sig1=<hmac\>