Quickstart
Get your first extraction result in under five minutes.
Requirements
curlor any HTTP client- A freight PDF (invoice, CMR, POD, etc.) — max 50 MB
- No credit card — 15 free page credits per month after email verification
1. Register and get your API key
Create an account at https://cyber.lerepop.lv/register, then verify your email. Your full API key is shown once on the dashboard after verification.
- Sign up with email, password, and company name
- Open the verification link from your email (dev: check
storage/logs/laravel.logwhenMAIL_MAILER=log) - Copy your API key and webhook secret from the dashboard
Programmatic self-service registration via POST /api/v1/register is disabled by default.
2. Extract data from a PDF
curl -X POST https://cyber.lerepop.lv/api/v1/extract \
-H "Authorization: Bearer ext_live_YOUR_KEY" \
-F "file=@/path/to/invoice.pdf" \
-F "document_type=invoice"
Use Authorization: Bearer — not X-Api-Key.
3. Read the response
{
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"document_type": "invoice",
"cached": false,
"processing_time_ms": 1840,
"credit_charged": true,
"fields": {
"invoice_number": {
"value": "INV-2026-0042",
"confidence": 0.97,
"source": "rule"
},
"total_amount": {
"value": "1240.00",
"confidence": 0.95,
"source": "structured"
}
}
}
4. Check your balance
curl https://cyber.lerepop.lv/api/v1/account/balance \
-H "Authorization: Bearer ext_live_YOUR_KEY"
Or open Dashboard → Billing to buy credit packs with Stripe.
Next steps
- Choose the right document_type
- Enable async mode for large batches
- Buy more credits via Stripe Checkout
- Full OpenAPI reference