Lead Management API
The Lead Management API allows you to manage leads in your TaskIP CRM system. You can create, read, update, and delete leads, track lead statuses and sources, manage notes and files, and convert leads into contacts.
Endpoints Overview
Get All Leads
Retrieve a paginated list of all leads in your system.
GET /api/public-v1/leadRequest Headers
X-Secret-Key: your-secret-key-here
Content-Type: application/jsonQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
search | string | No | Search by first name, last name, full name, email, or company name |
page | integer | No | Page number for pagination (default: 1) |
item | integer | No | Results per page (default: 10, min 1, max 200) |
is_converted | integer | No | 0 = active leads (default), 1 = converted leads |
status_id | integer | No | Filter by lead attribute status ID |
source_id | integer | No | Filter by lead attribute source ID |
assigned_to | integer | No | Filter by assigned user ID |
from_date | date | No | Only leads with lead_interaction_date on or after this date (Y-m-d) |
to_date | date | No | Only leads with lead_interaction_date on or before this date (Y-m-d) |
sort_by | string | No | Sort field: name, lead_interaction_date, status |
sort_order | string | No | Sort direction: asc or desc (default: desc) |
Example Request
curl -X GET "https://public-api.taskip.net/api/public-v1/lead?search=john&item=10&is_converted=0" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json"Example Response
{
"message": "All leads successfully fetched",
"data": [
{
"id": 1,
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"email": "john@example.com",
"phone_number": "01700000000",
"mobile_phone": null,
"job_title": "CTO",
"website": "https://example.com",
"company_id": 2,
"company": {
"id": 2,
"name": "Acme Corp",
"email": "company@acmecorp.com",
"phone_number": "01700000000"
},
"value": "5000.00",
"currency": "USD",
"lead_interaction_date": "2026-04-01T00:00:00.000000Z",
"next_follow_up_date": null,
"preferred_contact_method_id": null,
"lead_type_id": null,
"assigned_to": [],
"country_id": 1,
"country": "United States",
"state_id": 2,
"state": "California",
"city_id": 3,
"city": "San Francisco",
"address": "123 Main Street",
"zip_code": "94105",
"description": "Interested in premium plan",
"created_by": 1,
"converted": false,
"converted_contact_id": null,
"converted_at": null,
"statuses": [],
"sources": [],
"groups": [],
"custom_fields": [],
"created_at": "2026-04-01T10:00:00.000000Z",
"updated_at": "2026-04-01T10:00:00.000000Z"
}
],
"links": {
"first": "https://public-api.taskip.net/api/public-v1/lead?page=1",
"last": "https://public-api.taskip.net/api/public-v1/lead?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://public-api.taskip.net/api/public-v1/lead",
"per_page": 10,
"to": 1,
"total": 1
}
}Query parameters are validated: item must be an integer from 1 to 200, status_id, source_id and assigned_to must be integers, is_converted must be 0 or 1, and from_date / to_date must be valid dates. A bad value returns 422 with the standard validation response ({"success": false, "message": "Validation failed", "errors": {...}}). Results are ordered by id descending unless sort_by is given. The list does not include tags, activities, or lead_type.
Create a Lead
Create a new lead in your system.
POST /api/public-v1/leadRequest Headers
X-Secret-Key: your-secret-key-here
Content-Type: application/jsonRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | Lead’s first name (max 191 chars). Markup and characters other than letters, spaces, apostrophes, hyphens and dots are stripped |
last_name | string | No | Lead’s last name (max 191 chars) |
email | string | No | Lead’s email address. Must not already belong to a user, another lead, or a contact |
phone_number | string | No | Lead’s phone number (max 18 chars) |
mobile_phone | string | No | Lead’s mobile number (max 18 chars) |
job_title | string | No | Job title (max 191 chars) |
preferred_contact_method_id | integer | No | ID of an existing preferred contact method |
website | string | No | Lead’s website, must be a valid URL such as https://example.com (max 255 chars) |
company_id | integer | No | Existing company ID |
value | numeric | No | Lead deal value (min 0) |
currency | string | No | Currency code (max 10 chars, e.g. USD) |
lead_interaction_date | date | No | Date of interaction (Y-m-d) |
next_follow_up_date | date | No | Next follow-up date (Y-m-d) |
lead_type_id | integer | No | ID of an existing lead type |
assigned_to | array | No | Array of user IDs to assign (each must exist) |
status_ids | array | No | Array of lead attribute IDs of type status (type = 1) |
source_ids | array | No | Array of lead attribute IDs of type source (type = 2) |
groups | array | No | Array of existing lead group IDs |
tags | array | No | Array of existing tag IDs |
country_id | integer | No | Country ID |
state_id | integer | No | State ID |
city_id | integer | No | City ID |
address | string | No | Lead’s address |
zip_code | string | No | ZIP / postal code (max 8 chars) |
description | string | No | Additional notes or description |
custom_fields | array | No | Array of custom field objects. Required custom fields defined in your workspace are enforced |
pipeline_uuid | string | No | UUID of an existing sales pipeline. Requires stage_id |
stage_id | integer | Required with pipeline_uuid | ID of a stage in that pipeline. When both are given, a deal for the lead is created in the stage |
Example Request
curl -X POST "https://public-api.taskip.net/api/public-v1/lead" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"phone_number": "555-0123",
"website": "https://example.com",
"company_id": 2,
"value": 5000,
"currency": "USD",
"lead_interaction_date": "2026-04-01",
"status_ids": [1],
"source_ids": [3],
"description": "Interested in premium plan"
}'JavaScript Example
const leadData = {
first_name: "John",
last_name: "Doe",
email: "john.doe@example.com",
phone_number: "555-0123",
website: "https://example.com",
company_id: 2,
value: 5000,
currency: "USD",
lead_interaction_date: "2026-04-01",
status_ids: [1],
source_ids: [3],
description: "Interested in premium plan"
};
const response = await fetch('https://public-api.taskip.net/api/public-v1/lead', {
method: 'POST',
headers: {
'X-Secret-Key': 'your-secret-key-here',
'Content-Type': 'application/json'
},
body: JSON.stringify(leadData)
});
const result = await response.json();Example Response
{
"msg": "Lead Created",
"data": {
"id": 1,
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"email": "john.doe@example.com",
"phone_number": "555-0123",
"mobile_phone": null,
"job_title": "CTO",
"website": "https://example.com",
"company_id": 2,
"company": null,
"value": "5000.00",
"currency": "USD",
"lead_interaction_date": "2026-04-01T00:00:00.000000Z",
"next_follow_up_date": null,
"preferred_contact_method_id": null,
"lead_type_id": null,
"assigned_to": [],
"country_id": 1,
"country": "United States",
"state_id": 2,
"state": "California",
"city_id": 3,
"city": "San Francisco",
"address": "123 Main Street",
"zip_code": "94105",
"description": "Interested in premium plan",
"created_by": 1,
"converted": false,
"converted_contact_id": null,
"converted_at": null,
"statuses": [
{ "id": 1, "name": "New", "type": 1, "color": "#3498db", "order": 1, "created_at": "2026-04-01T10:00:00.000000Z", "updated_at": "2026-04-01T10:00:00.000000Z" }
],
"sources": [
{ "id": 3, "name": "Website", "type": 2, "color": "#2ecc71", "order": 1, "created_at": "2026-04-01T10:00:00.000000Z", "updated_at": "2026-04-01T10:00:00.000000Z" }
],
"tags": [],
"groups": [],
"custom_fields": [],
"created_at": "2026-04-01T10:00:00.000000Z",
"updated_at": "2026-04-01T10:00:00.000000Z"
}
}The response status is 200.
Get a Specific Lead
Retrieve the full details of a specific lead by ID.
GET /api/public-v1/lead/{id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Lead ID |
Example Request
curl -X GET "https://public-api.taskip.net/api/public-v1/lead/1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json"Example Response
{
"msg": "Lead Details",
"data": {
"id": 1,
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"email": "john@example.com",
"phone_number": "01700000000",
"mobile_phone": null,
"job_title": "CTO",
"website": "https://example.com",
"company_id": 2,
"company": {
"id": 2,
"name": "Acme Corp",
"email": "company@acmecorp.com",
"phone_number": "01700000000"
},
"value": "5000.00",
"currency": "USD",
"lead_interaction_date": "2026-04-01T00:00:00.000000Z",
"next_follow_up_date": null,
"preferred_contact_method_id": null,
"lead_type_id": null,
"assigned_to": [],
"country_id": 1,
"country": "United States",
"state_id": 2,
"state": "California",
"city_id": 3,
"city": "San Francisco",
"address": "123 Main Street",
"zip_code": "94105",
"description": "Interested in premium plan",
"created_by": 1,
"converted": false,
"converted_contact_id": null,
"converted_at": null,
"statuses": [
{ "id": 1, "name": "New", "type": 1, "color": "#3498db", "order": 1, "created_at": "2026-04-01T10:00:00.000000Z", "updated_at": "2026-04-01T10:00:00.000000Z" }
],
"sources": [
{ "id": 3, "name": "Website", "type": 2, "color": "#2ecc71", "order": 1, "created_at": "2026-04-01T10:00:00.000000Z", "updated_at": "2026-04-01T10:00:00.000000Z" }
],
"tags": [],
"activities": [],
"groups": [],
"custom_fields": [],
"created_at": "2026-04-01T10:00:00.000000Z",
"updated_at": "2026-04-01T10:00:00.000000Z"
}
}A lead that does not exist returns 404.
Update a Lead
Update an existing lead’s information.
PUT /api/public-v1/lead/{id}
PATCH /api/public-v1/lead/{id}PUT and PATCH are handled identically.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Lead ID to update |
Request Body
Same fields as Create a Lead. first_name is required on every update. The lead’s fields, assignees, statuses, sources, groups and tags are overwritten with the submitted values, so send the complete set of values you want to keep (an omitted optional field is saved as empty). A lead can keep its own current email. The lead’s email is not changed if another user account already uses that email.
Example Request
curl -X PUT "https://public-api.taskip.net/api/public-v1/lead/1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{
"first_name": "John",
"phone_number": "555-9999",
"value": 7500,
"description": "Follow-up scheduled for next quarter"
}'Python Example
import requests
headers = {
'X-Secret-Key': 'your-secret-key-here',
'Content-Type': 'application/json'
}
update_data = {
"first_name": "John",
"phone_number": "555-9999",
"value": 7500,
"description": "Follow-up scheduled for next quarter"
}
response = requests.put(
'https://public-api.taskip.net/api/public-v1/lead/1',
headers=headers,
json=update_data
)
result = response.json()Example Response
{
"msg": "Lead Updated",
"data": {
"id": 1,
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"email": "john.doe@example.com",
"phone_number": "555-9999",
"value": "7500.00",
"currency": "USD",
"description": "Follow-up scheduled for next quarter",
"converted": false,
"statuses": [],
"sources": [],
"groups": [],
"tags": [],
"activities": [],
"created_at": "2026-04-01T10:00:00.000000Z",
"updated_at": "2026-04-07T10:00:00.000000Z"
}
}(Abbreviated; data is the full lead object, as in Get a Specific Lead.)
Delete a Lead
Permanently delete a specific lead from your system.
DELETE /api/public-v1/lead/{id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Lead ID to delete |
Example Request
curl -X DELETE "https://public-api.taskip.net/api/public-v1/lead/1" \
-H "X-Secret-Key: your-secret-key-here"Example Response
{
"msg": "Lead Deleted Successfully"
}Bulk Delete Leads
Delete multiple leads at once.
POST /api/public-v1/lead/bulk-deleteRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
ids | array | Yes | Array of lead IDs to delete (1 to 1000 integers) |
Example Request
curl -X POST "https://public-api.taskip.net/api/public-v1/lead/bulk-delete" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{
"ids": [1, 2, 3]
}'Example Response
{
"msg": "Lead Deleted Successfully"
}If none of the supplied IDs match a lead the API returns 422 with {"error": {"msg": ["Leads not found."]}}.
Send Email to a Lead
Send a custom email directly to a lead.
POST /api/public-v1/lead/send-email/{lead}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lead | integer | Yes | Lead ID to email |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
subject | string | Yes | Email subject (max 255 chars) |
message | string | Yes | Email body content |
Example Request
curl -X POST "https://public-api.taskip.net/api/public-v1/lead/send-email/1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{
"subject": "Following up on your inquiry",
"message": "Hi John, I wanted to follow up on our previous conversation and share some exciting updates about our premium plan."
}'Example Response
{
"msg": "Email sent to lead successfully."
}The email is queued for delivery from your workspace’s connected mail address.
Requirements: The lead must have an email address and your workspace mail must be connected before using this endpoint. A 422 error is returned if either condition is not met, in the form {"error": "This lead has no email address."} or {"error": "Workspace connected mail not found."}.
Convert Lead to Contact
Convert a lead into a contact. This creates a new contact using the lead’s information.
POST /api/public-v1/lead/{lead}/convertPath Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lead | integer | Yes | Lead ID to convert |
Example Request
curl -X POST "https://public-api.taskip.net/api/public-v1/lead/1/convert" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json"Example Response
{
"msg": "Lead converted to contact successfully.",
"data": {
"id": 5,
"user_id": 88,
"user_uuid": "9c1d2c7e-6d8e-4a43-b0b4-0a5a5f3c1e11",
"company": null,
"company_id": null,
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"email": "john.doe@example.com",
"position": "CTO",
"phone_number": "555-0123",
"mobile_phone": null,
"preferred_contact_method_id": null,
"country_id": 1,
"country": "United States",
"state_id": 2,
"state": "California",
"city_id": 3,
"city": "San Francisco",
"address": "123 Main Street",
"zip_code": "94105",
"timezone": null,
"details": null,
"reference": null,
"reference_name": null,
"access_portal": 0,
"billings": null,
"languages": [],
"image": null,
"custom_fields": [],
"tags": [],
"activities": []
}
}The data object is a contact, as described in the Contact Management API. The lead is marked converted: true and keeps a reference in converted_contact_id. Errors (lead already converted, a user with the same email already exists) return 422 with {"error": {"msg": ["..."]}}.
Lead Notes
Manage notes attached to a specific lead.
Get Lead Notes
Retrieve all notes for a specific lead.
GET /api/public-v1/lead/notes/{lead_id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | integer | Yes | The lead ID |
Example Request
curl -X GET "https://public-api.taskip.net/api/public-v1/lead/notes/1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json"Example Response
{
"msg": "Lead Notes Fetched",
"data": [
{
"id": 1,
"lead_id": 1,
"note": "Follow up scheduled for next week",
"title": "Follow Up",
"media": null,
"created_by": {
"id": 1,
"uuid": "3b0a6f0e-5b4d-4c47-9d0e-2f6a7c1d9a10",
"first_name": "Admin",
"last_name": "User",
"full_name": "Admin User",
"email": "admin@example.com",
"timezone": "UTC",
"image": null
},
"created_at": "2026-04-01 10:00:00"
}
]
}Create a Lead Note
Add a new note to a specific lead.
POST /api/public-v1/lead/notes/{lead_id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | integer | Yes | The lead ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Note title |
note | string | Yes | Note content |
image | integer | No | Media upload ID to attach to the note |
Example Request
curl -X POST "https://public-api.taskip.net/api/public-v1/lead/notes/1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{
"title": "Follow Up",
"note": "Follow up scheduled for next week. Client expressed strong interest in the enterprise plan."
}'Example Response
{
"msg": "Note Created",
"data": {
"id": 1,
"lead_id": 1,
"note": "Follow up scheduled for next week. Client expressed strong interest in the enterprise plan.",
"title": "Follow Up",
"media": null,
"created_by": {
"id": 1,
"uuid": "3b0a6f0e-5b4d-4c47-9d0e-2f6a7c1d9a10",
"first_name": "Admin",
"last_name": "User",
"full_name": "Admin User",
"email": "admin@example.com",
"timezone": "UTC",
"image": null
},
"created_at": "2026-04-07 10:00:00"
}
}Update a Lead Note
Update an existing note on a lead.
PUT /api/public-v1/lead/notes/{lead_id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | integer | Yes | The lead ID |
If note_id does not match a note on this lead the API returns 422 with {"msg": "Note not found"}.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
note_id | integer | Yes | ID of the note to update (must exist) |
title | string | Yes | Updated note title |
note | string | Yes | Updated note content |
image | integer | No | Media upload ID for attachment |
Example Request
curl -X PUT "https://public-api.taskip.net/api/public-v1/lead/notes/1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{
"note_id": 1,
"title": "Follow Up (Updated)",
"note": "Follow up rescheduled to next month. Budget approval is pending."
}'Example Response
{
"msg": "Note Updated",
"data": {
"id": 1,
"lead_id": 1,
"note": "Follow up rescheduled to next month. Budget approval is pending.",
"title": "Follow Up (Updated)",
"media": null,
"created_by": {
"id": 1,
"uuid": "3b0a6f0e-5b4d-4c47-9d0e-2f6a7c1d9a10",
"first_name": "Admin",
"last_name": "User",
"full_name": "Admin User",
"email": "admin@example.com",
"timezone": "UTC",
"image": null
},
"created_at": "2026-04-01 10:00:00"
}
}Delete a Lead Note
Delete a specific note from a lead.
DELETE /api/public-v1/lead/notes/{lead_id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | integer | Yes | The lead ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
note_id | integer | Yes | ID of the note to delete |
Example Request
curl -X DELETE "https://public-api.taskip.net/api/public-v1/lead/notes/1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{
"note_id": 1
}'Example Response
{
"msg": "Note Deleted"
}If the note does not belong to the lead, the API returns 422 with {"error": {"msg": ["Note not found"]}}.
Lead Files
Manage files and media attachments on a specific lead.
Get Lead Files
Retrieve all files uploaded to a specific lead.
GET /api/public-v1/lead/files/{lead_id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | integer | Yes | The lead ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
search | string | No | Search by file title |
page | integer | No | Page number for pagination (default: 1) |
item | integer | No | Results per page (default: 10) |
Example Request
curl -X GET "https://public-api.taskip.net/api/public-v1/lead/files/1?item=10" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json"Example Response
{
"data": [
{
"id": 1,
"mediaable_id": 1,
"title": "proposal.pdf",
"ext": "pdf",
"size": 204800,
"url": "https://cdn.taskip.net/tenants/tenant-1/media/proposal.pdf",
"media_type": "Lead",
"created_by": {
"id": 1,
"uuid": "3b0a6f0e-5b4d-4c47-9d0e-2f6a7c1d9a10",
"first_name": "Admin",
"last_name": "User",
"full_name": "Admin User",
"email": "admin@example.com",
"timezone": "UTC",
"image": null
},
"client_visible": true,
"createdAt": "01-04-2026 10:00:00"
}
],
"links": {
"first": "https://public-api.taskip.net/api/public-v1/lead/files/1?page=1",
"last": "https://public-api.taskip.net/api/public-v1/lead/files/1?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://public-api.taskip.net/api/public-v1/lead/files/1",
"per_page": 10,
"to": 1,
"total": 1
}
}Upload Lead Files
Attach a file (or a file URL) to a specific lead.
POST /api/public-v1/lead/files/{lead_id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | integer | Yes | The lead ID |
Request Body (multipart/form-data)
Send either file or url.
| Field | Type | Required | Description |
|---|---|---|---|
file | file | Required if url is not sent | File to upload (multipart/form-data). Executable and script extensions (php, exe, js, sh, bat, cmd, com, jar, msi, bin, cgi, pl, py) are rejected |
url | string | Required if file is not sent | URL of a file to attach |
media_type | string | No | Media type label stored with the file |
Example Request
curl -X POST "https://public-api.taskip.net/api/public-v1/lead/files/1" \
-H "X-Secret-Key: your-secret-key-here" \
-F "file=@/path/to/proposal.pdf"Example Response
{
"msg": "Files Added Successfully"
}Bulk Delete Lead Files
Delete multiple files from a lead at once.
DELETE /api/public-v1/lead/files/bulk-delete/{lead_id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | integer | Yes | The lead ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
ids | array | Yes | Array of media upload IDs to delete (1 to 1000 integers). Only files attached to this lead are deleted |
Example Request
curl -X DELETE "https://public-api.taskip.net/api/public-v1/lead/files/bulk-delete/1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{
"ids": [1, 2, 3]
}'Example Response
{
"msg": "Lead files bulk action success"
}If none of the IDs match a lead file the API returns 422 with {"error": {"msg": ["Media not found"]}}.
Lead Attributes (Status & Source)
Lead attributes define the statuses (e.g. New, Qualified, Closed) and sources (e.g. Website, Referral, Cold Call) that can be assigned to leads. Use type: 1 for statuses and type: 2 for sources.
Get All Lead Attributes
Retrieve all lead attribute statuses and sources.
GET /api/public-v1/lead-attributeQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | integer | No | 1 = statuses only, 2 = sources only (omit for all) |
page | integer | No | Page number for pagination (default: 1) |
item | integer | No | Results per page (default: 10, minimum 1; a value below 1 is treated as 1) |
type and item must be integers; a malformed value returns 422 with the validation errors instead of a server error. Results are ordered by order.
Example Request
curl -X GET "https://public-api.taskip.net/api/public-v1/lead-attribute?type=1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json"Example Response
{
"data": [
{
"id": 1,
"name": "New",
"type": 1,
"color": "#3498db",
"order": 1,
"created_at": "2026-04-01T10:00:00.000000Z",
"updated_at": "2026-04-01T10:00:00.000000Z"
},
{
"id": 2,
"name": "Website",
"type": 2,
"color": "#2ecc71",
"order": 1,
"created_at": "2026-04-01T10:00:00.000000Z",
"updated_at": "2026-04-01T10:00:00.000000Z"
}
],
"links": {
"first": "https://public-api.taskip.net/api/public-v1/lead-attribute?page=1",
"last": "https://public-api.taskip.net/api/public-v1/lead-attribute?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://public-api.taskip.net/api/public-v1/lead-attribute",
"per_page": 10,
"to": 2,
"total": 2
},
"msg": "Lead Attributes Fetched"
}Create a Lead Attribute
Create a new lead status or source attribute.
POST /api/public-v1/lead-attributeRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Attribute name (max 191 chars) |
type | integer | Yes | 1 = status, 2 = source |
color | string | No | Color value (max 50 chars, e.g. #e74c3c) |
order | integer | No | Display order |
Example Request
curl -X POST "https://public-api.taskip.net/api/public-v1/lead-attribute" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{
"name": "Qualified",
"type": 1,
"color": "#e74c3c",
"order": 2
}'Example Response
{
"msg": "Attribute Created",
"data": {
"id": 3,
"name": "Qualified",
"type": 1,
"color": "#e74c3c",
"order": 2,
"created_at": "2026-04-07T10:00:00.000000Z",
"updated_at": "2026-04-07T10:00:00.000000Z"
}
}Get a Specific Lead Attribute
Retrieve the details of a single lead attribute by ID.
GET /api/public-v1/lead-attribute/{id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Attribute ID |
Example Request
curl -X GET "https://public-api.taskip.net/api/public-v1/lead-attribute/1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json"Example Response
{
"msg": "Attribute Details",
"data": {
"id": 1,
"name": "New",
"type": 1,
"color": "#3498db",
"order": 1,
"created_at": "2026-04-01T10:00:00.000000Z",
"updated_at": "2026-04-01T10:00:00.000000Z"
}
}Update a Lead Attribute
Update an existing lead status or source attribute.
PUT /api/public-v1/lead-attribute/{id}
PATCH /api/public-v1/lead-attribute/{id}PUT and PATCH are handled identically; name and type are required on every update.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Attribute ID to update |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Attribute name (max 191 chars) |
type | integer | Yes | 1 = status, 2 = source |
color | string | No | Hex color code (max 50 chars) |
order | integer | No | Display order |
Example Request
curl -X PUT "https://public-api.taskip.net/api/public-v1/lead-attribute/1" \
-H "X-Secret-Key: your-secret-key-here" \
-H "Content-Type: application/json" \
-d '{
"name": "Hot Lead",
"type": 1,
"color": "#e74c3c",
"order": 1
}'Example Response
{
"msg": "Attribute Updated",
"data": {
"id": 1,
"name": "Hot Lead",
"type": 1,
"color": "#e74c3c",
"order": 1,
"created_at": "2026-04-01T10:00:00.000000Z",
"updated_at": "2026-04-07T10:00:00.000000Z"
}
}Delete a Lead Attribute
Delete a lead status or source attribute.
DELETE /api/public-v1/lead-attribute/{id}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Attribute ID to delete |
Example Request
curl -X DELETE "https://public-api.taskip.net/api/public-v1/lead-attribute/1" \
-H "X-Secret-Key: your-secret-key-here"Example Response
{
"msg": "Attribute Deleted Successfully"
}Error Responses
Common Error Codes
| Status Code | Error Type | Description |
|---|---|---|
401 | Unauthorized | Invalid or missing X-Secret-Key |
404 | Not Found | Lead or lead attribute not found |
422 | Validation Error | Request data failed validation, or the operation was rejected (e.g. lead already converted, lead has no email, mail not connected) |
429 | Too Many Requests | Rate limit exceeded |
Example Error Responses
Validation failures return 422 with the failing fields under error:
{
"error": {
"first_name": ["The first name field is required."],
"email": ["This email already exists as a lead. Please use a different email address."]
}
}Operation errors return 422 in one of these shapes:
{ "error": { "msg": ["Lead already converted to contact."] } }{ "error": "This lead has no email address." }Response Schemas
Lead Object
{
"id": "integer",
"first_name": "string",
"last_name": "string|null",
"full_name": "string",
"email": "string|null",
"phone_number": "string|null",
"mobile_phone": "string|null",
"job_title": "string|null",
"website": "string|null",
"company_id": "integer|null",
"company": "object|null ({id, name, email, phone_number})",
"value": "string (decimal)|null",
"currency": "string|null",
"lead_interaction_date": "string (ISO 8601)|null",
"next_follow_up_date": "string (ISO 8601)|null",
"preferred_contact_method_id": "integer|null",
"lead_type_id": "integer|null",
"assigned_to": "array of users",
"country_id": "integer|null",
"country": "string|null",
"state_id": "integer|null",
"state": "string|null",
"city_id": "integer|null",
"city": "string|null",
"address": "string|null",
"zip_code": "string|null",
"description": "string|null",
"created_by": "integer",
"converted": "boolean",
"converted_contact_id": "integer|null",
"converted_at": "string (ISO 8601)|null",
"statuses": "array of lead attributes",
"sources": "array of lead attributes",
"groups": "array of {id, name, created_at, updated_at}",
"tags": "array of {id, name, color} (not in list responses)",
"activities": "array (single-lead responses only)",
"custom_fields": "array|object",
"created_at": "string (ISO 8601)",
"updated_at": "string (ISO 8601)"
}Lead Attribute Object
{
"id": "integer",
"name": "string",
"type": "integer (1=status, 2=source)",
"color": "string (hex)|null",
"order": "integer",
"created_at": "string (ISO 8601)",
"updated_at": "string (ISO 8601)"
}Pagination Meta Object
{
"current_page": "integer",
"from": "integer|null",
"last_page": "integer",
"path": "string",
"per_page": "integer",
"to": "integer|null",
"total": "integer"
}Tip: Use the is_converted query parameter on the GET /lead endpoint to separate your active pipeline from already-converted leads. Combine it with status_id or source_id to build powerful filtered views of your lead data.