There are two ways to solve this:
-
You can use
client.getSessionInfo().sessionIdto get thesessionIdand sync that with your database. You can see an example of this in our Telehealth sample app. We store all different sessionIds for a single “session name” in the database. We can then query those recordings using the API. -
This is not something I would recommend since we rate limit the API but you can also query all sessions and recursively get the recordings as a last resort. Link to code