Extract API documentation
Extract API is a standalone REST service for extracting structured fields from freight PDF documents. Integrate it into your TMS, ERP, or automation pipeline with a single API key — no dashboard required.
Base URL
https://cyber.lerepop.lv/api/v1
Production URL: https://cyber.lerepop.lv/api/v1
What you can build
- Automated invoice processing — extract amounts, VAT, references, parties
- CMR / POD digitisation — populate shipment records from scanned documents
- Customs declaration parsing — HS codes, values, declaration types
- Email-to-data pipelines — combine with async mode + webhooks
Quick links
| Topic | Page |
|---|---|
| First request in 5 minutes | Quickstart |
| API key & Bearer auth | Authentication |
| POST /extract parameters | Extract documents |
| invoice, cmr, pod, … | Document types |
| Queue + polling + webhooks | Async processing |
| Stripe credit packs | Billing & credits |
| GDPR, cache, Mistral/OpenAI | Data & privacy |
| HTTP status codes | Errors & limits |
| OpenAPI / Swagger | API reference |
Architecture at a glance
Client → AuthenticateApiKey → Page-count credit reserve → Cache lookup (per account)
→ PDF pipeline (Poppler local → optional Mistral OCR → optional LLM)
→ JSON response (page_count + credits_charged) · refund on failure
Billing unit: 1 credit = 1 PDF page. Billing docs → · Data-processing & sub-processors →
Support
Technical support: hello@cyber.lerepop.lv . Security issues: security@extract.example.com .