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

# Get Agent Task

> Get a specific task for the specified agent.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/agents/{agent_id}/tasks/{task_id}
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/{task_id}:
    get:
      tags:
        - v1
        - protected
        - agent-tasks
      summary: Get Agent Task
      description: Get a specific task for the specified agent.
      operationId: get_agent_task_v1_agents__agent_id__tasks__task_id__get
      parameters:
        - in: path
          name: agent_id
          required: true
          schema:
            format: uuid
            title: Agent Id
            type: string
        - in: path
          name: task_id
          required: true
          schema:
            format: uuid
            title: Task Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskResponse'
          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

````