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



Posted Oct 04, 2022

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

0

3

3 comments

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

0


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

0


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

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post