APIs & Integrations

umarahsan559
Member

Permissions error when call api with AccessToken

Hi, when i call "https://api.hubapi.com/engagements/v1/engagements?hapikey=demo" api with my hapikey, it works fine. But when i try same api with providing access token in header,
I get this error "This oauth-token (XXXXXXXXXXXXXXXX) does not have proper permissions! (requires any of [create-meetings-from-contact, engagements-write])"
I dont find any permission named "create-meetings-from-contact" or "engagements-write" in my app auth settings. I already added "contacts" & "oauth" permissions to the app.
Kindly anyone guide me how can i add this permission as i dont want to use hapikey for using api.
Thanks in Advance
0 Upvotes
1 Reply 1
WendyGoh
HubSpot Employee
HubSpot Employee

Permissions error when call api with AccessToken

Hey @umarahsan559,

 

In order for me to further troubleshoot this, could you share with me the app ID in question?

 

Additionally, could you run either the Get Information for OAuth 2.0 Access Token or Get Information for OAuth 2.0 Refresh Token endpoint to ensure that `contacts` is under the granted scopes? 

0 Upvotes