Skip to main content
GET
List leads

Authorizations

Authorization
string
header
required

The API key, created in Settings › API, in the header Authorization: Bearer . The default.

Query Parameters

limit
integer
default:20

Number of items to return, from 1 to 100. Defaults to 20.

Required range: 1 <= x <= 100
cursor
string

The next_cursor of the previous page. Omit it for the first page.

Required string length: 1 - 512
text_agent_id
string<uuid>

Only leads of this text agent.

voice_agent_id
string<uuid>

Only leads of this voice agent.

status
enum<string>
Available options:
active,
inactive,
pending,
closed
phone
string

In E.164. Also matches the other forms of the same mobile number (Mexico, Argentina, Brazil). Phone number in E.164 format.

Pattern: ^\+[1-9]\d{6,14}$
Example:

"+34600111222"

created_after
string<date-time>

Created at or after this time.

created_before
string<date-time>

Created before this time.

last_activity_after
string<date-time>

Last message or call at or after this time. Use it to poll for leads with new activity.

last_activity_before
string<date-time>

Last message or call before this time.

Response

A page of leads.

object
string
required
Allowed value: "list"
data
object[]
required
has_more
boolean
required
next_cursor
string | null
required