APIs & Integrations

bulbul
Member

Cannot get webhook subscription using api

Hi, 

Getting 0 status code and Cannot invoke method length() on null object  while trying to get webhook subscription using api.  Could anybody please let me know the reason and solution.

 

I am using following end point

 

GET https://api.hubapi.com/webhooks/v1/{appId}/subscriptions

 

Thanks,

 Bulbul

0 Upvotes
1 Reply 1
Willson
HubSpot Employee
HubSpot Employee

Cannot get webhook subscription using api

Hey @bulbul 

 

I've just gone ahead and tested this from my end now using Postman and was able to successfully make a request to this endpoint. See my request below:

https://api.hubapi.com/webhooks/v1/{{appId}}/subscriptions?hapikey={{my_Dev_Key}}

Are you able to test this using a Rest client like Postman or something similar? Thanks!

Product Manager @ HubSpot
0 Upvotes