v1

latestOpenAPI 3.0.02026-08-04891301.4 MB

List an agent's environment variables

Returns all environment variables defined for the specified agent. Variable values are always masked in the response; only the last four characters are visible. To inspect a specific variable, use the retrieve endpoint.

The authenticated user must have access to the agent's parent app. Pass the app scope via the app parameter when calling with an API key that is scoped to a specific app. Results are returned in an unordered flat list.

get/api/v1/agents/{agent}/agent_env_vars

Path parameters

agentstring required

Agent ID (agt_...). Returns environment variables belonging to this agent.

Response

Successful response

Example response

{
  "data": [
    {
      "agent": "agi_0aBcDeFgHiJkLmNoPqRsTu",
      "created_at": "2024-01-01T00:00:00Z",
      "description": "An example description.",
      "id": "anv_0aBcDeFgHiJkLmNoPqRsTu",
      "key": "OPENAI_API_KEY",
      "masked_value": "****1234",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ]
}