Create a new contact

View as Markdown

Contacts belong to exactly one Lead (specified by lead_id). If you do not provide a lead_id then a new lead will be created, named after the contact.

Custom field values can be set by including custom.cf_* keys in the request body, e.g. "custom.cf_abc123": "value".

Authentication

AuthorizationBasic
Use your API key as the username and leave the password empty.
OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

_fieldsstringOptional

Comma-separated list of fields to include in the response.

Request

This endpoint expects an object.
created_bystring or nullOptional
date_createddatetime or nullOptional
emailslist of objects or nullOptional
lead_idstring or nullOptional
namestring or nullOptional<=1000 characters
phoneslist of objects or nullOptional
timezonestring or nullOptional
IANA timezone identifier
titlestring or nullOptional<=1000 characters
urlslist of objects or nullOptional

Response

Successful response
created_bystring or null
date_createddatetime
date_updateddatetime
display_namestring
idstring
namestring or null
organization_idstring
titlestring or null
updated_bystring or null
emailslist of objects
lead_idstring or null
lead_suggestions_operation_idstring or null
phoneslist of objects
recent_callslist of objects
subscriptionslist of objects
timezonestring or null
timezone_sourcestring or null
urlslist of objects

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error