News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
SMS API with Microsoft Power Automate
Tags: sms and text messaging
Oct 27, 2023 at 8:30am   •   1 replies  •  0 likes
chudev 77

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

1 Answer
answered on Oct 27, 2023 at 11:44am  

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.


 0
on Oct 30, 2023 at 7:16am   •  0 likes

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.

rcpmgettoken.png

on Oct 30, 2023 at 7:34am   •  0 likes

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?

on Nov 1, 2023 at 10:06am   •  -1 likes

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!

on Feb 26, 2024 at 3:16am   •  1 likes

@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.

on Nov 1, 2023 at 7:26am   •  0 likes

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?

answered on Oct 30, 2023 at 7:11am  

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.

rcpmgettoken.png


 0



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us