Skip to main content
POST
Add Variable

Example Request

The key must be unique within the agent. Duplicate keys will return a 400 error.
Set isGlobal: true for variables that should persist across conversation nodes.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

Body

application/json
variable
object
required
{key}
any

Response

Successful response

success
boolean
required
message
string
required
data
object
required