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

# Get Document Status

> Poll the status of a document being generated. Returns current processing state from the database.



## OpenAPI

````yaml /api-reference/openapi-v1.json get /api/v1/documents/status/{document_id}
openapi: 3.0.0
info:
  title: Artos API
  description: API for document generation, template management, and document organization
  version: 1.0.0
  contact:
    name: Artos Support
    email: internal@artosai.com
servers:
  - url: https://api.artosai.com
    description: Production server
  - url: http://localhost:8000
    description: Local development server
security:
  - bearerAuth: []
paths:
  /api/v1/documents/status/{document_id}:
    get:
      tags:
        - Documents
      summary: Get Document Status
      description: >-
        Poll the status of a document being generated. Returns current
        processing state from the database.
      operationId: getDocumentStatus
      parameters:
        - name: document_id
          in: path
          required: true
          description: UUID of document
          schema:
            type: string
      responses:
        '200':
          description: Status retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskStatusResponse'
              example:
                task_id: document-uuid-456
                status: Generating
                progress: null
                error: null
        '404':
          description: Document not found
        '500':
          description: Database error
components:
  schemas:
    TaskStatusResponse:
      type: object
      properties:
        task_id:
          type: string
          description: Document ID
        status:
          type: string
          enum:
            - Pending
            - Ingesting
            - Generating
            - Ready
            - Failed
          description: Current processing status
        progress:
          type: integer
          nullable: true
          description: Progress percentage (reserved for future use)
        error:
          type: string
          nullable: true
          description: Error message if status is Failed
      required:
        - task_id
        - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication. Token provides organization-scoped access.

````