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 /authThe resulting access token has a
TTL of
60 mins
.Testing Webhook
To test a webhook:Make a
POST
request to
/auth/testUpdating Webhooks
If you need to change a webhook’s details:Make a
PUT
request to /webhooksUpdaing the list of
subscriptions
will replace the previous subscriptions.Retrieving Webhook Config
To retrieve a webhook’s configuration:Make a
GET
request to /webhooksRetrieving Webhook Public Key
To retrieve a webhook’s public key:Make a
GET
request to
/webhooks/keyThis 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