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
Understanding accountId parameter in account api
Tags: rest api
Jun 24, 2022 at 4:19am   •   1 replies  •  0 likes
Nikolai Chashchin

Hi Community,

According to https://developers.ringcentral.com/guide/account the account info can be requested using GET /restapi/v1.0/account/{accountId}.

It is also mentioned that one may provide either explicit accountId or use the simplified syntax of a tilde (~). A tilde instructs RingCentral to use the account id associated with the current authentication context.

I'm trying to figure out a use case for explicity providing accountId for the request. So far at this forum people are recommended to use `~` in every place instead of accountId.

Can you please give an example of a situation where accountId parameter is really needed?

Best,

Nikolai

1 Answer
answered on Jun 27, 2022 at 3:24pm  

Hi @Nikolai Chashchin per the documentation "One may provide either explicit accountId or use the simplified syntax of a tilde (~). A tilde instructs RingCentral to use the account id associated with the current authentication context." so it is telling us that this is just another option to do the same operation for the same use case. I

If you are really concerned about a differentiation, one might argue that with "~" you won't have to hard code your "accountId" string in your code which might be a more secure way when using GET /restapi/v1.0/account/{accountId} and related APIs.


 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