Login

Request

POST https://api.cloudplan.biz/api/user/login

{
    "email":"...",
    "pw":"...",
    "session_duration": 3600       // (integer, optional) duration of the session in seconds
    "api_key": ""                  // (string, optional) used together with 'email' to obtain a session for that user
}

Reply

{
    "result": true,
    "session_id": "...."    // the session id that will be used for any subsequent
                               api calls
}
bad_email
user_not_found
url_access_denied
user_has_no_access