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.

Note

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

Authorizations: Administrator, Operator, Observer

Requests

POST /api/session

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

Parameters

NameTypeDescription
usernamestringValid user.
passwordstringValid password.

Response

{
    "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.