Hi,
I’ve set up an app, installed it on my hubspot account. It exists to provide webhooks to onboard data to our data platform.
I’m looking at custom properties and rather than manually enter each custom property to the webhook page, I want to do it programmatically.
I’ve generated a developer API key. It’s correct. I’m running the following code. It is the example code shown when you generate your api key.
curl --request GET --url https://api.hubapi.com/integrations/v1/APPID/timeline/event-types?hapikey=eu1-api-key-redacted&userId=USERID
And this code too. It is taken directly from the API endpoints for webooks here - Accounts Dashboard | HubSpot
curl --request GET --url 'https://api.hubapi.com/webhooks/v3/APPID/settings?hapikey=eu1-api-key-redacted'
Both snippets of code return -
First Snippet -
{"status":"error","message":"This hapikey (eu1-redacted-key) doesn't exist.","correlationId":"redacted-just-in-case"}
Second Snippet -
HTTP 401
{
"status": "error",
"message": "The API key provided is invalid. View or manage your API key here: https://app.hubspot.com/l/api-key/",
"correlationId": "redacted-just-in-case",
"category": "INVALID_AUTHENTICATION",
"links": {
"api key": "https://app.hubspot.com/l/api-key/"
}
}
Can anybody help with thisd at all? I’m really stuck and struggling to implement a working solution that is automated.