---
title: "Create an API key (returns the secret ONCE)"
method: POST
path: "/api/api-keys"
---

# Create an API key (returns the secret ONCE)

`POST /api/api-keys`

## Request

- Base URL: `https://portal.tacyon.io`
- URL: `https://portal.tacyon.io/api/api-keys`
- Auth: HTTP bearer

## Request body

- object
  - `name` string, required
  - `scopes` string[]: subset of capabilities; empty = full access
  - `server_ids` string[]
  - `expires_in_days` integer

## Response `201`

Created

---

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