---
title: "Retrieve a message's details"
method: POST
path: "/api/v1/chats/{chat_id}/messages/{message_id}"
tags: ["messages"]
---

# Retrieve a message's details

`POST /api/v1/chats/{chat_id}/messages/{message_id}`

## Request

- Base URL: `https://api.izap.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.izap.ai/api/v1/chats/{chat_id}/messages/{message_id}`
- Auth: HTTP bearer

Returns one message with its delivery details, optionally including the replies generated in the same exchange. This operation only reads; it uses `POST` for historical reasons. The business is taken from the `business-id` header rather than the URL; the path-scoped form of this operation is deprecated.

## Path parameters

- `chat_id` string, uuid, required
- `message_id` string, uuid, required

## Query parameters

- `include_replies` boolean

## Headers

- `business-id` string, nullable, required: UUID of the business the request is scoped to. Required on this route; the deprecated /businesses/{business_id}/... form takes it from the path instead.

## Response `200`

Successful Response

- ChatMessageDetailsOut
  - `id` string, uuid, required
  - `chat_id` string, uuid, required
  - `sender` string, required
  - `receiver` string, nullable
  - `timestamp` string, date-time, required
  - `chat_messages` SingleChatMessage[], nullable
    - `id` string, uuid, required
    - `chat_id` string, uuid, required
    - `sender` string, required
    - `receiver` string, nullable
    - `sender_type` string, nullable
    - `message` string, required
    - `timestamp` string, date-time, required
    - `status` string, required
    - `message_sid` string, nullable
    - `error_code` integer, nullable
    - `error_reason` string, nullable
    - `updated_at` string, date-time, nullable
    - `sender_user_id` string, uuid, nullable
    - `attachments` MessageAttachment[], nullable
      - `id` string, uuid, nullable
      - `filename` string, required
      - `file_type` string, required
      - `file_size` integer, required
      - `url` string, required
    - `user_message` SingleChatMessage (recursive)
    - `no_reply` boolean
  - `reply_group` ChatMessageDetailsOut (recursive)
  - `user_message` SingleChatMessage
    - `id` string, uuid, required
    - `chat_id` string, uuid, required
    - `sender` string, required
    - `receiver` string, nullable
    - `sender_type` string, nullable
    - `message` string, required
    - `timestamp` string, date-time, required
    - `status` string, required
    - `message_sid` string, nullable
    - `error_code` integer, nullable
    - `error_reason` string, nullable
    - `updated_at` string, date-time, nullable
    - `sender_user_id` string, uuid, nullable
    - `attachments` MessageAttachment[], nullable
      - `id` string, uuid, nullable
      - `filename` string, required
      - `file_type` string, required
      - `file_size` integer, required
      - `url` string, required
    - `user_message` SingleChatMessage (recursive)
    - `no_reply` boolean
  - `function_calls` ResponseOutputFunction[], nullable
    - `type` 'function_call', required
    - `call_id` string, required
    - `name` string, required
    - `arguments` string, required
  - `resp_id` string, nullable
  - `last_message_id` string, uuid, nullable

## Other responses

- `401`: Missing or invalid credentials.
- `403`: The credential is valid but not authorized for this action.
- `404`: The resource, or the business named in the request, does not exist.
- `422`: Validation Error
- `default`: Unexpected error.

---

[API](https://skmtc.dev/izap/apis/izap-api.md) · [All operations](https://skmtc.dev/izap/apis/izap-api/llms.txt) · [OpenAPI document](https://skmtc.dev/izap/apis/izap-api/revisions/e6358c8bf5e9?raw)
