---
title: "Create an API key (browser session required; the raw key is returned exactly once)"
method: POST
path: "/api/keys"
---

# Create an API key (browser session required; the raw key is returned exactly once)

`POST /api/keys`

## Request

- Base URL: `https://geo-parity.com`
- URL: `https://geo-parity.com/api/keys`
- Auth: one of:
  - none
  - HTTP bearer
  - API key in query parameter `key`

## Response `201`

{ ok: true, id, key, prefix } — store `key` now; it is never shown again.

## Other responses

- `401`: Not signed in.
- `422`: TOO_MANY_KEYS — revoke one first (max 5).

---

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