Skip to main content

Notifications

Community site session details

Community site session details

Session Id : r+UObgGnmYvGUJW0V+d0Ln
Power Automate - Connector Development
Unanswered

Custom connector with ID and secret

Like (0) ShareShare
ReportReport
Posted on 23 Mar 2025 08:33:37 by 3
Hello, 
 
I am new to creating custom connectors, and have been given access to a third party platform's API (given an ID and secret). I also have been given an endpoint from which to obtain a bearer token.
 
In Power Automate, using the HTTP connector, this works fine with the below...
 
POST 
Headers: Content-Type, application/json
Body: {
  "grant_type": "client_credentials",
  "client_id": "ID_value",
  "client_secret": "secret_value"
}
 
The endpoints to then use this bearer token against are like "https://api.platform.com/v1/departmentdata" and this all works fine.
 
When I try to create a custom connector, I put the Host as https://api.platform.com and the base URL as /. Then on the Security screen, I am selecting the OAuth 2.0 auth method and the identity provider as Generic Oauth 2. I put the client ID as the ID value, and the Client secret as the Secret value. I put https://api.platform.com/auth/token as the Authorization URL, and the Token URL and the Refresh URL, and leave scope blank.  
 
I create the 'departmentdata' definition (which is a GET) and save. But then I try to create a connection in the Test pane, it just pops up with a "Hmmm... can't reach this page" error.
 
Is there some kind of redirection that the API provider needs to support? Is there any way around this? It will be hard for my client to understand that we can access the API fine via straightforward HTTP requests, but not when creating a custom connector. 
 
Thank you in advance!
 
B.
Categories:
  • DJ_Jamba Profile Picture
    2,815 Super User 2025 Season 1 on 23 Mar 2025 at 14:17:49
    Custom connector with ID and secret
    Have you tried setting the base URL to https://api.platform.com or https://api.platform.com/

    ?  

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard

Featured topics

Loading started