---
title: "Verify password and issue access + refresh tokens"
method: POST
path: "/v1/login"
tags: ["auth"]
---

# Verify password and issue access + refresh tokens

`POST /v1/login`

## Request

- Base URL: `https://api.travelminds.ai`
- URL: `https://api.travelminds.ai/v1/login`
- Auth: none declared

Verifies the password (Argon2id), records the session in tmai_sessions, and returns a 1h access JWT plus a 30-day refresh token. Use the access token as Authorization: Bearer for session-authenticated routes.

## Request body

- LoginBody
  - `email` string, email, required
  - `password` string, required

## Response `200`

Successful Response

- TokenResponse
  - `access_token` string, required
  - `refresh_token` string, required
  - `token_type` string
  - `expires_in` integer
  - `account` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/travelminds/apis/travelmindsai-api-gateway.md) · [All operations](https://skmtc.dev/travelminds/apis/travelmindsai-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/travelminds/apis/travelmindsai-api-gateway/revisions/d05c8634e340?raw)
