How to retrieve "monitor_id" and "session_id" that are being saved at table "tracker"

I’m developing a mobile app in react native.

I want to implement the recently viewed and favorite function of web version to my mobile version.
So I want to saved the record on tracker table when they viewed a record but I don’t know where can I get the session_id and monitor_id that I can send with the api request;