> ## Documentation Index
> Fetch the complete documentation index at: https://doc.featherhq.com/llms.txt
> Use this file to discover all available pages before exploring further.

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

> 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.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/agents/{agent_id}/variables
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/agents/{agent_id}/variables:
    get:
      tags:
        - agents
      summary: List declared context variables across an agent's bound workflows
      description: >-
        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.
      operationId: listAgentVariables
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentVariablesResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    AgentVariablesResponse:
      properties:
        variables:
          items:
            $ref: '#/components/schemas/AgentVariableResponse'
          type: array
          title: Variables
      type: object
      required:
        - variables
      title: AgentVariablesResponse
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentVariableResponse:
      properties:
        name:
          type: string
          title: Name
        type:
          type: string
          title: Type
        source:
          type: string
          title: Source
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        enum_values:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Enum Values
      type: object
      required:
        - name
        - type
        - source
      title: AgentVariableResponse
      description: |-
        One declared context variable from a bound workflow's compiled graph.

        Mirrors the subset of the workflow IR's ``ContextVarSpec``
        (``src/workflow/ir/graph.py``) that the UI needs to drive a typo-safe
        picker for the ``agent.variable_extracted`` deterministic-eval signal.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````