---
title: "Create an API key (the secret is shown once)"
method: POST
path: "/v1/keys"
tags: ["Account"]
---

# Create an API key (the secret is shown once)

`POST /v1/keys`

## Request

- Base URL: `https://api.quirepdf.dev`
- URL: `https://api.quirepdf.dev/v1/keys`
- Auth: HTTP bearer

## Request body

- object
  - `name` string

## Response `201`

Created

- object
  - `key` ApiKey
    - `id` string
    - `prefix` string
    - `name` string, nullable
    - `created_at` integer: Unix seconds
    - `last_used_at` integer, nullable
  - `api_key` string

## Other responses

- `401`: Error

---

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