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

# Login

`POST /auth/`

## Request

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

## Request body

- LoginRequest
  - `email` string, email, required: Email address of the user
  - `password` string, required: Password of the user

## Response `200`

Successful Response

- LoginResponse
  - `user_id` string, uuid, required: Authenticated user's unique ID (UUID).
  - `access_token` string, nullable: Short-lived access token (JWT).
  - `id_token` string, nullable: Identity token (JWT) for client-side identity.
  - `refresh_token` string, nullable: Refresh token used to obtain new access tokens.
  - `expires_in` integer, nullable: Seconds until the access token expires.
  - `challenge` string, nullable: A Cognito challenge that must be completed before tokens are issued.
  - `session` string, nullable: Opaque Cognito session for completing the challenge.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/verdun/apis/verdun-api.md) - [All operations](https://skmtc.dev/verdun/apis/verdun-api/llms.txt) - [OpenAPI document](https://skmtc.dev/verdun/apis/verdun-api/revisions/a19366be50a3?raw)
