---
title: "Create New Api Key"
method: POST
path: "/auth/api-keys"
---

# Create New Api Key

`POST /auth/api-keys`

## Request

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

Generate a new API key. Returns the full key (shown only once).

Uses authenticate_user (like /auth/me and regenerate) so `id` is the REAL
user id — under bare authenticate() it was the api_keys row id, so keys
created via API-key auth were attached to the wrong user_id.

## Response `200`

Successful Response

- unknown

---

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