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

# Login

`POST /auth/login`

Request a verification code for passwordless login.

A 6-digit code is sent to the provided email. Exchange it via
POST /v2/auth/login/verify to receive a new API key.

## Request body

- LoginRequest
  - `email` string, required
  - `organization_id` string, nullable — Org to scope the new key to (must be a member)

## Response `200`

Successful Response

- LoginResponse
  - `message` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/trynia/apis/nia-ai-api.md) · [All operations](https://skmtc.net/trynia/apis/nia-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trynia/nia-ai-api/revisions/d216ffc3efb6/schema)
