Detach directive not triggered for custom app webhook

:bullseye: What is your goal?

Integrate My applications to other CRM systems via webhooks

:thinking: What is the problem & what have you tried?

Hello Make Community,

I’m new to app development and currently learning how to build a custom app in Make.

I’m working on a custom app with a webhook, and I’m facing an issue related to the detach directive. Below is a detailed explanation of what I’ve implemented and what I’m observing:

I have created a custom app that uses a webhook.

I have added an attach directive, which works correctly while creating the webhook in the Scenario Builder.

When I create the webhook in the Scenario Builder, I can see the registration request in Make Dev Tools (Chrome extension).

In the Dev Tools, I also see a message similar to:
app#xxxxx-wwofyf: executing procedure attach:xxxxx-wwofyf

My API receives the expected request during webhook creation, so the attach flow seems to be working fine.

I have also added a detach directive for the webhook.

However, when I deactivate or delete the webhook from the Scenario Builder:

I do not see any message related to the detach procedure in Make Dev Tools

No request is sent to my API

My API does not receive any DELETE (or equivalent) request

From my understanding, the detach directive should be triggered when the webhook is deactivated or deleted, but this does not seem to be happening in my case.

I would really appreciate it if someone could clarify:

Under what exact conditions the detach directive is triggered

Whether additional configuration is required for detach to work

Or if this behavior is expected for custom apps with webhooks

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Welcome to the community

You’re not doing anything wrong. In Make, the detach directive isn’t triggered every time you deactivate or delete a scenario. It only runs when Make explicitly unregisters a webhook that was created via attach.

So if you just turn a scenario off or delete it, Make may simply stop listening without calling your API. There’s no extra setup missing on your side. If you need reliable cleanup, it’s best to handle webhook removal directly in your API or via a manual action.

Hope this helps, and welcome again!

Regards, Tony

Thank you for your reply @avillarruel
I am not talking about deleting or turning off scenario rather

However, when I deactivate or delete the webhook

Can you also elaborate when does

Make explicitly unregisters a webhook that was created via attach.

Thanks