#Stratus HTTP API v1.5

## Request
All request should be done to master node: http://master/

## Response
All functions return response in JSON format.
Minimum response is:
{"error":"","code":200}
"error" - error message for user, if something wrong
"code" - code of current operation (described in "Response code" chapter)

## Response code
200 Ok
400 Incorrect request
401 Unauthorized access
403 Forbidden
404 Method not found
500 Internal error
600 Password expired, only 'changePassword' function is available

## Version
To get current HTTP API version
#### Request
> GET /api/call/version
> If you are receive "404 Not Found" then you should use old Stratus HTTP API documentation.
#### Response
> Content-Type: application/json
> {"api":1.5,"error":"","code":200}

## CSRF check
From version 1.4
To every GET, POST request you should add "X-token" header which is in every response cookie "token". First token, to access all other functions in system, you can get from getLoginInfo function, which does not require "X-token" header.
