> ## Documentation Index
> Fetch the complete documentation index at: https://ago.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Decisions API

> Record the decisions your company takes, replace or cancel them, and read them back through the Public API v1 and MCP

Decisions are the record of what your company decided: the theme, the date, the people, the decision and, when known, the reasons. A decision in effect is one your AI systems treat as settled. When the company changes its mind, a new decision replaces or cancels the old one, and the old one stays readable with what ended it.

Staff users read and record decisions in AGO under **Knowledge** > **Decisions**. See [Decisions](https://ago.mintlify.site/features/decisions.md).

## Before you start

* **Decisions are available where Business rules is enabled** for your workspace. Elsewhere, calls return `403` with code `decisions_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 `403` with code `staff_principal_required`.
* **Scopes**: `decisions:read` to read every decision. `decisions:write` to record, edit, confirm, cancel and restore them. `decisions:write` includes `decisions:read`.

Create the key in **Studio** > **API Keys**. See [API Key Authentication](https://ago.mintlify.site/security/api-key-authentication.md).

## The states of a decision

| Status | Meaning |
| - | - |
| `proposed` | Written down, waiting for a confirmation. It guides nothing yet |
| `active` | In effect. Agents that follow company decisions apply it |
| `replaced` | Another decision took its place. `replaced_by` names it |
| `cancelled` | It no longer holds. `status_reason` says why, and `cancelled_by` names the decision that cancels it when there is one |

Only `proposed` and `active` decisions can be edited. A decision that took effect is never deleted.

## Record a decision

```bash theme={null}
curl -X POST "https://your-workspace.api.useago.com/api/v1/decisions" \
  -H "X-API-Key: ago_v1_sk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Yearly plans get 20% off",
    "theme": "Pricing",
    "decision": "Customers who pay yearly get 20% off the monthly price. No other discount is combined with it.",
    "why": "Competitors moved to 20%.",
    "decided_on": "2026-10-14",
    "people": ["me", "alex@example.com", "The board"],
    "status": "active",
    "replaces": ["D-12"]
  }'
