# Claim Webhooks

### Structure

Each webhook is sent as a POST request, with a JSON body - similar to regular API responses from XClaim.

Each webhook body will have two key properties:

* `event`
* `payload`

Event will specify the type of webhook event, and the payload will contain the relevant object (often containing other related objects).

### Claim Webhooks

Webhooks will be sent for the following events:

* `claim.status-update`
* `claim.status-category-update`
* `claim.deleted`

Note that for most integrations, the `status-category-update` is the most relevant webhook type. This is also referred to as the `external status`, and essentially represents one of a small list of high-level statuses which a claim can be in at any point in time. These are described in the Appendix.

Example webhook body:

```
{
  "event": "claim.status-category-update",
  "payload": {
    "id": "099c4df7-cf47-4fb8-baf7-4a1d64d1fd56",
    "claimReference": "HVGCU-B78QJ-CLA",
    "bookingReference": "518B-3H5Q-INS",
    "status": {
      "category": "Action Required"
    },
    "claimDetails": []
  }
}
```

The `id` inside payload is the claim uuid.

Note: The exact set of attributes passed may differ from integration to integration. Please test before using, and if you require further data you think you are not getting, please talk to the integration team.

You can see a full list of [status categories here](https://docs.covergenius.com/xclaim-api-partner-docs/claim-creation-workflows/appendix#status-categories--external-statuses).

### Misc Notes

* If you are using a secure (https) URL to receive webhooks, make sure it has a valid SSL certificate. This is particularly important on your testing environments for example - otherwise the webhooks will not be sent.
* Please respond to the webhook http request with any HTTP 2xx response code upon successful receipt. Failure to do so will result in the webhook being re-sent multiple times.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://partner-docs.covergenius.com/xclaim/webhooks/claim-webhooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
