Skip to main content

Initiate Session

Initiating a session requires a user name and a password. The configured users are the same as configured for the web application. When you issue the Initiate Session request, a sessionID cookie is returned in the response.


All subsequent API requests must be made with a valid sessionID cookie in the request header.

Authorizations: Administrator, Operator, Observer


POST /api/session

 "username" :  "[user name]",
 "password" :  "[password]"


usernamestringValid user.
passwordstringValid password.


    "response": {
        "type": "Session",
        "message": "Session successfully started for haiadmin",
        "sessionID": "[Session ID]",
        "lastLoginDate": 1536777877871,
        "numLoginFailures": 0


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.