One API, the same as the app
The portal's own screens use the public API. Upload a file, get the fields, the verdict and the reasons back as JSON.
Three calls
1. Upload
curl -X POST "https://saffronscroll.com/v1/documents?wait=true" \
-H "Authorization: Bearer ocr_YOUR_KEY" \
-H "Idempotency-Key: purchase-2041" \
-F "[email protected]"2. Fetch the result
curl "https://saffronscroll.com/v1/documents/DOCUMENT_ID" \
-H "Authorization: Bearer ocr_YOUR_KEY"3. Webhook
POST https://your-server.example/hooks/invoices
X-Ocr-Signature: sha256=<HMAC-SHA256 of the body, with your secret>
{"event": "document.completed", "document": { ...same as the fetch above... }}- Make API keys in the app, once your email address is confirmed. A key is shown in full only once.
- Send an
Idempotency-Keyheader to make a retry safe. The same file sent again by the same account returns the earlier document and is not charged. - Pages are charged per page read. A failed read is not charged.
- The price is the same as in the app.
New accounts get 100 pages free, valid for 30 days.
Pages from ₹0.50 each, GST extra (18%).
Unused pages expire after the validity shown. No subscription, nothing renews by itself. A failed read and a file you send twice are not charged.