Run an extractor on a collection, document, or uploaded files (synchronous)
Executes the specified extractor synchronously and returns results with a 200 OK response.
Exactly one of the following must be provided:
- collection_id — run on all documents in a collection
- document_id — run on a single document in a collection
- files — one or more files uploaded directly in the request body (multipart/form-data) without adding them to a collection
This endpoint blocks and waits for the extraction to complete, then returns the results.
This endpoint is primarily intended for short-running extractions where immediate results are desired.
For very long running extractions use the async endpoint /extractors/{extractor_id}/job instead.
Request
- Base URLhttps://h2ogpte.genai.h2o.ai/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ID of the extractor to run
Query parameters
ID of the collection to run the extractor on. Exactly one of collection_id or document_id must be provided.
ID of the single document to run the extractor on. Exactly one of collection_id or document_id must be provided.
Timeout in seconds
Request body multipart/form-data
Response
Extraction completed successfully. Returns an array of extraction results, one for each document processed.
Changes
No recorded changes to this operation across all 1 revision of this API.