Webhooks
Webhooks: 5 operations of the ChaosDesk REST API.
- GET
/api/webhooksRetrieves the collection of Webhook resources. - POST
/api/webhooksCreate a webhook. A signing secret is generated; read it with GET /api/webhooks/{id}/signing_secret. - GET
/api/webhooks/{id}Retrieves a Webhook resource. - PATCH
/api/webhooks/{id}Updates the Webhook resource. - DELETE
/api/webhooks/{id}Removes the Webhook resource.
Retrieves the collection of Webhook resources.
Responses
200Webhook collection403Forbidden
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/webhooks" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Create a webhook. A signing secret is generated; read it with GET /api/webhooks/{id}/signing_secret.
Request body application/json
namestringrequireddescriptionstring | nullendpointstring (uri)requiredmethod"POST" | "PUT" | "PATCH"activebooleansubscriptionsstring[]- Event types (
ticket.created,ticket.status_changed, …) and/orconditional_ticket_events(called by triggers and automations). body_templatestring | null- Custom JSON body for event deliveries (placeholders such as
{{ticket.id}},{{ticket.status}},{{ticket.requester.email}}; values are JSON-escaped). Null sends the standard envelope.
Responses
201Webhook resource created400Invalid input403Forbidden422An error occurred
Example request
curl -X POST "https://yourcompany.chaosdesk.io/api/webhooks" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"name":"string","endpoint":"string"}' Retrieves a Webhook resource.
Parameters
idstringpathrequired- Webhook identifier
Responses
200Webhook resource403Forbidden404Not found
Example request
curl -X GET "https://yourcompany.chaosdesk.io/api/webhooks/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" Updates the Webhook resource.
Parameters
idstringpathrequired- Webhook identifier
Request body application/merge-patch+json
namestringdescriptionstring | nullendpointstring (uri)method"POST" | "PUT" | "PATCH"activebooleansubscriptionsstring[]- Event types (
ticket.created,ticket.status_changed, …) and/orconditional_ticket_events(called by triggers and automations). body_templatestring | null- Custom JSON body for event deliveries (placeholders such as
{{ticket.id}},{{ticket.status}},{{ticket.requester.email}}; values are JSON-escaped). Null sends the standard envelope.
Responses
200Webhook resource updated400Invalid input403Forbidden404Not found422An error occurred
Example request
curl -X PATCH "https://yourcompany.chaosdesk.io/api/webhooks/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/merge-patch+json" \
-d '{"name":"string","description":"string"}' Removes the Webhook resource.
Parameters
idstringpathrequired- Webhook identifier
Responses
204Webhook resource deleted403Forbidden404Not found
Example request
curl -X DELETE "https://yourcompany.chaosdesk.io/api/webhooks/{id}" \
-H "Authorization: Bearer $CHAOSDESK_TOKEN" \
-H "Accept: application/json"