# Login

Provide the username and password in a request body to receive a bearer token to authenticate to the API's other endpoints.



See Authentication.

Endpoint: POST /api/v1/login/
Version: Version: b6359d9a

## Request fields (application/json):

  - `username` (string, required)

  - `password` (string, required)

## Response 200 fields (application/json):

  - `token` (string, required)

  - `expires` (string, required)

## Response 422 fields (application/json):

  - `detail` (array)

  - `detail.loc` (array, required)

  - `detail.msg` (string, required)

  - `detail.type` (string, required)


## Response 401 fields
