---
title: "QRNG-seeded ML-KEM-768 keypair"
method: POST
path: "/v1/kem/keypair"
tags: ["kem"]
---

# QRNG-seeded ML-KEM-768 keypair

`POST /v1/kem/keypair`

## Request

- Base URL: `https://api.qeaas.eu`
- URL: `https://api.qeaas.eu/v1/kem/keypair`
- Auth: API key in header `X-API-Key`

AC-1/2/3/7: QRNG-seeded ML-KEM-768 keygen. `ek` always; `dk` demo-only.

## Request body

- KemKeypairRequest
  - `include_secret_key` boolean

## Response `200`

Successful Response

- KemKeypairResponse
  - `request_id` string, required
  - `algorithm` 'ML-KEM-768', required
  - `format` 'base64', required
  - `public_key` string, required
  - `secret_key` string, nullable
  - `entropy_epoch` integer, required
  - `timestamp` string, date-time, required
  - `receipt` string, nullable
  - `note` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/qeaas/apis/quantum-entropy-as-a-service.md) · [All operations](https://skmtc.dev/qeaas/apis/quantum-entropy-as-a-service/llms.txt) · [OpenAPI document](https://skmtc.dev/qeaas/apis/quantum-entropy-as-a-service/revisions/f0670c8db625?raw)
