Make an API call

You can use your Access Token to make your first call to the REST API. Here's a little sample code that you can run in your terminal to make a call and list all the admins in your developer workspace:

# Copy the cURL request below into your Terminal.
# Replace **<INSERT_ACCESS_TOKEN_HERE>** with your Access Token from Step 3.
# Run the query to see a response with all your admins listed.

$ curl https://api.intercom.io/admins \
-H 'Authorization:Bearer <INSERT_ACCESS_TOKEN_HERE>' \
-H 'Accept: application/json'

Find details on how to find your Access Token here.


What’s Next

Take a look at our next guide whereby you'll build an app in the Messenger within 30 minutes, or explore other API calls you can make with our REST API Reference.

Did this page help you?