The intercom API reference.
Home//
REST API Reference
/- List attached companies for contact
Contact
List attached contacts
Attach a Contact to a Company
Detach a contact from a company
List all notes
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 attached companies f...
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/{id}/companies
- The european API serverhttps://api.eu.intercom.io/contacts/{id}/companies
- The australian API serverhttps://api.au.intercom.io/contacts/{id}/companies
- curl
- Node.js
- Ruby
- PHP
- Python
- Java
- Go
- C#
- R
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: 2.9' \
-d '{
"id": "6657aacd6abd0164c24b0ce0"
}'Response
application/json
{ "type": "company", "company_id": "1", "id": "6657aacd6abd0164c24b0ce0", "app_id": "this_is_an_id177_that_should_be_at_least_", "name": "company6", "remote_created_at": 1717021389, "created_at": 1717021389, "updated_at": 1717021389, "monthly_spend": 0, "session_count": 0, "user_count": 1, "tags": { "type": "tag.list", "tags": [] }, "segments": { "type": "segment.list", "segments": [] }, "plan": {}, "custom_attributes": {} }
- The production API serverhttps://api.intercom.io/contacts/{id}/companies
- The european API serverhttps://api.eu.intercom.io/contacts/{id}/companies
- The australian API serverhttps://api.au.intercom.io/contacts/{id}/companies
- curl
- Node.js
- Ruby
- PHP
- Python
- Java
- Go
- C#
- R
curl -i -X GET \
https://api.intercom.io/contacts/63a07ddf05a32042dffac965/companies \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Intercom-Version: 2.9'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.
Response
application/json
{ "type": "list", "data": [ { … } ], "pages": { "type": "pages", "next": null, "page": 1, "per_page": 50, "total_pages": 1 }, "total_count": 1 }
- 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": {} }