Skip to main content

Compare a secret's value across project configurations

get/v1/secrets/projects/project/compare

Searches for secrets by exact name in all project configurations available to the user. Root configurations without this secret are returned with secret: null. Without the search parameter, an empty list is returned.

Request​

Authorization

  • Authorizationstringheaderrequired

    Key in the format Bearer <API-key>. Create a key on the API keys page.

Query Parameters

  • project stringrequired

    Project alias

  • page_size integer<int64>
  • page integer<int64>
  • search string

    Secret name, exact match

Response

  • Array [
  • config object
    created_atstring<date-time>

    Creation date

    dismissed_secretsstring[]

    Names of secrets excluded from the missing list

    environment object
    access_levelstring

    Current user's access level to the environment

    Possible values: [none, viewer, editor, admin]

    Example: editor
    created_atstring<date-time>

    Creation date

    idinteger<int64>

    Identifier

    Example: 10
    initial_fetch_atstring<date-time>

    Date secrets were first read via the API

    namestring

    Name

    Example: Production
    orderinteger<int64>

    Display order

    Example: 1
    personal_configsboolean

    Personal configurations <environment>/personal are allowed

    slugstring

    Alias

    Example: production
    updated_atstring<date-time>

    Update date

    idinteger<int64>

    Identifier

    Example: 500
    is_lockedboolean

    The configuration can't be renamed or deleted

    is_personalboolean

    The user's personal configuration

    is_rootboolean

    Root configuration of the environment

    last_fetch_atstring<date-time>

    Date secrets were last read via the API

    missing_secrets object[]

    Secrets that exist in other root configurations of the project but are missing from this one; root configuration only

  • Array [
  • namestring

    Name

    Example: DATABASE_URL
    notestring

    Note

    Example: Connection string for the main database
    value_typestring

    Value type

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

    Example: url
    visibilitystring

    Visibility

    Possible values: [masked, unmasked, restricted]

    Example: masked
  • ]
  • namestring

    Name; empty for a root configuration

    Example: local
    slugstring

    Alias for requests: <environment> for a root configuration, otherwise <environment>/<name>

    Example: production/local
    typestring

    Type: original — root configuration, duplicate — branch, personal — personal configuration

    Possible values: [original, duplicate, personal]

    Example: duplicate
    updated_atstring<date-time>

    Update date

    secret object
    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
  • ]