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

# Create Api Key

`POST /api/auth/api-keys`

## Request

- Base URL: `https://api.pensiata.me` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pensiata.me/api/auth/api-keys`
- Auth: API key in header `X-API-Key`

Create a new API key (admin only).

**Important:** The full API key is only returned once. Store it securely!

## Cookies

- `access_token` string, nullable

## Request body

- APIKeyCreate
  - `name` string, required
  - `owner_email` string, email, nullable
  - `rate_limit` integer

## Response `200`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pensiata/apis/bulgarian-pension-fund-data-api.md) · [All operations](https://skmtc.dev/pensiata/apis/bulgarian-pension-fund-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pensiata/apis/bulgarian-pension-fund-data-api/revisions/cd24747298ae?raw)
