Before you start
- Decisions are available where Business rules is enabled for your workspace. Elsewhere, calls return
403with codedecisions_disabled. - Every call acts for an active staff user. For an API key, that is the user who created the key. For OAuth, it is the user who granted access. No call accepts an author: the person recording, confirming or cancelling is always that user. If they are not an active staff user, calls return
403with codestaff_principal_required. - Scopes:
decisions:readto read every decision.decisions:writeto record, edit, confirm, cancel and restore them.decisions:writeincludesdecisions:read.
The states of a decision
Only
proposed and active decisions can be edited. A decision that took effect is never deleted.
Record a decision
201 with the decision:
A
proposed decision ends nothing. The decisions it lists in replaces and cancels end when it is confirmed.
recorded_by.via and confirmed_by.via name the tool used: app for AGO, api for this API, or the name an AI assistant connected through MCP reports.
Contradictions
Before recording, AGO compares the new decision with the decisions in effect closest to it. When it contradicts one, nothing is recorded and the call answers409:
replaces or cancels, or with "conflict_check": "skip" to keep both. Decisions listed in replaces and cancels are not compared. The same check runs when you change the title or decision of an existing decision.
The reasons are written in English. Add ?language=fr to the call for another language.
If the check cannot run, the call answers 502 with code conflict_check_failed and nothing is recorded.
Read decisions
page, page_size up to 100). The list holds the same fields as above without history.
GET /api/v1/decisions/{ref} returns one decision with its history: one line per change, most recent first, with who made it and through which tool. {ref} is an ID or a reference such as D-12.
GET /api/v1/decisions/themes lists the themes with the number of decisions each holds (total) and how many are in effect (active).
Edit, confirm, cancel and restore
To change what was decided, record a new decision that replaces the old one instead of rewriting its text: the log then keeps both. Once a decision in effect has replaced or cancelled another, that link cannot be removed by an edit: restore the ended decision instead.
Errors
See Errors for the error envelope.
MCP tools
AI assistants connected to the AGO MCP server get the same operations:list_decisions, get_decision, list_decision_themes, record_decision, update_decision, confirm_decision, cancel_decision, restore_decision and delete_decision.
AGO also tells a connected assistant how to use them. With decisions:read, it checks the decisions in effect before proposing something they may cover, and names the decision a request contradicts. With decisions:write, it offers to record a decision you take during the conversation, and records it as active only after you explicitly said yes to its exact wording. Without your answer it records nothing, or a proposed decision you can confirm later in AGO.
