Zum Hauptinhalt springen

Quick Start

Upload a document and retrieve structured data in under two minutes.


01 — Upload a document

Send your file as multipart/form-data. Supported formats: PDF, Word, Excel, images, and emails.

curl -X POST https://api.feld.ai/api/v1/documents \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@invoice.pdf" \
-F 'metadata={"vendor": "Acme Corp"}'

Response201 Created

{
"type": "document",
"id": "d7a8f3e1-4b2c-4e5a-9f1d-6c8b3a2e7d4f",
"name": "invoice.pdf",
"status": "pending",
"page_count": null,
"created_at": "2025-01-15T10:30:00Z"
}

Save the id — you'll need it for the next steps.


02 — Wait for processing

The document moves through pendingprocessingcompleted. Poll the status endpoint until it's ready.

curl https://api.feld.ai/api/v1/documents/{document_id} \
-H "Authorization: Bearer YOUR_API_KEY"
tipp

Most documents are processed within 10–30 seconds.


03 — Extract structured data

Once the document is completed, trigger an extraction job with your schema:

curl -X POST https://api.feld.ai/api/v1/extractions/jobs \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"document_id": "{document_id}",
"schema_id": "{schema_id}"
}'

04 — Retrieve results

Poll the job until status is completed, then read the extracted fields:

curl https://api.feld.ai/api/v1/extractions/jobs/{job_id} \
-H "Authorization: Bearer YOUR_API_KEY"

Next steps