APIs & Integrations

PSG
参加者

This hapikey (xxxx) doesn't exist.

解決

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 いいね!
1件の承認済みベストアンサー
dennisedson
解決策
HubSpot製品開発チーム
HubSpot製品開発チーム

This hapikey (xxxx) doesn't exist.

解決

@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 いいね!
6件の返信
PSG
参加者

This hapikey (xxxx) doesn't exist.

解決

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

0 いいね!
dennisedson
解決策
HubSpot製品開発チーム
HubSpot製品開発チーム

This hapikey (xxxx) doesn't exist.

解決

@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 いいね!
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

This hapikey (xxxx) doesn't exist.

解決

@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 いいね!
PSG
参加者

This hapikey (xxxx) doesn't exist.

解決

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 いいね!
webdew
ガイド役 | Diamond Partner
ガイド役 | Diamond Partner

This hapikey (xxxx) doesn't exist.

解決

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 いいね!
PSG
参加者

This hapikey (xxxx) doesn't exist.

解決

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 いいね!