"message":"This app hasn't been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.",
That's very strange, indeed. All I can recommend at this point is to triple-check you're referencing the correct Private App key value in your request header.
I hope this proves useful. Please let me know if you have any follow-up questions.
All the best,
Zach
--
Zach Klein HubSpot Integrations & App Developer Meanjin / Brisbane, Australia
Relating to the first issue you've described, what you'll need to do is add the following scope to your Private App and then try the request again:
crm.schemas.custom.read
Relating to the second issue you've described, the custom object name field is case-sensitive, so it might be worth double checking that first. You can also use the objectTypeId, rather than the custom object's name. You can retrieve this from HubSpot web UI by navigating to the relevant custom object's list page (e.g. Contacts > Custom Objects > Your Custom Object), and then grabbing the objectTypeId from the page URL. For example, the objectTypeId from the URL below is 2-104518576
That's very strange, indeed. All I can recommend at this point is to triple-check you're referencing the correct Private App key value in your request header.
I hope this proves useful. Please let me know if you have any follow-up questions.
All the best,
Zach
--
Zach Klein HubSpot Integrations & App Developer Meanjin / Brisbane, Australia