Skip to main content

Hi, 

I am using Make (formerly Integromat) to automate data exports. So I’m following this API call in the documentation : https://developers.intercom.com/intercom-api-reference/reference/create-data-export

To do so in Make, I use the Intercom module “Make an API call” with a POST request (see attached picture) with the right URL endpoint : /export/content/data. (as mentioned in the doc) 

And with two dates with the right format in timestamp (I took June 1st and June 30th for the example). 

But when I try it I get a 401 error “unauthorized”.


I don’t understand because in other automations I use the exact same module to Search contacts. In this case it is still a POST request and what changes are :

  • the URL endpoint is : /contacts/search
  • And the parameters of the query 

but it works. 

 

I don’t understand what’s going on and overall : I don’t know how to get the authorization 😬

I tried to create another connection and to re-do the process to authorize Make to access Intercom and vice versa but it doesn’t work and I don’t understand what’s going on. 

 

If anyone knows how I could solve it, it would be a really great help ! 

Thanks !

 

Hi @Nicolas H11 👋 Eden from the support engineer team here.

 

Can you check to see if you have the proper permissions set up for your Access Token? You will need all of the “export” permissions there. The Intercom API has the concept of permissions. An access token can have different permissions, which allows (or doesn't allow) the access token to make certain API calls. If you try to use an access token that doesn't have the right permissions to query a specific API endpoint, a token_unauthorized error will be returned. You can read more about access tokens, as well as apply for a token with extended scopes here.

 

If you'd like to change the permissions for an access token, you can do this by going to your Developer Hub, selecting the app whose access token permissions you want to change, and then navigating to the Authentication page.

 

As a note, after changing and saving the permissions, you'll need to regenerate your access token and use the new access token to make requests with the API. You can regenerate the access token after changing permissions by hovering over the "❗️ " symbol, and following the link in the pop-up .

 


Hi @Nicolas H11,

I know it’s an old post, but have you managed to resolve your issue? I'm facing the same problem with Make, receiving a 401 error for a specific URL (/tickets) despite having the correct permissions.

 

Thanks.


Hey @Nurit

 

Could you try to make the exact same request outside Make (e.g. by using Postman) to see if you are still getting the same response? This would give you an idea on whether the issue is on the request itself, or something is happening on Make’s platform specifically.

 

If you are able to make a successful request outside Make by using the same access token, I’d recommend contacting their support team to investigate it.

 

If the same issue still occurs on Postman, then please let me know, and I can forward your message to the Support Engineering team to take a look at your workspace logs and get back to you via email.

 

Thanks!


Hi @aykut.aydin 

Thanks for your reply.
I did try the request in Postman, and it worked. It seems like there is a problem with the Intercom module in Make so I turned to their support. Eventually, I used the HTTP module to make the call, and it worked fine.


Reply