Skip to main content
GET

List all leads

Scope:crm:deals.read
https://api.holded.com/api/v2/leads

Returns 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

cursorstringoptional

Pagination cursor returned by the previous response. Omit to start from the first page.

limitintegeroptional= 50

Maximum number of items to return

contact_idstringoptional

Only the leads of this contact, whether it is the lead's company or its person. Filters server-side across every page.

funnel_idstringoptional

Only the leads of this funnel. Filters server-side across every page.

stage_idstringoptional

Only 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

python
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

json
{
  "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/json
object
items[]object[]required
idstringrequired

Unique identifier

user_idstringrequired

Owner user ID

created_bystringrequired

Creator user ID

assigned_tostring | nullrequired

Assigned user ID

funnel_idstringrequired

Funnel ID

funnel_archivedbooleanrequired

Whether the funnel of the lead is archived: the lead is read-only

contact_idstringrequired

Contact ID

contact_namestringrequired

Contact name

namestringrequired

Lead name

person_idstring | nullrequired

Person ID

person_namestring | nullrequired

Person name

valuestringrequired

Deal value as decimal string

potentialstringrequired

Deal potential as a decimal string

due_datestring | nullrequired

Due date in ISO 8601 format

stage_idstringrequired

Current stage ID

created_atstring | nullrequired

Creation date in ISO 8601 format

updated_atstring | nullrequired

Last update date in ISO 8601 format

custom_fields[]object[]required

Custom fields

statusstringrequired

Lead status

Enum:openwonlost
has_morebooleanrequired

Whether there are more items on the next page

cursorstring | nulloptional

Opaque cursor to pass as ?cursor= to fetch the next page. Null on the last page.

Error responses

400Malformed contact, funnel or stage idapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
429Rate limit exceededapplication/json