Webhook Request Examples
This endpoint must be implemented on YOUR server (e.g., https://yourdomain.com/treble-webhooks). Treble will call this webhook for different types of events. You must configure the URL of this webhook in the Treble admin panel.
Body
Event information. The type of event is determined by the 'event_type' field.
- hsm.status
- session.close
- deployment.failure
Event that is triggered when the status of an HSM (Highly Structured Message) changes
Type of event, always 'hsm.status' for HSM status updates
hsm.status Unique identifier of the event
Timestamp of the event in ISO 8601 format
New status of the HSM
APPROVED, REJECTED, PAUSED, DISABLED, PENDING_DELETION Name or identifier of the HSM
IDs of the conversations affected by the status change
ID of an affected conversation
Response
Successful response
JSON object with the confirmation of reception. The service must respond in less than 5 seconds.