Skip to main content
GET
List input variables
Use this endpoint to retrieve a paginated list of input variables for the workspace, including where each variable is currently used.

Endpoint

GET /input-variable/list Authentication: Required (workspace auth)

Query Parameters

Variable Types

Response

Behavior

  • Returns the workspace’s own User Defined variables plus the global System variables (COMPANY_ID = 0, WORKSPACE_ID = 0), so built-in variables show up in every workspace’s list.
  • Results are sorted System variables first, then User Defined, both by ascending ID.
  • agent_type filters out System variables that don’t apply to that agent type. Currently mobile_no is excluded when agent_type is 2 (Chat) or 4 (General) — Voice agents (3) keep it.
  • used_in is computed by scanning every non-deleted audience’s saved variable keys and every non-deleted agent flow’s metadata_input declarations, so it reflects live usage at request time.
  • A variable can only be edited or deleted when it is User Defined and not referenced by any agent or audience — otherwise show_edit/show_delete are 0 and the corresponding *_description field explains why.

Example cURL

Headers

token
string
required

API token for authentication

Query Parameters

page
integer

Page number (default: 1)

limit
integer

Records per page (default: 10)

Partial match against variable_key

source
enum<string>

Filter by variable origin

Available options:
system,
user
type
string

One or more data types, comma-separated (e.g. string,name)

agent_type
enum<integer>

2=Chat, 3=Voice, 4=General. Hides System variables not applicable to that agent type (currently mobile_no for 2 and 4).

Available options:
2,
3,
4

Response

Input variables retrieved successfully

datalist
object[]
pagination
object