Skip to main content
Answered

Messages API endpoint access

  • 23 January 2025
  • 1 reply
  • 7 views

I am trying to send email messages via the messages API endpoint and its failing.  Perhaps my current authorization  token doesn’t allow the sending of messages, even though I’ve check all of the boxes?  I have found via OpenAI instructions for adding “message” scope to the authorization token.  But OpenAI doesn’t seem to be in line with reality, as I cannot find the Intercom UIs it refers to.  What is the right way to make sure my authorization token includes the messages scope?

 

Best answer by Shaq Payne

Hey there, Shaq from the Support Engineering team here 😀

 

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 .

image

 

Can you provide a little more information on the specific error the API is returning? 

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

1 reply

Shaq Payne
Intercom Team
Forum|alt.badge.img+2
  • Intercom Team
  • 27 replies
  • Answer
  • January 27, 2025

Hey there, Shaq from the Support Engineering team here 😀

 

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 .

image

 

Can you provide a little more information on the specific error the API is returning? 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings