Ex Extract API

Quickstart

Get your first extraction result in under five minutes.

Requirements

  • curl or 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.

  1. Sign up with email, password, and company name
  2. Open the verification link from your email (dev: check storage/logs/laravel.log when MAIL_MAILER=log)
  3. 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