List a trail's plan revisions
Every approved revision of the trail's plan, newest first: the plan as it was approved, who approved it and when, and what changed since the revision…
Every approved revision of the trail's plan, newest first: the plan as it was approved, who approved it and when, and what changed since the revision before. A plan is revised by a replan run, which re-reads the goal metric, the items' outcomes and project memory and drafts the next revision; each approval adds one. The current plan, drafted or approved, is on trails get.
Safe for the restricted ops key.
Before replanning, a coding agent reads how the plan changed so far so the next revision does not undo a decision already made.
Authorization
bearerSdkKey Pass an admin SDK key as Authorization: Bearer sdk_admin_…. Mint via POST /api/admin/keys with type: "admin".
In: header
Path Parameters
The trail's handle (T-12) or its id.
^(?:T-[0-9]+|[0-9a-fA-F-]{32,36})$1 <= length <= 64Header Parameters
Project the request operates on. Optional — defaults to the project the SDK key belongs to; pass it only to scope a multi-project key (the generated client sets it once from its configuration, so per-call callers never thread it).
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://shipeasy.ai/api/admin/trails/string/plan/revisions"{
"data": [
{
"revision": 2,
"plan": "## Approach\nKeep the retry queue; add a dead-letter view for the deliveries that still fail",
"approvedBy": "alice@acme.dev",
"approvedAt": "2026-11-10T15:20:00.000Z",
"summary": "Success rate stalled at 98.9 %; the remaining failures are permanent 4xx, so they go to a dead-letter view instead of retrying"
},
{
"revision": 1,
"plan": "## Approach\nAdd the retry queue behind `checkout.v2` and read it in the checkout handler",
"approvedBy": "alice@acme.dev",
"approvedAt": "2026-11-03T09:40:00.000Z",
"summary": null
}
]
}{
"error": "Missing or invalid admin SDK key.",
"code": "UNAUTHORIZED"
}{
"error": "Key is valid but not allowed to act on this project.",
"code": "FORBIDDEN"
}{
"error": "The resource does not exist or is not visible to the caller.",
"code": "NOT_FOUND"
}Approve a trail's plan
Sign off the drafted plan. Approving creates the breakdown's milestones and files its items on the trail with source plan, in one batch (itemsFiled counts…
Read a trail's timeline
Everything that happened on the trail, newest first: created, plans approved, questions asked and answered (on the trail and on its items), runs, items…