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

# Get Job

> Retrieve the status and result of an async job. Poll this endpoint until the job status is `completed` or `failed`.



## OpenAPI

````yaml api-reference/openapi.json get /job/{job_id}
openapi: 3.1.0
info:
  title: Aifano Platform API
  version: 1.0.0
  description: >-
    Transform unstructured documents into structured data. Parse, extract,
    split, and edit documents at scale.
servers:
  - url: https://platform.aifano.com
    description: Production
security:
  - BearerAuth: []
paths:
  /job/{job_id}:
    get:
      tags:
        - Files & Jobs
      summary: Get Job
      description: >-
        Retrieve the status and result of an async job. Poll this endpoint until
        the job status is `completed` or `failed`.
      operationId: get_job
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
          description: The job ID returned from an async endpoint.
      responses:
        '200':
          description: Job status and result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Job not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    JobResponse:
      type: object
      properties:
        job_id:
          type: string
        status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
            - cancelled
          description: Current job status.
        result:
          type: object
          description: Job result (available when status is `completed`).
        duration:
          type: number
        usage:
          $ref: '#/components/schemas/Usage'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message.
    Usage:
      type: object
      properties:
        num_pages:
          type: integer
          description: Number of pages processed.
        credits:
          type: number
          nullable: true
          description: Credits consumed.
  responses:
    Unauthorized:
      description: Unauthorized - invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authentication. Use your Aifano API key (starts with `ak_live_`)
        as the Bearer token.

````