Webhook Events

Webhooks can subscribe to various events that trigger requests to your endpoints.

You can setup as many webhook endpoints as you need. Each endpoint can subscribe to one or more events. Therefore you could have one endpoint that handles all events or a separate one for each, or group related events into their own webhook endpoints.

Available Events

As activity occurs in your organisation's Claimable account, we will make a HTTP request to your webhook endpoint/s when any of the following events happen. All are optional, but there must be at least one event per endpoint to trigger requests.

Webhook events can be triggered from the following sources and this can be defined on a per-endpoint basis.

SourceUse CaseExample
UI+APIWhen you want to receive webhook events for ALL activity regardless of the source. This will fire webhook events both from user activity AND changes made via our API.You make an API call to add a label to a claim and still want to receive the claim.label.added webhook event.
UI OnlyWhen you want to exclude changes you make via our API and ONLY receive webhook events for user activity.A user adds a label to a claim and you want to receive the claim.label.added webhook, but you DON'T want to trigger the webhook when adding a label via an API request.

Claims:

Event NameDescription
claim.createdWhen a claim is created.
claim.closedWhen a claim's status becomes "closed".
claim.reopenedWhen a claim's status becomes "open", after previously being "closed".
claim.assignedWhen a claim is assigned to a user.
claim.unassignedWhen a claim is unassigned and is no longer assigned to anyone.
claim.switched_typeWhen the claim's type is changed to another claim type.
claim.deletedWhen the claim is permanently deleted.
claim.label.addedWhen a label is added to a claim.
claim.label.removedWhen a label is removed from a claim.
claim.damage.createdWhen a damage is added to a claim.
claim.damage.deletedWhen a damage is deleted from a claim.
claim.note.createdWhen a note is added to a claim.
claim.note.deletedWhen a note is deleted from a claim.
claim.document.createdWhen a document is uploaded to a claim.
claim.document.deletedWhen a document is deleted from a claim.
claim.payment.createdWhen a payment is added to a claim.
claim.payment.deletedWhen a payment is deleted from a claim.
claim.supplier.appointedWhen a supplier is appointed to a claim.
claim.supplier.unappointedWhen an appointed supplier is removed from a claim.
claim.contact.addedWhen a contact is added to a claim.
claim.contact.removedWhen a contact is removed from a claim.
claim.task.createdWhen a task is created on a claim
claim.task.deletedWhen a task is deleted from a claim.
claim.task.completedWhen a task is completed by a user.
claim.task.reopenedWhen a task is re-opened by a user (after previously being completed).
claim.task.assignedWhen a task is assigned to a user.
claim.task.unassignedWhen a previously assigned user is removed as the assignee of a task.

Contacts:

Event NameDescription
contact.createdWhen a contact is created.
contact.deletedWhen a contact is deleted.
contact.label.addedWhen a label is added to a contact.
contact.label.removedWhen a label is removed from a contact.
contact.note.createdWhen a note is added to a contact.
contact.note.deletedWhen a note is deleted from a contact.
contact.document.createdWhen a document is uploaded to a contact.
contact.document.deletedWhen a document is deleted from a contact.

Companies:

Event NameDescription
company.createdWhen a company is created.
company.deletedWhen a company is deleted.
company.label.addedWhen a label is added to a company.
company.label.removedWhen a label is removed from a company.
company.note.createdWhen a note is added to a company.
company.note.deletedWhen a note is deleted from a company.
company.document.createdWhen a document is uploaded to a company.
company.document.deletedWhen a document is deleted from a company.

πŸ“˜

Contact Support to Setup Your Webhook Endpoints

Please contact us via the support chat or email [email protected] to request one or more webhook endpoints to be configured on your account. For each endpoint, please provide the following information:

  • The URL of your endpoint. And;
  • The events you'd like it to be subscribed to.

Webhook Request Payload

When we send a request to one of your webhook endpoints, we include information about what triggered the event, in both the JSON payload as an event_name attribute and as a HTTP Header called Event-Name.

In the response payload we also include metadata about who triggered the event and whether it was via the API or from user activity in the Claimable user interface.

Event Metadata Attributes

For every request we make to one of your webhook endpoints, we include the object that is the subject of the event (e.g. claim, contact) in addition to the following metadata:

AttributeBody / HeaderDescription
event_nameBody + HeaderDescribes the event that occurred to trigger the webhook request.

The value will be one of the strings listed in the table of events above.
sourceBodyEither "ui", meaning a user triggered the event through the user interface, or "api" which means the event is the result of an API call.
performed_byBodyIf source is "ui", we include performed_by.user_id and performed_by.name attributes to describe the user who performed the event.

If source is "api" only performed_by.name is included which refers to the name of the API token used to perform the action.

Examples of JSON Payload

For the claim webhook event "claim.assigned", performed by a user via the UI:

{
  "claim": {...} // Claim object
  "event_name": "claim.assigned",
  "source": "ui",
  "performed_by":
    "user_id": 2642
    "name": "John Smith"
  }        
}

For the claim webhook event "claim.created", performed via the API:

{
  "claim": {...} // Claim object
  "event_name": "claim.created",
  "source": "api",
  "performed_by":
    "name": "Mobile App API Token"
  }        
}

For the contact webhook event "contact.created", performed by a user via the UI:

{
  "contact": {...} // Contact object
  "event_name": "contact.created",
  "source": "ui",
  "performed_by":
    "user_id": 2642
    "name": "John Smith"
  }   
}

Example of HTTP Header

For the claim webhook event "claim.created":

Event-Name: "claim.created"