question

Yang avatar image
Yang asked Phong Vu answered

How should we authenticate users in order to send SMS on behalf of different extensions in the account using API

Our dev is developing an app using Ringcentral's SMS API to send SMS on behalf of different users (extension) in our ringcentral account. Each user extension in our Ringcentral account has a DID and are assigned with additional numbers

Is there a way to authenticate a super admin user to be able to send out SMS on behalf of other extenison ? After some googling, seems it is not posisble but I just want to ask again to see if things has changed in Ringcentral.


Also, if we need to be able to send out SMS on behalf of each user/extension in ringcentral using API, what's the best way to authenticate those users?

For JWT, do we have to ask each user we need to send out SMS on behalf of to have sign up in the Dev portal and then issue a JWT for that particular user? What if there are 100 users, do we need to do it with those 100 users each?? and each time there is a new user added, we will have to sign the new user up on the Dev portal and create the JWT code for that new user, add it to our code??

Is there a better way of doing this?


Thanks




rest apideveloper sandboxsending sms
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered

Even a super admin cannot send SMS on behalf of other user extensions.

You can either request your users to provide their JWT token or make your app a 3-legged authorization and ask them to login your app once. After a user login, keep the refresh token valid all the time by implement auto refresh function to refresh the token periodically. Then your app can use the user access token to send SMS messages on the user's behalf.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys