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

Community site session details

Session Id : bcQMUHLOoCLal+Zm5fm6Gi
Power Automate - Connector Development
Answered

How to authenticate POST requests for a custom connector's webhook trigger?

Like (0) ShareShare
ReportReport
Posted on 15 Apr 2024 18:08:55 by 20

Hi all, I'm setting up a custom Power Automate connector to use Webhook Triggers with a webapp I control. My use case is roughly the same as the "Create Webhook Trigger" tutorial:

  1. When the trigger is instantiated and saved in a Power Automate flow, it should generate a webhook URL and register it with my app.
  2. When qualifying events happen within my app, it should send a request to the webhook URL.
  3. When Power Automate receives a request to the webhook URL, it should trigger the flow.

I've configured my connector so that steps 1 and 2 are working:

  1. Power Automate is successfully generating a webhook URL (https://prod-41.westus.logic.azure.com/workflows/...) and sending it to my app's registration endpoint.
  2. My app is sending POST requests to the webhook URL, with a body matching the configured body format.

However, my app is always receiving a 401 response for these requests:

{
 "error": {
 "code": "DirectApiAuthorizationRequired",
 "message": "The request must be authenticated only by Shared Access scheme."
 }
}

 

I've also tried this with Postman and have been getting the same response. I haven't been able to find any description of requirements for request format beyond the destination URL and payload format. The tutorial only addresses authentication for the webhook registration API (ie, step 1)—not authentication for making the webhook request (step 3)—and I haven't found any mention of webhook authN or authZ elsewhere in the custom connector documentation or troubleshooting page.

 

Is there some way to authenticate webhook URL requests such that Power Automate will accept them?

  • Verified answer
    mprice-fluxx Profile Picture
    20 on 21 May 2024 at 21:50:47
    Re: How to authenticate POST requests for a custom connector's webhook trigger?

    It turned out that the problem was on my end. Each webhook URL includes a &sig=... URL param that's used for authentication. However, my app was storing the URLs as VARCHAR(255) and silently truncating any part past 255 characters—which included the sig param.

     

    Updating my app to store the webhook URLs as a longer TEXT field instead fixed the problem.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Loading complete