Documentation
Pagentic exposes one customer-facing API surface (/v1/*) and a self-serve portal for managing keys, users, and viewing usage.
Quick start
- Get an API key from your operator (or mint your own from the portal).
- POST a PDF to
/v1/extractionswithagent=<agent_id>@<version>. - Either set
webhook_urlfor an HMAC-signed callback, or pollGET /v1/extractions/{id}. - Fetch the structured envelope from
GET /v1/extractions/{id}/resultwhen status issucceeded.
# Submit
curl -H "Authorization: Bearer pa_test_..." \
-F "agent=ltl_freight_invoice" \
-F "document=@invoice.pdf" \
-F "webhook_url=https://my-app/hook" \
https://api/v1/extractions
# Poll
curl -H "Authorization: Bearer pa_test_..." \
https://api/v1/extractions/ext_...
# Fetch result
curl -H "Authorization: Bearer pa_test_..." \
https://api/v1/extractions/ext_.../resultReference
Full reference and architecture diagrams ship in the project's /Docsfolder. We'll publish the rendered version here soon.