Skip to content

Create Crm Contact

POST
/integrations/crm/connections/{connection_id}/contacts

Create a contact IN THE CUSTOMER’S CRM. This writes to their system.

Authorizations

Parameters

Path Parameters

connection_id
required

The CRM connection to act through.

string

The CRM connection to act through.

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

A new contact, created in the CUSTOMER’S CRM.

object
address
Any of:
object
address_type
Any of:
string
city
Any of:
string
country
Any of:
string
postal_code
Any of:
string
state
Any of:
string
street
Any of:
string
street2
Any of:
string
company_id
Any of:
string
company_name
Any of:
string
custom_fields
Array<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.

object
field_name
required
string
field_type
Any of:
string
field_value
required

Required, but may be null - which is how a custom field is cleared.

emails
Array<object>
object
email
required
string
email_type
Any of:
string
first_name
Any of:
string
last_name
Any of:
string
name
Any of:
string
phones
Array<object>
object
phone
required
string
phone_type
Any of:
string
source
Any of:
string
tags
Array<string>
title
Any of:
string
user_id
Any of:
string

Responses

201

Successful Response

object
data
required

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
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string