APIs & Integrations

Not applicable

Need error codes returned while accessing out of scope entities using API

Hi,

I am trying to fetch HubSpot entities using API but getting error as “does not have proper permissions!”. I need error codes which will get returned when trying to fetch non accessible entities.

Thanks in advance!

0 Upvotes
2 Replies 2
Not applicable

Need error codes returned while accessing out of scope entities using API

Thanks for your quick reply. Just what I wanted. Thanks again!

Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Need error codes returned while accessing out of scope entities using API

Hi @smarterme,

A 401 Unauthorized is returned when the authentication provided is invalid (i.e. access token has expired), and a
403 Forbidden is returned when the authentication provided does not have the proper permissions to access the specific URL (i.e. an OAuth token that only has Content access would get a 403 when accessing the Deals API).