API ReferenceBuilding AppsInstalling IntercomAPI & Webhook ReferenceCanvas Kit Reference
DocsApp StoreCommunityBlogYour Apps

The Contact model

Example Contacts Object

{
  "type": "contact",
  "id": "5ba682d23d7cf92bef87bfd4",
  "workspace_id": "ecahpwf5",
  "external_id": "25",
  "role": "user",
  "email": "[email protected]",
  "phone": "+1123456789",
  "name": "Hoban Washburn",
  "avatar": "https://example.org/128Wash.jpg",
  "owner_id": 127,
  "social_profiles": {
    "type": "list",
    "data": [
      {
        "type": "social_profile",
        "name": "Twitter",
        "url": "http://twitter.com/th1sland"
      }
    ]
  },
  "has_hard_bounced": false,
  "marked_email_as_spam": false,
  "unsubscribed_from_emails": false,
  "created_at": 1571672154,
  "updated_at": 1571672158,
  "signed_up_at": 1571069751,
  "last_seen_at": 1571069751,
  "last_replied_at": 1571672158,
  "last_contacted_at": 1571672158,
  "last_email_opened_at": 1571673478,
  "last_email_clicked_at": 1571676789,
  "language_override": null,
  "browser": "chrome",
  "browser_version": "77.0.3865.90",
  "browser_language": "en",
  "os": "OS X 10.14.6",
  "location": {
    "type": "location",
    "country": "Ireland",
    "region": "Dublin",
    "city": "Dublin"
  },
  "android_app_name": null,
  "android_app_version": null,
  "android_device": null,
  "android_os_version": null,
  "android_sdk_version": null,
  "android_last_seen_at": null,
  "ios_app_name": null,
  "ios_app_version": null,
  "ios_device": null,
  "ios_os_version": null,
  "ios_sdk_version": null,
  "ios_last_seen_at": null,
  "custom_attributes": {
    "paid_subscriber": true,
    "monthly_spend": 155.5,
    "team_mates": 1
  },
  "tags": {
    "type": "list",
    "data": [
      {
        "type": "tag",
        "id": "2",
        "url": "/tags/2"
      },
      {
        "type": "tag",
        "id": "4",
        "url": "/tags/4"
      },
      {
        "type": "tag",
        "id": "5",
        "url": "/tags/5"
      }
    ],
    "url": "/contacts/5ba682d23d7cf92bef87bfd4/tags",
    "total_count": 3,
    "has_more": false
  },
  "notes": {
    "type": "list",
    "data": [
      {
        "type": "note",
        "id": "20114858",
        "url": "/notes/20114858"
      }
    ],
    "url": "/contacts/5ba682d23d7cf92bef87bfd4/notes",
    "total_count": 1,
    "has_more": false
  },
  "opted_out_subscription_types": {
    "type": "list",
     "data": [
       {
         "id": "1",
         "type": "subscription",
         "url": "/subscription_types/1"
       }
     ],
     "url": "/contacts/5ba682d23d7cf92bef87bfd4/subscriptions",
     "total_count": 1,
     "has_more": false
  },
  "opted_in_subscription_types": {
    "type": "list",
     "data": [
       {
         "id": "2",
         "type": "subscription",
         "url": "/subscription_types/2"
       }
     ],
     "url": "/contacts/5ba682d23d7cf92bef87bfd4/subscriptions",
     "total_count": 1,
     "has_more": false
  },
  "companies": {
    "type": "list",
    "data": [
      {
        "type": "company",
        "id": "5ba686093d7cf93552a3dc99",
        "url": "/companies/5ba686093d7cf93552a3dc99"
        
      },
      {
        "type": "company",
        "id": "5cee64a03d7cf90c51b36f19",
        "url": "/companies/5cee64a03d7cf90c51b36f19"
      },
      {
        "type": "company",
        "id": "5d7668883d7cf944dbc5c791",
        "url": "/companies/5d7668883d7cf944dbc5c791"
      }
    ],
    "url": "/contacts/5ba682d23d7cf92bef87bfd4/companies",
    "total_count": 3,
    "has_more": false
  },
  "utm_campaign": "my-campaign",
  "utm_content": null,
  "utm_medium": "social",
  "utm_source": null,
  "utm_term": null,
  "referrer": null
}

