web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Authentication issue f...
Power Automate
Unanswered

Authentication issue for webhook DELETE request in custom connector

(0) ShareShare
ReportReport
Posted on by 1

I am encountering an issue with a custom connector that implements a webhook trigger, where the unsubscribe (DELETE) request does not follow the expected execution path.

The third-party API I am integrating with requires additional authentication handling. This logic is implemented in a script.csx file and delivered as part of the custom connector.

The webhook subscription (creation) request behaves as expected:

  • Returns HTTP 201 Created
  • Includes a valid absolute URL in the 'Location' header
  • Executes the custom connector pipeline, including script.csx
  • Applies authentication and connection parameter values correctly

However, the unsubscribe (DELETE) request behaves differently:

  • The request is issued outside of the custom connector processing pipeline
  • The script.csx logic is not executed
  • The connector’s authentication configuration and connection parameter values are not applied
  • The request is sent as a raw HTTP DELETE call without any authentication artifacts

As a result, the target API rejects the request due to missing authentication.


Additional observations

The DELETE request is only triggered in the following scenarios:

  1. When the custom connector is turned off
  2. When the Power Automate flow is deleted

However, the DELETE request is not triggered when:

  • The webhook trigger item (flow unit) is removed from the flow

Expected behavior

  • The unsubscribe (DELETE) request should be processed through the same custom connector pipeline as the subscription request
  • The script.csx logic should be executed
  • The configured authentication and connection parameter values should be applied
  • The request should include all required authentication artifacts

Actual behavior

  • The unsubscribe (DELETE) request bypasses the custom connector pipeline entirely
  • No custom logic (script.csx) is executed
  • No authentication or connection values are applied
  • The request is sent as an unauthenticated HTTP DELETE call, leading to failure

Impact

This behavior makes it impossible to correctly implement webhook cleanup for APIs that:
  • Require authenticated DELETE operations
  • Rely on custom authentication flows implemented via connector logic

Questions

  1. Is this behavior expected for webhook unsubscribe operations in custom connectors?
  2. If so, how are authenticated DELETE operations intended to be implemented when the connector pipeline is not executed?
  3. If not, can this be considered a platform limitation or defect, and are there any recommended workarounds?
I have the same question (0)
  • Suggested answer
    Assisted by AI
    Vahid Ghafarpour Profile Picture
    795 Super User 2026 Season 1 on at
    I believe there is no built‑in way to run an authenticated DELETE using the connector’s pipeline during platform‑initiated unsubscribe; authenticated deletes must be implemented as explicit connector actions that you call yourself (or avoided via API design), and I didn't find any solution by research.
    This can reasonably be considered a platform limitation, and for APIs that require authenticated DELETE operations with custom flows, the recommended approach is to implement manual cleanup (custom action plus flow) or adjust the API’s unsubscribe semantics if possible.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard