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

# Get a task

> Returns the progress of one async task. Task ids are unique system-wide, so the task type does not need to be known. Unknown or expired ids return 404. Results are scoped to the caller's tenant, resolved from the request context; a caller can only ever see its own tasks.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/tasks/{task_id}
openapi: 3.1.0
info:
  title: EverOS Cloud Memory API
  version: 2.0.0
  license:
    name: Apache-2.0
    identifier: Apache-2.0
  contact:
    name: EverMind AI
    email: service@evermind.ai
    url: https://github.com/EverMind-AI/everos-cloud-sdk-python
  description: >-
    Official Python client for the EverOS Cloud Memory API. Add, search,
    retrieve, and manage long-term memory for your AI applications over a typed
    interface (pydantic v2, with full type hints). Install and usage guides:
    https://github.com/EverMind-AI/everos-cloud-sdk-python
servers:
  - url: https://api.evermind.ai
    description: Production
security:
  - BearerAuth: []
paths:
  /api/v2/tasks/{task_id}:
    get:
      tags:
        - Tasks
      summary: Get a task
      description: >-
        Returns the progress of one async task. Task ids are unique system-wide,
        so the task type does not need to be known. Unknown or expired ids
        return 404. Results are scoped to the caller's tenant, resolved from the
        request context; a caller can only ever see its own tasks.
      operationId: getTaskStatus
      parameters:
        - description: >-
            Task id, as returned in the 202 acknowledgement of the write that
            created it
          in: path
          name: task_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskStatusResponse'
          description: Task status
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskErrorResponse'
          description: Missing tenant scope
        '401':
          description: Missing or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '403':
          description: >-
            Authenticated but not permitted — either rejected by the auth
            service, or the account's memory API version does not match the
            interface version implied by the path (a v1 account calling an
            /api/v2 route).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskErrorResponse'
          description: Task id is unknown or has expired
        '429':
          description: Rate limit or quota exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '503':
          description: >-
            The gateway could not reach the authentication service. Transient —
            retry with backoff.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
components:
  schemas:
    TaskStatusResponse:
      properties:
        data:
          $ref: '#/components/schemas/TaskItem'
          description: The task.
        request_id:
          type: string
          description: Id of this request — quote it when reporting a problem.
      required:
        - data
      title: TaskStatusResponse
      type: object
    TaskErrorResponse:
      properties:
        error:
          properties:
            code:
              description: Error code, e.g. invalid_request, not_found, unavailable
              type: string
            message:
              type: string
            type:
              description: >-
                Error class, carrying the HTTP status text (BadRequest,
                NotFound, ...)
              type: string
          required:
            - code
            - message
            - type
          type: object
          description: What went wrong, with a machine-readable code and a message.
      required:
        - error
      title: TaskErrorResponse
      type: object
    GatewayError:
      type: object
      additionalProperties: true
      description: >-
        Gateway error body. NOTE: shape is not yet uniform across auth/quota/
        rate-limit paths — treat fields as best-effort. Commonly includes a
        `code`/`message` (flat) or an `error` object/string with a `message`.
      title: GatewayError
    TaskItem:
      properties:
        created_at:
          format: date-time
          type: string
          description: When the task was accepted.
        error:
          description: Failure reason; present only when status is failed
          type: string
        error_code:
          type: string
          description: Machine-readable failure code, alongside the human-readable `error`.
        finished_at:
          description: Completion time; absent while the task is not in a terminal state
          format: date-time
          type: string
        id:
          description: Task id (the request's X-Request-Id), not a database primary key
          type: string
        object:
          description: >-
            Resource type produced by the task (frozen field, cannot express a
            batch)
          type: string
        object_id:
          type: string
          description: Id of the resource the task produced, once there is one.
        status:
          enum:
            - queued
            - processing
            - pending
            - success
            - failed
          type: string
          description: >-
            Where the task is: "queued", "processing", "pending", "success" or
            "failed". Treat it as an open set — a value you do not recognise is
            terminal only when `finished_at` is set.
        task_type:
          description: >-
            Async interface that produced the task, e.g. memory_add /
            knowledge_document / batch_import
          type: string
      required:
        - id
        - status
      title: TaskItem
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API key issued by EverOS, sent as `Authorization: Bearer <api_key>`.'

````