---
title: "List declared context variables across an agent's bound workflows"
method: GET
path: "/v1/agents/{agent_id}/variables"
tags: ["agents"]
---

# List declared context variables across an agent's bound workflows

`GET /v1/agents/{agent_id}/variables`

Aggregate the union of ``context_variables`` declared across the
workflows bound to the agent's active revision.

Used by the evaluator-create UI to drive a typo-safe dropdown for the
``agent.variable_extracted`` deterministic-eval signal. The service owns the
union + dedup (agent-own wins) and returns typed ``ContextVarSpec`` — this
handler just maps each spec to the response shape.

## Path parameters

- `agent_id` string, uuid, required

## Response `200`

Successful Response

- AgentVariablesResponse
  - `variables` AgentVariableResponse[], required
    - `name` string, required
    - `type` string, required
    - `source` string, required
    - `description` string, nullable
    - `enum_values` string[], nullable

## Other responses

- `400` — Bad request
- `401` — Authentication required
- `404` — Resource not found
- `422` — Validation Error

---

[API](https://skmtc.net/oneloop-hq/apis/feather-api.md) · [All operations](https://skmtc.net/oneloop-hq/apis/feather-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneloop-hq/feather-api/versions/888bdd5c076e/schema)
