Skip to main content
GET
Get Conversation
Returns the conversation history for a specific subscriber.

Example Request

Pagination

offset is a page number, starting at 1 — it is not a count of messages to skip. limit is the page size (up to 50), and page 1 holds the newest messages. Say the conversation has 30 messages and you set limit=10: Each time, add 1 to the previous offset. The response carries nextOffset, the value to send next.

What comes back

Each row has a sender — user for the contact, bot for messages sent by a flow, a team member or the API, ai_agent, sequence, or system for notes such as Label added: Interested Lead. message_content is a JSON string: for messages the contact sent it is the whole WhatsApp webhook, for messages you sent it is the request that was sent, so parse it before reading it. A limit below 1 behaves as 1, a limit that isn’t a whole number is rejected (The limit must be an integer.), and past the last page you get an empty list with nextOffset null.

Query Parameters

apiToken
string
required

Your ChatSyncs API key (not a WhatsApp/Meta access token). Where to find it.

Example:

"API-KEY"

phone_number_id
string
required

The WhatsApp account's phone number ID. Where to find it.

Example:

"PHONE-NUMBER-ID"

phone_number
string
required

The subscriber's phone number, with country code, digits only.

Example:

"PHONE-NUMBER"

limit
number
required

Rows per page, up to 50.

Example:

10

offset
number

The page number, starting at 1 — not a count of rows to skip. 0 and 1 both return the first page; 2 returns the next. The response's nextOffset is the value to send next.

Example:

1

Response

Standard ChatSyncs response. status is "1" on success and "0" on failure.

status
string

"1" = success, "0" = failure.

message
object[]

The rows, as a list. There is no data field on this endpoint.

nextOffset
integer | null

The offset to send for the next page, or null on the last page.