> Markdown version of https://tuna.am/en/docs/api/secrets-project-compare/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# 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

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Query Parameters

* **project** stringrequired

  Project alias

* **page_size** integer\<int64>

* **page** integer\<int64>

* **search** string

  Secret name, exact match

### Response

200

application/json

* Array \[
* **config** object

  **created_at**string\<date-time>

  Creation date

  **dismissed_secrets**string\[]

  Names of secrets excluded from the missing list

  **environment** object

  **access_level**string

  Current user's access level to the environment

  **Possible values:** \[`none`, `viewer`, `editor`, `admin`]

  **Example:&#x20;**`editor`

  **created_at**string\<date-time>

  Creation date

  **id**integer\<int64>

  Identifier

  **Example:&#x20;**`10`

  **initial_fetch_at**string\<date-time>

  Date secrets were first read via the API

  **name**string

  Name

  **Example:&#x20;**`Production`

  **order**integer\<int64>

  Display order

  **Example:&#x20;**`1`

  **personal_configs**boolean

  Personal configurations `<environment>/personal` are allowed

  **slug**string

  Alias

  **Example:&#x20;**`production`

  **updated_at**string\<date-time>

  Update date

  **id**integer\<int64>

  Identifier

  **Example:&#x20;**`500`

  **is_locked**boolean

  The configuration can't be renamed or deleted

  **is_personal**boolean

  The user's personal configuration

  **is_root**boolean

  Root configuration of the environment

  **last_fetch_at**string\<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 \[
* **name**string

  Name

  **Example:&#x20;**`DATABASE_URL`

  **note**string

  Note

  **Example:&#x20;**`Connection string for the main database`

  **value_type**string

  Value type

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

  **Example:&#x20;**`url`

  **visibility**string

  Visibility

  **Possible values:** \[`masked`, `unmasked`, `restricted`]

  **Example:&#x20;**`masked`

  ]
* **name**string

  Name; empty for a root configuration

  **Example:&#x20;**`local`

  **slug**string

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

  **Example:&#x20;**`production/local`

  **type**string

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

  **Possible values:** \[`original`, `duplicate`, `personal`]

  **Example:&#x20;**`duplicate`

  **updated_at**string\<date-time>

  Update date

  **secret** object

  **can_be_converged**boolean

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

  **can_be_promoted**boolean

  The override can be promoted to the root config

  **created_at**string\<date-time>

  Creation date

  **fingerprint**string

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

  **Example:&#x20;**`9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08`

  **id**integer\<int64>

  Identifier

  **Example:&#x20;**`7001`

  **name**string

  Name

  **Example:&#x20;**`DATABASE_URL`

  **note**string

  Note

  **Example:&#x20;**`Connection string for the main database`

  **override**boolean

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

  **reminder** object

  **next_at**string

  Next reminder date in `YYYY-MM-DD` format

  **Example:&#x20;**`2026-03-01`

  **note**string

  Note

  **Example:&#x20;**`Check key rotation`

  **repeat_days**integer\<uint64>

  Repeat interval in days

  **Example:&#x20;**`90`

  **updated_at**string\<date-time>

  Update date

  **value**string

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

  **Example:&#x20;**`postgresql://user:****@db:5432/app`

  **value_type**string

  Value type; the value is validated against it on change

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

  **Example:&#x20;**`url`

  **visibility**string

  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:&#x20;**`masked`

  ]
