List Package Runs
List matching package runs for your organization, filterable by package config and status, with cursor-based pagination.
List the matching package runs that belong to your organization. Results are cursor-paginated and ordered newest first by default. Each entry is the full run shape, including its aggregated status, per-type document results, and the document ids that were supplied.
You can narrow the list with two filters. Pass package_config_id to return only runs of a specific config, and pass status to return only runs with a given verdict, such as passed or review. Combine both to find, for example, every failing run of one package config.
Pagination follows the same cursor pattern used across the API. The pagination block carries total, limit, has_more, and next_cursor. Pass next_cursor back as the cursor query parameter to page forward. Every run is tenant-scoped to your organization.
/v1/matching/packages/runsResponse
Response fields
Response
{
"data": [
{
"id": "run_b2c3d4e5-f6a7-8901-bcde-f23456789012",
"package_config_id": "pkg_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "passed",
"document_results": [
{
"document_type": "invoice",
"matching_config_id": "mc_uuid_1",
"matching_run_id": "mr_uuid_1",
"presence": "required",
"document_found": true,
"status": "matched",
"confidence": 0.93
}
],
"input_documents": { "invoice": ["doc_uuid_1"] },
"error": null,
"created_at": "2024-09-14T10:40:00.000Z",
"completed_at": "2024-09-14T10:40:03.000Z",
"links": {
"self": "/v1/matching/packages/runs/run_b2c3d4e5-f6a7-8901-bcde-f23456789012",
"config": "/v1/matching/packages/configs/pkg_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}
],
"pagination": {
"total": 12,
"limit": 20,
"has_more": false,
"next_cursor": null
}
}Errors
Error responses