List all leads
crm:deals.readhttps://api.holded.com/api/v2/leadsReturns a paginated list of leads. Use `contact_id`, `funnel_id` and `stage_id` for the leads of one contact, funnel or stage; they filter server-side across every page. Results are paginated with `limit` and `cursor` parameters. Default page size is 50, configurable up to 200.
Parameters
Query parameters
stringoptionalPagination cursor returned by the previous response. Omit to start from the first page.
integeroptional= 50Maximum number of items to return
stringoptionalOnly the leads of this contact, whether it is the lead's company or its person. Filters server-side across every page.
stringoptionalOnly the leads of this funnel. Filters server-side across every page.
stringoptionalOnly the leads in this stage: the `id` of one of the funnel's `stages`, as listed by the funnels list. Filters server-side across every page.
Request
import requests
url = "https://api.holded.com/api/v2/leads?cursor=value&limit=50&contact_id=value"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
{
"items": [
{
"id": "507f1f77bcf86cd799439011",
"user_id": "string",
"created_by": "string",
"assigned_to": "string",
"funnel_id": "string",
"funnel_archived": false,
"contact_id": "string",
"contact_name": "string",
"name": "string",
"person_id": "string",
"person_name": "string",
"value": "1500.00",
"potential": "75",
"due_date": "string",
"stage_id": "string",
"created_at": "string",
"updated_at": "string",
"custom_fields": [
{}
],
"status": "open"
}
],
"has_more": false,
"cursor": "string"
}Success responses
200List of leadsapplication/jsonUnique identifier
Owner user ID
Creator user ID
Assigned user ID
Funnel ID
Whether the funnel of the lead is archived: the lead is read-only
Contact ID
Contact name
Lead name
Person ID
Person name
Deal value as decimal string
Deal potential as a decimal string
Due date in ISO 8601 format
Current stage ID
Creation date in ISO 8601 format
Last update date in ISO 8601 format
Custom fields
Lead status
openwonlostWhether there are more items on the next page
Opaque cursor to pass as ?cursor= to fetch the next page. Null on the last page.
Error responses
400Malformed contact, funnel or stage idapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json429Rate limit exceededapplication/json