Generate reports
Start the combined inference that produces the application's report PDFs, once every task is complete.
POST/partner/v1/applications/:id/generate-reports
Try it in the playgroundPOST /partner/v1/applications/:id/generate-reports
No request body.
Every task must be complete first. The PDFs are not ready when this returns either: they land
later, when the pipeline finishes, and arrive with the
case.completed callback.
curl -X POST "$BASE/applications/LOAN-2026-0007/generate-reports" -H "api-key: $KEY"Response 200 OK
{
"ok": true,
"workflows": { "combined_workflow_id": "WF0C31524B69..." },
"reports": ["pd_quality", "business_pd", "risk_report"],
"message": "Report generation started. The PDFs appear under Reports when the executor finishes."
}Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No application with that reference. |
| 409 | case_not_ready | Reports were requested before every task was complete. The response carries pending_tasks, so you can see what is outstanding. |
| 409 | case_rejected | The application was rejected. |
| 502 | report_generation_failed | The pipeline did not accept the run. The message carries its error. |
Unlike the editing endpoints this refuses a rejected application only. Running it again on a completed one to re-send the callback is intentional and supported, which is the usual fix when a callback was lost at your end.