Requires a registered user.
Method | Uri | Auth | Permissions |
---|---|---|---|
POST |
/v1/auth/login |
None | none |
The API requires a header Accept
to be submitted with the request:
{
"Accept": "application/json"
}
{
"email": "required",
"password": "required"
}
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
}
Condition : If provided data is invalid or not added to the request body.
Code : 401 Unauthorized
Content example :
{
"error": "Unauthorized"
}