Skip to main content

Create an environment in a project

post/v1/secrets/environments

Requires admin access to the project. A root configuration is created together with the environment. The number of environments in a project is limited by the team limit.

Request​

Authorization

  • Authorizationstringheaderrequired

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

Query Parameters

  • project stringrequired

    Project alias

Request body

    namestringrequired

    Name

    Example: Production
    personal_configsboolean

    Allow personal configurations

    slugstring

    Alias; generated from the name by default

    Example: production

Response

    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