---
title: "Get a Keypair"
method: GET
path: "/v1/secrets/keypair"
---

# Get a Keypair

`GET /v1/secrets/keypair`

## Request

- Base URL: `https://api.browserbase.com`
- URL: `https://api.browserbase.com/v1/secrets/keypair`
- Auth: API key in header `X-BB-API-Key`

## Response `200`

The request has succeeded.

- SecretsKeypair
  - `id` string, required: Identifier of the keypair the public key was minted from. Pass this back when creating a secret so the ciphertext records which keypair sealed it, which keeps decryption correct across keypair rotation.
  - `publicKey` string, required: The project's HPKE public encryption key, base64-encoded. Encrypt secret values with this key before creating a secret.

## Changes

- **2026-10-16** `266d5199a560`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/browserbase/apis/browserbase-api/changes/v1/secrets/keypair/get.md)

---

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