Sessions API

Endpoints to start and end API sessions for a user

Successful login

POST /api/v1/sessions

Parameters

Name Description
login The username or email of the user
password The password for the user

Request

Headers

Accept: application/json
Content-Type: application/json
Host: example.org
Cookie: 

Route

POST /api/v1/sessions

Body

{"email":"[email protected]","password":"passw0rd"}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
Vary: Accept, Origin
ETag: W/"9a81eeb63772859ac3aaf09329374254"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 4c2780d4-fc5b-4236-8473-c7c2b33fcf70
X-Runtime: 0.008407
Content-Length: 212

Status

200 OK

Body

{
  "token": "5fb83217-d8ad-4910-978f-676880f42c0b",
  "data": {
    "success": true,
    "token": "5fb83217-d8ad-4910-978f-676880f42c0b",
    "user": {
      "id": "t-nauk8",
      "email": "[email protected]",
      "username": "auser",
      "rig_ui_settings": null
    }
  }
}