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

# Create Key

`POST /account/api-keys`

## Request

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

## Headers

- `authorization` string, nullable

## Request body

- CreateKeyRequest
  - `name` string

## Response `201`

Successful Response

- CreatedKeyResponse
  - `api_key_id` string, required
  - `name` string, required
  - `key_prefix` string, required
  - `status` string, required
  - `secret` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/beatra/apis/agent-service-api.md) · [All operations](https://skmtc.dev/beatra/apis/agent-service-api/llms.txt) · [OpenAPI document](https://skmtc.dev/beatra/apis/agent-service-api/revisions/58e440556498?raw)
