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
sessionId or callRecordId exist
Tags: caller id
Jun 28, 2022 at 12:18pm   •   1 replies  •  0 likes
Jeleicy Figueroa

I need to check if sessionId or callRecordId is valid? is there some way I can know it?

1 Answer
answered on Jun 29, 2022 at 5:19am  

From what I know, there is no API that can tell you if the telephonySessionId or the callRecordId is valid or not.

Instead
https://developers.ringcentral.com/api-reference/Call-Log/readUserCallRecord with an invalid callRecordId will return a 404 with a message stating callRecordId not found and
https://developers.ringcentral.com/api-reference/Call-Control/readCallSessionStatuswith an invalid telephonySessionId will return a 404

That being said, the bigger questions would be
1. What is the use case where you are getting callRecordId or telephonySessionId which you might want to validate?
2. Is it worth making API calls every time to check if these IDs are valid or is it better to have an optimistic approach and handle API failure if someone provides an incorrect ID?

If this answers your question, feel free to accept the answer :)


 1



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