Sessions

A session allows an API client to communicate and access the API services/endpoints. It is created by invoking the method /auth using a valid API key. The session will last for 4 hours from the time you request for a session id. You may create multiple shortcodes or campaigns under the same session as long as it is active. Likewise you may also change users by calling /user_login again with the new user’s credentials. Keep in mind that any campaigns/shortcodes created will be linked to the last user logged in the session i.e. only one user may be active per session.

This is the generic flow for calls that require authentication and user login:
 * 1) Call /auth to obtain a session id or key. This starts a session.
 * 2) If the service requires a user to be logged in call /user_login using user credentials and the session id.
 * 3) Call methods to create campaigns or shortcodes such as /shortcode_numeric using the session id.
 * 4) You may repeat steps 2 and 3 for as long as the session is active.