List All Contacts
Get a Specific Contact
Get a Contact by CRM ID
- crm_id: The ID of the contact in the CRM system
- crm_source: The source CRM system (e.g., “salesforce”, “hubspot”)
Create a Contact
- first_name is required unless crm_id and crm_source are provided. All other fields are optional.
- last_name: Last name (string, max 100 characters)
- email: Email address (string, max 255 characters)
- phone: Phone number (string, max 20 characters)
- company: Company name (string, max 255 characters)
- crm_id: External CRM identifier (requires crm_source)
- crm_source: CRM system name (requires crm_id)
- backup_contact_name: Alternative contact person name (string, max 100 characters)
- backup_contact_phone: Alternative contact phone number (string, max 20 characters)
- contact_tags: Array of string tags for categorization (defaults to empty array)
- contact_variables: Object with string key-value pairs for custom metadata (defaults to empty object)
- country_code: Two-letter ISO country code (string, exactly 2 characters, e.g., “US”, “CA”, “GB”)
- country: Full country name (string, max 100 characters)
- backup_contact_name / backup_contact_phone: Store secondary contact information for the organization
- contact_tags: Categorize contacts for segmentation (e.g., [“prospect”, “vip”, “enterprise”, “hot-lead”])
- contact_variables: Store custom metadata specific to your business needs (e.g., lead scores, deal sizes, custom fields)
- country_code / country: Track geographical location for reporting and segmentation
- contact_tags must be an array where all elements are strings (no numbers, objects, or other types)
- contact_variables must be a flat object where all values are strings (no nested objects, arrays, or non-string values)
- country_code must be exactly 2 characters when provided (ISO 3166-1 alpha-2 standard)
Update a Contact
- first_name: First name (string)
- last_name: Last name (string)
- email: Email address (string)
- phone: Phone number (string)
- company: Company name (string)
- crm_id: CRM identifier (requires crm_source if updating)
- crm_source: CRM system name (requires crm_id if updating)
- backup_contact_name: Backup contact name (string)
- backup_contact_phone: Backup contact phone (string)
- country_code: Two-letter ISO country code (string, exactly 2 characters)
- country: Full country name (string)
- contact_tags: Array of tags (requires update operators - see below)
- contact_variables: Object of variables (requires update operators - see below)
crm_id or crm_source, both must be provided together. You cannot update one without the other.
Advanced Updates for Tags & Variables:
For contact_tags and contact_variables, you must use update operators:
Update Tags Examples:
Add tags (prevents duplicates):
- $push: Add tags to the array - automatically prevents duplicates
- $pull: Remove specific tags from the array
- $set: Replace the entire tags array with a new one
- $set: Set or update specific variable key-value pairs
- $unset: Remove specific variables by key (provide array of keys to remove)
- $merge: Merge new variables into existing ones (same as $set, provided for semantic clarity)
$set- Sets values first$unset- Removes values$merge- Merges additional values$push- Adds to arrays$pull- Removes from arrays
- contact_tags and contact_variables updates must use operators - simple value replacement is not allowed
- All operator values must maintain type constraints (strings only)
- $push automatically prevents duplicate tags - no need to check if a tag already exists
- contact_variables must remain a flat object (no nested structures allowed)
Delete a Contact
400 Bad Request-"contact_tags must be an array of strings": Tags array contains non-string values400 Bad Request-"contact_variables must be an object with string values": Variables object contains non-string values or nested structures400 Bad Request-"country_code must be a 2-letter ISO code": Country code is not exactly 2 characters400 Bad Request-"contact_tags must use update operators: $push, $pull, or $set": Attempting to update tags without using operators400 Bad Request-"contact_variables must use update operators: $set, $unset, or $merge": Attempting to update variables without using operators404 Not Found- Contact with specified ID does not exist or does not belong to your organization409 Conflict- A contact with this CRM ID and source already exists for your organization