I’ve set up the Subscribe Hook configuration for a trigger in my custom app integration. I believe I need to modify something in the Perform section to make this Subscribe hook request execute when the Zap gets activated. However, I’m not sure about the exact implementation steps.
you’re missing the performUnsubscribe function - zapier needs both to work. also, make sure ur webhook endpoint actually sends data back when triggered, not just accepts the subscription. i had the same issue and my api wasn’t pushing data to the targetUrl after subscribing.
This code should be in your performSubscribe function, not the Perform section. The Subscribe Hook triggers automatically when someone activates their Zap - don’t call it manually from your polling function. Put this code in your trigger’s performSubscribe method in your app definition. Also check that your API endpoint handles webhook subscriptions correctly and returns the subscription ID or response data Zapier needs for webhook management. If the hook isn’t firing, make sure your trigger definition has both performSubscribe and performUnsubscribe functions set up properly.
The Subscribe Hook runs automatically when you activate a Zap, but there’s a config issue that usually blocks it. Your performSubscribe function looks right, but check if your trigger definition actually declares the hook type. Make sure you’ve got type: 'hook' in your trigger object next to your performSubscribe method. Without this, Zapier thinks it’s a polling trigger instead of a webhook trigger. Also double-check that your API endpoint sends back a proper response with subscription details - Zapier needs specific response data to confirm the subscription worked. I’ve seen tons of cases where the hook code was perfect but the trigger type wasn’t declared, so the subscription never fired.