Skip to content
Factum Parse

Factum Parse API

Parse XML and PDF invoices into validated JSON. 100% in-RAM processing with Zero Data Retention: no sensitive data is ever forwarded to AI models.

⚡️ Quickstart — Time-to-first-call < 60s

Section titled “⚡️ Quickstart — Time-to-first-call < 60s”

Send a textual payload (invoice, F24, free text) and get back a structured DocumentEnvelope v2. Authentication: X-API-Key header.

Fastest First Call Raw Text / JSON — test the endpoint in 30 seconds with a text payload. For production PDF/XML/multipart workflows, see Endpoint Reference.

Terminal window
curl -X POST https://api.factum.pyragogy.org/v1/parse \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Invoice no. 2026/001 dated 15/03/2026. Supplier: ACME S.r.l. — Via Roma 1, Milan. VAT IT01234567890. Client: Mario Rossi. Total: € 1,220.00. Taxable: € 1,000.00. VAT 22%: € 220.00.",
"doc_type": "auto"
}'

Enter your X-API-Key and a document excerpt to test the endpoint directly from your browser. The response is displayed with syntax highlighting.

⚠️ Demonstrational execution with rate-limiting. Your key is never stored nor sent to third parties.

Response — ParseResponse with DocumentEnvelope v2

Section titled “Response — ParseResponse with DocumentEnvelope v2”
{
"job_id": "3f2b5e6a-0000-4000-8000-000000000004",
"status": "done",
"document_type": "invoice",
"provider_used": "fast-path",
"prompt_version": "fast-path-v1",
"confidence": 1.0,
"cost_usd": 0.0,
"tokens": 0,
"fallbacks": [],
"content_hash": "a1b2c3d4e5f67890abcdef1234567890abcdef12",
"result": {
"schema_version": "2.0",
"document_type": "invoice",
"meta": {
"confidence": 1.0,
"provider": "fast-path",
"prompt_version": "fast-path-v1"
},
"payload": {
"kind": "invoice",
"cedente_prestatore": {
"Denominazione": "ACME S.r.l.",
"Indirizzo": "Via Roma 1, Milano",
"PartitaIVA": "IT01234567890"
},
"cessionario_committente": {
"Denominazione": "Mario Rossi"
},
"corpi": []
}
},
"error": null
}
Aspect Detail
Auth X-API-Key header on business endpoints; fail-closed
Document type auto detects; explicit fattura, f24, generico available
ZDR Privacy Direct text is stateless; PII mapping is request-scoped RAM
Deterministic FatturaPA XML → 100% deterministic, 0 tokens, 0 cost
LLM fallback PDF/invoice images → PII pseudonymization → LLM extraction

Factum Parse is self-service via Lemon Squeezy. Pay monthly, get the API Key instantly via webhook.

Tier Price / month Rate limit Best for
Starter €29 60 req/min Testing, low volume
Pro €99 300 req/min Production, mid volume
Custom Contact us 1000+ req/min Enterprise, high volume

Payment by card/crypto (Lemon Squeezy). Key activates automatically on order confirmation.

➡️ Buy now — €29/month

Also available on Zyla API Hub for discovery and enterprise invoicing.


For technical support, enterprise contracts and commercial inquiries: