Skip to main content
POST
Get chat history

Authorizations

X-API-Key
string
header
required

Preferred. API key value directly.

Query Parameters

channelId
string

Channel id. Auto-selects when omitted; pass it when the workspace has more than one channel.

Example:

"ch_123"

phone
string

Contact phone with country code (e.g. 919876543210) or WhatsApp BSUID. Also accepted as phone_number or to.

Example:

"YOUR_PHONE"

limit
number

Messages per page, 1 to 50. Default 20.

Example:

50

page
number

Page number, 1 = newest messages. Default 1. Also accepted as offset.

Example:

1

Body

application/json
phone
string
required

Contact phone with country code (e.g. 919876543210) or WhatsApp BSUID. Also accepted as phone_number or to.

Example:

"YOUR_PHONE"

channelId
string

Channel id. Auto-selects when omitted; pass it when the workspace has more than one channel.

Example:

"ch_123"

limit
number

Messages per page, 1 to 50. Default 20.

Example:

50

page
number

Page number, 1 = newest messages. Default 1. Also accepted as offset.

Example:

1

Response

Success. Envelope: { success:true, data, message? }.

success
boolean
required
Example:

true

data
any
message
string
pagination
object
total
number