Manage your API key, track usage, and read integration docs.
| Time | Status | Error |
|---|---|---|
Pass your API key as a Bearer token in every request.
Authorization: Bearer rocr_your_api_key_here
Send a receipt image URL. The API returns structured JSON with all fields it can read from the image.
curl -X POST https://your-api.com/extract \ -H "Authorization: Bearer rocr_your_api_key" \ -H "Content-Type: application/json" \ -d '{"image_url": "https://example.com/receipt.jpg"}'
import requests response = requests.post( "https://your-api.com/extract", headers={"Authorization": "Bearer rocr_your_api_key"}, json={"image_url": "https://example.com/receipt.jpg"} ) data = response.json() print(data["merchant"], data["total"])
const res = await fetch("https://your-api.com/extract", { method: "POST", headers: { "Authorization": "Bearer rocr_your_api_key", "Content-Type": "application/json" }, body: JSON.stringify({ image_url: "https://example.com/receipt.jpg" }) }) const data = await res.json()
| Field | Type | Description |
|---|---|---|
| date | string | null | Transaction date in YYYY-MM-DD format |
| merchant | string | null | Business name from the receipt |
| total | float | null | Final total charged |
| tax | float | null | Tax amount if shown on receipt |
| items | array | Line items — each has name (string) and price (float) |
| confidence | "high" | "medium" | "low" | Model's confidence in the extraction quality |
| Status | Meaning |
|---|---|
| 401 | Missing or invalid API key |
| 422 | Could not parse receipt — try a clearer image |
| 429 | Monthly call limit reached — upgrade your plan |
| 500 | Extraction failed — contact support |