Skip to main content
POST
Create secrets

Authorizations

x-brimble-key
string
header
required

API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.

Path Parameters

projectId
string
required
Pattern: ^[a-fA-F0-9]{24}$
environment
enum<string>
required

PREVIEW for secrets used by preview deployments; any other value means production. Use the path without this segment for production.

Available options:
PRODUCTION,
PREVIEW

Query Parameters

editor
enum<string>

Replace all secrets with the ones in the request.

Available options:
true,
false

Body

application/json
environments
object[]
required

Response

Envs created successfully

message
string
required
Example:

"Envs created successfully"

data
object[]
required
Last modified on October 10, 2026