Create Crm Lead
POST /integrations/crm/connections/{connection_id}/leads
Create a Lead IN THE CUSTOMER’S SALESFORCE.
last_name and company are required by Salesforce itself. status is an
OPEN picklist - read the valid values from
GET /integrations/crm-sync/leads/statuses first, because an invented one
is stored rather than refused.
Authorizations
Parameters
Path Parameters
The CRM connection to act through.
The CRM connection to act through.
Header Parameters
Request Body required
A Salesforce Lead. last_name and company are REQUIRED by Salesforce
itself, which is why they are required here and not merely validated.
object
One provider-side custom field.
field_name is the CRM’s API name, not its label. Read the valid names
from GET /integrations/crm/fields; a name the provider does not have is
rejected by the provider, not here.
Responses
201
Successful Response
object
One CRM record, or one provider response.
Open-shaped ON PURPOSE. These bodies carry whatever the provider returned, the field set differs between HubSpot, Salesforce, Pipedrive and SugarCRM, and it grows every time one of them ships something. Pinning it would drop whatever a provider reported that this contract had not caught up on - which on a CRM surface means silently hiding the customer’s own data from them.
object
422
Validation Error