Skip to main content

Get a configuration by alias

get/v1/secrets/configs/config

Get a configuration by alias

Request​

Authorization

  • Authorizationstringheaderrequired

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

Query Parameters

  • project stringrequired

    Project alias

  • config stringrequired

    Configuration alias: <environment> is the root configuration, <environment>/<name> is a branch or a personal configuration (<environment>/personal), for example dev/local

Response

    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