Skip to Content
Lead Management API

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

MethodEndpointDescription
GET/api/public-v1/leadGet all leads
POST/api/public-v1/leadCreate a new lead
GET/api/public-v1/lead/{id}Get a specific lead
PUT / PATCH/api/public-v1/lead/{id}Update a lead
DELETE/api/public-v1/lead/{id}Delete a lead
POST/api/public-v1/lead/bulk-deleteDelete multiple leads
POST/api/public-v1/lead/send-email/{lead}Send email to a lead
POST/api/public-v1/lead/{lead}/convertConvert lead to contact
GET/api/public-v1/lead/notes/{lead_id}Get all notes for a lead
POST/api/public-v1/lead/notes/{lead_id}Create a note for a lead
PUT/api/public-v1/lead/notes/{lead_id}Update a lead note
DELETE/api/public-v1/lead/notes/{lead_id}Delete a lead note
GET/api/public-v1/lead/files/{lead_id}Get files for a lead
POST/api/public-v1/lead/files/{lead_id}Upload files to a lead
DELETE/api/public-v1/lead/files/bulk-delete/{lead_id}Bulk delete lead files
GET/api/public-v1/lead-attributeGet all lead attributes
POST/api/public-v1/lead-attributeCreate a lead attribute
GET/api/public-v1/lead-attribute/{id}Get a specific lead attribute
PUT / PATCH/api/public-v1/lead-attribute/{id}Update a lead attribute
DELETE/api/public-v1/lead-attribute/{id}Delete a lead attribute

Get All Leads

Retrieve a paginated list of all leads in your system.

GET /api/public-v1/lead

Request Headers

X-Secret-Key: your-secret-key-here Content-Type: application/json

Query Parameters

ParameterTypeRequiredDescription
searchstringNoSearch by first name, last name, full name, email, or company name
pageintegerNoPage number for pagination (default: 1)
itemintegerNoResults per page (default: 10, min 1, max 200)
is_convertedintegerNo0 = active leads (default), 1 = converted leads
status_idintegerNoFilter by lead attribute status ID
source_idintegerNoFilter by lead attribute source ID
assigned_tointegerNoFilter by assigned user ID
from_datedateNoOnly leads with lead_interaction_date on or after this date (Y-m-d)
to_datedateNoOnly leads with lead_interaction_date on or before this date (Y-m-d)
sort_bystringNoSort field: name, lead_interaction_date, status
sort_orderstringNoSort 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/lead

Request Headers

X-Secret-Key: your-secret-key-here Content-Type: application/json

Request Body

FieldTypeRequiredDescription
first_namestringYesLead’s first name (max 191 chars). Markup and characters other than letters, spaces, apostrophes, hyphens and dots are stripped
last_namestringNoLead’s last name (max 191 chars)
emailstringNoLead’s email address. Must not already belong to a user, another lead, or a contact
phone_numberstringNoLead’s phone number (max 18 chars)
mobile_phonestringNoLead’s mobile number (max 18 chars)
job_titlestringNoJob title (max 191 chars)
preferred_contact_method_idintegerNoID of an existing preferred contact method
websitestringNoLead’s website, must be a valid URL such as https://example.com (max 255 chars)
company_idintegerNoExisting company ID
valuenumericNoLead deal value (min 0)
currencystringNoCurrency code (max 10 chars, e.g. USD)
lead_interaction_datedateNoDate of interaction (Y-m-d)
next_follow_up_datedateNoNext follow-up date (Y-m-d)
lead_type_idintegerNoID of an existing lead type
assigned_toarrayNoArray of user IDs to assign (each must exist)
status_idsarrayNoArray of lead attribute IDs of type status (type = 1)
source_idsarrayNoArray of lead attribute IDs of type source (type = 2)
groupsarrayNoArray of existing lead group IDs
tagsarrayNoArray of existing tag IDs
country_idintegerNoCountry ID
state_idintegerNoState ID
city_idintegerNoCity ID
addressstringNoLead’s address
zip_codestringNoZIP / postal code (max 8 chars)
descriptionstringNoAdditional notes or description
custom_fieldsarrayNoArray of custom field objects. Required custom fields defined in your workspace are enforced
pipeline_uuidstringNoUUID of an existing sales pipeline. Requires stage_id
stage_idintegerRequired with pipeline_uuidID 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

