Environment variables

Create environment variable

Changed on

Create a new environment variable. This feature is in beta and admin UI is not yet available.

<div> <code>create:environment_variables</code> </div>
post/api/v1/environment_variables

Request

  • Base URL: https://your_kinde_subdomain.kinde.com
  • URL: https://your_kinde_subdomain.kinde.com/api/v1/environment_variables
  • Auth: HTTP bearer

Request body

keystring required

The name of the environment variable (max 128 characters).

valuestring required

The value of the new environment variable (max 2048 characters).

is_secretboolean

Whether the environment variable is sensitive. Secrets are not-readable by you or your team after creation.

Example request

{
  "key": "MY_API_KEY",
  "value": "some-secret-value"
}

Response

Environment variable successfully created.

messagestring

A Kinde generated message.

codestring

A Kinde generated status code.

Example response

{
  "message": "Environment variable created",
  "code": "VARIABLE_CREATED",
  "environment_variable": {
    "id": "env_var_0192b194f6156fb7452fe38cfb144958"
  }
}

Changes

    • breaking

      added the new required header request parameter Accept to all path's operations

    • info

      the endpoint scheme security kindeBearerAuth was added to the API

    • info

      the endpoint scheme security ManagementAPI was removed from the API

    • info

      endpoint added