Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Greetings,
I have a development store where I registred a few webhooks, using the API.
The response from the API contained IDs for them and if I try to a new POST with the same data I get a response saying "address": ["for this topic has already been taken"], so it seems like the webhooks are there.
However, if I send a GET to webhooks.json it returns {"webhooks":[]}.
Am I wrong to expect this GET to return the webhooks I created earlier? Currently my issue is that I want to change to remove some webhooks, but I have lost their IDs.
Hello,
Are you reading /admin/webhooks.json using the same API key that you used to create the webhook? Webhooks are only visible to the app that created them.
To learn more visit the Shopify Help Center or the Community Blog.
I'm sure I was using the same API key - I only had the one... but I was probably doing something wrong. After a night's sleep I tried it again and it worked as expected. Thanks for the reply!
No problem, glad to hear this is working for you now
To learn more visit the Shopify Help Center or the Community Blog.