


Credora API
Use a shared CrossGL API key to send a PDF to Credora and receive structured findings, scores, extracted fields, and an annotated PDF.
Create a key in the CrossGL dashboard and send it in the x-api-key header from your server.
Send one primary PDF and optionally compare it against up to five reference PDFs.
Original uploads and generated annotated PDFs are processed for the request and not retained after it completes.
POST /v1/analyze
Include file as a PDF. The optionalreference_files field may be repeated up to five times. Each file can be up to 20 MB and 100 pages.
curl --request POST "https://credora-api-602985659697.us-central1.run.app/v1/analyze" \
--header "x-api-key: $CROSSGL_API_KEY" \
--header "Idempotency-Key: $(uuidgen)" \
--form "file=@invoice.pdf" \
--form "reference_files=@reference.pdf"Credora returns structured analysis data, review findings, and an annotated PDF data URL. Store only the fields your workflow needs.
{
"documentId": "doc_...",
"documentType": "Invoice",
"confidenceScore": 88,
"riskLevel": "Low",
"extractedFields": [{ "label": "Invoice Number", "value": "..." }],
"issues": [],
"billing": { "status": "included", "creditsIncluded": 1 },
"annotatedPdf": "data:application/pdf;base64,..."
}One review credit covers up to 10 pages. Free accounts receive five credits each calendar month; larger documents use one credit per 10-page block. Send a unique Idempotency-Key for each logical upload and reuse it only when retrying that same request, so a network retry does not create another charge.