The intercom API reference.
Home//
REST API Reference
/- List all notes
Contact
List attached contacts
Attach a Contact to a Company
List attached companies for contact
Detach a contact from a company
Create a note
List attached segments for contact
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 all notes
Intercom API (2.9)
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/{contact_id}/companies/{id}
- The european API serverhttps://api.eu.intercom.io/contacts/{contact_id}/companies/{id}
- The australian API serverhttps://api.au.intercom.io/contacts/{contact_id}/companies/{id}
- curl
- Node.js
- Ruby
- PHP
- Python
- Java
- Go
- C#
- R
curl -i -X DELETE \
https://api.intercom.io/contacts/58a430d35458202d41b1e65b/companies/58a430d35458202d41b1e65b \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Intercom-Version: 2.9'Response
application/json
{ "type": "company", "company_id": "1", "id": "6657aad06abd0164c24b0cf0", "app_id": "this_is_an_id185_that_should_be_at_least_", "name": "company8", "remote_created_at": 1717021392, "created_at": 1717021392, "updated_at": 1717021392, "monthly_spend": 0, "session_count": 0, "user_count": 0, "tags": { "type": "tag.list", "tags": [] }, "segments": { "type": "segment.list", "segments": [] }, "plan": {}, "custom_attributes": {} }
- 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 GET \
'https://api.intercom.io/contacts/{id}/notes' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Intercom-Version: 2.9'Successful response
Cursor-based pagination is a technique used in the Intercom API to navigate through large amounts of data. A "cursor" or pointer is used to keep track of the current position in the result set, allowing the API to return the data in small chunks or "pages" as needed.
Response
application/json
{ "type": "list", "data": [ { … }, { … }, { … } ], "total_count": 3, "pages": { "type": "pages", "next": null, "page": 1, "per_page": 50, "total_pages": 1 } }
- 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.9' \
-d '{
"contact_id": "6657aad76abd0164c24b0d0e",
"admin_id": 991267354,
"body": "Hello"
}'Response
application/json
{ "type": "note", "id": "34", "created_at": 1717021399, "contact": { "type": "contact", "id": "6657aad76abd0164c24b0d0e" }, "author": { "type": "admin", "id": "991267354", "name": "Ciaran112 Lee", "email": "admin112@email.com", "away_mode_enabled": false, "away_mode_reassign": false }, "body": "<p>Hello</p>" }