Upload secrets from a file
/v1/secrets/configs/config/secrets/uploadA file up to 1 MiB: a JSON object with flat values or dotenv; the format is detected from the content.
Secrets from the file are created or overwritten; other secrets are not affected. File parsing errors
are returned with the InvalidSecretsFile code. Also accepts a configuration service token with
write access: Authorization: Bearer <token>. 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
Configuration alias
production/localSecrets file contents: a JSON object or dotenv
DATABASE_URL=postgresql://user:****@db:5432/appProject 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