# Get BYOK sealed-box public key (/docs/reference/byok/getEncryptionPubkey)

> For AI agents, the [documentation index](https://bitrouter-docs-staging.up.railway.app/llms.txt) lists all pages. Append .md to a documentation URL to read its Markdown.

`GET /v1/byok/encryption-pubkey`

Returns the node's current X25519 sealed-box public key plus its `kek_id` fingerprint. The console encrypts the user's provider key against this pubkey before storing the ciphertext — the node never sees plaintext on the write path.

Honors `If-None-Match: "<kek_id>"` for cheap caching, returning `304 Not Modified` when the cached fingerprint still matches.

## Authentication

Public.

Base URL: `https://api.bitrouter.ai`

## Parameters

* `If-None-Match` (header): Quoted `kek_id` from a prior response.

## Responses

* `200` Current sealed-box public key. (application/json)
* `304` Cached `kek_id` still matches — body is empty.

[Full OpenAPI schema](https://bitrouter-docs-staging.up.railway.app/openapi.json)