Skip to main content
Question

sessionId or callRecordId exist

  • June 28, 2022
  • 1 reply
  • 207 views

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

  • June 29, 2022

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 :)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings