Docs
Contents: Parsers · Email · REST API · Webhooks · Zapier · Make · n8n · Review and samples · Export
Parsers and fields
A parser is one kind of document (supplier invoices, order confirmations, bank statements). It has a list of
fields. Each field has a name (lowercase, invoice_number), a type (text, number, whole number, yes/no,
date, date and time, email, URL, one of a list, or list of items), an optional description, and "always present"
when the document always has it (otherwise the field may come back null).
Line items: add a field of type "List of items", e.g. line_items, then its columns as fields named
line_items.description, line_items.amount. Lists cannot contain lists.
Every result also has notes: the fields the model was unsure about, with a short reason. A document
with notes is marked needs_review.
Limits from the model's structured-output feature: at most 16 optional fields per parser and 60 fields in total.
Each parser has an address like k3x9p2m7q1ab@in.parser.odelabs.dev (shown on the parser page;
k3x9p2m7q1ab+anything@in.parser.odelabs.dev works too). Forward emails to it, or add it as a forwarding rule in
Gmail or Outlook. Each PDF, image or text attachment becomes one document; an email without attachments is parsed
from its body (1 page). Logos embedded in the email body are ignored.
To accept mail only from some senders, fill in the parser's allowlist (addresses or @domain.com).
REST API
Create a key on the Account page. Scopes: * (everything), or any of
parsers:read, documents:read, documents:write, hooks:write;
parser:<id>:* limits document access to one parser.
# Upload a PDF (JSON + base64), wait for the result (up to 60 s)
curl -X POST "https://parser.odelabs.dev/api/v1/parsers/PARSER_ID/documents?wait=true" \
-H "Authorization: Bearer sk_..." -H "content-type: application/json" \
-d "{\"filename\": \"inv.pdf\", \"data_base64\": \"$(base64 < inv.pdf | tr -d '\n')\"}"
# Or multipart
curl -X POST "https://parser.odelabs.dev/api/v1/parsers/PARSER_ID/documents" -H "Authorization: Bearer sk_..." -F file=@inv.pdf
# Or plain text (an email you already have)
curl -X POST "https://parser.odelabs.dev/api/v1/parsers/PARSER_ID/documents" -H "Authorization: Bearer sk_..." \
-H "content-type: application/json" -d '{"subject": "Order 1042", "text": "Thanks for your order..."}'
# Read it
curl "https://parser.odelabs.dev/api/v1/documents/DOC_ID" -H "Authorization: Bearer sk_..."
Responses: 202 with the document (status queued), or 200 once it is
done or failed (with ?wait=true). Over your monthly pages: 402
{"error": "plan_limit", "upgrade_url": ...}. A document:
{"id": "doc_...", "parser_id": "prs_...", "parser_name": "Invoices", "status": "done", "source": "api",
"filename": "inv.pdf", "pages": 2, "result": {"invoice_number": "INV-1042", ...},
"notes": [{"field": "due_date", "issue": "No due date on the invoice."}], "needs_review": true,
"reviewed": false, "error": null, "created_at": "2026-11-22T10:00:00Z", "completed_at": "2026-11-22T10:00:09Z"}
Other endpoints: GET /api/v1/me, GET /api/v1/parsers,
GET /api/v1/parsers/PARSER_ID/documents?status=done&limit=20.
Webhooks
Subscribe with POST /api/v1/hooks {"target_url": "...", "parser_id": "prs_..." (optional),
"event": "document.parsed" | "document.failed"} (all plans; this is what Zapier and n8n do), or set a
webhook URL on the parser page (Pro and Business). Unsubscribe with DELETE /api/v1/hooks/HOOK_ID.
Answering a delivery with 410 Gone removes an API subscription.
POST your-url
content-type: application/json
x-parser-timestamp: 1763805600
x-parser-signature: v1=<hex HMAC-SHA256(secret, "<timestamp>.<raw body>")>
x-parser-event: document.parsed
{"event": "document.parsed", "document": { ...as above... }}
Verify the signature with the whsec_... secret (returned when you subscribe, shown on the parser
page) and reject timestamps older than 5 minutes. Failed deliveries are retried 4 times over about 8 minutes.
// Node.js
const crypto = require("crypto");
const expected = "v1=" + crypto.createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest("hex");
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signatureHeader));
Zapier
Trigger New Parsed Document (pick a parser, or all) and action Parse Document (a file from an earlier step, or text). Connect with an API key from the Account page.
Make (HTTP module recipe)
- Trigger on new results: add a Webhooks > Custom webhook module and copy its URL.
Then register it once, e.g. with curl:
curl -X POST https://parser.odelabs.dev/api/v1/hooks -H "Authorization: Bearer sk_..." -H "content-type: application/json" \ -d '{"target_url": "https://hook.eu1.make.com/...", "parser_id": "prs_..."}'Run the scenario once and send a document so Make learns the structure. Fields are underdocument.result. - Parse a file from another module: add HTTP > Make a request: URL
https://parser.odelabs.dev/api/v1/parsers/PARSER_ID/documents?wait=true, method POST, headerAuthorization: Bearer sk_..., body type Raw, content type JSON, request content{"filename": "{{1.fileName}}", "data_base64": "{{base64(1.data)}}"}, and tick Parse response. The result is inresult.
n8n
Install the community node n8n-nodes-docparser-llm (Settings > Community nodes). It has a
trigger (webhook, signature-checked) and an action (Parse Document, Get Document).
Review, corrections and samples
Open a document to see its fields; flagged fields are highlighted with the model's reason. Correct them and save: the changed fields are kept as examples (the 20 most recent per parser) and shown to the model for later documents of the same parser.
Samples: upload a document with the output you expect (a JSON object; only the keys you include are compared). "Run checks" parses every sample again (counts pages) and shows which fields differ, so you can change a parser's fields or instructions safely.
Export
On the parser page: CSV with one row per document, or one row per line item (the other fields repeated). UTF-8 with a byte-order mark so Excel shows accents correctly. Google Sheets: use Zapier/Make for now; a direct "append to sheet" is planned.