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

# Get Document Jobs

> Get processing jobs for a document



## OpenAPI

````yaml api-reference/openapi.json get /document/jobs
openapi: 3.0.0
info:
  title: Stax API
  version: 1.0.0
  description: API for Stax automated document classifier and trust accounting system
  contact:
    name: Stax.ai
    url: https://stax.ai
servers:
  - url: https://api.stax.ai
    description: Production server
security: []
paths:
  /document/jobs:
    get:
      tags:
        - Document
      summary: Get Document Jobs
      description: Get processing jobs for a document
      operationId: documentJobs
      parameters:
        - $ref: '#/components/parameters/docId'
      responses:
        '200':
          description: Document jobs
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  jobs:
                    type: array
                    items:
                      $ref: '#/components/schemas/Job'
      security:
        - cookieAuth: []
        - bearerAuth: []
components:
  parameters:
    docId:
      name: docId
      in: query
      description: Document ID
      required: false
      schema:
        $ref: '#/components/schemas/ObjectId'
  schemas:
    Job:
      type: object
      properties:
        _id:
          $ref: '#/components/schemas/ObjectId'
        team:
          $ref: '#/components/schemas/ObjectId'
        user:
          $ref: '#/components/schemas/ObjectId'
        success:
          type: boolean
        working:
          type: boolean
        error:
          type: string
        worker:
          type: string
        queueTime:
          type: string
          format: date-time
        startTime:
          type: string
          format: date-time
        endTime:
          type: string
          format: date-time
        jobType:
          type: string
        jobId:
          type: string
        jobData:
          type: object
    ObjectId:
      type: string
      pattern: ^[0-9a-fA-F]{24}$
      description: MongoDB ObjectId
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: authToken
      description: Cookie-based authentication using userId and authToken cookies
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Bearer token authentication requires two headers: 1) Authorization
        header with 'Bearer {apiKey}' format, and 2) email header with the
        user's email address for identification.

````