---
title: "Create API Key"
method: POST
path: "/api/admin/keys"
tags: ["Admin"]
---

# Create API Key

`POST /api/admin/keys`

## Request

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

Generate a new API key with specified role and tenant. The raw key is returned only once — store it securely. Request body accepts 'tenant_id' (default: 'default'), 'role' (admin/operator/viewer), and 'name' fields. Admin only.

## Request body

- object

## Response `200`

New API key with id, raw key (shown once), tenant, role, and name

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fiber-ac/apis/fiber-api.md) · [All operations](https://skmtc.dev/fiber-ac/apis/fiber-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fiber-ac/apis/fiber-api/revisions/58267250d793?raw)
