ScalixScalix Docs
Sign up

Environment API

Environment variables API to list, set, and remove project-level configuration and secrets in Scalix Cloud, with secret values masked on read.

REST API endpoints for Environment. 4 operations.

List environment variables

plaintext
GET /v1/env

Returns all project-level environment variables (secret values masked).

Auth: Bearer API key

Responses

StatusDescription
200All project environment variables
401Missing or invalid credentials
500Internal error

operationId: listEnvVars

Set an environment variable

plaintext
POST /v1/env

Creates or updates a single project-level environment variable.

Auth: Bearer API key

Request body

application/json (required) — schema SetEnvBody.

Request body for POST /v1/env — a single project environment variable. Fields are read by serde + utoipa; the 501-stub handlers ignore the body.

FieldTypeRequiredDescription
keystringYes
valuestringYes
is_secretboolean | nullNoStore the value as a write-only secret (masked on read).

Responses

StatusDescription
200Variable created or updated
401Missing or invalid credentials
500Internal error

operationId: setEnvVar

Delete an environment variable

plaintext
DELETE /v1/env/{id}

Removes a project-level environment variable by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesEnvironment variable id

Responses

StatusDescription
200Variable deleted
401Missing or invalid credentials
404Variable not found
500Internal error

operationId: deleteEnvVar

Bulk-import environment variables

plaintext
POST /v1/env/bulk

Imports many project-level environment variables in one request.

Auth: Bearer API key

Request body

application/json (required) — schema BulkImportBody.

Request body for POST /v1/env/bulk — import many variables at once.

FieldTypeRequiredDescription
variablesarray<SetEnvBody>Yes

Nested schema — SetEnvBody:

FieldTypeRequiredDescription
keystringYes
valuestringYes
is_secretboolean | nullNoStore the value as a write-only secret (masked on read).

Responses

StatusDescription
200Variables imported
401Missing or invalid credentials
500Internal error

operationId: bulkImportEnvVars