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

# List extractions

> Query completed extraction results, optionally filtered by Auftragsnummer.

Returns an array of extraction summaries with pagination.
If multiple Regiescheine exist for the same Auftragsnummer, all are returned.




## OpenAPI

````yaml get /v1/openapi/extractions
openapi: 3.0.3
info:
  title: Oktavius ERP Public API
  version: 1.0.0
  description: |
    Public API for retrieving document extraction results from Oktavius ERP.

    Designed for external systems (e.g. ERP / Materialwirtschaft) to pull
    structured data extracted from Regiescheine and other work documents.
  contact:
    name: Texterous Support
    email: info@texterous.com
servers:
  - url: https://api.oktavius.ai
    description: Production
  - url: https://dev-api.oktavius.ai
    description: Development
security:
  - bearerAuth: []
paths:
  /v1/openapi/extractions:
    get:
      tags:
        - Extractions
      summary: List extractions
      description: >
        Query completed extraction results, optionally filtered by
        Auftragsnummer.


        Returns an array of extraction summaries with pagination.

        If multiple Regiescheine exist for the same Auftragsnummer, all are
        returned.
      operationId: listExtractions
      parameters:
        - name: auftragsnummer
          in: query
          required: false
          description: Filter by project/order number (exact match)
          schema:
            type: string
          example: '22201161'
        - name: status
          in: query
          required: false
          description: Filter by job status (default `completed`)
          schema:
            type: string
            enum:
              - pending
              - extracting
              - extracted
              - reviewing
              - executing
              - completed
              - failed
              - cancelled
            default: completed
        - name: since
          in: query
          required: false
          description: Only return extractions completed after this ISO-8601 timestamp
          schema:
            type: string
            format: date-time
          example: '2026-03-01T00:00:00Z'
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
      responses:
        '200':
          description: Paginated list of extraction summaries
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExtractionSummary'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
              example:
                success: true
                data:
                  - id: 550e8400-e29b-41d4-a716-446655440000
                    status: completed
                    auftragsnummer: '22201161'
                    baustelle: Mokka
                    completed_at: '2026-03-03T14:00:00Z'
                    created_at: '2026-03-03T13:00:00Z'
                    positionen_count: 4
                pagination:
                  page: 1
                  page_size: 20
                  total: 1
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    ExtractionSummary:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          example: completed
        auftragsnummer:
          type: string
          nullable: true
          description: Project / order number extracted from the document
          example: '22201161'
        baustelle:
          type: string
          nullable: true
          description: Construction site name
          example: Mokka
        completed_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        positionen_count:
          type: integer
          description: Number of line items in this extraction
          example: 4
      required:
        - id
        - status
        - auftragsnummer
        - baustelle
        - completed_at
        - created_at
        - positionen_count
    Pagination:
      type: object
      properties:
        page:
          type: integer
          example: 1
        page_size:
          type: integer
          example: 20
        total:
          type: integer
          example: 3
      required:
        - page
        - page_size
        - total
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: Unauthorized
        message:
          type: string
          example: Invalid API token.
      required:
        - success
        - error
        - message
    RateLimitResponse:
      allOf:
        - $ref: '#/components/schemas/ErrorResponse'
        - type: object
          properties:
            details:
              type: object
              properties:
                limit:
                  type: integer
                  example: 1000
                window:
                  type: string
                  example: 1 hour
                resets_at:
                  type: string
                  format: date-time
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error: Bad Request
            message: >-
              status: Invalid enum value. Expected 'completed' | 'failed',
              received 'bogus'
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequests:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitResponse'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Token
      description: |
        Use an API token starting with `okt_live_`.
        Pass it as: `Authorization: Bearer okt_live_your_token_here`

````