List a unit's transitions
Code Mode: praxis.devops.units.transitions.list
HTTP: GET /devops/v1/units/{id}/transitions
List the records of what was asked of a unit, oldest first, one record per verb. Each record says the verb, who asked and why, which spec version it was applied to, when it started and finished, and whether it is still pending, succeeded or failed; a failed record carries the sandbox’s own code and words. Use it to see why a unit is in its current phase, or to see that a verb was refused at the sandbox rather than by the platform. Records are only appended, so a page read earlier stays valid.
Signature
praxis.devops.units.transitions.list(args:{path:{/** e.g. "wsu_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string};query?:{/** e.g. 20 */ pageSize?:number;/** e.g. "pt1.eyJvIjoyMH0" */ pageToken?:string}}):Promise<{/** The transition records on this page, ordered by seq ascending. */ items:Array<{/** Position in the unit's record, starting at 1 and rising by one; read the records in this order. e.g. 1 */ seq:number;/** The unit this record belongs to. e.g. "wsu_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ unit:string;/** The verb this record is about. e.g. "create" */ transition:"create"|"start"|"stop"|"delete"|"fetch"|"push"|"wip"|"observe"|"exec";/** What moved the unit: a caller, or something the platform noticed. e.g. "user" */ reason:"user"|"agent"|"idle"|"change_merged"|"change_abandoned"|"retention"|"lost"|"system";/** Who asked, written as human:<user id>, agent:<agent id> or system, so the record reads the way it did when it was written. e.g. "human:usr_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ actor:string;/** The unit spec version this verb was applied to, matching the specVersion on the unit at that time. e.g. 1 */ specVersion:number;/** RFC 3339 UTC time the verb was accepted. e.g. "2026-11-11T10:00:00Z" */ startedAt:string;/** RFC 3339 UTC time the verb finished, or null while it is still pending. e.g. "2026-11-11T10:00:20Z" */ finishedAt:string|null;/** How the verb ended: pending while it is in flight, then succeeded or failed. e.g. "succeeded" */ outcome:"pending"|"succeeded"|"failed";/** Why the verb failed, or null when it did not. */ error:null|{/** The refusal's code, the sandbox's own when it came from there; treat it as text to show, not as a platform error code to branch on. e.g. "instance_creation_failed" */ code:string;/** The refusal's message, the sandbox's own words when it came from there. e.g. "no instance available in the requested region" */ message:string}}>;/** How many records the unit has across every page; returned on the first page only. e.g. 4 */ totalSize?:number;/** Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished. e.g. "pt1.eyJvIjoyMH0" */ nextPageToken:string}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | The unit identifier returned by the unit create answer or a unit list, such as wsu_…; not the id of the change it was opened for. |
| pageSize | query | number | no | How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone. |
| pageToken | query | string | no | The cursor from the previous page’s nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | One page of the unit’s transition records, oldest first. |
| 401 | application/json | The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying. |
| 403 | application/json | The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project’s organization. No cross-organization read is possible. |
| 404 | application/json | UNIT_NOT_FOUND means no unit with that id is visible to this organization — a unit belonging to another organization answers the same way, so its existence is not revealed; list the project’s units and use an id from that answer. |
| 500 | application/json | INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again. |