Skip to main content

Leads

The Leads API provides CRUD access to leads, plus ancillary actions for status, assignment, tags, archive/activate, convert-to-client, clone and comments.
New to the API? Start with Getting started (base URL, response envelope, errors, pagination) and Authentication (API keys). Those conventions apply to every endpoint below and are not repeated here.
Identifier note: leads are addressed by their numeric lead_id. Wherever {id} appears below it is the lead_id. A lead’s status is a leadstatus_id (from the lead statuses configured in the CRM).
Scope: attachments/cover image, per-user notes, activity logs, kanban position, bulk actions and pinning are managed in-app and are not part of this API. Checklists on a lead are handled by the Checklists API (resource_type=lead).

The lead object


List / search leads

Query parameters

Example request

Example response — 200 OK


Get a lead

Returns the lead (200) with message “Lead retrieved successfully.”

Create a lead

Body parameters

Required client custom fields of type leads must also be supplied (by field name). Assignment is set separately — see the assigned action.

Example request

Example response — 201 Created


Update a lead

Full update of the editable fields — send all fields you want to keep (same parameters as Create). Assignment is managed via the assigned action, not here.
Returns the lead (200) with message “Lead updated successfully.”

Delete a lead

Deletes the lead and its related records.

Example response — 200 OK


Change status

Returns the lead (200) with message “Lead status updated successfully.”

Set assigned team members

The assigned array is the full set — it replaces any existing assignment; an empty array clears all.
Returns the lead (200) with message “Lead assignees updated successfully.”

Set tags

Full-set replace (empty array clears).
Returns the lead (200) with message “Lead tags updated successfully.”

Archive / activate

No body. archive sets active_state to archived; activate sets it back to active.

Convert to client

Creates a client (and its primary user) from the lead. The lead’s proposals are moved to the new client. By default the lead is kept and marked converted; pass delete_lead=yes to remove it. A welcome email is sent only if send_welcome_email=yes. Returns the new client.
Returns the new client (201) with message “Lead converted to client successfully.”

Clone a lead

Returns the new lead (201) with message “Lead cloned successfully.”

Comments

List comments

Returns { "data": [ { "id": 9, "text": "...", "creator": { "id": 1, "name": "Admin" } } ], "message": "..." }.

Add a comment

Returns the comment (201) with message “Lead comment added successfully.”

Delete a comment

Returns { "data": { "id": 9 }, "message": "Lead comment deleted successfully." }.

Errors

See Getting started for the shared error format. Lead-specific: