Acreum Docs
Plan mode for agents

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

FieldWhat it tells you
plannable_routesEvery 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_plannableEvery GET under /v1/ is plannable without being listed.
limits.max_stepsThe most steps one plan may have (50). Above it: PLAN_TOO_LARGE.
limits.time_budget_msHow long a plan may run (20 000 ms). Past it: PLAN_TIMEOUT, and nothing is kept.
limits.max_concurrent_per_instancePlans one server runs at once. One plan runs per org at a time; a second is refused with PLAN_ORG_BUSY.
references.grammarThe rules for $ref values, in prose. See Write a plan.
references.examplesThree references that show an array index, a GET lookup and a path segment.
step_headersThe only headers a step may send. Any other name refuses the whole plan.
error_codesEvery 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

MethodPathWhat it does
POST/v1/legal-entitiesCreate a legal entity
PUT/v1/legal-entities/{id}Update a legal entity
POST/v1/propertiesCreate a property
PUT/v1/properties/{id}Update a property
POST/v1/spacesCreate a space
PUT/v1/spaces/{id}Update a space
POST/v1/dimensionsCreate a dimension
PUT/v1/dimensions/{id}Update a dimension
POST/v1/dimensions/{id}/optionsAdd an option to a dimension
PATCH/v1/dimensions/{id}/options/{optionId}Update a dimension option
POST/v1/itemsCreate an item
PATCH/v1/items/{id}Update an item
POST/v1/items/{id}/archiveArchive an item
POST/v1/items/{id}/unarchiveUnarchive an item
POST/v1/tax-ratesCreate a tax rate
PATCH/v1/tax-rates/{id}Update a tax rate

Chart of accounts

MethodPathWhat it does
POST/v1/accounting/accountsCreate an account
PATCH/v1/accounting/accounts/{id}Update an account
PUT/v1/accounting/system-roles/{role}Assign or clear a system role

Parties

MethodPathWhat it does
POST/v1/partiesCreate a party (tenant, vendor, lender, …)
PUT/v1/parties/{id}Update a party
POST/v1/parties/{id}/contactsAdd a contact to a party

Leases

MethodPathWhat it does
POST/v1/contractsCreate a contract (lease)
PATCH/v1/contracts/{id}Update a draft contract (needs x-contract-version)
POST/v1/contracts/{id}/activateActivate a draft contract
POST/v1/contracts/{id}/amendmentsAmend a live lease
POST/v1/contracts/{id}/periodsAdd a renewal option period
PATCH/v1/contracts/{id}/periods/{periodId}Update a contract period
POST/v1/contracts/{id}/periods/{periodId}/exerciseExercise a renewal option
POST/v1/contracts/{id}/periods/{periodId}/waiveWaive a renewal option
POST/v1/contracts/{id}/terminateSchedule or move a termination
PUT/v1/contracts/{id}/terms/{termId}/escalation-configReplace a term's index-linked escalation
PUT/v1/contracts/{id}/percentage-rentSave a new percentage rent version
POST/v1/escalations/{id}/acceptAccept a proposed escalation
POST/v1/escalations/{id}/overrideOverride a proposed escalation with a negotiated percentage

Expense recovery

MethodPathWhat it does
POST/v1/expense-recovery/groupsCreate a recovery group
PATCH/v1/expense-recovery/groups/{id}Update a recovery group
PUT/v1/expense-recovery/groups/{id}/accountsReplace a group's recovered accounts
POST/v1/expense-recovery/groups/{id}/templatesCreate a term template
PATCH/v1/expense-recovery/groups/{id}/templates/{tid}Update a term template
POST/v1/expense-recovery/groups/{id}/templates/{tid}/applyApply a term template to leases
PUT/v1/expense-recovery/groups/{id}/terms/{contractId}Replace one lease's recovery terms
PUT/v1/expense-recovery/profilesSet a tenant's recovery profile for a group

Documents and credits

MethodPathWhat it does
POST/v1/documentsCreate a document (invoice, bill, journal entry, …)
POST/v1/documents/{id}/postPost a document, or hold a draft for approval
POST/v1/credit-memos/{id}/applyApply a credit memo to invoices
POST/v1/vendor-credits/{id}/applyApply a vendor credit to bills

Ownership and equity

MethodPathWhat it does
POST/v1/entity-ownershipsCreate one ownership row
POST/v1/entity-ownerships/batchCreate an entity's full ownership set
POST/v1/entity-ownerships/transferTransfer ownership between owners
POST/v1/entity-ownerships/{id}/close-and-replaceClose an ownership row and add its successor
POST/v1/legal-entities/{legalEntityId}/equity-classesCreate an equity class
PATCH/v1/equity-classes/{id}Update an equity class
POST/v1/equity-positionsCreate an equity position
PATCH/v1/equity-positions/{id}Update an equity position
POST/v1/capital-contributionsRecord a capital contribution
POST/v1/distribution-declarationsDeclare a distribution

Loans

MethodPathWhat it does
POST/v1/loansCreate a loan
PATCH/v1/loans/{id}Update a loan
POST/v1/loans/{id}/activateActivate a loan and generate its schedule
PUT/v1/loans/{id}/participantsReplace a loan's participants
PUT/v1/loans/{id}/prepayment-termsReplace a loan's prepayment terms
PUT/v1/loans/{id}/delinquency-termsReplace a loan's delinquency terms
PUT/v1/loans/{id}/extension-optionsReplace a loan's extension options
POST/v1/loans/{id}/escrowsAdd an escrow
PATCH/v1/loans/{id}/escrows/{escrowId}Edit an escrow
POST/v1/loans/{id}/drawdownRecord a drawdown
POST/v1/loans/{id}/paymentsRecord a loan payment
POST/v1/loans/{id}/prepaymentRecord a curtailment (extra principal)
POST/v1/loans/{id}/payoffPay off a loan
POST/v1/loans/{id}/hedgesAdd 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

  1. Call it at the start of a session and keep the answer in context.
  2. Before writing a step, check its route is in plannable_routes (or is a GET).
  3. Size plans to limits: split anything near 50 steps or likely to run past the time budget into several plans that share a session_id.
  4. When an error comes back, look its code up in error_codes and act on next_action.

Every plannable operation is also tagged x-plannable: true in the OpenAPI document, so a code generator can mark them too.

On this page