Required scope for https://api.getbase.com/v2/accounts/self | Community
Skip to main content

Required scope for https://api.getbase.com/v2/accounts/self

  • October 4, 2022
  • 3 replies
  • 0 views

Marko11

Hi Community,

which scope is required to read the account information via Zendesk Sell API?

I've created an access token with the following scopes: sync profile read write

But when I request the API I get:

"error": {
   "code": "unauthorized",
   "message": "request is unauthorized",
   "details": "Required access token is missing, malformed, expired, or invalid."
}
 
Can anyone help me out?
 
Regards,
Marko

3 replies

  • October 5, 2022
Hi Marko, 
 
I don't believe the issue is is with the scopes. The scopes you included is correct. 
 
Did you recently create the token?
 
Best,
 
Erica

Marko11
  • Author
  • October 6, 2022

Hi Erica,

Yes. I did using the following Request:

https://api.getbase.com/oauth2/token?grant_type=refresh_token&refresh_token=<REFRESH_TOKEN>&scope=sync+profile+read+write

And received the following:

{
"access_token": "...",
"token_type": "bearer",
"expires_in": 3599,
"refresh_token": "...",
"scope": "sync profile read write"
}
 
But the access_token cannot be used for ANY Sell API. I get "unauthorized" error on every API.
 
What am I doing wrong?
 
Best regards,
Marko

  • October 11, 2022
Hi Marko,
 
It could be possible you token has expired before you used it. Do you have a single or multi-user application?