Skip to content

API reference · v1

REST API

Base URL /api/v1. JSON in, JSON out. Machine-readable spec at /api/v1/openapi.json.

post/secretsanonymous OK

Create a secret

Stores a client-side encrypted envelope. Anonymous calls (no Authorization) are allowed with anonymous limits. Supply `Idempotency-Key` to make retries safe (authenticated only).

Idempotency-Key (header)
201403413422429
get/secrets

List your secrets (metadata only)

state (query)
q (query)
Search your private labels.
sort (query)
page (query)
pageSize (query)
environment (query)
200401
get/secrets/{id}

Get secret metadata (receipt)

Authorized by the receipt token (`X-Receipt-Token`), the owner's API key with `secrets:read`, or the owner's session.

id (path, required)
Secret identifier (128-bit, base64url).
200404
get/secrets/{id}/statusanonymous OK

Pre-redemption status (public)

Does not consume the secret. Returns KDF parameters the recipient needs to derive the proof.

id (path, required)
Secret identifier (128-bit, base64url).
200404
post/secrets/{id}/redeemanonymous OK

Redeem (open) a secret

Verifies `proof` (HKDF-derived from the link key and passphrase) and, if valid, consumes one view atomically and returns the envelope. A wrong proof never consumes; after `maxFailedAttempts` the secret is destroyed.

id (path, required)
Secret identifier (128-bit, base64url).
200403404410429
post/secrets/{id}/burn

Destroy a secret before it is read

id (path, required)
Secret identifier (128-bit, base64url).
200404
get/account/usage

Plan, limits and usage for the current period

200401
get/account/api-keys

List API keys (session only)

200
post/account/api-keys

Create an API key (session only). The token is returned once.

201
delete/account/api-keys/{keyId}

Revoke an API key

keyId (path, required)
204404
get/webhooks

List endpoints and recent deliveries

200
post/webhooks

Create an endpoint. The signing secret is returned once.

201
delete/webhooks/{id}

Delete an endpoint

id (path, required)
204

Schemas, examples and the envelope format are described in the developer guide.