Skip to main content
POST
Start a financial spreading run for a lead. Omni classifies and extracts the lead’s PDF financial documents (tax returns, income statements, balance sheets), consolidates them onto a standardized multi-period template, and produces a report and an Excel workbook. The run happens in the background and takes a few minutes; this endpoint returns immediately with the new run’s id. Track it with Get Spread or the spread webhooks.

Authentication

Requires the x-api-key header with a valid workspace API key.

Request Body

string
required
The lead whose documents to spread.
string[]
Spread only these documents, a subset of the lead’s documents. Every id must resolve to a document on the lead. Omit to spread all of the lead’s PDF documents.

Response

boolean
Whether the request succeeded.
object
The created run, in the same shape as Get Spread. status is always IN_PROGRESS, and artifacts is empty until the run completes.

Errors

error
No leadId; a documentIds value doesn’t resolve to a document on the lead; or the resolved documents contain no PDFs.
error
The leadId isn’t a lead in your workspace.
error
The lead already has a spread IN_PROGRESS. Wait for it to reach COMPLETE or FAILED before starting another.