openapi: 3.0.3
info:
  title: AIdaptIQ Document API
  version: "1.0.0"
  description: Basic OpenAPI starter for upload and result polling.
servers:
  - url: https://api.number7ai.com/api/v1
paths:
  /upload:
    post:
      summary: Upload a document for processing
      security:
        - bearerAuth: []
      responses:
        "200":
          description: Accepted
  /results/{jobId}:
    get:
      summary: Fetch processing result by jobId
      security:
        - bearerAuth: []
      parameters:
        - name: jobId
          in: path
          required: true
          schema:
            type: string
      responses:
        "200":
          description: Status payload
        "404":
          description: Job not found
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
