Verification
Extract and verify supported receipt images.
Upload a receipt screenshot as multipart form data. Image verification uses its own monthly credit balance.
Upload
POST
/verify-image?autoVerify=trueImage access and credits requiredSend one file in the multipart field named
file. An optional CBE account suffix uses the field suffix.bash
curl --request POST "https://verifyapi.leulzenebe.pro/verify-image?autoVerify=true" \
--header "x-api-key: $VERITAS_API_KEY" \
--form "[email protected]" \
--form "suffix=12345678"typescript
import { readFile } from "node:fs/promises";
import { veritas } from "@/lib/veritas";
const image = await readFile("./receipt.jpg");
const form = new FormData();
form.append("file", new Blob([image], { type: "image/jpeg" }), "receipt.jpg");
const result = await veritas<{
success?: boolean;
data?: unknown;
error?: string;
}>("/verify-image?autoVerify=true", {
method: "POST",
body: form,
});Modes
With autoVerify=false, the API returns extracted receipt details. With auto verification enabled, it uses the extracted provider data to perform a provider lookup where supported.
CBE extraction can return a follow-up state when a legacy receipt needs an account suffix. Resubmit with the suffix to complete verification.
Credits
A request consumes one image credit after a file is present. It does not consume a standard verification credit. Missing files are not charged, and certain upstream Mistral failures are refunded.