```

The call answers `201` with the decision:

```json theme={null}
{
  "object": "decision",
  "id": "33333333-3333-4333-8333-333333333333",
  "reference": "D-13",
  "title": "Yearly plans get 20% off",
  "theme": "Pricing",
  "decided_on": "2026-10-14",
  "decision": "Customers who pay yearly get 20% off the monthly price. No other discount is combined with it.",
  "why": "Competitors moved to 20%.",
  "people": [
    {"id": "44444444-4444-4444-8444-444444444444", "name": "Sam Lee", "email": "sam@example.com"},
    {"id": "55555555-5555-4555-8555-555555555555", "name": "Alex Martin", "email": "alex@example.com"},
    {"id": null, "name": "The board", "email": null}
  ],
  "source_url": "",
  "review_on": null,
  "status": "active",
  "status_reason": "",
  "replaces": [{"id": "66666666-6666-4666-8666-666666666666", "reference": "D-12", "title": "Yearly plans get 15% off", "status": "replaced"}],
  "replaced_by": [],
  "cancels": [],
  "cancelled_by": [],
  "related": [],
  "rules": [],
  "recorded_by": {"name": "Sam Lee", "via": "api", "at": "2026-10-14T08:12:00Z"},
  "confirmed_by": {"name": "Sam Lee", "via": "api", "at": "2026-10-14T08:12:00Z"},
  "version": 1,
  "updated_at": "2026-10-14T08:12:00Z",
  "history": [
    {"version": 1, "change": "recorded", "changed_by": {"name": "Sam Lee", "via": "api", "at": "2026-10-14T08:12:00Z"}, "title": "Yearly plans get 20% off", "decision": "Customers who pay yearly get 20% off the monthly price. No other discount is combined with it.", "status": "active"}
  ]
}
```

| Field | Description |
| - | - |
| `title` | Required. The decision in a few words, up to 200 characters |
| `theme` | Required. The subject it belongs to, up to 80 characters. A theme keeps one spelling: `pricing` joins an existing `Pricing`. List the themes in use with `GET /api/v1/decisions/themes` |
| `decision` | Required. What was decided, in plain text or Markdown, up to 10,000 characters |
| `why` | The reasons, up to 10,000 characters |
| `decided_on` | The day it was decided. Defaults to today |
| `people` | Who decided, up to 30 entries: `me`, a staff user's email or ID, or a plain name for someone without an account |
| `source_url` | Where it was discussed. Must start with `https://` or `http://` |
| `review_on` | A day to look at the decision again |
| `status` | `proposed` (default) or `active` |
| `replaces`, `cancels` | Decisions this one ends, as IDs or references such as `D-12`. They must be `proposed` or `active` |
| `related` | Other decisions to read with this one |
| `rule_ids` | IDs of the [business rules](https://ago.mintlify.site/features/business-rules.md) that apply this decision |
| `conflict_check` | `enforce` (default) or `skip`. See [Contradictions](#contradictions) |

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 answers `409`:

```json theme={null}
{
  "detail": "This decision contradicts decisions in effect. Nothing was recorded: replace or cancel them with this decision, reword it, or record it anyway with conflict_check=skip.",
  "code": "contradicts_decisions",
  "conflicts": [
    {
      "decision": {"id": "66666666-6666-4666-8666-666666666666", "reference": "D-12", "title": "Yearly plans get 15% off", "status": "active"},
      "reason": "Both set a different discount for yearly plans."
    }
  ]
}
```

Send the call again with the contradicted decisions in `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

```bash theme={null}
curl "https://your-workspace.api.useago.com/api/v1/decisions?status=active&search=yearly%20discount" \
  -H "X-API-Key: ago_v1_sk_your_key_here"
```

Decisions are listed most recently decided first, 50 per page (`page`, `page_size` up to 100). The list holds the same fields as above without `history`.

| Filter | Description |
| - | - |
| `search` | Words or a question, up to 300 characters. Results are the decisions containing the words, including unfinished ones, and those closest in meaning. Replaced and cancelled decisions come after the others. A reference such as `D-12` returns that decision |
| `status` | `proposed`, `active`, `replaced` or `cancelled`; several separated by commas. Send `active` for the decisions in effect |
| `theme` | One theme |
| `person` | `me`, a user ID, an email or a name |
| `decided_from`, `decided_to` | Decided in the period, both days included |
| `to_review` | `true` for decisions in effect whose `review_on` date has come |

`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

| Call | Effect |
| - | - |
| `PUT /api/v1/decisions/{ref}` | Edit a `proposed` or `active` decision. Only the fields you send change. A link list you send replaces that list |
| `POST /api/v1/decisions/{ref}/confirm` | Put a `proposed` decision in effect |
| `POST /api/v1/decisions/{ref}/cancel` | Cancel a decision. Send a `reason` (up to 2,000 characters) and, when another decision cancels it, `cancelled_by` |
| `POST /api/v1/decisions/{ref}/restore` | Undo a replacement or a cancellation. The decision that had ended it becomes related to it |
| `DELETE /api/v1/decisions/{ref}` | Discard a `proposed` decision. Answers `204` |

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

| Code | Status | Meaning |
| - | - | - |
| `decisions_disabled` | 403 | Decisions are not enabled for the workspace |
| `staff_principal_required` | 403 | The key's creator or the OAuth user is not an active staff user |
| `decision_not_found` | 404 | No decision has this ID or reference |
| `contradicts_decisions` | 409 | The decision contradicts decisions in effect; `conflicts` lists them |
| `conflict_check_failed` | 502 | The contradiction check could not run; nothing was recorded |
| `decision_closed` | 409, 400 | The decision is replaced or cancelled: it cannot be edited, cancelled again, or listed in `replaces` or `cancels` |
| `decision_not_proposed` | 409 | Only a proposed decision can be confirmed |
| `decision_not_closed` | 409 | Only a replaced or cancelled decision can be restored |
| `decision_in_log` | 409 | The decision took effect, so it cannot be deleted: cancel it |
| `link_in_effect` | 409 | The link already ended a decision: restore that decision to undo it |
| `invalid_link` | 400 | A decision linked to itself, or listed in two link fields |
| `title_required`, `theme_required`, `decision_required` | 400 | The field is empty |
| `unknown_person` | 400 | No staff user has this ID |
| `unknown_rule` | 400 | No business rule has this ID |
| `invalid_source_url` | 400 | `source_url` does not start with `https://` or `http://` |
| `invalid_status` | 400 | Unknown `status` filter |
| `validation_error` | 422 | A field breaks its limit, or `status` is not `proposed` or `active` |

See [Errors](https://ago.mintlify.site/api/errors.md) for the error envelope.

## MCP tools

AI assistants connected to the [AGO MCP server](https://ago.mintlify.site/api/mcp-tool-api.md#decisions) 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.

## Events

[Workflows](https://ago.mintlify.site/features/workflows.md#choose-an-ago-event) can start when a decision is proposed, comes into effect, is replaced or is cancelled. The workflow's owner must be an active staff user. These events are not available to webhooks or MCP Events.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.