---
title: "Generate a public read-only API key"
method: POST
path: "/v1/keys/generate"
tags: ["auth"]
---

# Generate a public read-only API key

`POST /v1/keys/generate`

## Request

- Base URL: `https://mcp.techmanual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://mcp.techmanual.ai/v1/keys/generate`
- Auth: none declared

Create a read-only API key for agent use. No authentication required. The key is returned once — store it securely. Rate limited to 3 keys per IP per hour.

## Request body

- PublicKeyGenerateRequest: Request schema for POST /v1/keys/generate (no auth required).
  - `label` string, nullable

## Response `201`

Successful Response

- PublicKeyGenerateOut: Response schema for public key generation — includes the plaintext key once.
  - `key` string, required
  - `label` string, required
  - `created_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/techmanual/apis/techmanual-ai-api.md) · [All operations](https://skmtc.dev/techmanual/apis/techmanual-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/techmanual/apis/techmanual-ai-api/revisions/97e0fde41040?raw)
