Skip to main content
POST
Create variable

Path Parameters

orgId
string<uuid>
required

The organization ID

Body

Payload required to create a new organization variable

name
string
required

Variable name in strict snake_case. Must start with a lowercase letter, contain only lowercase letters and numbers, and use single underscores between words.

Pattern: ^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$
value
string
required

The value of the variable

type
enum<string>
required
Available options:
STRING,
PHONE_NUMBER
displayName
string

Human-readable display name

description
string

Description of the variable

Response

Response returned after creating a variable

success
enum<boolean>
required
Available options:
true
data
object
required

Represents an organization variable used in workflows