APIs & Integrations

PSG
Participante

This hapikey (xxxx) doesn't exist.

resolver

I am using the Webhooks API for fetching(GET) and updating() the Webhook Settings using my developer API key found by looking here. Using Postman when I hit this endpoint it just gives the error in the image below, I event tried from test account API key but it doesn't work.

 

I am sure that I copied the exact API key and used in the Postman and also that I have contacts inside my app's scopes.

 

I followed this article for implementing webhooks API.

 

PSG_0-1627285080993.png

 

0 Me gusta
1 Soluciones aceptada
dennisedson
Solución
Equipo de producto de HubSpot
Equipo de producto de HubSpot

This hapikey (xxxx) doesn't exist.

resolver

@PSG , there is no need to be listed for webhooks to work.

The portal will need to authenticate with your app using OAuth.  Once that authentication is complete, you should be able to to start seeing webhooks that you have set to subscribe to start being generated in your app.  During your OAuth setup, you will need to make sure that you are requesting the correct scopes for what you are intending to subscribe to.

All of this is detailed on this page

 

Ver la solución en mensaje original publicado

0 Me gusta
6 Respuestas 6
PSG
Participante

This hapikey (xxxx) doesn't exist.

resolver

Will the webhooks API only work if the Hubspot app is listed in the marketplace?? Still stuck on this for a long time!!

0 Me gusta
dennisedson
Solución
Equipo de producto de HubSpot
Equipo de producto de HubSpot

This hapikey (xxxx) doesn't exist.

resolver

@PSG , there is no need to be listed for webhooks to work.

The portal will need to authenticate with your app using OAuth.  Once that authentication is complete, you should be able to to start seeing webhooks that you have set to subscribe to start being generated in your app.  During your OAuth setup, you will need to make sure that you are requesting the correct scopes for what you are intending to subscribe to.

All of this is detailed on this page

 

0 Me gusta
dennisedson
Equipo de producto de HubSpot
Equipo de producto de HubSpot

This hapikey (xxxx) doesn't exist.

resolver

@PSG ,

That Get request I see in the screenshot appears to be lacking the appID.  Have you added that and still get the error?

Also, I would advice to start considering looking at the V3 endpoints to make sure you stay up to speed 🙂

0 Me gusta
PSG
Participante

This hapikey (xxxx) doesn't exist.

resolver

Hi @dennisedson,

 

I did enter the appID, just blurred it in the image I shared and yes I get the same error.

 

I was using v3 only but it wasn't working, so I used v1 and that too didn't work either. Also there isn't any good material or even hubspot docs for webhook doesn't show properly how to call hubspot webhook APIs for getting and updating webhook settings, especially which API key to use and how to debug the API errors.

0 Me gusta
webdew
Guía | Partner nivel Diamond
Guía | Partner nivel Diamond

This hapikey (xxxx) doesn't exist.

resolver

Hi @PSG ,

Webhook should be in POST method in HubSpot.
Please check API key in same portal. if you are putting correct one then recreate api key once and try again.
https://prnt.sc/1g2svtc


Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

0 Me gusta
PSG
Participante

This hapikey (xxxx) doesn't exist.

resolver

Hi @webdew, thanks for reaching out.

I tried generating the API key from the image- https://prnt.sc/1g2svtc you shared and it gave the same error.

 

Regarding the POST request, I used the "Run in postman" button from this page - https://developers.hubspot.com/docs/api/webhooks which gave me the GET endpoint for v3 API which gives the below error when used with the same API key,

 

 

 

{
    "status": "error",
    "message": "The API key provided is invalid. View or manage your API key here: https://app.hubspot.com/l/api-key/",
    "correlationId": "3b7ad50b-4b00-4437-9200-2e7b0df15b32",
    "category": "INVALID_AUTHENTICATION",
    "links": {
        "api key": "https://app.hubspot.com/l/api-key/"
    }
}

 

 

 

also the link mentioned in this API response doesn't work either, just gets stuck at the hubspot login page even after entering correct credentials, it doesn't logs in.

 

 

Isn't the hubspot webhook settings supposed to be accessed from the developer API key instead of an account's like you suggest using the image??

 

 

0 Me gusta