Skip to content
Chatwise
Skip to Content
Developer docs

Get a message

GET /v1/conversations/{conversationId}/messages/{messageId}. Reads one message.

View as Markdown

GEThttps://api.chatwise.so/v1/conversations/{conversationId}/messages/{messageId}

Reads one message. A deleted or hidden message is not found.

The API key needs the messages:read scope. See authentication and scopes.

Example

curl 'https://api.chatwise.so/v1/conversations/1234/messages/5678' \
  -H "Authorization: Bearer $CHATWISE_API_KEY"

Path parameters

NameTypeDescription
conversationIdstringRequired. The conversation's id.
messageIdstringRequired. The message's id.

Response

200. The message.

{
  "data": {
    "id": "5678",
    "conversationId": "1234",
    "channel": "WHATSAPP",
    "direction": "inbound",
    "type": "text",
    "text": "Is this available in blue?",
    "sentAt": "2026-11-12T09:25:36.000Z",
    "ingestedAt": "2026-11-12T09:25:36.412Z",
    "replyToMessageId": null,
    "attachments": []
  }
}
FieldTypeDescription
data.idstringThe message's id.
data.conversationIdstringThe conversation the message is in.
data.channelstringThe channel the message is on. One of WHATSAPP, INSTAGRAM, MESSENGER, WEBSITE_CHAT.
data.directionstringinbound from the customer, outbound from the workspace.
data.typestringThe message's type, such as text, image, audio, interactive or whatsapp_template.
data.textstring or nullThe text or caption. For other types, text that Chatwise makes of the message, such as JSON for a location or contacts. Null for WhatsApp authentication templates, so a one-time code is never returned.
data.sentAtstringWhen the message was sent. ISO 8601, in UTC.
data.ingestedAtstringWhen Chatwise stored the message. ISO 8601, in UTC.
data.replyToMessageIdstring or nullThe message this one replies to, if any and still visible.
data.attachmentsarray of objectsThe message's attachments, at most 10. Always empty on Messenger and Website Chat, and for WhatsApp authentication templates.
data.attachments[].typestringThe attachment's type, such as image, video, audio or document.
data.attachments[].mediaIdstring or nullThe channel's id for the media, when Chatwise has it: usually on Instagram only.

Errors

StatusMessageWhat it means
400Validation failedA parameter or body field is missing, unknown or malformed. errors lists each one.
401A valid Bearer API key is requiredThe Authorization header is missing or isn't Bearer <API key>.
401Invalid or revoked API keyThe key doesn't exist, was revoked, or has expired.
401Invalid API keyChatwise couldn't check the key. Try again.
403API key does not have the required scope: messages:readThe key lacks the route's scope. Create a key that has it.
404Message not foundNo visible message with this id in this conversation.
429API key rate limit exceededWait the number of seconds in the Retry-After header.
500Internal server errorSomething failed in Chatwise. Retry reads with backoff.

The body of an error is described in errors.

On this page