---
title: "Login"
method: POST
path: "/api/auth/login"
tags: ["auth"]
---

# Login

`POST /api/auth/login`

## Request

- Base URL: `https://api.electricair.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.electricair.io/api/auth/login`
- Auth: none declared

Authenticate the user and return access and refresh tokens.

## Request body

- LoginPayload
  - `username` string, required
  - `password` string, required

## Response `200`

OK

---

[API](https://skmtc.dev/electricair/apis/electric-air-autoquote-api.md) - [All operations](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/revisions/a13d832a5676?raw)
