Login

Requires a registered user.


Method Uri Auth Permissions
POST /v1/auth/login None none

Headers

The API requires a header Accept to be submitted with the request:

{
    "Accept": "application/json"
}

Data constraints

{
  "email": "required",
  "password": "required"
}

Success Responses

Condition : All required data provided is valid and added to the request body.

Code : 200 Okay

Content example : Response will reflect back the created message':

{
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M...",
    "token_type": "bearer",
    "expires_in": 3600
}

Error Responses

Condition : If provided data is invalid or not added to the request body.

Code : 401 Unauthorized

Content example :

{
  "error": "Unauthorized"
}