Changelog
What changed in the Platform API, the SDK (@openlegion/platform) and the CLI (openlegion), newest first.
The first dated version is 2026-12-01. After it, a breaking change makes a new dated version, and old versions keep working for at least 12 months. Before it, names changed without an alias: the renames are at the end of this page.
No entries yet: the list starts with the first dated version.
Pre-GA renames
One vocabulary before the 2026-12-01 freeze. No new version and no aliases: nothing outside OpenLegion calls the API yet.
Routes and methods
| Was | Now |
|---|---|
PUT /workspaces/{id}/limits | POST /workspaces/{id}/limits (updates are POST, so they take an Idempotency-Key) |
PUT /billing/auto_reload | POST /billing/auto_reload |
GET /billing_account | GET /billing/account |
GET /balance/transactions | GET /balance_transactions |
/workspaces/{id}/exports/{exp} | /workspaces/{id}/exports/{export_id} |
DELETE /agents/{id}/memory/{mem} | DELETE /agents/{id}/memory/{memory_item_id} |
POST /dev_sessions/{id}/requests/{request}/response | POST /dev_sessions/{id}/requests/{request_id}/response |
Fields
| Object | Was | Now |
|---|---|---|
| run | started, ended | started_at, ended_at |
| run | status: "succeeded" | status: "completed" (as run.completed says it) |
| run | trigger ∈ message, schedule, inbound_event, resume, api (anything else read api) | adds handoff (another agent's hand-off), follow_up (the agent's own follow-up) and other; api is only POST /agents/{id}/runs |
| billing preview line | first_run.trigger ∈ schedule, events, chat, manual, child, plate, other; first_run.plate[] {probe, task} | the run's own trigger words; first_run.follow_up[] {task} |
| billing preview line | runs_by_trigger keyed by the old words | keyed by the run's trigger words |
| billing preview | as_of | computed_at |
| billing preview objects | bill_preview, bill_preview_line | billing_preview, billing_preview_line |
| billing account | organisations | organization_count |
| statement event | organisation, account_organisations | organization, account_organization_count |
| auto-reload | last_reload.updated | last_reload.updated_at |
| connector | previous_secret_expires (rotate) | previous_secret_expires_at |
| connector | rotate body expires_in_hours (0–72, default 24) | expires_in_seconds (0–259 200, default 86 400), as a webhook endpoint's |
| connector tool | state | status |
| connector call | — | id and refusal_code described (no rename) |
| webhook endpoint | previous_secret_expires, last_success, last_failure | previous_secret_expires_at, last_success_at, last_failure_at |
| dev session | last_seen | last_seen_at |
| export | bytes, url_expires, expires | size_bytes, url_expires_at, expires_at |
| erased workspace | erased | erased_at |
| vault item, task | updated | updated_at |
| task | state (and GET /tasks?state=) | status (and ?status=) |
| artifact | review_state | review_status |
| action | intent_hash | action_hash (also in POST /approvals/{id}/decide) |
| action | policy.decision ∈ allow, hold, deny | allowed, held, denied |
| action receipt | {result_summary, external_ref, cost_micro, completed} | {result_summary, reference, cost_micro, completed_at}: reference is the effect's own reference (external_ref is always your customer) |
| inbound event | woke | removed: run (null when none) and reason already say it |
| agent | status: "hibernated" | active (an idle agent is active) |
| agent | paused.reason: "owner" | "manual" |
| agent | template: {slug, version} | template (the workspace's, slug or slug@N) and template_version |
| template version | tpl_… | tplv_… (a template's own id is its slug) |
| template spec | schedules[].instruction | schedules[].instructions (a version stored before reads the new name) |
| template spec | customizable.schedules.min_interval_minutes (15–10 080) | min_interval_seconds (900–604 800), as every other duration; a version stored before reads it × 60 |
Event types and event objects
| Was | Now |
|---|---|
agent.note | agent.attention_needed |
usage.threshold | usage.threshold_reached |
usage_alert.cap_credits | credit_cap |
credit_balance (available_credits, low_balance_credits, needed_credits, drawn_credits, owed_credits, credit_limit_credits, credit_remaining_credits) | balance (available, low_balance, needed, drawn, owed, credit_limit, credit_remaining) |
topup_reversal.reversed_credits, shortfall_credits | amount, shortfall |
auto_reload.amount_credits, retry_after (a time) | amount, retry_at |
topup.amount_credits | amount |
billing_account.organisations | organization_count |
export.ready's bytes, expires | size_bytes, expires_at |
The money events' objects are now typed in the OpenAPI document (UsageAlert, BalanceNotice,
TopupNotice, TopupReversal, AutoReloadNotice, BillingAccountNotice) and in the SDK's
EventObjects.
Errors
| Was | Now |
|---|---|
type: "not_found" | not_found_error |
type: "conflict" | conflict_error |
refusal/intent_hash_mismatch | refusal/action_changed |
409 vault_item_limit (a conflict) | 409 vault_item_limit_reached, a refusal with an end-user message |
403 role_insufficient | 403 insufficient_role |
Headers
No rename. Request-Id, RateLimit-*, Retry-After, Idempotent-Replayed and OpenLegion-Run are
now documented once in the OpenAPI document and named on every response that carries them.
SDK (@openlegion/platform)
| Was | Now |
|---|---|
.get(…) on 15 resources | .retrieve(…) |
workspaces.limits.put, billing.autoReload.put | .update (a POST: retried on a 5xx with its key) |
ol.billingAccount.get() | ol.billing.account.retrieve() |
ol.balance.transactions.list() | ol.balanceTransactions.list() |
defineAgent, Agent, AgentDefinition | defineTemplate, Template, TemplateDefinition |
createHandler({ agent }) | createHandler({ template }) |
kit route POST {basePath}/agent, object: "agent_definition" | POST {basePath}/template, object: "template_definition" |
agentDefinition(), AgentDefinitionObject (root exports) | no longer exported; TemplateDefinitionObject is the wire type |
the kit's own 404 code not_found | resource_missing, as the API's |
CLI (openlegion)
ol initwritesopenlegion/template.ts(wasopenlegion/agent.ts), exportingtemplate.ol devandol templates pushread the app'sPOST {basePath}/template;--filetakes atemplate_definition. The errorapp_has_no_agentisapp_has_no_template.