Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/leads/ | List leads |
POST | /api/leads/ | Create a lead |
GET | /api/leads/{id}/ | Get a lead |
PATCH | /api/leads/{id}/ | Update a lead |
DELETE | /api/leads/{id}/ | Delete a lead |
POST | /api/leads/{id}/convert/ | Convert lead to contact |
List Leads
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number |
limit | integer | Results per page (max: 100) |
status | string | Filter by status |
source | string | Filter by lead source |
assignedTo | string | Filter by assigned user ID |
search | string | Search by name, email, or company |
createdAfter | ISO8601 | Filter by creation date |
Create a Lead
firstName or lastName, email
Response: 201 Created
Get a Lead
Update a Lead
200 OK with the updated lead object.
Convert a Lead
Convert a lead to a contact, optionally creating a linked account and opportunity.Delete a Lead
204 No Content
Lead Status Values
| Value | Label |
|---|---|
new | New |
contacted | Contacted |
qualified | Qualified |
nurturing | Nurturing |
unqualified | Unqualified |
converted | Converted |
lost | Lost |
