# List corrections

URL: https://docs.hanzo.ai/docs/openapi/ai/decisionscorrections

> Answers one of the org's decisions' corrections, each captured (it can teach) or missing (the decision was made with capture off).

`GET /v1/decisions/{decision}/corrections`

> [AI →](https://docs.hanzo.ai/docs/openapi/ai) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                                            |
| ------------- | ---------------------------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/decisions/{decision}/corrections` |
| **Method**    | `GET`                                                      |
| **Operation** | `decisionsCorrections`                                     |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`                     |

Answers one of the org's decisions' corrections, each
captured (it can teach) or missing (the decision was made with capture off).

## Request

1 field.

| Field      | In   | Type   | Required | Description |
| ---------- | ---- | ------ | -------- | ----------- |
| `decision` | path | string | yes      |             |

## Response

| Status    | Body            | Meaning |
| --------- | --------------- | ------- |
| `200`     | Corrections     | ok      |
| `default` | problem-details | refused |

`200` body — 18 fields.

| Field                  | In   | Type            | Always | Description                                                                                                                            |
| ---------------------- | ---- | --------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| `data`                 | body | Correction\[]   | —      |                                                                                                                                        |
| `data[].answer`        | body | string          | —      | Answer is the right answer; Base what Kai answered.                                                                                    |
| `data[].at`            | body | integer (int64) | —      |                                                                                                                                        |
| `data[].base`          | body | string          | —      |                                                                                                                                        |
| `data[].by`            | body | string          | —      |                                                                                                                                        |
| `data[].cohort`        | body | string          | —      |                                                                                                                                        |
| `data[].decision`      | body | string          | —      |                                                                                                                                        |
| `data[].id`            | body | string          | —      |                                                                                                                                        |
| `data[].labels`        | body | string\[]       | —      |                                                                                                                                        |
| `data[].note`          | body | string          | —      |                                                                                                                                        |
| `data[].question`      | body | string          | —      |                                                                                                                                        |
| `data[].state`         | body | string          | —      | State is captured when the decision's state is held and the correction can teach, missing when the decision was made with capture off. |
| `data[].type`          | body | string          | —      |                                                                                                                                        |
| `questions`            | body | Captured\[]     | —      | Questions are the decision's captured questions, by key; none when it was made with capture off.                                       |
| `questions[].answered` | body | string          | —      | Answered is the label the caller was answered: the org's capability's when one answered, else Kai's own.                               |
| `questions[].key`      | body | string          | —      |                                                                                                                                        |
| `questions[].labels`   | body | string\[]       | —      |                                                                                                                                        |
| `questions[].type`     | body | string          | —      |                                                                                                                                        |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo decisions corrections list <decision>
```

**SDK**

**.ts**

```ts
import { Configuration, AiApi } from 'hanzoai';

const api = new AiApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.decisionsCorrections({ decision: 'decision' });
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AiApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AiApi(client).decisions_corrections(decision='decision')
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.AiAPI.DecisionsCorrections(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, ai_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = ai_api::decisions_corrections(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AiApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new AiApi(client).decisionsCorrections();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/decisions/<decision>/corrections \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

Tool `ai`, op `decisionsCorrections` — POST the JSON-RPC envelope to `https://api.hanzo.ai/v1/mcp`.

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "ai",
         "arguments": {
           "op": "decisionsCorrections",
           "input": {
             "decision": "<decision>"
           }
         }
       }
     }'
```

---

[AI API](https://docs.hanzo.ai/docs/openapi/ai) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
