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

# Create Api Key

`POST /api/v1/keys`

## Request

- Base URL: `https://intencheck.com` (the document declares no server; this is the origin it was published from)
- URL: `https://intencheck.com/api/v1/keys`
- Auth: OAuth 2 (password, token URL `/api/v1/auth/login`)

Create a new API key. The raw key is returned ONCE.

## Cookies

- `access_token` string, nullable

## Request body

- ApiKeyCreate
  - `name` string
  - `project_key` string, nullable
  - `scopes` string[], nullable

## Response `200`

Successful Response

- ApiKeyCreatedResponse: Returned once when a key is created — contains the raw key.
  - `api_key` ApiKeyOut, required
    - `id` integer, required
    - `name` string, required
    - `key_prefix` string, required
    - `project_key` string, nullable
    - `scopes_json` string, nullable
    - `is_active` boolean, required
    - `rate_limit` integer, required
    - `monthly_quota` integer, nullable
    - `created_at` string, date-time, required
    - `last_used_at` string, date-time, nullable
  - `raw_key` string, required

## Other responses

- `422`: Validation Error

---

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