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:
I've configured my connector so that steps 1 and 2 are working:
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?
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.
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2