Search Leads

GET/api/leads/search/{keyword}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
keyword String Search keywords
curl -X GET "https://yoursite.com/api/leads/search/acme" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

{
		"id": "2",
		"company_name": "Test",
		"address": "",
		"city": "",
		"state": "",
		"zip": "",
		"country": "",
		"created_date": "2021-09-12",
		"website": "",
		"phone": "",
		"currency_symbol": "",
		"starred_by": "",
		"group_ids": "",
		"deleted": "0",
		"is_lead": "1",
		"lead_status_id": "1",
		"owner_id": "1",
		"created_by": "1",
		"sort": "0",
		"lead_source_id": "1",
		"last_lead_status": "",
		"client_migration_date": "0000-00-00",
		"vat_number": "",
		"currency": "",
		"disable_online_payment": "0",
		"primary_contact": null,
		"primary_contact_id": null,
		"contact_avatar": null,
		"total_projects": null,
		"payment_received": "0",
		"invoice_value": "0",
		"client_groups": null,
		"lead_status_title": "New",
		"lead_status_color": "#f1c40f",
		"owner_name": "john doe",
		"owner_avatar": null
}
MethodGET
Path/api/leads/search/{keyword}
GroupLeads
Sincev1.0.0
Defined inRestApi/Controllers/LeadsController.php