Get notified
Webhooks
The API also exposes number of events to your own API webhook endpoint.
The webhooks are following a pattern of [resource].[action], eg: insurance.claimed.
The currently available events can be seen below:
insurance.created event
{
"event": "insurance.created",
"insurance": {
"id": "INS_a4f05a54a184",
"tickets": [
"ticket-id-1",
"ticket-id-2",
],
"createdAt": 1559391792
}
}
insurance.claimed event
{
"event": "insurance.claimed",
"insurance": {
"id": "INS_a4f05a54a184",
"tickets": [
"ticket-id-1",
"ticket-id-2"
],
"createdAt": 1559391792
},
"ticket": "ticket-id-1"
}
