List key results
Code Mode: praxis.workforce.keyResults.list
HTTP: GET /workforce/v1/key_results
Lists key results, oldest first, each with its metric, health, done flag and, once its objective is graded, its score; use it to read the key results of one objective or the ones a position owns. Filters combine with AND. Pass next_page unchanged as page; null means the end. Read-only. Errors: 400 INVALID_PARAMS for an unknown query parameter, a limit outside 1 to 100 or a stale cursor; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /workforce/v1/key_results?objective_id=obj_3b7a52c1e9d84f06b2a1c8e4d7f50a96.
Signature
praxis.workforce.keyResults.list(args?:{query?:{limit?:number;page?:string;objective_id?:string;owner_position_id?:string}}):Promise<{/** Key results on this page. */ data:Array<{/** Key result id (kr_...); use it in key_result_scores. */ id:string;/** Id of the organization that owns the key result. */ organization_id:string;/** Id of the objective (obj_...) the key result belongs to. */ objective_id:string;/** Key result title, 1 to 200 characters. */ title:string;/** Id of the position (pos_...) that owns the key result; whoever holds it moves its progress. */ owner_position_id:string;/** Whether the key result is a firm commitment or a stretch. */ commitment:"committed"|"aspirational";/** The numbers the key result is measured by, or null for a binary key result whose progress is done. */ metric:{/** Value when the key result started; progress counts from here. e.g. 6 */ initial:number;/** Latest value; update it to move progress. e.g. 6 */ current:number;/** Value that means the key result is reached; it differs from initial and may be lower than it when the number should fall. e.g. 2 */ target:number;/** Unit of the three values. e.g. "none" */ unit:"none"|"percent"|"currency_micro_usd"|"count"|"seconds"}|null;/** Whether a binary key result is complete; it only counts when metric is null. */ done:boolean;/** The owner's latest read on whether the key result will land. */ health:"on_track"|"at_risk"|"off_track";/** Score from 0 to 1 recorded when the objective was graded; null until then or when grading left it out. */ score:number|null;/** UTC instant (RFC 3339) when the key result was set. */ create_time:string;/** UTC instant (RFC 3339) of the latest change to the key result. */ update_time:string}>;/** Whether another page is available after this one. */ has_more:boolean;/** Cursor to pass as page to read the next page; null when no more items remain. */ next_page:string|null}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| limit | query | number | no | Maximum items per page, from 1 to 100; defaults to 20. |
| page | query | string | no | Opaque next_page cursor returned by the previous response; omit for the first page. |
| objective_id | query | string | no | Only key results of this objective (obj_…), from the objectives list. |
| owner_position_id | query | string | no | Only key results owned by this position (pos_…); use it to see what a seat is accountable for. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | One page of key results. |
| 400 | application/problem+json | INVALID_PARAMS; an unknown query parameter, a limit outside 1 to 100 or a stale page cursor. The message lists the accepted parameters. |
| 401 | Missing or invalid credential; provide a valid organization API key or sign in to the Console. | |
| 403 | application/problem+json | PERMISSION_DENIED; an agent’s session token reads its own organization, but a run or computer token, or a session token that names no agent, is refused; call with an organization API key, a Console session, or the agent’s own session token. |