Skip to main content
POST
Create a new secret

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
key
string
required

Unique key identifier (uppercase letters, numbers, underscores only)

Pattern: ^[A-Z0-9_]+$
Example:

"STRIPE_API_KEY"

value
string
required

Secret value to be encrypted

Example:

"sk_live_..."

isReserved
boolean
default:false

Whether the secret is protected from deletion

expiresAt
string<date-time> | null

Optional expiration date for the secret

Response

Secret created successfully

success
boolean
message
string
id
string<uuid>