Skip to main content
Best answer

Intercom: token_unauthorized error


Hi, I am looking to add an article every time a database in Notion is updated. However, I am stuck at the basic integration due to authentication issue. I am getting a token_unauthorized error on any request. I have connected my Intercom account and gave all the permissions it requested. 

  1. I am trying to read/update article but I dont see any permissions related to article in the auth dialog. Could that be the reason but I don’t see a way to include it 
  2. Do I have to be at a certain intercom level to be able to do so? Also not obvious from some searches I did. 

thanks for any help getting me unblocked. Feels like this is something basic/simple and I am just missing it. 

Best answer by SamB

Thanks for confirming that @Rukhsar!

In that case I’d recommend reaching out to our Support team to put in a feature request to also seek the relevant permissions for articles when connecting an Intercom account. You can do that here: https://zapier.com/app/get-help 

In the meantime, it looks like you’d be able to use those endpoints for Intercom without OAuth so I’d suggest trying a Webhooks action instead of the Intercom API Request action. It’s a bit more advanced as you’d need to set up the token and include the authentication details in the request. But I’d have thought it should work if you include the authentication token in the Headers section like so:
7c04f55d847fef6576d2d7c485090f3b.png
I found a guide on Intercom’s site that explains how to generate an access token here: Intercom > How to get your Access Token. And we have a general guide on how to set up Webhooks in Zapier which you might also find useful on this: Send webhooks in Zaps


Hope that helps to get you pointed in the right direction. If you run into any issues on that or have any further questions just let us know!

View original
Did this topic help you find an answer to your question?

7 replies

SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7274 replies
  • August 22, 2024

Hi and welcome to the Community @Rukhsar! 😁

That’s odd, according the How to Get Started with Intercom guide here there aren’t any restrictions based or plan or user permissions:

f8d8f5491c6d9be2e05d8d0ed49612c9.png

But as you say there don’t appear to be any permissions being requested for articles so that may well be why it’s erroring.

Can you confirm what action(s) you’re seeing that “token_unauthorized” error on? Asking as I don’t see any actions available for the Intercom app on Zapier that would allow you to find or create/update an article in Intercom. Are you using an API Request or Custom Action?

Looking forward to hearing from you on this!


  • Author
  • New
  • 2 replies
  • August 22, 2024

I am using API request. I have tried retrieve an article and update an article 

 


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7274 replies
  • Answer
  • August 23, 2024

Thanks for confirming that @Rukhsar!

In that case I’d recommend reaching out to our Support team to put in a feature request to also seek the relevant permissions for articles when connecting an Intercom account. You can do that here: https://zapier.com/app/get-help 

In the meantime, it looks like you’d be able to use those endpoints for Intercom without OAuth so I’d suggest trying a Webhooks action instead of the Intercom API Request action. It’s a bit more advanced as you’d need to set up the token and include the authentication details in the request. But I’d have thought it should work if you include the authentication token in the Headers section like so:
7c04f55d847fef6576d2d7c485090f3b.png
I found a guide on Intercom’s site that explains how to generate an access token here: Intercom > How to get your Access Token. And we have a general guide on how to set up Webhooks in Zapier which you might also find useful on this: Send webhooks in Zaps


Hope that helps to get you pointed in the right direction. If you run into any issues on that or have any further questions just let us know!


  • Author
  • New
  • 2 replies
  • August 23, 2024

Thank you!


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7274 replies
  • August 27, 2024

You’re most welcome @Rukhsar! 🤗

Please do keep us updated on how you get on with this. Would love to hear from you!  


Hello, looks like i have the same error for my website bookofbonus.

I’m using this api route : https://api.intercom.io/subscriptions to subscribe to my users events with webhooks but i’m having this error :

code : ‘token_unauthorized’ with the access token provided by the Oauth flow.

{
type: 'error.list',
request_id: '0004q1hsmbocuk30ebq0',
  errors: [
    {
      code: 'token_unauthorized',
      message: 'Not authorized to access resource'
     }
  ]
}

 


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7274 replies
  • February 7, 2025

Sorry to hear you’re running into that error as well ​@richard delmond

Can you confirm whether you’re using and API Request (Intercom) action or a Webhooks action to make the request? 

Also, is “https://api.intercom.io/subscriptions” the value you’re using in the URL field? If so it might be that you need to include the contact’s ID in the url as per their API documentation:

1f71568ea91a31f5ce1b36c1467e2fde.png

 

Looking forward to hearing from you! 🙂