---
title: "Get a message by id"
method: GET
path: "/messages/{messageId}"
tags: ["Messages"]
---

# Get a message by id

`GET /messages/{messageId}`

## Path parameters

- `messageId` string, uuid, required

## Response `200`

Message details

- object
  - `id` string, uuid, required
  - `workspaceId` string, uuid, required
  - `conversationId` string, uuid, nullable, required
  - `userId` string, uuid, nullable, required
  - `whatsappMessageId` string, nullable, required — Id of the message in the WhatsApp API
  - `from` string, nullable, required — WhatsApp id of the sender phone number
  - `to` string, nullable, required — Recipient phone number
  - `role` 'user' | 'assistant' | 'tool' | 'internal', required
  - `status` string, nullable, required — Delivery status reported by WhatsApp
  - `type` string, nullable, required — Message type, e.g. `text`, `image` or `interactive`
  - `content` string, nullable, required — Textual content of the message, when it has one
  - `contentData` object, nullable, required — Type-specific payload of the message
  - `createDate` string, date-time, required
  - `sendDate` string, date-time, required
  - `deliverDate` string, date-time, nullable, required
  - `readDate` string, date-time, nullable, required

## Other responses

- `401` — Unauthorized
- `404` — Message not found

---

[API](https://skmtc.net/indigohive/apis/cogfy-messenger-public-api.md) · [All operations](https://skmtc.net/indigohive/apis/cogfy-messenger-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/indigohive/cogfy-messenger-public-api/revisions/30bd33ee45c9/schema)
