> Markdown version of https://tuna.am/en/docs/api/secrets-config-selector/. 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.

# Get project configurations grouped by environment

get`/v1/secrets/configs/selector`

Only environments available to the user are 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

### Response

200

application/json

* Array \[
* **group** 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

  **items** object\[]

  Environment configurations

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

  Creation 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

  **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

  ]
* ]
