---
title: "Create an API key"
method: POST
path: "/api-keys"
tags: ["api-keys"]
---

# Create an API key

`POST /api-keys`

Mints a fresh API key for the caller's organization. The plaintext key value is returned exactly once and never stored or returned again.

## Request body

- APIKeyCreateRequest — Request body for creating a new API key.
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `name` string, required — Human-readable label for the API key.

## Response `201`

Created

- APIKeyCreateResponse — Response returned when a new API key is created.
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `created_at` string, date-time, required — Timestamp when the key was created.
  - `id` string, required — API key identifier.
  - `key_value` string, required — Full plaintext key, shown only on creation.
  - `name` string, required — Human-readable label for the key.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/axilioai/apis/axilio-api.md) · [All operations](https://skmtc.net/axilioai/apis/axilio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/axilioai/axilio-api/revisions/108ab4b41051/schema)
