Webhook Trigger | Baack docs
Webhook Trigger
Endpoints
ReadGET/n/v1/webhooktrigger/{urn}
Endpoint for webhook event trigger representation used to access the initiating trigger for webhook delivery.
Notes
- Webhook trigger replay can be initiated by initiating an UPDATE / http PUT for a trigger
- Re-triggering will initiate fanout of the trigger to subscriptions for delivery
- Delivery attempts are dependent upon the active subscriptions
- Read of the trigger returns the active subscriptions for the trigger in the representation for debugging expected live subscriptions
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Webhook Trigger
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/webhooktrigger/{urn}DeleteDELETE/n/v1/webhooktrigger/{urn}
Endpoint for webhook event trigger representation used to access the initiating trigger for webhook delivery.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 202
DELETE_SUCCESS
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| owner | Company | Required on create. . |
| subscriptions | array of Webhook Subscription | Ignored on update. |
| targetUrn | string (uuid) | |
| subject | string | Required on create. . One of: |
| event | string | Required on create. . One of: |
| timestamp | string (date-time) | |
| deliveries | array of Webhook Delivery | Ignored on update. |
Used by: Search Item, Webhook Event
Webhook Delivery
Representation of a webhook delivery attempt body which is sent when a webhook trigger event matches a subscription for a change.
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| targetUrn | string (uuid) | |
| httpResponseCode | integer (int32) | |
| subscription | Webhook Subscription | |
| attempt | integer (int32) | |
| endTimestamp | string (date-time) | |
| startTimestamp | string (date-time) | |
| status | string | One of: |
Used by: Webhook Trigger