GET ‎https://<domain>/<api prefix>/<version>/leads/overview/
This API endpoint will return lead summary and appointments.
Query Parameters
Possible values are: upcoming, today, week, and month.
HTTP/1.1 200 OK
Content-Type: application/json
Body:
{
"status_code": 200,
"errors": {},
"data": {
"LeadsData": {
"status": [
{
"status": <status>,
"count": <count>,
"Description": "<short_description>",
"Color": "<color>"
},
...
],
"source": [
{
"source": <source>
"count": <count>
},
...
]
},
"TotalLeads": <total_leads_count>,
"appointments": [
{
"appointment_note": "<appointment_note>",
"appointment_status": "<appointment_status>",
"appointment_date": "<appointment_date>",
"appointment_to": "<appointment_to>"
}
]
}
}
Node
PHP
Error Responses
Invalid appointment filter value.
GET ‎https://<domain>/<api prefix>/<version>/leads/list/
This API endpoint will return a list of owned leads. Use the same URL to get a list of assigned leads with a query parameter list_type as 'assigned'.
Query Parameters
Get the list of leads under a campaign.
Possible value is 'assigned'
lead status, possible values are prospect, tentative, potential, closed, contact, and customer.
Node
PHP
List Appointments
GET ‎https://<domain>/<api prefix>/<version>/leads/appointments/list/
This API endpoint will return a list of appointments.
Query Parameters
Possible values are on, before, and after.
required when datesettigs is given, Formate: MM/DD/YYYY
Possible values are pending, rescheduled, cancelled,
fullfilled, and confirmed.
Node
PHP
GET ‎https://<domain>/<api prefix>/<version>/leads/view/lead/
This API endpoint will return details of a lead.
Query Parameters
Node
PHP
Error Responses
This field is required and this may not be blank.
Requested slug is invalid.
Create Appointment
POST ‎https://<domain>/<api prefix>/<version>/leads/create/appointment/
This API endpoint will create an appointment in a lead.
Appointment date, format: yyyy-mm-dd hh:mm
Appointment to date, format: yyyy-mm-dd hh:mm
Appointment note. default value is "Prospect appointment''.
Appointment status, possible values are pending, rescheduled, cancelled, fullfilled, and, confirmed.
default value is pending.
Node
PHP
Error Responses
Body data not found.
Appointment schedule exists for this time.
End Date Can't be prior to Start Date.
Please Specify a date in the future.
This field is required.
This field is may not be blank.
Requested slug is invalid.
You can't take appointment under this lead.
This field is required.
This field is may not be blank.
Invalid date format.
This field is required.
This field is may not be blank.
Invalid date format.
Ensure this field has no more than 200 characters.
Invalid appointment status.
Update Appointment
POST ‎https://<domain>/<api prefix>/<version>/leads/update/appointment/
This API endpoint will update an appointment.
Query Parameters
Appointment date, format: yyyy-mm-dd hh-mm
Appointment to date, format: yyyy-mm-dd hh-mm
Appointment status, possible values are pending, rescheduled, cancelled, fullfilled, and, confirmed. default value is pending.
Node
PHP
Error Responses
Body data not found.
Appointment schedule exists for this time.
End Date Can't be prior to Start Date.
Please Specify a date in the future.
You can't update this appointment.
This field is required.
This field is may not be blank.
Invalid appointment id.
Requested appointment not found.
This field is may not be blank.
Requested slug is invalid.
You can't take appointment under this lead.
This field is may not be blank.
Invalid date format.
This field is may not be blank.
Invalid date format.
Ensure this field has no more than 200 characters.
Invalid appointment status.
Delete Appointment
POST ‎https://<domain>/<api prefix>/<version>/leads/delete/appointment/
This API endpoint will delete an appointment.
Node
PHP
Error Responses
You can't delete this appointment.
This field is required.
This field is may not be blank.
Invalid appointment id.
Requested appointment not found.
POST ‎https://<domain>/<api prefix>/<version>/v1/leads/create/lead/
This API endpoint will create a lead.
Lead status, possible values are prospect, tentative, potential, closed, contact, and customer.
Lead source, possible values are direct, website, facebook, twitter, instagram, search, pinterest, reddit and, other.
Node
PHP
This field is required.
This field may not be blank.
Ensure this field has no more than 255 characters.
This field is required.
This field may not be blank.
Ensure this field has no more than 255 characters.
This field is required.
This field may not be blank.
Ensure this field has no more than 255 characters.
Invalid email.
This field is required.
This field may not be blank.
Phone number must be entered in the format: '999999999'. Up to 15 digits allowed.
Ensure this field has no more than 255 characters.
Ensure this field has no more than 255 characters.
<status> is not a valid choice.
<source> is not a valid choice.
This field may not be blank.
Assignee not found.
POST ‎https://<domain>/<api prefix>/<version>/leads/update/lead/
This API endpoint will update a lead.
First name.- existing or new
Last name.- existing or new
Email address.- existing or new
Lead status, possible values are prospect, tentative, potential, closed, contact, and customer.
Lead source, possible values are direct, website, facebook, twitter, instagram, search, pinterest, reddit and, other.
Phone number.- existing or new.
Node
PHP
Error Responses
This field is required.
This field may not be blank.
Ensure this field has no more than 258 characters.
This field is required.
This field may not be blank.
Ensure this field has no more than 255 characters.
This field is required.
This field may not be blank.
Ensure this field has no more than 255 characters.
This field is required.
This field may not be blank.
Ensure this field has no more than 255 characters.
Invalid email.
This field is required.
This field may not be blank.
Phone number must be entered in the format: '999999999'. Up to 15 digits allowed.
Ensure this field has no more than 255 characters.
Ensure this field has no more than 255 characters.
<status> is not a valid choice.
<source> is not a valid choice.
This field may not be blank.
Assignee not found.
Requested lead does not esixt.
You are not owner of this lead.
POST ‎https://<domain>/<api prefix>/<version>/leads/delete/lead/
This API endpoint will delete a lead.
Node
PHP
Error Responses
This field is required.
This field may not be blank.
Requested lead not found.
Requested lead already has a deleted status.
You can't delete this lead.
Create Lead Note
POST ‎https://<domain>/<api prefix>/<version>/leads/create/leadnote/
This API endpoint will create a note on lead.
Node
PHP
Error Responses
This field is required.
This field may not be blank.
Requested lead not found.
Requested lead already has a deleted status.
This field is required.
This field may not be blank.
Ensure this field has no more than 499 characters.
You can't add note on this lead.
Delete Lead Note
POST ‎https://<domain>/<api prefix>/<version>/leads/delete/leadnote/
This API endpoint will delete a note of lead.
Node
PHP
Error Responses
This field is required.
This field may not be blank.
Requested note not found.
Invalid note id.
You can't delete this note.