Authenticate
Create a sandbox key in the portal and pass it as a bearer token.
Authorization: Bearer sun_test_••••DEVELOPERS
Clean REST APIs, signed webhooks, predictable errors, and a sandbox that behaves like production.
POST /v1/documents { "file_url": "https://…/invoice.pdf", "document_type": "invoice", "workflow": "ap-review" } 202 Accepted
QUICKSTART
Send a document, receive a completed event, and use the extracted fields or review URL in your workflow.
Create a sandbox key in the portal and pass it as a bearer token.
Authorization: Bearer sun_test_••••Upload a file or provide a signed URL with optional workflow context.
POST /v1/documentsReceive a webhook when extraction and configured decision rules complete.
document.completedA FRIENDLY API
The same endpoint supports invoices, receipts, statements, and custom documents. Add workflow context when you want matching, risk rules, or review.
curl https://api.sunofia.com/v1/documents \
-H "Authorization: Bearer $SUNOFIA_API_KEY" \
-F "file=@invoice.pdf" \
-F "document_type=invoice" \
-F "workflow=ap-review"PLATFORM SURFACES
Submit, retrieve, list, and delete documents and structured outputs.
View reference →Subscribe to processing, review, decision, and export lifecycle events.
Check status →Inspect source documents, correct fields, and resolve exceptions.
Open portal →RELIABLE BY DEFAULT
Idempotency keys, retry-safe webhooks, explicit rate-limit headers, request IDs, and consistent error objects make failure modes predictable.