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
Is JWT a super admin token?
Tags: sms and text messaging, authentication
Aug 25, 2023 at 10:45pm   •   1 replies  •  0 likes
Seshagiri S.T

Hi,

This is my first time integrating Ringcentral APIs. Hence pl bear with my questions.

We are developing a app which has two numbers given to our customers.

Let's say, for sales: 123456789 Ext: 100 and for service: 987654321 Ext 101


When users send an SMS to these numbers, we will read the text messages and process forward.


As I understand, We can implement JWT Auth flow for authenticating server-server calls. We can subscribe to message store through this api

/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store

Can we use same JWT in production for accessing messages from both the numbers? like so

/restapi/v1.0/account/~/extension/100/message-store/instant?type=SMS

/restapi/v1.0/account/~/extension/101/message-store/instant?type=SMS

Or do we need to create JWT for individual users?

Is JWT created for only Superadmins or other users can create JWT too?


Thanks in advance






1 Answer
answered on Aug 28, 2023 at 8:09am  

Only the owner of a phone number can send text message from that phone number. In your use case example, you assigned each number to a different user (100 and 101). Thus, you will need the JWT token for each user in order to send SMS from the numbers.

For receiving instant SMS notification, a super admin user can receive SMS events of other extensions' though.

My question for you is that what is the reason to assign those numbers to different user extensions 100 and 101? Why don't you assign both numbers to the same user (e.g. 100). Then generate a JWT for extension 100 to authenticate your app and handle SMS.


 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