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

# Get Task Status

> Get the status of a background task.

Use this to track:
- Knowledge base processing
- Document uploads
- URL ingestion

Status values:
- `pending`: Task queued but not started
- `running`: Task is currently processing
- `completed`: Task finished successfully
- `failed`: Task encountered an error

Example:
```
GET /agents/tasks/task_abc123
```



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json get /agents/tasks/{task_id}
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /agents/tasks/{task_id}:
    get:
      tags:
        - agent-knowledge
      summary: Get Task Status
      description: |-
        Get the status of a background task.

        Use this to track:
        - Knowledge base processing
        - Document uploads
        - URL ingestion

        Status values:
        - `pending`: Task queued but not started
        - `running`: Task is currently processing
        - `completed`: Task finished successfully
        - `failed`: Task encountered an error

        Example:
        ```
        GET /agents/tasks/task_abc123
        ```
      operationId: get_task_status_agents_tasks__task_id__get
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            title: Task Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TaskStatusResponse:
      properties:
        task_id:
          type: string
          title: Task Id
        status:
          type: string
          title: Status
          description: pending, running, completed, failed
        progress:
          anyOf:
            - type: integer
            - type: 'null'
          title: Progress
          description: Progress percentage (0-100)
        result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Result
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        created_at:
          type: string
          title: Created At
        updated_at:
          type: string
          title: Updated At
      type: object
      required:
        - task_id
        - status
        - created_at
        - updated_at
      title: TaskStatusResponse
      description: Response for task status.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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:
    HTTPBearer:
      type: http
      scheme: bearer

````