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 Parameters
To use the "Disconnect" endpoint, the client needs to provide the following required parameters in the request body:
clientcode
This is the same unique client code assigned to the user that was used in the "Connect" endpoint.
trackid
This is another UUID that represents a unique identifier for the current request, similar to the one used in the "Connect" endpoint.
Logout and Session Termination
By providing these required parameters, the client is signaling to the MPSMS API that they wish to log out and terminate the current session. The "Disconnect" endpoint will validate the client code and track ID, and then proceed to end the active session for that client.
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.