---
title: "Issue Api Key"
method: POST
path: "/api/admin/api-keys"
tags: ["admin"]
---

# Issue Api Key

`POST /api/admin/api-keys`

## Request

- Base URL: `https://api.stellara.natlex.it` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stellara.natlex.it/api/admin/api-keys`
- Auth: HTTP bearer

Mint a ``sk_stellara_…`` key. The plaintext is in this response and
nowhere else — store only the sha256 hash.

## Request body

- ApiKeyIssueRequest
  - `email` string, email, required
  - `tier` string
  - `daily_limit` integer, nullable

## Response `201`

Successful Response

- AdminApiKeyIssueResponse: The plaintext ``key`` is returned here exactly once and never again (only its sha256 hash is stored).
  - `id` integer, required
  - `key` string, required
  - `key_prefix` string, required
  - `email` string, required
  - `tier` string, required
  - `daily_limit` integer, nullable
  - `created_at` unknown

## Other responses

- `422`: Validation Error

---

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