Cachet can be configured to notify external services of various events using webhooks. Webhooks are HTTP callbacks that are triggered by specific events. When an event occurs, Cachet sends an HTTPDocumentation Index
Fetch the complete documentation index at: https://docs.cachethq.io/llms.txt
Use this file to discover all available pages before exploring further.
POST request to the configured URL
with a JSON payload containing information about the event. Webhooks consist of:
- Payload URL: The URL that Cachet will send the webhook to.
- Secret: A secret key that is used to sign the webhook payload. This can be used to verify that the payload was sent by Cachet and not a third party.
- Events: The events that will trigger the webhook.
Supported Events
Cachet currently supports the following events:component_createdcomponent_updatedcomponent_deletedcomponent_status_changedincident_createdincident_updatedincident_deletedmetric_createdmetric_updatedmetric_deletedmetric_point_createdmetric_point_deletedsubsciber_createdsubscriber_unsubscribedsubscribed_verified
Receiving Webhooks
User Agent
Cachet will send aUser-Agent header with the request. The value of the User-Agent header will be:
Payload
The payload sent by Cachet will contain information about the event that triggered the webhook. The payload will be a JSON object with the following structure:Signature Verification
When a webhook is triggered, Cachet will send aSignature header with the request. This header is used to verify that
data was not tampered with during transit. The signature is computed by hashing the request body with the secret key and
comparing it to the value in the Signature header.