> ## 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 extract-and-file job status

> Progress and per-file results for an extract-and-file job. Poll while the status is non-terminal; succeeded, partial, failed and canceled are final.



## OpenAPI

````yaml /api-reference/cx/swagger.json get /files/_extract_and_file/{job}
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /files/_extract_and_file/{job}:
    get:
      tags:
        - files
      summary: Get extract-and-file job status
      description: >-
        Progress and per-file results for an extract-and-file job. Poll while
        the status is non-terminal; succeeded, partial, failed and canceled are
        final.
      parameters:
        - description: Job ID
          name: job
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Job progress
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_files.ExtractAndFileStatusResponse
        '400':
          description: Invalid job ID
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: Job not found or not this team's
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Failed to load job
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_files.ExtractAndFileStatusResponse:
      type: object
      properties:
        counts:
          $ref: '#/components/schemas/stax_ai_cx_cx-api_pkg_services_jobs.Counts'
        cursor:
          type: integer
        error:
          type: string
        job_id:
          type: string
        results:
          type: array
          items:
            $ref: '#/components/schemas/pkg_routes_files.ExtractAndFileResult'
        status:
          type: string
        total:
          type: integer
    stax_ai_cx_cx-api_pkg_services_jobs.Counts:
      type: object
      properties:
        done:
          type: integer
        failed:
          type: integer
    pkg_routes_files.ExtractAndFileResult:
      type: object
      properties:
        destination:
          type: string
        file:
          type: string
        name:
          type: string
        reason:
          type: string
        status:
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.