This oauth-token does not have proper permissions! (requires all of [hubdb-read])

developertools
oauth

#1

I am going with this staps,

=> I have a demo account. through that, I have created one developer account,
=> From developer account i have created app->client-id->secret-id,
=> After that I have made one URL and hit Grant access from marketing account and receive one code.
=> With the code I have created access token and refresh token,
=> Now through PHP CURL method i want to create a row with an authentication code,
=> Facing error:

{
status: "error",
message: "This oauth-token (XXXX) does not have proper permissions! (requires all of [hubdb-read])",
correlationId: "XXXX",
requestId: "XXXX",
}

Is this the correct way???


#2

Hi @kishan,

That sounds like it should be working correctly; are you sure that you included the hubdb scope in your authorization URL? Can you include your authorization URL (without your client info) and the Hub ID of the portal you're trying to authorize?