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 / Unable to Retrieve Cal...
Power Automate
Unanswered

Unable to Retrieve Callback URL of HTTP Trigger Flow via API

(0) ShareShare
ReportReport
Posted on by 6
Hi everyone,

I’m trying to retrieve the callback URL of a Power Automate flow that uses the “When an HTTP request is received” trigger.
My objective is to automate/postman-test the flow by dynamically acquiring the HTTP trigger URL instead of manually copying it.

However, every documented approach so far has failed. Below is a detailed summary of everything I tried.
What I have already done
  • My user account is a System Administrator in the environment.
  • I also assigned myself the Environment Maker role.
  • I generated a fresh OAuth token after receiving Maker permissions.
  • I used the correct environment ID, not just the display name.
  • Verified that the flow exists in that environment.
  • Tried with both user tokens & app registrations.
What didn’t work
https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/{envId}/flows/{flowId}/triggers/When_a_HTTP_request_is_received/listCallbackUrl?api-version=2016-11-01

Headers included:
  • Authorization: Bearer <token>
  • Content-Type: application/json
  • x-ms-client-scope: /providers/Microsoft.ProcessSimple/environments/{envId}
Even though I am a System Admin + Environment Maker.
Still got:
{
    "error": {
        "code": "ClientScopeAuthorizationFailed",
        "message": "The x-ms-client-scope header must not be null or empty."
    }
}

Even when the header was present.
My goal is simply to programmatically obtain the HTTP POST URL of an HTTP trigger flow so that I can call it from Postman or external systems like scripting without manually copying it.
Any official guidance, documentation, or workaround would be greatly appreciated.

Thanks!
Categories:
I have the same question (0)
  • Power Platform 1919 Profile Picture
    2,245 Super User 2026 Season 1 on at
    Hi @KS-31011229-0,
    Not sure about your requirement,
    but you can get the trigger url dynamically.

    Sample example:
     
    flow implementation:
     
    automate expression in compose is 
    trigger()?['outputs/headers/x-ms-igw-external-uri'].

    it is better to check the output of trigger function and then parse the result to get the trigger url.

     
  • KS-31011229-0 Profile Picture
    6 on at
    @Power Platform 1919, My requirement is simple. I just want to dynamically retrieve the HTTP Post URL of the flows with triggers "When a HTTP request is received". 
  • Power Platform 1919 Profile Picture
    2,245 Super User 2026 Season 1 on at

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard