How to know that you session is full by using API?

OTDOM Posts: 3 ✭✭

Hello, Everyone, I am new to TeamViewer and as you can know TeamViewer has a limit session connection when we want to use it so I want to use TeamViewer API to develop one function to integrate with my web app that can let the user know that the connection that they want to use right now is full. So if anyone has any idea or knows how to do it please help.
Thank you so much for your help.