---
title: "Create a key (requires an existing LIVE key)"
method: POST
path: "/api-keys"
tags: ["API keys"]
---

# Create a key (requires an existing LIVE key)

`POST /api-keys`

## Request

- Base URL: `https://esahayak.io/api/v1`
- URL: `https://esahayak.io/api/v1/api-keys`
- Auth: HTTP bearer

Mints a new key. The plaintext secret is returned ONCE in this response and never again (only a hash is stored) — capture it now. This endpoint is gated to LIVE keys, so it can't bootstrap your first key; create that from the dashboard. Use it for programmatic rotation once you already hold a live key.

## Response `201`

Created — secret shown once

## Other responses

- `403`: Not allowed (e.g. creating a key from a sandbox key)

---

[API](https://skmtc.dev/esahayak/apis/esahayak-stamp-api.md) - [All operations](https://skmtc.dev/esahayak/apis/esahayak-stamp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/esahayak/apis/esahayak-stamp-api/revisions/cca124862a3e?raw)
