Skip to main content
POST
Preview segment contacts

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
definition
object
required

Rules that select contacts. A contact matches when it matches every clause of at least one group. A definition that compiles to more than 4 KB gives 400; keep long value lists short.

limit
integer

Number of contacts to return, 1 to 50

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

50

cursor
string | null

The next_cursor value from the previous page. It expires 4 minutes after that page and works only with the exact same definition; otherwise the request gives 400 and paging restarts from page 1.

Required string length: 1 - 4096
Example:

"eyJQSyI6Ii4uLiJ9"

Response

A page of matching contacts

items
Person · object[]
required

Matching contacts

next_cursor
null | string
required

Pass as cursor, with the same definition, to get the next page. Null on the last page.

Example:

"eyJQSyI6Ii4uLiJ9"