API endpoint for Session time

Having an API endpoint for session time manipulation would be very beneficial. In many cases, it's necessary to handle session expiration via API, and currently, I haven't found any parameter for session manipulation in the documentation.