- A Postman Collection file for the Intercom API
- Will allow you to make requests to the Intercom API
- Based on curl samples on http://developers.intercom.com/reference
- Compatible with Postman and Insomnia
- Use the
intercom-postman-collection.json
listed in the repository
- Import > Import File
- Main Menu > Import/Export > Import Data
- Get your Intercom Access Token from the Developer Hub
- Note: some API endpoints require an Extended Access Token
- If you try to access these endpoints with a Standard Token you will get a
Not authorized to access resource
error (full error details shown below) - Ensure to apply for an extended access token
- If you try to access these endpoints with a Standard Token you will get a
"errors": [
{
"code": "token_unauthorized",
"message": "Not authorized to access resource"
}
]
- Create an
AccessToken
variable with the value of your access token obtained in the previous step
- Environment Options > Manage Environments > Add
- Environments dropdown > Manage Environments > +
- Code for the extracting is in the
extract
folder - It downloads the latest developer docs page and extracts out the curl commands and transforms them into the apporpriate
- Requirements: NodeJS and npm
- Usage
# change to directory with code
cd extract
# install dependencies
npm install
# run extractor to generate `intercom-postman-collection.json` file to be imported
node index.js