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

# Create Api Key

`POST /api/v1/account/api-keys`

## Request

- Base URL: `https://app.kaminari.ad`
- URL: `https://app.kaminari.ad/api/v1/account/api-keys`
- Auth: HTTP bearer

Create a new API key (full key shown once).

## Request body

- CreateApiKeyRequest: Request body for API key creation.
  - `name` string, required
  - `expires_at` string, date-time, nullable

## Response `201`

Successful Response

- ApiKeyCreatedResponse: One-time response with the full API key visible.
  - `id` string, uuid, required
  - `key_prefix` string, required
  - `full_key` string, required
  - `name` string, required
  - `expires_at` string, date-time, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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