Skip to main content
The Pathway API can manage the full underwriting workspace. Create Books, upload documents, run parses, read and edit extracted data, calculate analytics, apply screening rules, match funders, generate exports, and connect deal data to the rest of your system. Pathway’s web app uses this API. The built-in chat agent also uses it to work across Books, documents, analytics, funders, screening settings, intake email, and organization data. The web app authenticates with a signed-in user session. Your application or agent authenticates with a Personal Access Token and receives the same organization-scoped access allowed by that user and token.
Copy into your AI agent

What the API covers

The live OpenAPI explorer contains every route and generated request schema. This guide explains the main objects and gives you complete working paths through the product.

Base URL

All API requests begin with:
Keep the final /api. Endpoint paths in this reference begin with /, so the authentication check resolves to:

Create an API key

Create a Personal Access Token in Settings → Account → API Access Tokens. Tokens begin with pat_ and are shown once. Use a read-write token for uploads, parsing, edits, and other mutations. A read-only token can safely power an agent, reporting job, or data warehouse sync.
The UI calls this an API Access Token. The credential is a Personal Access Token, or PAT. It is the API key used in every example here.

Make your first request

Call GET /auth/me before doing any work. It returns the user and organization attached to the token, confirming the host, final /api, authorization header, and organization scope in one request.
Response

Get one deal through the API

POST /submit-book is the shortest path from files to a parsed Book. It creates the Book, uploads every file in the multipart request, and starts parsing. This Python example waits for completion and reads the simple account-first bank statement result.
Use Documents and parsing when your application needs to control Book creation, file uploads, and parsing separately. The complete parse and retrieve cookbook includes Python and webhook flows.

Understand the result

There are four useful views of a parsed bank-statement Book. They serve different jobs. The Books reference defines the complete Book and canonical raw MCA models. The Analytics reference defines the full computed response, including its nested transaction, position, and screening models.

Main references

Submit a Book

Upload a complete deal package and start parsing in one request.

Documents and parsing

Create a Book, upload documents, and control parsing as separate calls.

Books

Read status, provenance, raw parser output, and the canonical bank result.

Analytics

Read computed bank metrics, transactions, debt positions, and screening results.

Exports

Download CSV, choose an Excel template, or fetch an embeddable spreadsheet URL.

Embed

Render one read-only Book inside your application.

Request conventions

  • Send the PAT in Authorization: Bearer <token>.
  • Send JSON for normal request bodies and multipart form data for file uploads.
  • Dates are ISO strings. Parser dates use YYYY-MM-DD. Timestamps include a timezone.
  • Currency values are JSON numbers in dollars.
  • JSON endpoints return the response body directly, without an outer data envelope.
  • Error responses use {"detail": "..."}. Validation failures return a structured list in detail.
PAT traffic is limited to 30 requests per minute per token. A rate-limited request returns 429. Parsing runs asynchronously, so submission and parse-start requests return before the work is complete.