---
title: "Login Key"
method: POST
path: "/auth/login-key"
tags: ["v2-api", "auth-bootstrap"]
deprecated: true
---

# Login Key

`POST /auth/login-key`

## Request

- The document declares no server URL.
- Auth: none declared

> **Deprecated.**

**Deprecated** — Use POST /v2/auth/login + POST /v2/auth/login/verify instead.

Authenticate with email + password and receive a new nk_ API key.

## Request body

- LoginKeyRequest
  - `email` string, required
  - `password` string, required
  - `organization_id` string, nullable: Org to scope the new key to (must be a member)
  - `idempotency_key` string, nullable

## Response `200`

Successful Response

- LoginKeyResponse
  - `api_key` string, required
  - `api_key_id` string, required
  - `user_id` string, required
  - `organization_id` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `9dbfee9c2197`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trynia/apis/nia-ai-api/changes/auth/login-key/post.md)

---

[API](https://skmtc.dev/trynia/apis/nia-ai-api.md) - [All operations](https://skmtc.dev/trynia/apis/nia-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trynia/apis/nia-ai-api/revisions/9dbfee9c2197?raw)
