# Login

Provide the username and password in a request body to receive a bearer token to authenticate to the API's other endpoints.
</br>
See [Authentication](/products/partner-api/authentication).

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

## 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)

  - `detail.input` (any)

  - `detail.ctx` (object)

