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

# List Agent Tasks

> List all tasks for the specified agent.

Access Control:
    Returns all tasks within the current user's workspace (workspace isolation).
    All users in the same workspace can see all workspace tasks.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/agents/{agent_id}/tasks/
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/agents/{agent_id}/tasks/:
    get:
      tags:
        - v1
        - protected
        - agent-tasks
      summary: List Agent Tasks
      description: |-
        List all tasks for the specified agent.

        Access Control:
            Returns all tasks within the current user's workspace (workspace isolation).
            All users in the same workspace can see all workspace tasks.
      operationId: list_agent_tasks_v1_agents__agent_id__tasks__get
      parameters:
        - in: path
          name: agent_id
          required: true
          schema:
            format: uuid
            title: Agent Id
            type: string
        - description: Filter by task status
          in: query
          name: status
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by task status
            title: Status
        - description: Maximum number of tasks to return
          in: query
          name: limit
          required: false
          schema:
            default: 100
            description: Maximum number of tasks to return
            maximum: 1000
            minimum: 1
            title: Limit
            type: integer
        - description: Number of tasks to skip
          in: query
          name: offset
          required: false
          schema:
            default: 0
            description: Number of tasks to skip
            minimum: 0
            title: Offset
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/TaskResponse'
                title: Response List Agent Tasks V1 Agents  Agent Id  Tasks  Get
                type: array
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    TaskResponse:
      properties:
        agent_id:
          format: uuid
          title: Agent Id
          type: string
        created_at:
          title: Created At
          type: string
        description:
          title: Description
          type: string
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        execution_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Execution Id
        failure_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Failure Reason
        id:
          format: uuid
          title: Id
          type: string
        parameters:
          additionalProperties: true
          title: Parameters
          type: object
        result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: string
            - type: 'null'
          title: Result
        status:
          title: Status
          type: string
        total_cost:
          anyOf:
            - type: number
            - type: 'null'
          title: Total Cost
      required:
        - id
        - agent_id
        - description
        - parameters
        - status
        - created_at
      title: TaskResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````