Skip to main content
GET
Retrieve a variable

Authorizations

Authorization
string
header
required

A project API key, created in the dashboard.

Path Parameters

variable
string
required

ID of the variable.

Response

The variable.

object
any
required
id
string
required
Example:

"7c9e6679-7425-40de-944b-e07fc1f90ae7"

agent
object
required

The agent this belongs to.

name
string
required
Example:

"order_id"

kind
enum<string>
required

system variables are read-only.

Available options:
custom,
system
type
enum<string>
required

Custom variables are always string.

Available options:
string,
number,
boolean,
date
description
string | null
required

What the variable stores. For system variables, the built-in description.

default_value
string | null
required

The value a conversation starts with. Always null for system variables.

created_at
string<date-time> | null
required
updated_at
string<date-time> | null
required