Overview
Two patterns: webhook (Pathway calls you when done) or polling (you check status yourself). Both start with the same submit call.1. Submit documents
POST /submit-book accepts multipart form data. Pass one or more PDFs. Pathway auto-classifies each file as bank statement, credit report, tax form, or loan application.
2a. Wait with a webhook
Addwebhook_url to your submission. Pathway sends a POST to that URL when parsing finishes.
status is one of completed, failed, cancelled.
Example receiver (FastAPI):
2b. Wait with polling
PollGET /books/:id every few seconds until parse_status is terminal.
parse_status_message tells you what Pathway parsed, e.g. Processed 3 bank_statements or Processed 1 credit_report, 2 bank_statements. Good for confirming file classification.
3. Fetch results
Onceparse_status is completed, call /analytics for bank statement data.
book_meta:
/tax-analytics: