Reference

/api/auth/login

Start a new session

POST: /api/auth/login

Post parameters

Parameter Type Required Description
email string required The email address of the user
password string required The password of the user
long bool Create a long-lasting session

Example response

POST: /api/auth/login
{
    "code": 200,
    "status": "ok",
    "user": {
        # Full user response.
        # See /api/auth …
    }
}