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

# Login Key

`POST /auth/login-key`

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

For returning users who already have an account but need a new key
(e.g. an AI agent setting up in a new environment).

## 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

---

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