I want to register a webhook in my hubspot app through an API call but I am running into an error.

I am calling the POST /subscriptions endpoint to register a webhook in hubspot.

But I am seeing this error

{

"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": "828a29e3-fb71-4ddc-aa82-fe735eeaa7b0",

"links": {

    "support": "https://help.hubspot.com/",

    "forum": "https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations"

},

"category": "MISSING\_SCOPES"

}

Hey, @BMuzamil :waving_hand: Make sure you are using your Developer API key and not a Private App or your OAuth token for auth when making calls to these endpoints. You can find your Developer API key in your developer account in the Apps tab.

Link to doc Accounts Dashboard | HubSpot

I hope this helps get you moving forward! — Jaycee