openapi: 3.1.0 info: title: parseflow Admin Search API description: Document parsing, extraction, and search API version: 0.2.0 security: - ApiKeyAuth: [] tags: - name: Search paths: /v2/search: get: summary: Search V2 description: Search indexed documents by keyword. operationId: search_v2_v2_search_get parameters: - name: q in: query required: false schema: anyOf: - type: string - type: 'null' title: Q - name: limit in: query required: false schema: type: integer default: 10 title: Limit - name: X-API-Key in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Api-Key - name: X-Docflow-Gateway-Secret in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Docflow-Gateway-Secret responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Search /v2/search/documents: get: summary: List Indexed Documents V2 description: List all indexed documents with pagination. operationId: list_indexed_documents_v2_v2_search_documents_get parameters: - name: limit in: query required: false schema: type: integer default: 50 title: Limit - name: offset in: query required: false schema: type: integer default: 0 title: Offset - name: X-API-Key in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Api-Key - name: X-Docflow-Gateway-Secret in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Docflow-Gateway-Secret responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Search /v2/search/documents/{document_id}: get: summary: Get Indexed Document V2 description: Retrieve a specific indexed document. operationId: get_indexed_document_v2_v2_search_documents__document_id__get parameters: - name: document_id in: path required: true schema: type: string title: Document Id - name: X-API-Key in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Api-Key - name: X-Docflow-Gateway-Secret in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Docflow-Gateway-Secret responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Search delete: summary: Delete Indexed Document V2 description: Delete an indexed document. operationId: delete_indexed_document_v2_v2_search_documents__document_id__delete parameters: - name: document_id in: path required: true schema: type: string title: Document Id - name: X-API-Key in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Api-Key - name: X-Docflow-Gateway-Secret in: header required: false schema: anyOf: - type: string - type: 'null' title: X-Docflow-Gateway-Secret responses: '200': description: Successful Response content: application/json: schema: {} '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' tags: - Search components: schemas: ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError securitySchemes: ApiKeyAuth: type: apiKey in: header name: X-API-Key