Warning

This site is no longer being maintained. Visit the eDocs documentation portal for updated information.

Visit eDocs
Dismiss message

Login

Created by Pedro Ondiviela · last update June 11, 2020

About this endpoint

A simple login service method to check if the login and password credentials are valid. This should return an authorization matrix if the login is successful.

POST https://assets.empathybroker.com/user/login

Request Data

1
2
3
4
{
    "email": "email@email.com",
    "password": "password"
}
Name Type Optional Description
email string false user’s email who wants to log in
password string false user password

Responses

Responses examples for successful and failing calls to the endpoint.

200 401

Sucessful login

1
2
3
4
5
{
    "user_token": token,
    "expiration_date": expiration_date
}