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

# Create Key

`POST /api/v1/keys`

Create a new API key. The full key is returned only once.

## Request body

- CreateKeyRequest
  - `label` string

## Response `201`

Successful Response

- CreateKeyResponse
  - `id` string, required
  - `key` string, required
  - `key_prefix` string, required
  - `label` string, required
  - `created_at` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/getnivara/apis/nivara-api.md) · [All operations](https://skmtc.dev/getnivara/apis/nivara-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getnivara/nivara-api/revisions/2810c849c6a4/schema)
