The intercom API reference.
Home//
REST API Reference
/- List attached segments for contact
Contact
List attached contacts
Attach a Contact to a Company
List attached companies for contact
Detach a contact from a company
List all notes
Create a note
List subscriptions for a contact
Add subscription to a contact
Remove subscription from a contact
List tags attached to a contact
Add tag to a contact
Remove tag from a contact
Update a contact
Get a contact
Delete a contact
Merge a lead and a user
Search contacts
List all contacts
Create contact
Archive contact
Unarchive contact
List attached segments fo...
Intercom API (2.10)
Download OpenAPI description
Overview
URL
License
Languages
Servers
The production API server
https://api.intercom.io/
The european API server
https://api.eu.intercom.io/
The australian API server
https://api.au.intercom.io/
- The production API serverhttps://api.intercom.io/contacts/{id}/notes
- The european API serverhttps://api.eu.intercom.io/contacts/{id}/notes
- The australian API serverhttps://api.au.intercom.io/contacts/{id}/notes
- curl
- Node.js
- Ruby
- PHP
- Python
- Java
- Go
- C#
- R
curl -i -X POST \
https://api.intercom.io/contacts/123/notes \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: 2.10' \
-d '{
"contact_id": "6657ac4c6abd0166b52ae227",
"admin_id": 991267888,
"body": "Hello"
}'Response
application/json
{ "type": "note", "id": "47", "created_at": 1717021772, "contact": { "type": "contact", "id": "6657ac4c6abd0166b52ae227" }, "author": { "type": "admin", "id": "991267888", "name": "Ciaran103 Lee", "email": "admin103@email.com", "away_mode_enabled": false, "away_mode_reassign": false }, "body": "<p>Hello</p>" }
- The production API serverhttps://api.intercom.io/contacts/{contact_id}/segments
- The european API serverhttps://api.eu.intercom.io/contacts/{contact_id}/segments
- The australian API serverhttps://api.au.intercom.io/contacts/{contact_id}/segments
- curl
- Node.js
- Ruby
- PHP
- Python
- Java
- Go
- C#
- R
curl -i -X GET \
https://api.intercom.io/contacts/63a07ddf05a32042dffac965/segments \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Intercom-Version: 2.10'Response
application/json
{ "type": "list", "data": [ { … } ] }
Request
You can fetch a list of subscription types that are attached to a contact. These can be subscriptions that a user has 'opted-in' to or has 'opted-out' from, depending on the subscription type. This will return a list of Subscription Type objects that the contact is associated with.
The data property will show a combined list of:
1.Opt-out subscription types that the user has opted-out from. 2.Opt-in subscription types that the user has opted-in to receiving.
Security
bearerAuth
- The production API serverhttps://api.intercom.io/contacts/{contact_id}/subscriptions
- The european API serverhttps://api.eu.intercom.io/contacts/{contact_id}/subscriptions
- The australian API serverhttps://api.au.intercom.io/contacts/{contact_id}/subscriptions
- curl
- Node.js
- Ruby
- PHP
- Python
- Java
- Go
- C#
- R
curl -i -X GET \
https://api.intercom.io/contacts/63a07ddf05a32042dffac965/subscriptions \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Intercom-Version: 2.10'Response
application/json
{ "type": "list", "data": [ { … }, { … } ] }