Upload one or more documents together with a target JSON schema. A project is created automatically and the full pipeline (text extraction → agent generation → mapping → extraction) runs in the background. Poll GET /projects/{project_id}/status/ until pipeline_running is false and schema_status is success, then fetch results from GET /projects/{project_id}/results/schema/.
ApiKeyAuth — apiKey — in X-API-Key header. API key with pw_live_ prefix.
Python example
importosimportrequestsAPI_KEY=os.environ["PARSEWISE_API_KEY"]BASE_URL="https://api.parsewise.ai/api/v1"# Send files as multipart/form-data; repeat the "files" field per file.
withopen("example.pdf","rb")asf:files={"files":f}resp=requests.post(f"{BASE_URL}/extract/",headers={"X-API-Key":API_KEY},files=files,)resp.raise_for_status()print(resp.json()ifresp.contentelseNone)
Definitions
V1ExtractRequestRequest
Name
Required
Type
Description
files
Yes
array<string (binary)>
One or more document files to process.
schema
Yes
any
A valid JSON Schema (Draft 2020-12) describing the desired output shape.
project_name
No
string
Optional name for the created project. Defaults to “API Extraction”.