The intercom API reference.
The intercom API reference.
With the AI Content APIs, you can create and manage External Pages and Content Import Sources for your Fin Content Library.
External Pages are pages that you want Fin to be able to answer questions about. The API for External Pages is a great way to ingest into your Fin Content Library pages that are not publicly accessible and hence can't be crawled by Intercom.
Content Import Sources are the sources of those pages, and they are used to determine the default audience for the pages (configured via the UI). You should create a Content Import Source for each source of External Pages that you want to ingest into your Fin Content Library.
You can then iterate through the content from that source via its API and POST it to the External Pages endpoint. That endpoint has an external_id parameter which allows you to specify the identifier from the source. The endpoint will then either create a new External Page or update an existing one as appropriate.",
Contact are the objects that represent your leads and users in Intercom.
The unique identifier for the contact which is given by Intercom.
"5ba682d23d7cf92bef87bfd4"
The unique identifier for the contact which is provided by the Client.
"f3b87a2e09d514c6c2e79b9a"
The contacts phone number normalized to the E164 format
"+1123456789"
The id of an admin that has been assigned account ownership of the contact.
123
Whether the contact has marked an email sent to them as spam.
true
(UNIX timestamp) The time when the contact was created.
1571672154
(UNIX timestamp) The time when the contact was last updated.
1571672154
(UNIX timestamp) The time specified for when a contact signed up.
1571672154
(UNIX timestamp) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually).
1571672154
(UNIX timestamp) The time when the contact last messaged in.
1571672154
(UNIX timestamp) The time when the contact was last messaged.
1571672154
(UNIX timestamp) The time when the contact last opened an email.
1571672154
(UNIX timestamp) The time when the contact last clicked a link in an email.
1571672154
A preferred language setting for the contact, used by the Intercom Messenger even if their browser settings change.
"en"
The version of the browser which the contact is using.
"80.0.3987.132"
The language set by the browser which the contact is using.
"en-US"
The name of the Android app which the contact is using.
"Intercom"
The version of the Android app which the contact is using.
"5.0.0"
The version of the Android OS which the contact is using.
"10"
The version of the Android SDK which the contact is using.
"28"
(UNIX timestamp) The time when the contact was last seen on an Android device.
1571672154
The version of the iOS app which the contact is using.
"5.0.0"
The version of the iOS SDK which the contact is using.
"13.3.1"
(UNIX timestamp) The last time the contact used the iOS app.
1571672154
An object containing tags meta data about the tags that a contact has. Up to 10 will be displayed here. Use the url to get more.
An object containing notes meta data about the notes that a contact has. Up to 10 will be displayed here. Use the url to get more.
An object containing companies meta data about the companies that a contact has. Up to 10 will be displayed here. Use the url to get more.
{ "type": "contact", "id": "5ba682d23d7cf92bef87bfd4", "external_id": "f3b87a2e09d514c6c2e79b9a", "workspace_id": "ecahpwf5", "role": "user", "email": "joe@example.com", "email_domain": "example.com", "phone": "+1123456789", "formatted_phone": "+1123456789", "name": "John Doe", "owner_id": 123, "has_hard_bounced": true, "marked_email_as_spam": true, "unsubscribed_from_emails": true, "created_at": 1571672154, "updated_at": 1571672154, "signed_up_at": 1571672154, "last_seen_at": 1571672154, "last_replied_at": 1571672154, "last_contacted_at": 1571672154, "last_email_opened_at": 1571672154, "last_email_clicked_at": 1571672154, "language_override": "en", "browser": "Chrome", "browser_version": "80.0.3987.132", "browser_language": "en-US", "os": "Mac OS X", "android_app_name": "Intercom", "android_app_version": "5.0.0", "android_device": "Pixel 3", "android_os_version": "10", "android_sdk_version": "28", "android_last_seen_at": 1571672154, "ios_app_name": "Intercom", "ios_app_version": "5.0.0", "ios_device": "iPhone 11", "ios_os_version": "13.3.1", "ios_sdk_version": "13.3.1", "ios_last_seen_at": 1571672154, "custom_attributes": {}, "avatar": { "type": "avatar", "image_url": "https://example.org/128Wash.jpg" }, "tags": { "data": [ … ], "url": "/contacts/5ba682d23d7cf92bef87bfd4/tags", "total_count": 100, "has_more": true }, "notes": { "data": [ … ], "url": "/contacts/5ba682d23d7cf92bef87bfd4/notes", "total_count": 100, "has_more": true }, "companies": { "url": "/contacts/5ba682d23d7cf92bef87bfd4/companies", "total_count": 100, "has_more": true }, "location": { "type": "location", "country": "Ireland", "region": "Dublin", "city": "Dublin" }, "social_profiles": { "data": [ … ] } }
curl -i -X GET \ 'https://api.intercom.io/companies/{id}/contacts' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: Unstable'
{ "type": "list", "data": [], "total_count": 0, "pages": { "type": "pages", "page": 1, "per_page": 50, "total_pages": 0 } }
curl -i -X POST \ 'https://api.intercom.io/contacts/{id}/companies' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -H 'Intercom-Version: Unstable' \ -d '{ "id": "6687d14660233569304d21a1" }'
{ "type": "company", "company_id": "1", "id": "6687d14660233569304d21a1", "app_id": "this_is_an_id197_that_should_be_at_least_", "name": "company6", "remote_created_at": 1720176966, "created_at": 1720176966, "updated_at": 1720176966, "monthly_spend": 0, "session_count": 0, "user_count": 1, "tags": { "type": "tag.list", "tags": [] }, "segments": { "type": "segment.list", "segments": [] }, "plan": {}, "custom_attributes": {} }
curl -i -X GET \ 'https://api.intercom.io/contacts/{id}/companies' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Intercom-Version: Unstable'
successful
The majority of list resources in the API are paginated to allow clients to traverse data over multiple requests.
Their responses are likely to contain a pages object that hosts pagination links which a client can use to paginate through the data without having to construct a query. The link relations for the pages field are as follows.
{ "type": "list", "data": [ { … } ], "pages": { "type": "pages", "next": null, "page": 1, "per_page": 50, "total_pages": 1 }, "total_count": 1 }