Skip to main content

Get project configurations grouped by environment

get/v1/secrets/configs/selector

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

Response

  • Array [
  • group 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

    items object[]

    Environment configurations

  • Array [
  • created_atstring<date-time>

    Creation 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

    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

  • ]
  • ]