The Lead object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: __user
Default: Lead
Default: false
Default: false
Default: false
{
"id": "lead_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"lead_name": "lead_name_example",
"company_name": "Example Corp",
"email_id": "[email protected]",
"lead_owner": "__user",
"status": "Lead",
"salutation": "salutation_example",
"gender": "gender_example",
"customer": "customer_example",
"image": "image_example",
"phone": "phone_example",
"mobile_no": "mobile_no_example",
"fax": "fax_example",
"type": "type_example",
"market_segment": "market_segment_example",
"industry": "industry_example",
"request_type": "request_type_example",
"company": "Example Corp",
"website": "website_example",
"territory": "territory_example",
"unsubscribed": false,
"blog_subscriber": false,
"title": "title_example",
"language": "language_example",
"first_name": "first_name_example",
"middle_name": "middle_name_example",
"last_name": "last_name_example",
"no_of_employees": "no_of_employees_example",
"whatsapp_no": "whatsapp_no_example",
"phone_ext": "phone_ext_example",
"qualified_by": "qualified_by_example",
"qualified_on": "qualified_on_example",
"qualification_status": "qualification_status_example",
"job_title": "job_title_example",
"annual_revenue": 0,
"disabled": false,
"city": "city_example",
"state": "state_example",
"country": "country_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_medium": "utm_medium_example",
"utm_campaign": "utm_campaign_example"
} /api/crm/lead/{id} Retrieve a lead
Retrieves the details of an existing lead. Supply the unique lead ID that was returned from a previous request.
Path parameters
The identifier of the lead to retrieve.
Returns
Returns the lead object if a valid identifier was provided.
curl https://api.overplane.dev/api/crm/lead/lead_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "lead_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"lead_name": "lead_name_example",
"company_name": "Example Corp",
"email_id": "[email protected]",
"lead_owner": "__user",
"status": "Lead",
"salutation": "salutation_example",
"gender": "gender_example",
"customer": "customer_example",
"image": "image_example",
"phone": "phone_example",
"mobile_no": "mobile_no_example",
"fax": "fax_example",
"type": "type_example",
"market_segment": "market_segment_example",
"industry": "industry_example",
"request_type": "request_type_example",
"company": "Example Corp",
"website": "website_example",
"territory": "territory_example",
"unsubscribed": false,
"blog_subscriber": false,
"title": "title_example",
"language": "language_example",
"first_name": "first_name_example",
"middle_name": "middle_name_example",
"last_name": "last_name_example",
"no_of_employees": "no_of_employees_example",
"whatsapp_no": "whatsapp_no_example",
"phone_ext": "phone_ext_example",
"qualified_by": "qualified_by_example",
"qualified_on": "qualified_on_example",
"qualification_status": "qualification_status_example",
"job_title": "job_title_example",
"annual_revenue": 0,
"disabled": false,
"city": "city_example",
"state": "state_example",
"country": "country_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_medium": "utm_medium_example",
"utm_campaign": "utm_campaign_example"
} /api/crm/lead List all leads
Returns a list of leads. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of lead objects.
curl https://api.overplane.dev/api/crm/lead \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "lead_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"lead_name": "lead_name_example",
"company_name": "Example Corp",
"email_id": "[email protected]",
"lead_owner": "__user",
"status": "Lead",
"salutation": "salutation_example",
"gender": "gender_example",
"customer": "customer_example",
"image": "image_example",
"phone": "phone_example",
"mobile_no": "mobile_no_example",
"fax": "fax_example",
"type": "type_example",
"market_segment": "market_segment_example",
"industry": "industry_example",
"request_type": "request_type_example",
"company": "Example Corp",
"website": "website_example",
"territory": "territory_example",
"unsubscribed": false,
"blog_subscriber": false,
"title": "title_example",
"language": "language_example",
"first_name": "first_name_example",
"middle_name": "middle_name_example",
"last_name": "last_name_example",
"no_of_employees": "no_of_employees_example",
"whatsapp_no": "whatsapp_no_example",
"phone_ext": "phone_ext_example",
"qualified_by": "qualified_by_example",
"qualified_on": "qualified_on_example",
"qualification_status": "qualification_status_example",
"job_title": "job_title_example",
"annual_revenue": 0,
"disabled": false,
"city": "city_example",
"state": "state_example",
"country": "country_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_medium": "utm_medium_example",
"utm_campaign": "utm_campaign_example"
}
],
"has_more": false,
"total": 1
} /api/crm/lead Create a lead
Creates a new lead object.
Body parameters
Default: __user
Default: Lead
Default: false
Default: false
Default: false
Returns
Returns the newly created lead object if the call succeeded.
curl https://api.overplane.dev/api/crm/lead \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "lead_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"lead_name": "lead_name_example",
"company_name": "Example Corp",
"email_id": "[email protected]",
"lead_owner": "__user",
"status": "Lead",
"salutation": "salutation_example",
"gender": "gender_example",
"customer": "customer_example",
"image": "image_example",
"phone": "phone_example",
"mobile_no": "mobile_no_example",
"fax": "fax_example",
"type": "type_example",
"market_segment": "market_segment_example",
"industry": "industry_example",
"request_type": "request_type_example",
"company": "Example Corp",
"website": "website_example",
"territory": "territory_example",
"unsubscribed": false,
"blog_subscriber": false,
"title": "title_example",
"language": "language_example",
"first_name": "first_name_example",
"middle_name": "middle_name_example",
"last_name": "last_name_example",
"no_of_employees": "no_of_employees_example",
"whatsapp_no": "whatsapp_no_example",
"phone_ext": "phone_ext_example",
"qualified_by": "qualified_by_example",
"qualified_on": "qualified_on_example",
"qualification_status": "qualification_status_example",
"job_title": "job_title_example",
"annual_revenue": 0,
"disabled": false,
"city": "city_example",
"state": "state_example",
"country": "country_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_medium": "utm_medium_example",
"utm_campaign": "utm_campaign_example"
} /api/crm/lead/{id} Update a lead
Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the lead to update.
Body parameters
Default: __user
Default: Lead
Default: false
Default: false
Default: false
Returns
Returns the updated lead object.
curl https://api.overplane.dev/api/crm/lead/lead_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"lead_name":"lead_name_example","company_name":"Example Corp"}' {
"id": "lead_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"lead_name": "lead_name_example",
"company_name": "Example Corp",
"email_id": "[email protected]",
"lead_owner": "__user",
"status": "Lead",
"salutation": "salutation_example",
"gender": "gender_example",
"customer": "customer_example",
"image": "image_example",
"phone": "phone_example",
"mobile_no": "mobile_no_example",
"fax": "fax_example",
"type": "type_example",
"market_segment": "market_segment_example",
"industry": "industry_example",
"request_type": "request_type_example",
"company": "Example Corp",
"website": "website_example",
"territory": "territory_example",
"unsubscribed": false,
"blog_subscriber": false,
"title": "title_example",
"language": "language_example",
"first_name": "first_name_example",
"middle_name": "middle_name_example",
"last_name": "last_name_example",
"no_of_employees": "no_of_employees_example",
"whatsapp_no": "whatsapp_no_example",
"phone_ext": "phone_ext_example",
"qualified_by": "qualified_by_example",
"qualified_on": "qualified_on_example",
"qualification_status": "qualification_status_example",
"job_title": "job_title_example",
"annual_revenue": 0,
"disabled": false,
"city": "city_example",
"state": "state_example",
"country": "country_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_medium": "utm_medium_example",
"utm_campaign": "utm_campaign_example"
} /api/crm/lead/{id} Delete a lead
Permanently deletes a lead. This cannot be undone.
Path parameters
The identifier of the lead to delete.
Returns
Returns a confirmation that the lead has been deleted.
curl https://api.overplane.dev/api/crm/lead/lead_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "lead_abc123",
"deleted": true
}