---
title: "Create"
method: POST
path: "/v1/api-keys"
tags: ["api-keys"]
---

# Create

`POST /v1/api-keys`

## Request

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

## Request body

- ApiKeyCreate
  - `name` string, required

## Response `201`

Successful Response

- ApiKeyCreated
  - `id` string, uuid, required
  - `name` string, required
  - `key_prefix` string, required
  - `key` string, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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