---
title: "Create a new API key"
method: POST
path: "/v1/keys"
tags: ["Keys"]
---

# Create a new API key

`POST /v1/keys`

## Request

- Base URL: `https://spss.insightgenius.io` (the document declares no server; this is the origin it was published from)
- URL: `https://spss.insightgenius.io/v1/keys`
- Auth: none declared

Create a new API key for the authenticated user.

Returns the raw key ONCE — it cannot be retrieved later.
The key is stored as a SHA256 hash in Supabase.

## Request body

- CreateKeyRequest
  - `name` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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