A queue rule's results
const url = 'https://example.com/v1/projects/example/queue-rules/example/results';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/projects/example/queue-rules/example/results \ --header 'Authorization: Bearer <token>'By the rule’s version and the agent’s: the runs it queued (open, corrected, dismissed, erased), the ones its maxOpen skipped, and the live corrections on them, with their group-weighted yes share and a count by group. Never pooled with another rule’s, or across a rule’s versions: each is a sample of its own when. Needs read on the project.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ProjectId — opaque branded string.
Query Parameters
Section titled “Query Parameters”Only runs queued from this time on.
Responses
Section titled “Responses”The results.
object
By the rule’s version and the agent’s, newest rule version first: two versions of a rule are two sampling designs, never pooled.
One rule version’s runs of one agent version. added = open + corrected + dismissed + erased.
object
null: a flow run, or one from before versions were recorded.
Runs the rule matched and sampled but didn’t queue, because maxOpen were waiting, even when another rule queued them. Non-zero: the queued runs lean toward quiet times. added + skippedByCap = every run the rule matched and sampled.
Live corrections on the queued runs: each is one person’s verdict on one item of a run’s output.
The queued runs with at least one live correction: the runs corrections and yesShare come from, whatever their item’s state now (still open, closed as corrected, or dismissed after someone corrected it). Several people correcting one run make several corrections but one run here. Absent from a runtime that doesn’t count them.
The yes share of those corrections, each weighted by its group (no group: 1). null with none.
The same corrections by group, unweighted.
object
null: unclassified.
Examplegenerated
{ "ruleId": "example", "since": "2026-04-15T12:00:00Z", "groups": [ { "ruleVersion": 1, "agentVersion": "example", "added": 1, "open": 1, "corrected": 1, "dismissed": 1, "erased": 1, "skippedByCap": 1, "corrections": 1, "runsWithCorrections": 1, "yesShare": 1, "byGroup": [ { "correctorGroupId": "example", "corrections": 1, "yes": 1 } ] } ]}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No such rule (queue-rule-not-found).
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The database was too busy to answer in time (database-busy); Retry-After (whole seconds) says when to try again.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}See also
GET /v1/projects/{projectId}: Fetch a project by idPATCH /v1/projects/{projectId}: Partially update a projectDELETE /v1/projects/{projectId}: Delete a project (idempotent)GET /v1/projects/{projectId}/queue-rules: List a project's queue rules- Error code
database-busy - Error code
queue-rule-not-found - Every error code