Create, update, and delete configuration secrets
/v1/secrets/configs/config/secretsChanges are applied in a single transaction: if one fails validation, none are applied.
The response contains all configuration secrets. Also accepts a configuration service token with write access:
Authorization: Bearer <token>; it can't change other environments. The configuration's trusted networks
apply. Requires editor access to the environment.
Request
Authorization
- Authorizationstringheaderrequired
Key in the format
Bearer <API-key>. Create a key on the API keys page.
Request body
- Array [
- ]
Aliases of environments whose root configs get the same changes; only for the root config and only with an API key
["staging","production"]change_requests object[]
List of changes
Secret name: Latin letters, digits and _, must not start with a digit, up to 255 characters
DATABASE_URLNew note, null — leave unchanged
Connection string for the main databasePrevious name when renaming: the secret original_name is renamed to name
DB_URLCurrent secret value, used to detect a stale change; not required for secrets
with restricted visibility
postgresql://user:****@db:5432/oldCurrent value type of the secret
Possible values: [string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime]
urlCurrent visibility of the secret
Possible values: [masked, unmasked, restricted]
maskedRemove the branch override and fall back to the root config value
Delete the secret. In the root config, for a secret missing from it, hides the secret from the list of missing secrets
Promote the branch override to the root config
New value, null — leave unchanged. For an existing secret, pass original_value,
otherwise the change is silently skipped
postgresql://user:****@db:5432/appNew value type, null — leave unchanged. Requires original_value_type, otherwise the change is silently skipped
Possible values: [string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime]
urlNew visibility, null — leave unchanged. Requires original_visibility, otherwise the change is silently skipped.
restricted can only be removed together with a new value
Possible values: [masked, unmasked, restricted]
maskedConfiguration alias
production/localProject alias
paymentsResponse
property name* SecretsSecret
The override can be removed to fall back to the root config value
The override can be promoted to the root config
Creation date
Value fingerprint for comparison without revealing the value: HMAC-SHA256 with the team key, empty for restricted
9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08Identifier
7001Name
DATABASE_URLNote
Connection string for the main databaseThe secret is overridden in this branch and not inherited from the root config
reminder object
Next reminder date in YYYY-MM-DD format
2026-03-01Note
Check key rotationRepeat interval in days
90Update date
Value; empty for secrets with restricted visibility unless the request uses a service token
postgresql://user:****@db:5432/appValue type; the value is validated against it on change
Possible values: [string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime]
urlVisibility: masked — the value is hidden in the interface, unmasked — shown, restricted —
the value is not returned to users, only to a service token
Possible values: [masked, unmasked, restricted]
masked