Skip to main content
POST
Portfolio Report
Generate a PDF or HTML portfolio report from the output of the /v1/portfolio/analyze endpoint.

How It Works

This endpoint uses async job processing:
  1. Run Analysis First: POST your portfolio to /v1/portfolio/analyze and wait for completion
  2. Submit Report Request: POST the analysis result to /v1/portfolioreport
  3. Receive Job ID: Get a job ID and polling URL immediately
  4. Poll for Status: Check /v1/jobs/{job_id} until status is completed
  5. Get Report URLs: The completed job contains download URLs for the generated report
Report generation typically takes 30-60 seconds. Report URLs expire after 24 hours.

Request Body

The portfolio_data field must contain the full analysis result object — the result field from a completed /v1/portfolio/analyze job.

Response (202 Accepted)

Completed Response

When the job completes, GET /v1/jobs/{job_id} returns:

Result Fields

Report Contents

The generated report includes:

Example: Full Workflow

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request model for portfolio report generation

portfolio_data
Portfolio Data · object
required

Portfolio analysis result from /analyzer endpoint

format
string
default:pdf

Output format: pdf, html, or both

Response

Job created successfully

Last modified on April 1, 2026