Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Variables

List variables

get

Returns available built-in and custom variables.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Responses
200Success
application/json
keystringRead-onlyRequired
descriptionstring · nullableRead-onlyRequired
isBuiltInbooleanRead-onlyRequired
typestring · enumRead-onlyRequired
  • value - Value
  • evaluate - Evaluate
Possible values:
get/api/v2/variables/
GET /api/v2/variables/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "key": "text",
    "description": null,
    "isBuiltIn": true,
    "type": "value"
  }
]

Create variable

post

Create a custom variable in the default run profile.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Body
keystring · max: 50Required
valuestring · nullableOptional
typestring · enumRequired
  • value - Value
  • evaluate - Evaluate
Possible values:
isSecretbooleanOptionalDefault: false
descriptionstring · max: 256 · nullableOptional
Responses
201Success
application/json
keystringRead-onlyRequired
descriptionstring · nullableRead-onlyRequired
isBuiltInbooleanRead-onlyRequired
typestring · enumRead-onlyRequired
  • value - Value
  • evaluate - Evaluate
Possible values:
webappUrlstringRead-onlyRequired
post/api/v2/variables/
POST /api/v2/variables/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 78

"key='text'&value=null&type='value'&isSecret=false&description=null"
{
  "key": "text",
  "description": null,
  "isBuiltIn": true,
  "type": "value",
  "webappUrl": "text"
}

Retrieve variable

get

Returns a custom variable from the default run profile by key.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
keystringRequired
Responses
200Success
application/json
keystringRead-onlyRequired
descriptionstring · nullableRead-onlyRequired
isBuiltInbooleanRead-onlyRequired
typestring · enumRead-onlyRequired
  • value - Value
  • evaluate - Evaluate
Possible values:
get/api/v2/variables/{key}/
GET /api/v2/variables/{key}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
  "key": "text",
  "description": null,
  "isBuiltIn": true,
  "type": "value"
}

Partially update variable

patch

Partially update a custom variable in the default run profile by key.

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
keystringRequired
Body
valuestring · nullableOptional
typestring · enumOptional
  • value - Value
  • evaluate - Evaluate
Possible values:
isSecretbooleanOptional
descriptionstring · max: 256 · nullableOptional
Responses
200Success
application/json
keystringRead-onlyRequired
descriptionstring · nullableRead-onlyRequired
isBuiltInbooleanRead-onlyRequired
typestring · enumRead-onlyRequired
  • value - Value
  • evaluate - Evaluate
Possible values:
patch/api/v2/variables/{key}/
PATCH /api/v2/variables/{key}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 64

"value=null&type='value'&isSecret=true&description=null"
{
  "key": "text",
  "description": null,
  "isBuiltIn": true,
  "type": "value"
}

Last updated

Was this helpful?