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

# Mark as Read

> Mark messages as read

Mark one or more messages as read. This sends read receipts (blue checkmarks) to the sender.

## Request Body

<ParamField body="id" type="string[]" required>
  Array of message IDs to mark as read
</ParamField>

<ParamField body="chatPhone" type="string" required>
  Phone number of the chat
</ParamField>

<ParamField body="senderPhone" type="string">
  Phone number of the message sender (required for group chats)
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.livchat.ai/v1/messages/read \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "id": ["AABBCCDD112233", "IIOOPPLL43332"],
      "chatPhone": "5511999999999",
      "senderPhone": "5511888888888"
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.livchat.ai/v1/messages/read", {
    method: "POST",
    headers: {
      Authorization: "Bearer YOUR_API_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      id: ["AABBCCDD112233", "IIOOPPLL43332"],
      chatPhone: "5511999999999",
      senderPhone: "5511888888888",
    }),
  });
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "code": 200,
    "data": {
      "details": "Marked as read"
    }
  }
  ```
</ResponseExample>
