Disconnect
The "Disconnect" endpoint is used to terminate the current session and log the client out of the MPSMS API. This is an important step to ensure the security and integrity of the client's account and the MPSMS system.
Request
To use the "Disconnect" endpoint, the client sends a POST request with bearer authentication and an empty JSON body:
{}
Logout and Session Termination
By calling the endpoint, the client is signaling to the MPSMS API that they wish to log out and terminate the current session.
Once the "Disconnect" endpoint successfully processes the request, the client will no longer be able to perform any other operations within the MPSMS API until they authenticate and start a new session using the "Connect" endpoint.
It's important for clients to always call the "Disconnect" endpoint when they are done using the MPSMS API to ensure the security of their account and the overall system. Failure to do so may leave the session open and potentially expose the client's account to unauthorized access.