Skip to main content

Create, update, and delete configuration secrets

post/v1/secrets/configs/config/secrets

Changes 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

    apply_to_environmentsstring[]

    Aliases of environments whose root configs get the same changes; only for the root config and only with an API key

    Example: ["staging","production"]
    change_requests object[]

    List of changes

  • Array [
  • namestringrequired

    Secret name: Latin letters, digits and _, must not start with a digit, up to 255 characters

    Example: DATABASE_URL
    notestring

    New note, null — leave unchanged

    Example: Connection string for the main database
    original_namestring

    Previous name when renaming: the secret original_name is renamed to name

    Example: DB_URL
    original_valuestring

    Current secret value, used to detect a stale change; not required for secrets with restricted visibility

    Example: postgresql://user:****@db:5432/old
    original_value_typestring

    Current value type of the secret

    Possible values: [string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime]

    Example: url
    original_visibilitystring

    Current visibility of the secret

    Possible values: [masked, unmasked, restricted]

    Example: masked
    should_convergeboolean

    Remove the branch override and fall back to the root config value

    should_deleteboolean

    Delete the secret. In the root config, for a secret missing from it, hides the secret from the list of missing secrets

    should_promoteboolean

    Promote the branch override to the root config

    valuestring

    New value, null — leave unchanged. For an existing secret, pass original_value, otherwise the change is silently skipped

    Example: postgresql://user:****@db:5432/app
    value_typestring

    New 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]

    Example: url
    visibilitystring

    New 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]

    Example: masked
  • ]
  • configstringrequired

    Configuration alias

    Example: production/local
    projectstringrequired

    Project alias

    Example: payments

Response

    property name* SecretsSecret
    can_be_convergedboolean

    The override can be removed to fall back to the root config value

    can_be_promotedboolean

    The override can be promoted to the root config

    created_atstring<date-time>

    Creation date

    fingerprintstring

    Value fingerprint for comparison without revealing the value: HMAC-SHA256 with the team key, empty for restricted

    Example: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
    idinteger<int64>

    Identifier

    Example: 7001
    namestring

    Name

    Example: DATABASE_URL
    notestring

    Note

    Example: Connection string for the main database
    overrideboolean

    The secret is overridden in this branch and not inherited from the root config

    reminder object
    next_atstring

    Next reminder date in YYYY-MM-DD format

    Example: 2026-03-01
    notestring

    Note

    Example: Check key rotation
    repeat_daysinteger<uint64>

    Repeat interval in days

    Example: 90
    updated_atstring<date-time>

    Update date

    valuestring

    Value; empty for secrets with restricted visibility unless the request uses a service token

    Example: postgresql://user:****@db:5432/app
    value_typestring

    Value type; the value is validated against it on change

    Possible values: [string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime]

    Example: url
    visibilitystring

    Visibility: 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]

    Example: masked