Skip to main content
GET
List Agent Variables

Overview

Returns the variables stored for one of the agent’s environments, sorted by key. Agent configuration refers to a variable as {{env.KEY}}, and the environment a call runs as decides which set is substituted: production for normal calls, staging when calling the staging pin, and dev for dev, branch, or specific-version calls. Set values with Set Agent Variable.

Headers

string
required
Your API key for authentication.

Path Parameters

string
required
The agent’s unique identifier.
string
required
One of dev, staging, production. Any other value returns 400 INVALID_ENV.

Response

array
Array of variable objects ordered by variable_key ascending. Empty when the environment has no variables.
null | array
null on success, or a list of error objects if the request failed.

Docs for agents: llms.txt