MISSING_SCOPES

Hi. I am working with PHP and HubSpot API. I would like to push updates from a mysql DB to hubspot.

I am able to do so with contacts and products. However, i created a custom object and when i try to run an create or update i get the error: “context”:{“requiredScopes”:[“crm.objects.custom.write”]}}],“links”:{“scopes”:“”},“category”:“MISSING_SCOPES”}.

I checked on the Private App scope, and i do have the crm.objects.custom.write.

Scopes
crm.objects.deals.readcrm.objects.contacts.readcrm.objects.commercepayments.readcrm.objects.contacts.writecrm.objects.custom.writecrm.objects.custom.readcrm.objects.deals.writecrm.importcrm.exporte-commerce

Can anyone point me on the correct direction please?

Hi @664976 :waving_hand:

Very strange, indeed. Are you using HubSpot’s PHP API client library? If you haven’t already, I’d also recommend triple-checking you’re authenticating with the intended Private App.

It might also be helpful to share some additional information about the API request(s) you’re making, for example: endpoint, headers, request body etc.

I hope this proves helpful. Please let me know if you have any follow-up questions.