Skip to main content
post/v1/environment-variables
Request example
Response
post/v1/environment-variables

Authorization

Authorizationstringheaderrequired#
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".

Headers

idempotency-keystring#
A header for idempotency purposes

Body

application/json
keystringrequired#
Unique key for the variable. Must start with a letter and contain only letters, digits, and underscores.

Length: max 256Pattern: ^[A-Za-z][A-Za-z0-9_]*$

typeenum<string>#
The type of the variable
Options:string
isSecretboolean#
Whether this variable is a secret (encrypted at rest, masked in responses)
valuesobject[]#

Items: unique

Responses

application/json
OK
_idstringrequired#
_organizationIdstringrequired#
keystringrequired#
typeenum<string>required#
Options:string
isSecretbooleanrequired#
valuesobject[]required#
createdAtstringrequired#
updatedAtstringrequired#