Skip to content
中文

List environment checkpoints

Code Mode: praxis.devops.environments.checkpoints.list

HTTP: GET /devops/v1/environments/{id}/checkpoints

List where each target of an environment currently stands: the release and commit deployed to it, the promotion that put it there, and how far behind the default branch that commit is. Read it to answer “what is running in production right now” and to tell a promotion that will change something apart from one that will skip every target as unchanged. behindMain counts commits on the default branch that the deployed commit does not have, so zero means the environment carries the current branch head. Targets that were never deployed to have no checkpoints until something deploys to them.

Signature

praxis.devops.environments.checkpoints.list(args:{path:{/** e.g. "dve_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string}}):Promise<{/** The environment's checkpoints, in the order their targets were listed; a target that was never deployed to is simply absent. */ items:Array<{/** The environment this checkpoint belongs to, from the project's environment list. e.g. "dve_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ environment:string;/** The target this checkpoint records, from the project's target list. e.g. "tgt_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ target:string;/** The workspace path of that target, as praxis.yaml lists it; a build machine joins a checkpoint to the target it just built by this path. e.g. "services/devops" */ path?:string;/** The release currently deployed to that target in that environment. e.g. "rls_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ release:string;/** The commit that release deployed, which is what behindMain counts from. e.g. "4f2a9c1d8e7b6a5c4d3e2f1a0b9c8d7e6f5a4b3c" */ commit:string;/** The promotion that put this release there, so a checkpoint can be traced back to the act that wrote it. e.g. "prm_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ promotion:string;/** RFC 3339 UTC time the checkpoint was written, which is when that promotion finished deploying this target. e.g. "2026-11-03T09:30:00Z" */ time:string;/** RFC 3339 UTC time this target began running that release, when it differs from time — a redeploy of the same release moves time but not since. e.g. "2026-11-03T09:12:00Z" */ since?:string;/** How many commits on the default branch the deployed commit does not have; zero means the environment carries the branch head. e.g. 3 */ behindMain:number;/** How long this release has been running in this environment, in seconds, which is what a soak requirement is judged against. e.g. 5400 */ soakSeconds?:number;/** Sha256 of the artifact this environment runs for this target — the Worker bundle, the rendered deployment configuration and the static assets, hashed together ( e.g. "4f2a9c1d8e7b6a5c4d3e2f1a0b9c8d7e6f5a4b3c9d8e7f6a5b4c3d2e1f0a9b8c" */ artifactDigest?:string}>}>;

Parameters

NameInTypeRequiredDescription
idpathstringyesThe environment identifier from a project’s environment list; the tier or the display name is not an address.

Responses

StatusContent typesDescription
200application/jsonThe environment’s checkpoints, one per target that has been deployed to.
401application/jsonThe API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
403application/jsonThe 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.
404application/jsonENVIRONMENT_NOT_FOUND means no environment with that id exists in this organization, or it belongs to another project; list the project’s environments and use an id from that answer.
500application/jsonINTERNAL 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.