Capabilities
GET /v1/plans/capabilities tells an agent, in one call, everything it needs to build a valid plan.
GET /v1/plans/capabilities is the entry point to plan mode. An agent calls it once per
session, before its first plan, and gets back the full rulebook: which routes a plan may
call, the limits, how one step refers to another, which headers a step may send, and every
plan error with what to do next.
Nothing in it is hand-maintained. The plannable routes are discovered from the routes the plan runner accepts, and the limits and error codes are read from the same constants the runner enforces. If the answer says a route is plannable, the runner accepts it.
- Scope:
plans:preview - Same for every caller in every org. It changes only when Acreum deploys, so cache it for the session.
Request
curl https://api.acreum.io/v1/plans/capabilities \
-H "Authorization: Bearer $ACREUM_API_KEY"Response
Trimmed where marked ….
{
"data": {
"plannable_routes": [
{ "method": "POST", "path": "/v1/contracts", "operation_id": "Contracts.create" },
{ "method": "PATCH", "path": "/v1/contracts/{id}", "operation_id": "Contracts.update" },
{ "method": "POST", "path": "/v1/contracts/{id}/activate", "operation_id": "Contracts.activate" },
{ "method": "POST", "path": "/v1/legal-entities", "operation_id": "LegalEntities.create" },
{ "method": "POST", "path": "/v1/loans", "operation_id": "Loans.create" },
{ "method": "POST", "path": "/v1/loans/{id}/activate", "operation_id": "Loans.activate" },
"…"
],
"implicitly_plannable": "Every GET under /v1/ is plannable.",
"limits": {
"max_steps": 50,
"time_budget_ms": 20000,
"max_concurrent_per_instance": 2
},
"references": {
"grammar": "A reference is `$<ref>` followed by an RFC 6901 JSON pointer into that earlier step's response body (`$e1/data/id`). …",
"examples": [
"\"$l1/data/participants/0/id\" (an array index: the first participant of the loan step l1 created)",
"\"$lender/data/0/id\" (a GET lookup: the first row of step lender, GET /v1/parties?search=Wells%20Fargo&limit=1)",
"\"/v1/loans/$l1/data/id/activate\" (a path segment: activates the loan step l1 created)"
]
},
"step_headers": ["if-match", "x-contract-version"],
"error_codes": [
{ "code": "API_KEY_PLAN_ONLY", "http_status": 403, "retryable": false, "next_action": "use_plan_mode" },
{ "code": "PLAN_DRIFT", "http_status": 409, "retryable": false, "next_action": "re_preview" },
{ "code": "PLAN_ORG_BUSY", "http_status": 409, "retryable": true, "next_action": "retry_later" },
"…"
]
},
"meta": { "request_id": "…", "api_version": "2026-04-23" }
}Fields
| Field | What it tells you |
|---|---|
plannable_routes | Every non-GET route a step may call: method, path (OpenAPI template) and operation_id. These are the operations marked x-plannable in the OpenAPI document. A step calling any other non-GET route fails with PLAN_ROUTE_NOT_PLANNABLE. |
implicitly_plannable | Every GET under /v1/ is plannable without being listed. |
limits.max_steps | The most steps one plan may have (50). Above it: PLAN_TOO_LARGE. |
limits.time_budget_ms | How long a plan may run (20 000 ms). Past it: PLAN_TIMEOUT, and nothing is kept. |
limits.max_concurrent_per_instance | Plans one server runs at once. One plan runs per org at a time; a second is refused with PLAN_ORG_BUSY. |
references.grammar | The rules for $ref values, in prose. See Write a plan. |
references.examples | Three references that show an array index, a GET lookup and a path segment. |
step_headers | The only headers a step may send. Any other name refuses the whole plan. |
error_codes | Every plan error: code, http_status, retryable and next_action. See Errors. |
Plannable routes today
71 operations, by area. Any GET under /v1/ is plannable too, without a mark.
Organization setup
| Method | Path | What it does |
|---|---|---|
POST | /v1/legal-entities | Create a legal entity |
PUT | /v1/legal-entities/{id} | Update a legal entity |
POST | /v1/properties | Create a property |
PUT | /v1/properties/{id} | Update a property |
POST | /v1/spaces | Create a space |
PUT | /v1/spaces/{id} | Update a space |
POST | /v1/dimensions | Create a dimension |
PUT | /v1/dimensions/{id} | Update a dimension |
POST | /v1/dimensions/{id}/options | Add an option to a dimension |
PATCH | /v1/dimensions/{id}/options/{optionId} | Update a dimension option |
POST | /v1/items | Create an item |
PATCH | /v1/items/{id} | Update an item |
POST | /v1/items/{id}/archive | Archive an item |
POST | /v1/items/{id}/unarchive | Unarchive an item |
POST | /v1/tax-rates | Create a tax rate |
PATCH | /v1/tax-rates/{id} | Update a tax rate |
Chart of accounts
| Method | Path | What it does |
|---|---|---|
POST | /v1/accounting/accounts | Create an account |
PATCH | /v1/accounting/accounts/{id} | Update an account |
PUT | /v1/accounting/system-roles/{role} | Assign or clear a system role |
Parties
| Method | Path | What it does |
|---|---|---|
POST | /v1/parties | Create a party (tenant, vendor, lender, …) |
PUT | /v1/parties/{id} | Update a party |
POST | /v1/parties/{id}/contacts | Add a contact to a party |
Leases
| Method | Path | What it does |
|---|---|---|
POST | /v1/contracts | Create a contract (lease) |
PATCH | /v1/contracts/{id} | Update a draft contract (needs x-contract-version) |
POST | /v1/contracts/{id}/activate | Activate a draft contract |
POST | /v1/contracts/{id}/amendments | Amend a live lease |
POST | /v1/contracts/{id}/periods | Add a renewal option period |
PATCH | /v1/contracts/{id}/periods/{periodId} | Update a contract period |
POST | /v1/contracts/{id}/periods/{periodId}/exercise | Exercise a renewal option |
POST | /v1/contracts/{id}/periods/{periodId}/waive | Waive a renewal option |
POST | /v1/contracts/{id}/terminate | Schedule or move a termination |
PUT | /v1/contracts/{id}/terms/{termId}/escalation-config | Replace a term's index-linked escalation |
PUT | /v1/contracts/{id}/percentage-rent | Save a new percentage rent version |
POST | /v1/escalations/{id}/accept | Accept a proposed escalation |
POST | /v1/escalations/{id}/override | Override a proposed escalation with a negotiated percentage |
Expense recovery
| Method | Path | What it does |
|---|---|---|
POST | /v1/expense-recovery/groups | Create a recovery group |
PATCH | /v1/expense-recovery/groups/{id} | Update a recovery group |
PUT | /v1/expense-recovery/groups/{id}/accounts | Replace a group's recovered accounts |
POST | /v1/expense-recovery/groups/{id}/templates | Create a term template |
PATCH | /v1/expense-recovery/groups/{id}/templates/{tid} | Update a term template |
POST | /v1/expense-recovery/groups/{id}/templates/{tid}/apply | Apply a term template to leases |
PUT | /v1/expense-recovery/groups/{id}/terms/{contractId} | Replace one lease's recovery terms |
PUT | /v1/expense-recovery/profiles | Set a tenant's recovery profile for a group |
Documents and credits
| Method | Path | What it does |
|---|---|---|
POST | /v1/documents | Create a document (invoice, bill, journal entry, …) |
POST | /v1/documents/{id}/post | Post a document, or hold a draft for approval |
POST | /v1/credit-memos/{id}/apply | Apply a credit memo to invoices |
POST | /v1/vendor-credits/{id}/apply | Apply a vendor credit to bills |
Ownership and equity
| Method | Path | What it does |
|---|---|---|
POST | /v1/entity-ownerships | Create one ownership row |
POST | /v1/entity-ownerships/batch | Create an entity's full ownership set |
POST | /v1/entity-ownerships/transfer | Transfer ownership between owners |
POST | /v1/entity-ownerships/{id}/close-and-replace | Close an ownership row and add its successor |
POST | /v1/legal-entities/{legalEntityId}/equity-classes | Create an equity class |
PATCH | /v1/equity-classes/{id} | Update an equity class |
POST | /v1/equity-positions | Create an equity position |
PATCH | /v1/equity-positions/{id} | Update an equity position |
POST | /v1/capital-contributions | Record a capital contribution |
POST | /v1/distribution-declarations | Declare a distribution |
Loans
| Method | Path | What it does |
|---|---|---|
POST | /v1/loans | Create a loan |
PATCH | /v1/loans/{id} | Update a loan |
POST | /v1/loans/{id}/activate | Activate a loan and generate its schedule |
PUT | /v1/loans/{id}/participants | Replace a loan's participants |
PUT | /v1/loans/{id}/prepayment-terms | Replace a loan's prepayment terms |
PUT | /v1/loans/{id}/delinquency-terms | Replace a loan's delinquency terms |
PUT | /v1/loans/{id}/extension-options | Replace a loan's extension options |
POST | /v1/loans/{id}/escrows | Add an escrow |
PATCH | /v1/loans/{id}/escrows/{escrowId} | Edit an escrow |
POST | /v1/loans/{id}/drawdown | Record a drawdown |
POST | /v1/loans/{id}/payments | Record a loan payment |
POST | /v1/loans/{id}/prepayment | Record a curtailment (extra principal) |
POST | /v1/loans/{id}/payoff | Pay off a loan |
POST | /v1/loans/{id}/hedges | Add a swap or cap |
This table is a snapshot. The endpoint is the source of truth: read it, don't hard-code this list.
How an agent should use it
- Call it at the start of a session and keep the answer in context.
- Before writing a step, check its route is in
plannable_routes(or is aGET). - Size plans to
limits: split anything near 50 steps or likely to run past the time budget into several plans that share asession_id. - When an error comes back, look its
codeup inerror_codesand act onnext_action.
Every plannable operation is also tagged x-plannable: true in the
OpenAPI document, so a code generator can mark them too.