---
title: "Mint a new API key; old key enters a 24h grace period"
method: POST
path: "/v1/account/keys"
tags: ["system"]
---

# Mint a new API key; old key enters a 24h grace period

`POST /v1/account/keys`

## Response `201`

Successful Response

- KeyMintResponse
  - `id` string, required
  - `plaintext` string, required
  - `key_prefix` string, required
  - `created_at` string, required
  - `previous_key_revokes_at` string, nullable

## Other responses

- `401` — Authentication failed.
- `429` — Per-minute, anonymous, or monthly quota exceeded.
- `500` — The operation failed internally.
- `503` — A required backend or data source is temporarily unavailable.

---

[API](https://skmtc.net/goldprice/apis/gold-api.md) · [All operations](https://skmtc.net/goldprice/apis/gold-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goldprice/gold-api/revisions/5e6518098e6e/schema)
