Authentication

Login with username and password

Login endpoint using Basic Auth. Creates access token and refresh token.

POST
/auth/login
AuthorizationBasic <token>

Basic authentication using email and password.

In: header

Response Body

Examples

curl -X POST "https://loading/auth/login"
{
  "expiration_date": "string",
  "refresh_expiration": "string",
  "refresh_token": "string",
  "token": "string",
  "user": {
    "contract": "string",
    "credits": 0,
    "email": "string",
    "groups": [
      "string"
    ],
    "last_active": "string",
    "name": "string",
    "surname": "string",
    "username": "string",
    "verified": true
  }
}
Empty