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

# Poll generation status



## OpenAPI

````yaml openapi.json GET /v1/documents/{id}
openapi: 3.1.0
info:
  title: DocKiln API
  version: 1.1.0-review
  description: >-
    Workspace-scoped document generation. All timestamps are Unix milliseconds
    unless documented otherwise. The parity additions in this review
    specification require the matching server build. Dynamic rendering also
    requires operator configuration.
servers:
  - url: https://dockiln.io
    description: DocKiln hosted API
security: []
paths:
  /v1/documents/{id}:
    get:
      summary: Poll generation status
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Poll generation status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
          headers:
            X-Request-Id:
              description: Server-generated correlation ID
              schema:
                type: string
        default:
          description: Validation, authorization, quota or service error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: Server-generated correlation ID
              schema:
                type: string
      security:
        - bearer: []
        - session: []
components:
  schemas:
    Job:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
        format:
          type: string
          enum:
            - pdf
            - png
            - jpeg
            - webp
        created:
          type: integer
        updated:
          type: integer
        download:
          type:
            - string
            - 'null'
        error:
          type:
            - string
            - 'null'
        storage:
          description: >-
            Workspace filesystem (local), private workspace bucket (gcs), or
            customer S3 (object). Null until persisted.
          enum:
            - local
            - gcs
            - object
            - null
          type:
            - string
            - 'null'
        sandbox:
          type: boolean
        expiresAt:
          type:
            - integer
            - 'null'
    Problem:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
    session:
      type: apiKey
      in: cookie
      name: dockiln

````

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