Need API documentation support for Session authentication and retrieving user information


I am Integrating softaculous in cyberpanel. I have to retrieve logged-in user’s information like usertype(root, reseller, etc) from session. Is there any way to achieve the same?

Can anyone provide API documentation for handling user authentication from the session?

Thanks in advance.