---
title: "Mint a new API key (returned once)"
method: POST
path: "/api/v1/api-keys"
tags: ["Account"]
---

# Mint a new API key (returned once)

`POST /api/v1/api-keys`

## Request

- Base URL: `https://overwing.ai`
- URL: `https://overwing.ai/api/v1/api-keys`
- Auth: HTTP bearer

## Request body

- object
  - `name` string, required
  - `scope` 'full' | 'evaluate': full: every endpoint. evaluate: run checks and read rule sets, usage and Atlas data; cannot read stored evaluations, change rule sets, manage keys, webhooks, billing or Tower, or delete anything

## Response `201`

Issued key

- IssuedApiKey
  - `id` string
  - `name` string
  - `key` string: Full key. Shown once.
  - `key_prefix` string
  - `scope` 'full' | 'evaluate': full: every endpoint. evaluate: run checks and read rule sets, usage and Atlas data; cannot read stored evaluations, change rule sets, manage keys, webhooks, billing or Tower, or delete anything
  - `created_at` string
  - `notice` string

## Other responses

- `400`: name is required, or scope is not one of full, evaluate
- `401`: Missing or invalid API key
- `409`: Active key limit reached

---

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