---
title: "Authenticate with username and password"
method: POST
path: "/auth/login"
tags: ["Authentication"]
---

# Authenticate with username and password

`POST /auth/login`

Logs in a user with username and password and returns authentication tokens

## Request body

- ApiLoginCredentials
  - `password` string — Password for authentication
  - `username` string — Username for authentication

## Response `200`

Authentication tokens

- ModelsToken — Authentication tokens for API access.
  - `access_token` string — JWT access token used for API authorization
  - `expires_at` string — When the access token expires
  - `refresh_token` string — JWT refresh token used to obtain new access tokens

## Other responses

- `400` — Invalid request
- `401` — Authentication failed
- `500` — Internal server error

---

[API](https://skmtc.dev/carverauto/apis/serviceradar-api.md) · [All operations](https://skmtc.dev/carverauto/apis/serviceradar-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/carverauto/serviceradar-api/revisions/a79ed871e8f6/schema)