ParameterTypeRequiredDescription
idintegerYesLead 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

ParameterTypeRequiredDescription
idintegerYesLead 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

ParameterTypeRequiredDescription
idintegerYesLead 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-delete

Request Body

FieldTypeRequiredDescription
idsarrayYesArray 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

ParameterTypeRequiredDescription
leadintegerYesLead ID to email

Request Body

FieldTypeRequiredDescription
subjectstringYesEmail subject (max 255 chars)
messagestringYesEmail 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}/convert

Path Parameters

ParameterTypeRequiredDescription
leadintegerYesLead 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

ParameterTypeRequiredDescription
lead_idintegerYesThe 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

ParameterTypeRequiredDescription
lead_idintegerYesThe lead ID

Request Body

FieldTypeRequiredDescription
titlestringYesNote title
notestringYesNote content
imageintegerNoMedia 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

ParameterTypeRequiredDescription
lead_idintegerYesThe lead ID

If note_id does not match a note on this lead the API returns 422 with {"msg": "Note not found"}.

Request Body

FieldTypeRequiredDescription
note_idintegerYesID of the note to update (must exist)
titlestringYesUpdated note title
notestringYesUpdated note content
imageintegerNoMedia 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

ParameterTypeRequiredDescription
lead_idintegerYesThe lead ID

Request Body

FieldTypeRequiredDescription
note_idintegerYesID 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

ParameterTypeRequiredDescription
lead_idintegerYesThe lead ID

Query Parameters

ParameterTypeRequiredDescription
searchstringNoSearch by file title
pageintegerNoPage number for pagination (default: 1)
itemintegerNoResults 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

ParameterTypeRequiredDescription
lead_idintegerYesThe lead ID

Request Body (multipart/form-data)

Send either file or url.

FieldTypeRequiredDescription
filefileRequired if url is not sentFile to upload (multipart/form-data). Executable and script extensions (php, exe, js, sh, bat, cmd, com, jar, msi, bin, cgi, pl, py) are rejected
urlstringRequired if file is not sentURL of a file to attach
media_typestringNoMedia 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

ParameterTypeRequiredDescription
lead_idintegerYesThe lead ID

Request Body

FieldTypeRequiredDescription
idsarrayYesArray 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-attribute

Query Parameters

ParameterTypeRequiredDescription
typeintegerNo1 = statuses only, 2 = sources only (omit for all)
pageintegerNoPage number for pagination (default: 1)
itemintegerNoResults 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-attribute

Request Body

FieldTypeRequiredDescription
namestringYesAttribute name (max 191 chars)
typeintegerYes1 = status, 2 = source
colorstringNoColor value (max 50 chars, e.g. #e74c3c)
orderintegerNoDisplay 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

ParameterTypeRequiredDescription
idintegerYesAttribute 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

ParameterTypeRequiredDescription
idintegerYesAttribute ID to update

Request Body

FieldTypeRequiredDescription
namestringYesAttribute name (max 191 chars)
typeintegerYes1 = status, 2 = source
colorstringNoHex color code (max 50 chars)
orderintegerNoDisplay 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

ParameterTypeRequiredDescription
idintegerYesAttribute 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 CodeError TypeDescription
401UnauthorizedInvalid or missing X-Secret-Key
404Not FoundLead or lead attribute not found
422Validation ErrorRequest data failed validation, or the operation was rejected (e.g. lead already converted, lead has no email, mail not connected)
429Too Many RequestsRate 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.

Last updated on