The Prospect 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.
{
"id": "prospect_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"company_name": "Example Corp",
"industry": "industry_example",
"market_segment": "market_segment_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"no_of_employees": "no_of_employees_example",
"annual_revenue": 0,
"fax": "fax_example",
"website": "website_example",
"prospect_owner": "prospect_owner_example",
"company": "Example Corp"
} /api/crm/prospect/{id} Retrieve a prospect
Retrieves the details of an existing prospect. Supply the unique prospect ID that was returned from a previous request.
Path parameters
The identifier of the prospect to retrieve.
Returns
Returns the prospect object if a valid identifier was provided.
curl https://api.overplane.dev/api/crm/prospect/prospect_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "prospect_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"company_name": "Example Corp",
"industry": "industry_example",
"market_segment": "market_segment_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"no_of_employees": "no_of_employees_example",
"annual_revenue": 0,
"fax": "fax_example",
"website": "website_example",
"prospect_owner": "prospect_owner_example",
"company": "Example Corp"
} /api/crm/prospect List all prospects
Returns a list of prospects. 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 prospect objects.
curl https://api.overplane.dev/api/crm/prospect \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "prospect_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"company_name": "Example Corp",
"industry": "industry_example",
"market_segment": "market_segment_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"no_of_employees": "no_of_employees_example",
"annual_revenue": 0,
"fax": "fax_example",
"website": "website_example",
"prospect_owner": "prospect_owner_example",
"company": "Example Corp"
}
],
"has_more": false,
"total": 1
} /api/crm/prospect Create a prospect
Creates a new prospect object.
Body parameters
Returns
Returns the newly created prospect object if the call succeeded.
curl https://api.overplane.dev/api/crm/prospect \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"company":"Example Corp"}' {
"id": "prospect_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"company_name": "Example Corp",
"industry": "industry_example",
"market_segment": "market_segment_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"no_of_employees": "no_of_employees_example",
"annual_revenue": 0,
"fax": "fax_example",
"website": "website_example",
"prospect_owner": "prospect_owner_example",
"company": "Example Corp"
} /api/crm/prospect/{id} Update a prospect
Updates the specified prospect by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the prospect to update.
Body parameters
Returns
Returns the updated prospect object.
curl https://api.overplane.dev/api/crm/prospect/prospect_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"company_name":"Example Corp","industry":"industry_example"}' {
"id": "prospect_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"company_name": "Example Corp",
"industry": "industry_example",
"market_segment": "market_segment_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"no_of_employees": "no_of_employees_example",
"annual_revenue": 0,
"fax": "fax_example",
"website": "website_example",
"prospect_owner": "prospect_owner_example",
"company": "Example Corp"
} /api/crm/prospect/{id} Delete a prospect
Permanently deletes a prospect. This cannot be undone.
Path parameters
The identifier of the prospect to delete.
Returns
Returns a confirmation that the prospect has been deleted.
curl https://api.overplane.dev/api/crm/prospect/prospect_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "prospect_abc123",
"deleted": true
} Line items
Child objects that belong to this prospect. These are accessed via the parent's ID.
Prospect Lead
Attributes
Endpoints
/api/crm/prospect-lead?parent_id={id} /api/crm/prospect-lead /api/crm/prospect-lead/{id} /api/crm/prospect-lead/{id} /api/crm/prospect-lead/reorder {
"id": "prospect-lead_abc123",
"idx": 1,
"prospect_id": "prospect_id_example",
"lead": "lead_example",
"lead_name": "lead_name_example",
"status": "draft",
"email": "user@example.com",
"mobile_no": "mobile_no_example",
"lead_owner": "lead_owner_example"
} Prospect Opportunity
Attributes
Endpoints
/api/crm/prospect-opportunity?parent_id={id} /api/crm/prospect-opportunity /api/crm/prospect-opportunity/{id} /api/crm/prospect-opportunity/{id} /api/crm/prospect-opportunity/reorder {
"id": "prospect-opportunity_abc123",
"idx": 1,
"prospect_id": "prospect_id_example",
"opportunity": "opportunity_example",
"amount": 0,
"stage": "stage_example",
"probability": 0,
"expected_closing": "expected_closing_example",
"currency": "USD",
"deal_owner": "deal_owner_example",
"contact_person": "contact_person_example"
}