Databases

Create env by database UUID.

post/databases/{uuid}/envs

Request

  • Base URL: https://app.coolify.io/api/v1
  • URL: https://app.coolify.io/api/v1/databases/{uuid}/envs
  • Auth: HTTP bearer

Path parameters

uuidstring required

UUID of the database.

Request body

keystring

The key of the environment variable.

valuestring

The value of the environment variable.

is_literalboolean

The flag to indicate if the environment variable is a literal, nothing espaced.

is_multilineboolean

The flag to indicate if the environment variable is multiline.

is_shown_onceboolean

If true, the saved value is hidden in the UI and API responses. MCP never returns environment variable values.

Response

Environment variable created.

uuidstring

Example response

{
  "uuid": "nc0k04gk8g0cgsk440g0koko"
}

Changes