Webhook Subscription | Baack docs
Webhook Subscription
Endpoints
CreatePOST/n/v1/webhooksubscription/
Webhook subscription endpoint which supports the management of subscriptions at scale.
Baack allocates the URN and returns it in the response.
Request body: Webhook Subscription
Responses
- 201 Created
- returns Webhook Subscription
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
ReadGET/n/v1/webhooksubscription/{urn}
Webhook subscription endpoint which supports the management of subscriptions at scale.
Notes
- Webhook subscriptions are fine grained.
- The expiration timestamp for the webhook can not be more than 90 days in the future but can be updated periodically to ensure that subscriptions remain fresh.
- Webhooks which fail to accept delivery according to the requirements for handling events will have their expiration updated. Create a secondary subscription to notify your integration when webhooks are cancelled.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Webhook Subscription
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/webhooksubscription/{urn}UpdatePUT/n/v1/webhooksubscription/{urn}
Webhook subscription endpoint which supports the management of subscriptions at scale.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Webhook Subscription
Responses
- 202
- returns Webhook Subscription
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/webhooksubscription/{urn}
Webhook subscription endpoint which supports the management of subscriptions at scale.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 202
DELETE_SUCCESS
Webhook
POSTyour destination URL
Subject: WEBHOOK_SUBSCRIPTION
Webhook for listening updates related to webhook subscriptions for your company.
Notification events for webhook subscription updates for your company account.
Updates to webhooks can be critical to your integration so it is strongly encouraged to integrate these as subscriptions being revoked can result in loss of functionality.
Note that when a webhook is disabled its expiration timestamp will be set to 'now' to disable the subscription.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| apiClient | API Client | Required on create.Ignored on update. . |
| auth | string | One of: |
| subject | string | Required on create. . One of: |
| eventsPerMinute | integer (int32) | Required on create. . |
| expirationTimestamp | string (date-time) | |
| destinationUrl | string (uri) | Required on create. . Up to 1024 characters. |
| secret | string (password) | Required on create. . |
| event | string | Required on create. . One of: |
| url | string (uri) |
Used by: Search Item, Webhook Delivery, Webhook Event, Webhook Trigger