Create Contact
Create a new contact with the specified information.Endpoint
Authentication
This endpoint requires an API key with thecan_read_contacts
permission.
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
first_name | string | Yes | First name of the contact |
last_name | string | No | Last name of the contact |
email | string | No | Email address of the contact |
company | string | No | Company or organization name |
website | string | No | Company or personal website URL |
address | string | No | Street address |
city | string | No | City |
state | string | No | State or province |
zip_code | string | No | Postal or ZIP code |
country | string | No | Country (default: “US”) |
status | string | No | Contact status (default: “not_contacted”) |
stage | string | No | Contact stage (default: “lead”) |
team_id | integer | No | ID of the team to assign the contact to |
tags | array | No | Array of tag names to associate with the contact |
phone_numbers | array | No | Array of phone number objects |
custom_context | object | No | Custom fields and data |
industry_context | object | No | Industry-specific information |
Phone Number Object
Parameter | Type | Required | Description |
---|---|---|---|
phone_number | string | Yes | Phone number in E.164 format |
phone_type | string | No | Type of phone (mobile, work, home, etc.) |
primary | boolean | No | Whether this is the primary phone number |
do_not_call | boolean | No | Whether this number is on the do not call list |
Example Request Body
Response
Error Codes
Status Code | Error Code | Description |
---|---|---|
400 | missing_first_name | First name is required |
400 | invalid_json | Invalid JSON payload |
400 | validation_error | Validation error with details |
401 | authentication_required | No API key was provided |
401 | invalid_key | The API key is invalid or inactive |
403 | permission_denied | The API key doesn’t have the required permission |
403 | team_access_denied | You do not have access to this team |
404 | team_not_found | Team not found |
500 | server_error | An unexpected server error occurred |
Example Request
Example Response
Notes
- The newly created contact will be owned by the user associated with the API key.
- If
team_id
is provided, the contact will be associated with that team, assuming the user has access to the team. - The first phone number in the
phone_numbers
array will be set as the primary one if no phone number has theprimary
flag set totrue
. - You can assign tags to the contact during creation. If a tag doesn’t exist, it will be created.
- Custom context fields can be used to store additional information specific to your business needs.