APIs & Integrations

maulanariziq
Mitglied

Create Custom Object via API but got error 403 (forbidden)

lösung

Anyone know how to solve it? i wanna create custom object using API, but the response is 403 (forbidden). Thanks in advance.

 

HTTP response body: {"status":"error","message":"The scope needed for this API call isn't available for public use. If you have questions, contact support or post in our developer forum.","correlationId":"b4c0-0e8e-4bd4-bddd-23e8b75","links":{"support":"https://help.hubspot.com/","forum":"https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations"},"category":"MISSING_SCOPES"}

 

I have try to create custom object in my developer account before and it's work. But when i create in other account (not developer) it's error 403 (forbidden).

 

0 Upvotes
1 Akzeptierte Lösung
maulanariziq
Lösung
Mitglied

Create Custom Object via API but got error 403 (forbidden)

lösung

I think the error403 is because my account not Enterprise. I know from this link:
https://app.hubspot.com/pricing/21494273/marketing?upgradeSource=nav-dropdown&products=marketing-hub...
It mentions that if you want to use custom object, you account should upgrade to Enterprise.

Lösung in ursprünglichem Beitrag anzeigen

4 Antworten
rkris
Mitglied

Create Custom Object via API but got error 403 (forbidden)

lösung

This error indicates that the server has determined that you are not allowed access to the thing you've requested, either on purpose or due to a misconfiguration . It's probably because the site owner has limited access to it and you don't have permission to view it. The vast majority of the time, there's not much you can do to fix things on your (*client) end. There are four common causes for 403 Forbidden error (server side) . Here they are listed from most likely to least likely:

 

  • An empty website directory
  • No index page
  • Incorrect settings in the .htaccess file
  • Permission / Ownership error

 

If authentication credentials were provided in the request, the server considers them insufficient to grant access. The client SHOULD NOT automatically repeat the request with the same credentials. The client MAY repeat the request with new or different credentials. However, a request might be forbidden for reasons unrelated to the credentials.

 

0 Upvotes
ChehakWadhdwa
Mitglied | Diamond Partner
Mitglied | Diamond Partner

Create Custom Object via API but got error 403 (forbidden)

lösung

Hi @maulanariziq 

Hope you are goind great, i saw your query what you can do is check the below links as mentioned :

1) HubSpot Knowledge Base about how to create or use custom objects:

https://legacydocs.hubspot.com/docs/faq/api-error-responses

2) Legacy Docs - Checking why are errors recieved whenever APIs are called, check the below link as mentioned :

https://knowledge.hubspot.com/crm-setup/use-custom-objects

0 Upvotes
maulanariziq
Lösung
Mitglied

Create Custom Object via API but got error 403 (forbidden)

lösung

I think the error403 is because my account not Enterprise. I know from this link:
https://app.hubspot.com/pricing/21494273/marketing?upgradeSource=nav-dropdown&products=marketing-hub...
It mentions that if you want to use custom object, you account should upgrade to Enterprise.

JesseC
Teilnehmer/-in

Create Custom Object via API but got error 403 (forbidden)

lösung

I also received the 403 Forbidden error using this endpoint on my test account. I was able to resolve the issue by navigating to the list of test apps  (https://app.hubspot.com/developer/#######/test-hub-ids) page and re-activating the trial account (it had expired due to 90 days without api calls).

0 Upvotes