Query Intercom data in Python — Intercom rest API

Sophia Yang, Ph.D.
2 min readAug 19, 2020

First, we need to get the authentication info from Intercom by creating a “New app”. Click “New app” in the Developer Hub page.

Then you should be able to see Client ID, Client secret, and access token in your app. Great, now we can use these info to access data in Python.

import requests
from requests.auth import HTTPBasicAuth
token = 'xxx'
ID = 'xxx'