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

# Create Api Key

`POST /v1/account/api-keys`

## Request

- Base URL: `https://api.corent.tech` (the document declares no server; this is the origin it was published from)
- URL: `https://api.corent.tech/v1/account/api-keys`
- Auth: HTTP bearer

## Request body

- CreateApiKeyRequest
  - `name` string
  - `scopes` string[], nullable
  - `allowed_models` string[], nullable

## Response `200`

Successful Response

- CreateApiKeyResponse
  - `id` string, required
  - `name` string, required
  - `key_prefix` string, required
  - `api_key` string, required
  - `scopes` string[], nullable, required
  - `allowed_models` string[], nullable
  - `kind` string

## Other responses

- `422`: Validation Error

---

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