Webhooks
Webhooks are event driven operations within the Pipevest system.
Whenever an event is triggered a JSON
payload is sent to all urls that have subscribed to the event.
This document will guide you on how to create, update and get webhook details.
Creating an Auth Token
To create an Auth Token:
Make a POST
request to /auth
The resulting access token has a
TTL of 60 mins
.
Testing Webhook
To test a webhook:
Make a POST
request to
/auth/test
Updating Webhooks
If you need to change a webhook’s details:
Make a PUT
request to /webhooks
Updaing the list of subscriptions
will replace the previous subscriptions.
Retrieving Webhook Config
To retrieve a webhook’s configuration:
Make a GET
request to /webhooks
Retrieving Webhook Public Key
To retrieve a webhook’s public key:
Make a GET
request to
/webhooks/key
This key is used to valdiate the webhook message.
Entity Reference
Property | Definition |
---|---|
webhookId | Unique webhook identifier |
status | The status of the webhook |
url | A valid https url |
subscriptions | List of webhook subscriptions |
createdAt | Created at unix timestamp |
updatedAt | Updated at unix timestamp |
Status
Name | Definition |
---|---|
ACTIVE | Webhook is currenting live |
DEACTIVED | Webhook has been deactived |
Webhook Subscriptions
Subscription | Definition | Domain |
---|---|---|
WEBHOOK | Only events that deal with webhooks | Webhooks |
WEBHOOK.CREATED | Triggered when a webhook is created. Subscription created automatically | Webhooks |
WEBHOOK.UPDATED | Triggered when a webhook is updated | Webhooks |
Webhook Concepts
Deep dive into webhooks on the Pipevest platforms