List Conversation Messages

Retrieve a paginated and filtered list of messages for a specific conversation.

Authentication

PINNACLE-API-KEYstring
API Key authentication via header

Path parameters

idstringRequired

Unique identifier of the conversation. This identifier is a string that always begins with the prefix conv_, for example: conv_1234567890.

Query parameters

pageIndexintegerOptional>=0Defaults to 0

Zero-based index for pagination.

pageSizeintegerOptional10-50Defaults to 10
Number of messages to return per page.
sortOrderenumOptionalDefaults to desc
Sort order for messages. <br> - `asc`: Oldest messages first - `desc`: Newest messages first (default)
Allowed values:
directionenumOptional
Filter messages by direction. <br> - `INBOUND`: Messages received from contacts - `OUTBOUND`: Messages sent to contacts
Allowed values:
statusenumOptional
Filter messages by delivery status.
typeenumOptional
Filter messages by protocol type.
Allowed values:
dateFromdatetimeOptional

Filter messages sent on or after this date (ISO 8601 format).

dateTodatetimeOptional

Filter messages sent on or before this date (ISO 8601 format).

Response

Returns a paginated list of messages in the conversation.
messageslist of objects
Array of messages in the conversation.
hasMoreboolean
Indicates if more messages are available beyond the current page.
countinteger
Total number of messages in the conversation.

Errors