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

# Create API key

`POST /api-keys`

Creates a revocable API key and returns its secret once.

## Request body

- object
  - `name` string

## Response `201`

API key created

- object
  - `id` string, required
  - `fullKey` string, required
  - `name` string, required
  - `prefix` string, required
  - `createdAt` string, date-time, required

## Other responses

- `401` — Unauthenticated
- `403` — API key limit reached
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.

## Changes

- **2026-09-26** `db02366a5e8d` — 4 warning
  - added the new `bookmark_folders_unavailable` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `bookmark_folders_unavailable` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `bookmark_folders_unavailable` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - added the new `bookmark_folders_unavailable` enum value to the `error/oneOf[subschema #2: StructuredError]/code` response property for the response status `401`
- **2026-09-25** `21bb66373b89` — 4 warning
  - added the new `search_unavailable` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `search_unavailable` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `search_unavailable` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - added the new `search_unavailable` enum value to the `error/oneOf[subschema #2: StructuredError]/code` response property for the response status `401`
- …earlier changes not shown

[Full history](https://skmtc.dev/xquik-dev/apis/xquik-api-3/changes/api-keys/post.md)

---

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