Create a variable
Creates a new environment variable. Keys must be uppercase with underscores only (e.g. BASE_URL). Secret variables are encrypted at rest and masked in API responses.
Authorization
Authorization<token>API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
In: header
Request Body
application/jsonRequiredkeyRequiredstringUnique key for the variable. Must start with a letter and contain only letters, digits, and underscores.
256Pattern: "/^[A-Za-z][A-Za-z0-9_]*$/"typestringThe type of the variable
"string"isSecretbooleanWhether this variable is a secret (encrypted at rest, masked in responses)
valuesarray<object>Header Parameters
idempotency-keystringA header for idempotency purposes
Response Body
OK
_idRequiredstring_organizationIdRequiredstringkeyRequiredstringtypeRequiredstring"string"isSecretRequiredbooleanvaluesRequiredarray<object>createdAtRequiredstringupdatedAtRequiredstringEnvironment variable schema
Reference the Novu environment variable schema used in API requests and responses. Review fields, data types, and object structure for this resource.
Update a variable PATCH
Updates an existing environment variable. Providing values replaces all existing per-environment values.