OAuth 2.0 Scope error



When i tried to get a access token through postman, i always get a BAD_SCOPES error. I tried a verity of combinations of scopes, but none of them works. Our company has a Marketing starter account, which scopes should be used, or where can we identified the scopes should be used fro this purpose.


@MichaelS Any of the scopes that have CRM next to it you can use.


Hi Peter,
Actually, i have tried just include these scopes. However, i still get the same error.
Is this request looks correct for getting the authorization code?



Can you post the error output that you get in Postman please.


Sure, this is the error in response:
“status”: “BAD_SCOPES”,
“message”: “missing or invalid scopes”,
“correlationId”: “efc4405a-d139-41c1-8379-6af14ae34177”,
“requestId”: “e1d7ca62472b49373f7a91598b56537e”


What if you tried just request for contacts. Does that work or do you receive the same error? Nothing immediately jumps out at me about your request that could be causing that.


yes, i also tried just include the contacts scope, it also returns the same error.


Do you have any of these boxes checked off in your app on your Dev Portal?

Any boxes checked off here would be required scopes in your OAuth call.


After i logged in, i only got a “Marketing Dashboard”. I assume this is not the same thing with Dev Portal?
We have some test data under the 2318521, but seems it is not a Dev Portal. A Dev portal should looks like this, right?


Any Box that is checked would be a required scope in your OAuth call. I would uncheck all of them and then try your call again.


Hi, I think we bough the Marketing Dashboard and Sales Dashboard, other than the dev portal. Do it support OAuth call?


This is what our dashboard look like.


@yangj I’m not sure I understand your question. Can you please start a new post and add some more context to your question?


Hi, this is a different problem i faced .

I wrote the code and received this json response:


but access token is not getting stored on $myrs variable.

Here is the full code :



$agent= ‘Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)’;

$ch = curl_init();
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”);
curl_setopt($ch, CURLOPT_HTTPHEADER, [‘Content-Type: application/x-www-form-urlencoded’]);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_URL,$url);


$rest= (json_decode($result, true));

How can i store the access token in a variable ?

Thank you!