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

# Bootstrap Key

`POST /auth/bootstrap-key`

## Request

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

> **Deprecated.**

**Deprecated** — Use POST /v2/auth/signup (returns key directly) + POST /v2/auth/verify instead.

Exchange a bootstrap token for an nk_ API key (one-time use).

## Request body

- BootstrapKeyRequest
  - `bootstrap_token` string, required: Token from /v2/auth/signup response

## Response `200`

Successful Response

- BootstrapKeyResponse
  - `api_key` string, required: Your new nk_ API key — store it securely, it cannot be retrieved again
  - `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/bootstrap-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)
