Scorecards via API
Use the Lendflow API to list and inspect scorecards, run scorecards or scorecard groups against an application, and retrieve selected run results.Before you begin
Your integration needs:- An integration token with access to the application and scorecard endpoints.
- The application ID for the deal.
- The stage ID of the Scorecards stage in that application’s workflow.
- The scorecard or scorecard-group IDs when you want to run specific templates.
API flow
1. Find a scorecard
Use List Scorecards to retrieve scorecards available to your integration. The operation supports filters such as status, workflow stage, and application ID. Use Get Scorecard when you need one scorecard’s configuration. Setinclude_results when you need that scorecard’s run results in the response.
2. Run scorecards
Use the applicable endpoint: Include the Scorecardsstage_id in the request. Include score_card_ids or score_card_group_ids to run specific templates. If you omit the corresponding ID list, Lendflow runs all eligible scorecards or groups available on that stage. A successful run request returns data.started: true; results are retrieved separately.
Running a scorecard evaluates information already available on the application. It does not run Data Orchestration or request new provider data.
3. Retrieve results
Use the applicable operation after the run completes: These operations do not retrieve every result by application ID. For an individual scorecard, send itsscoreCard_id in the path and the applicable run IDs in the result_ids request field. For a scorecard group, send its scoreCardGroup_id and the group run IDs in result_ids. Each request accepts between 1 and 5,000 result IDs.
Use List Scorecards with application_id, or Get Scorecard with include_results, to inspect available scorecard runs and collect the IDs you need. A scorecard-group completion webhook can provide the corresponding group run context. The multi-results responses return only the requested runs.
4. Handle externally calculated points
The current public OpenAPI specification does not expose an operation for manually submitting points to a Submit Score template. Do not build a new integration against the previously documented manual-points operation. Contact your Lendflow representative to confirm the supported workflow for your organization.Webhook notifications
Configure Custom Workflow Webhooks to receive completion notifications:
Use the applicable multi-results operation with the template or group ID and the result IDs after receiving the completion event.
FAQ
What is the stage_id?
What is the stage_id?
The
stage_id is the ID of the Scorecards stage in the workflow assigned to the application. It is not the scorecard template ID.How do I run every available scorecard?
How do I run every available scorecard?
Include the application’s Scorecards
stage_id and omit score_card_ids. For groups, omit score_card_group_ids.Can I create or edit scorecard templates through the public API?
Can I create or edit scorecard templates through the public API?
No. Create and manage scorecards and scorecard groups in Builders > Scorecards. The current public API supports listing and getting scorecards, running scorecards or groups, and retrieving selected results.
Can I submit manual points through the public API?
Can I submit manual points through the public API?
The current public OpenAPI specification does not expose a manual-points operation. Contact your Lendflow representative before designing a Submit Score integration.
Can I create a Backtest Report through the public API?
Can I create a Backtest Report through the public API?
No. Create Backtest Reports in Builders > Scorecards > Backtest Reports or start one from the Deals page.
Next steps
Run Scorecards on a Deal
See how dashboard users run scorecards and review results.
Configure Custom Workflow Webhooks
Receive scorecard and scorecard-group completion notifications.