Environment Variables

Create a variable

Changed on

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.

post/v1/environment-variables

Request

  • Base URL
    https://api.novu.co
  • Auth
    API key in header Authorization

Headers

idempotency-keystring

A header for idempotency purposes

Request body

keystring required

Unique key for the variable. Must start with a letter and contain only letters, digits, and underscores.

type'string'

The type of the variable

isSecretboolean

Whether this variable is a secret (encrypted at rest, masked in responses)

Response

OK

_idstring required
_organizationIdstring required
keystring required
type'string' required
isSecretboolean required
createdAtstring required
updatedAtstring required

Changes

    • warning

      changed the pattern of the request property from /^[A-Za-z][A-Za-z0-9_]*$/ to ^[A-Za-z][A-Za-z0-9_]*$