Skip to main content
GET
Get Messages for Contact
Returns all conversations and messages for a given contact_id.

Authorizations

Authorization
string
header
required

Use the idToken retrieved from /get_id_token as the Bearer token.

Query Parameters

contact_id
string
required

The unique ID of the contact to fetch messages for.

Example:

"096662f6-5acc-4699-923c-f7326936b39f"

channel
enum<string>

Filter messages by communication channel.

Available options:
whatsapp,
instagram,
messenger,
website
Example:

"whatsapp"

limit
integer
default:50

Maximum number of messages to return.

Required range: 1 <= x <= 100
Example:

50

offset
integer
default:0

Number of messages to skip before starting to collect the result set.

Required range: x >= 0
Example:

0

grouped_conversations
boolean
default:true

Whether to group messages by conversation, when set to false, the response will contain a flat list of messages.

Example:

true

Response

200 - application/json

Contact with all conversations and messages.

data
object