APIs & Integrations

kishan
Participant

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

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???

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

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

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?

0 Upvotes