Our Contacts API is a central place to gather all information and take actions on your contacts (ie. users and leads), such as fetching, searching, creating, updating, and deleting.

The Contacts Model provides details on these contacts within Intercom, and will specify whether they are a user or lead through the role attribute.

Object Models

Contact

FieldTypeDescription
typestringThe type of object.
idstringThe unique identifier for the contact which is given by Intercom.
workspace_idstringThe id of the workspace which the contact belongs to.
rolestringThe role of the contact.
emailstringThe contacts email.
phonestringThe contacts phone.
namestringThe contacts name.
owner_idintegerThe id of an admin that has been assigned account ownership of the contact.
has_hard_bouncedbooleanWhether the contact has had an email sent to them hard bounce.
marked_email_as_spambooleanWhether the contact has marked an email sent to them as spam.
unsubscribed_from_emailsbooleanWhether the contact is unsubscribed from emails.
created_atinteger(UNIX timestamp) The time when the contact was created.
updated_atinteger(UNIX timestamp) The time when the contact was last updated.
signed_up_atinteger(UNIX timestamp) The time specified for when a contact signed up.
last_seen_atinteger(UNIX timestamp) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually).
last_replied_atinteger(UNIX timestamp) The time when the contact last messaged in.
last_contacted_atinteger(UNIX timestamp) The time when the contact was last messaged.
last_email_opened_atinteger(UNIX timestamp) The time when the contact last opened an email.
last_email_clicked_atinteger(UNIX timestamp) The time when the contact last clicked a link in an email.
language_overridestringA preferred language setting for the contact, used by the Intercom Messenger even if their browser settings change.
browserstringThe name of the browser which the contact is using.
browser_versionstringThe version of the browser which the contact is using.
browser_languagestringThe language set by the browser which the contact is using.
osstringThe operating system which the contact is using.
android_app_namestringThe name of the Android app which the contact is using.
android_app_versionstringThe version of the Android app which the contact is using.
android_devicestringThe Android device which the contact is using.
android_os_versionstringThe version of the Android OS which the contact is using.
android_sdk_versionstringThe version of the Android SDK which the contact is using.
android_last_seen_atinteger(UNIX timestamp) The time when the contact was last seen on an Android device.
ios_app_namestringThe name of the iOS app which the contact is using.
ios_app_versionstringThe version of the iOS app which the contact is using.
ios_devicestringThe iOS device which the contact is using.
ios_os_versionstringThe version of iOS which the contact is using.
ios_sdk_versionstringThe version of the iOS SDK which the contact is using.
ios_last_seen_atinteger(UNIX timestamp) The last time the contact used the iOS app.
custom_attributesobjectThe custom attributes which are set for the contact.
avatarobject
tagsobjectAn object containing tags meta data about the tags that a contact has.
notesobjectAn object containing notes meta data about the notes that a contact has.
companiesobjectAn object containing companies meta data about the companies that a contact has.
locationobjectAn object containing location meta data about a Intercom contact.
social_profilesobjectAn object containing social profiles that a contact has.

Contact Tags

FieldTypeDescription
dataarrayThis object represents the tags attached to a contact.
urlstringurl to get more tag resources for this contact
total_countintegerInt representing the total number of tags attached to this contact
has_morebooleanWhether there's more Addressable Objects to be viewed. If true, use the url to view all

Contact Notes

FieldTypeDescription
dataarrayThis object represents the notes attached to a contact.
urlstringUrl to get more company resources for this contact
total_countintegerInt representing the total number of companyies attached to this contact
has_morebooleanWhether there's more Addressable Objects to be viewed. If true, use the url to view all

Contact Companies

FieldTypeDescription
urlstringUrl to get more company resources for this contact
total_countintegerInt representing the total number of companyies attached to this contact
has_morebooleanWhether there's more Addressable Objects to be viewed. If true, use the url to view all

Contact Location

FieldTypeDescription
typestringAlways location
countrystringThe country that the contact is located in
regionstringThe overal region that the contact is located in
citystringThe city that the contact is located in

Contact Social Profiles

FieldTypeDescription
dataarrayA list of social profiles objects associated with the contact.