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




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!


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).


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