> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orderprotection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# message.created

<RequestExample>
  ```json Example Webhook Request theme={null}
  {
    "id": "aa58a883-1e6f-4ec1-aa06-556908167f46",
    "topic": "message.created",
    "created_at": "2024-03-20T10:00:00Z",
    "body": {
      "claim_id": "cm6v2zdt10002j20vqs7f74hc",
      "order_id": "order-1",
      "source_order_id": "100",
      "message": "OrderProtection.com claim was created on 11 February 2025 5:49pm with the type Damaged. View details here: https://app.orderprotection.com/claims/view/cm6rzxj0300082b0pd0kh53ma"
    }
  }
  ```
</RequestExample>

This webhook is triggered when there has been an update within Order Protection, such as when a claim has been created or resolved.

These messages can be used to add comments to the order in your internal system.

## Request Body

The webhook will send a JSON payload with the following structure:

### Properties

<ParamField body="id" type="string">
  Unique identifier for the webhook event
</ParamField>

<ParamField body="topic" type="string">
  The webhook topic
</ParamField>

<ParamField body="created_at" type="string">
  ISO 8601 timestamp of when the webhook was created
</ParamField>

<ParamField body="body" type="object">
  The webhook payload

  <Expandable title="Webhook Payload">
    <ParamField body="claim_id" type="string">
      Unique identifier for the claim
    </ParamField>

    <ParamField body="order_id" type="string">
      Unique identifier for the order within Order Protection
    </ParamField>

    <ParamField body="source_order_id" type="string">
      Unique identifier for the order within your system
    </ParamField>

    <ParamField body="message" type="string">
      The content of the message
    </ParamField>
  </Expandable>
</ParamField>
