Sessions API

Endpoints to start and end API sessions for a user

Failed 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":"incorrect"}

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
Cache-Control: no-cache
X-Request-Id: 0daca526-de28-4df6-8b15-558d6a56acb0
X-Runtime: 0.002811
Content-Length: 61

Status

404 Not Found

Body

{
  "error": "You need to sign in or sign up before continuing."
}