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

# Get customs messages

> Get customs message history for an accessible declaration.

Get customs message history for an accessible declaration.

### Path Parameters

<ParamField path="id" type="number" required>
  The unique declaration ID.
</ParamField>

<ResponseExample>
  ```json 200 OK theme={null}
  [
    {
      "id": 1,
      "declarationId": 42,
      "direction": "OUT",
      "messageType": "DMS_SUB",
      "timestamp": "2026-06-22T10:00:00Z",
      "status": "SENT",
      "payload": "<xml>...</xml>"
    },
    {
      "id": 2,
      "declarationId": 42,
      "direction": "IN",
      "messageType": "DMS_REJ",
      "timestamp": "2026-06-22T10:05:00Z",
      "status": "RECEIVED",
      "payload": "<xml>...</xml>"
    }
  ]
  ```
</ResponseExample>
