Skip to main content
GET
Subscriber List
Lists subscribers on a WhatsApp bot.

Example Request

Pagination and ordering

offset is a page number, starting at 1 — it is not a count of subscribers to skip. limit is the page size (up to 100). Say you have 20 subscribers and set limit=5: Each time, add 1 to the previous offset. The response carries nextOffset, the value to send next, and a page shorter than limit is the last one. orderBy controls which subscriber comes first:

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"

limit
number
required

Rows per page, up to 100.

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

orderBy
number

Set to 1 to sort by most recent message first. Set to 0 (default) for default order.

Example:

0

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.