
Hi all, I’m a novice when it comes to API’s and my little experience has been with APIs that provide an API key. I’d like to interact with an API for a CRM that is using Oauth2.0 via Microsoft Power Automate. The documents for the API are very limited and I currently cannot get any dev assistance, so I’m hoping that someone with more experience than me can spare the time and help me out.
When logging into the API the options shown are pictured in in photo (1), once clicking through to API settings in line one “You can create your new OAuth client APP on 'API Settings' page” I’m given the option to register an Oauth client as pictured in photo (2). This is essentially where I am stuck, I’m unsure where to get an appropriate “Redirect URL” or really how this links to Power Automate. When entering a test URL just to proceed to see what I’m provided with, I am given a “Client Secret” and “Client ID” which concludes the setup.
I have many goals for getting this setup but one of the most simple and easy to use an example is: A flow is triggered by an incoming email that holds a unique ID number, this trigger runs a get request using the provided API call as pictured in photo (3) returning the information associated with this ID number which I can then use to fill out documentation/ update rows etc etc. I'm competent with Power automate and can make the rest of the flow, just don't know how to authenticate and use the Get request. I've included a photo of the get request currently, which when i run as is returns the error "unauthenticated".
I’m unsure if it is relevant but there is also three “Authorisation” API calls listed in the documentation which are pictured in photos (4-7).
For reference when using the 'Try it out' feature on the CRM API documentation, the get request example for the pictured get request I'm trying to get working provides:
Curl:
curl -X 'GET' \
'https://api.CRMName.com/api/v2/companyId/123/client/123' \
-H 'accept: application/json' \
-H 'X-CSRF-TOKEN: Sample token'
Request URL:
https://api.CRMNAME.com/api/v2/companyId/123/client/123
Any and all help is greatly appreciated!