Webhooks
Retrieve all webhooks for a specific workspace
GET /api/workspaces/{workspaceId}/webhooks
Retrieve all webhooks for a specific workspace
Path parameters
-
page
integerPage number which should be displayed; 0-indexed (defaults to 0)
-
limit
integerMaximum amount of results to display per page (defaults to 20)
Returns
200
OK
Create a new webhook
POST /api/workspaces/{workspaceId}/webhooks
Create a new webhook. Upon execution of this route, a test event (“ping”) will be sent to the endpoint.
If sending the ping event fails, the webhook will still be created, but it will be disabled.
Please check the response of this endpoint to see whenever enabled
= false
,
and if that is the case, check the latest delivery to see why. Once the endpoint has been fixed, you
can re-deliver the ping payload and if that works, manually re-enable the webhook again.
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
Body parameters
Webhook creation payload
-
endpoint
string Required -
events
array of string Required -
enabled
boolean Required
Returns
200
OK
Update an existing webhook
PATCH /api/workspaces/{workspaceId}/webhooks/{webhookId}
Updates an existing webhook. Upon execution of this route, a test event (“ping”) will be sent to the endpoint.
If sending the ping event fails, the webhook will still be updated, but will be disabled.
Please check the response of this endpoint to see whenever enabled
= false
, and if that is the case
(and not manually requested), check the latest delivery to see why. Once the endpoint has been fixed, you
can re-deliver the ping payload and if that works, manually re-enable the webhook again.
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
-
webhookId
string base64uuid RequiredID of the Webhook
Body parameters
Webhook update payload
-
endpoint
string -
events
array of string -
regenerateSharedSecret
boolean -
enabled
boolean
Returns
200
OK
Delete an existing webhook
DELETE /api/workspaces/{workspaceId}/webhooks/{webhookId}
Deletes an existing webhook
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
-
webhookId
string base64uuid RequiredID of the Webhook
Returns
200
OK
Retrieve a list of deliveries for a specific webhook
GET /api/workspaces/{workspaceId}/webhooks/{webhookId}/deliveries
Retrieve a list of deliveries for a specific webhook
Path parameters
-
page
integerPage number which should be displayed; 0-indexed (defaults to 0)
-
limit
integerMaximum amount of results to display per page (defaults to 20)
Returns
200
OK
Retrieve information about a specific delivery for a specific webhook
GET /api/workspaces/{workspaceId}/webhooks/{webhookId}/deliveries/{deliveryId}
Retrieve information about a specific delivery for a specific webhook
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
-
webhookId
string base64uuid RequiredID of the Webhook
-
deliveryId
string base64uuid RequiredID of the webhook delivery
Returns
200
OK
Resend a specific delivery
POST /api/workspaces/{workspaceId}/webhooks/{webhookId}/deliveries/{deliveryId}/resend
Resend a specific delivery
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
-
webhookId
string base64uuid RequiredID of the Webhook
-
deliveryId
string base64uuid RequiredID of the webhook delivery
Returns
200
OK. Resend has been queued.