Skip to content

List Leads

GET
/api/leads
curl --request GET \
--url 'http://localhost:8000/api/leads?limit=200&offset=0&order_by=score%20DESC' \
--header 'Authorization: Bearer <token>'
status
Any of:
string
city
Any of:
string
source
Any of:
string
score_min
Any of:
integer
score_max
Any of:
integer
tier
Any of:
string
search
Any of:
string
workspace_id
Any of:
string
has_email
Any of:
boolean
has_phone
Any of:
boolean
company_size
Any of:
string
limit
Limit
integer
default: 200
offset
Offset
integer
0
order_by
Order By
string
default: score DESC
x-workspace-id
Any of:
string

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}