Endpoints to start and end API sessions for a user
| Name | Description |
|---|---|
| login | The username or email of the user |
| password | The password for the user |
Accept: application/json Content-Type: application/json Host: example.org Cookie:
POST /api/v1/sessions
{"email":"[email protected]","password":"passw0rd"}
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
200 OK
{
"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
}
}
}