Skip to main content

Login

Use the rest/1/login endpoint to login.

Curl Request

$ curl 'http://localhost:8080/rest/1/login' -i -X POST \
    -d 'username=bestman%40gmail.com&password=Password1234'

Request Example

POST /rest/1/login HTTP/1.1
Host: localhost:8080
Content-Type: application/x-www-form-urlencoded

username=bestman%40gmail.com&password=Password1234

Response Example

HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Content-Length: 40

{"session_cookie":"JSESSIONID\u003d435"}