The Contact object
The following attributes are returned when you fetch a contact from the API.| Attribute | Description |
|---|---|
id | Unique identifier for the contact |
display_name | Display name, usually first name + last name |
first | First name |
last | Last name |
email | Email address |
phone | Phone number |
custom | Custom fields as an object mapping field ID to value |
team_id | Your Heymarket team ID |
creator_id | ID of the user who created the contact |
shared | Whether the contact is shared with team members |
created | Creation timestamp |
updated | Last updated timestamp |
rev | Last revision number |
assigned_user_id | ID of the user assigned as contact owner |
tags | Array of up to 5 tag objects |
is_opted_out | Whether this contact is opted out of messaging |
Custom fields
Your team can define custom fields to store additional data on contacts — for example, account numbers, plan types, or any other attribute relevant to your workflow. To retrieve the custom field IDs defined for your team, call:custom object:
Omnichannel contact channels
Version 2 contacts support multiple communication channels per contact. Instead of a singlephone field, these contacts include a contact_channels array that can contain entries for phone (SMS/MMS), email, Facebook Messenger, and other supported channels.
This lets you associate multiple identifiers with a single contact and track conversations across channels in one place.
Contact status
A contact’s status reflects their messaging relationship with your team:- active — the contact is reachable and can receive messages
- blocked — the contact has been blocked and cannot receive messages
- unblocked — a previously blocked contact that has been unblocked
- subscribed — the contact has opted in to receive messages
- unsubscribed — the contact has opted out of receiving messages
Tags
You can attach up to 5 tags to a contact to help your team categorize and filter contacts. Each tag object includes an ID, a name, and a color. Tags are defined at the team level and shared across contacts.Phone numbers must be in E.164 format without the leading plus sign. For example, use
14155553434 instead of +1 (415) 555-3434.