I am trying to using the SMS API with Microsoft Power Automate. I am able to get the API to send an SMS to my cellphone in Postman, but having a lots of problem getting it to work after I import it as a custom connector in Power Automate. I am keep getting Unsupported grant type. Any assistance will be appreciated.
Thanks
I am sure that the problem is about authentication. I am not familiar with MS power automate so I cannot help you in that part. But if you can share the type of your RC SMS application auth flow (code flow or JWT flow) and how do you authenticate a user to get the access token for calling the /sms API then I maybe able to say what could be wrong.
I downloaded the Postman collection from Github, which is from the instructions in the RC developer/API guide.
I used, POST Get access token- by personal JWT, under Authorization Flows dropdown.
This is a JWT flow. In Postman, I use:
Post: https://platform.devtest.ringcentral.com/restapi/oauth/token
Authorization type is Basic Auth
Username: My client_ID
Password: My client_secret
Hope the image help. Thanks.
But you wrote that you don't have problem with Postman.
I am able to get the API to send an SMS to my cellphone in Postman, but having a lots of problem getting it to work after I import it as a custom connector in Power Automate
So the MS Power automate uses Postman?
I think Power Automate doesn't like JWT, so I create a new SMS app in RC dev environment using OAuth2.0 w/refresh token. Thank you for your help!
@chudev 77 , in case you haven't connected yet successfully to RingCentral using Power Automate, let me know, it did work with me using the official documentation,
It seems that your basic authentication parameters are not formatted correctly, it must be in a certain based 64 encoded format.
I think Power Automate doesn't like JWT, so I create a new SMS app in RC dev environment using OAuth2.0. But when I tested it in Postman, I got error: OAU165 Sandbox client is not allowed.
I am trying to get authorize code.
The following is my setup in Postman:
Get https://platform.ringcentral.com/restapi/oauth/authorize
Params:
response_type code
client_id client id I copied from the RC SMS app
redirect_uri https://global.consent.azure-apim.net/redirect
Any assistance would be apricated. Also, should I start a new post?
I downloaded the Postman collection from Github, which is from the instructions in the RC developer/API guide.
I used, POST Get access token- by personal JWT, under Authorization Flows dropdown.
This is a JWT flow. In Postman, I use:
Post: https://platform.devtest.ringcentral.com/restapi/oauth/token
Authorization type is Basic Auth
Username: My client_ID
Password: My client_secret
Hope the image help. Thanks.
A new Community is coming to RingCentral!
Posts are currently read-only as we transition into our new platform.We thank you for your patience
during this downtime.
Try Workflow Builder
Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!Try RingCentral Workflow Builder