---
title: "Mint an API key"
method: POST
path: "/admin/keys"
tags: ["admin"]
---

# Mint an API key

`POST /admin/keys`

## Request

- Base URL: `https://api.qeaas.eu`
- URL: `https://api.qeaas.eu/admin/keys`
- Auth: API key in header `X-Admin-Token`

AC-9: HTTP mint route (EPIC 2 Q4 carry-over); same logic as `scripts/mint_key.py`.

## Request body

- AdminKeyRequest
  - `owner` string, required
  - `tier` string
  - `daily_quota_bytes` integer, nullable

## Response `200`

Successful Response

- AdminKeyResponse
  - `api_key` string, required
  - `owner` string, required
  - `tier` string, required
  - `daily_quota_bytes` integer, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/qeaas/apis/quantum-entropy-as-a-service.md) · [All operations](https://skmtc.dev/qeaas/apis/quantum-entropy-as-a-service/llms.txt) · [OpenAPI document](https://skmtc.dev/qeaas/apis/quantum-entropy-as-a-service/revisions/f0670c8db625?raw)
