Create a contact

Creates a contact. email, phone_number and identifier are each unique within the account, so a value already in use fails with 422.

Authentication

api_access_tokenstring

An API key created in Settings > Developer. A user token works too and is useful while you experiment. A key is authorized at the account level: it reaches every inbox, conversation and contact in the account that issued it, and nothing outside that account.

Path parameters

account_idintegerRequired
Your account id.

Request

This endpoint expects an object.
namestringOptional
emailstringOptionalformat: "email"
phone_numberstringOptionalformat: "^\+[1-9]\d{1,14}$"
identifierstringOptional
custom_attributesmap from strings to anyOptional
additional_attributesmap from strings to anyOptional

Response

The created contact.
payloadobjectOptional

Errors

401
Unauthorized Error
422
Unprocessable Entity Error