Skip to content

Get messages in a conversation

GET
/api/conversations/{id}/messages

Returns all messages in a conversation thread, ordered chronologically. Includes messages from all participants (customer, AI agent, human agent, system). For email conversations, the content contains the parsed email body.

id
required
string format: uuid

The unique identifier of the conversation.

Chronologically ordered list of all messages in the conversation.

Chronologically ordered list of messages in a conversation.

Array<object>

A single message in a conversation.

object
id
required

Unique identifier for the message.

string format: uuid
direction
required

Whether the message came from the customer (inbound) or was sent by oHallo (outbound).

string
Allowed values: inbound outbound
speaker
required

Who produced the message. On voice channels every message is inbound, so use this to distinguish the caller from the assistant.

string | null
Allowed values: caller ai tool human_operator system
body
required

The message text.

string
sentAt
required

When the message was sent.

string format: date-time
turnId

The conversation turn this message belongs to. Present when the message is part of a turn.

string format: uuid
fromAddress

Sender address, when the channel provides one.

string
channel
required

The channel the message arrived on or was sent through.

string
subject

Subject line, for channels that have one such as email.

string

No conversation exists with the given ID in the authenticated tenant.

Standard error response returned by all endpoints on failure.

object
error
required

A human-readable error message describing what went wrong.

string
Example
Conversation not found