# Leave a note on an agent feedback report

`POST /api/v1/admin/agent-feedback/{agentFeedbackReport}/notes`

Write a note that only the administrators read. The status does not change.

Only an administrator of this instance can use this endpoint, and only with an API key that carries the administration scope by name. Anybody else, including an administrator whose key does not carry it, gets 404 as though the endpoint did not exist.

## Parameters

- `agentFeedbackReport` (uuid, required): The id of the report, of any account on the instance.
- `body` (string, required): What to write, up to 4,000 characters. A body left empty answers 422.

## Returns

The report object with its notes.

- `data` (object): The report.
- `data.type` (string): Always agent_feedback_report. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.
- `data.id` (string): The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.
- `data.attributes` (object): Everything the record holds.
- `data.attributes.number` (integer): The number administrators read the report by, such as 48 for #48.
- `data.attributes.status` (string): new, accepted, fixed or dismissed.
- `data.attributes.kind` (string): bug, missing_tool, unclear_description or improvement.
- `data.attributes.severity` (string): blocks_task, needs_workaround or minor.
- `data.attributes.title` (string): One line naming the problem.
- `data.attributes.tool` (string): The MCP tool the report is about, as the agent wrote it, or null.
- `data.attributes.request` (string): What the person asked, paraphrased by the agent, or null.
- `data.attributes.steps` (array): The tool calls the agent tried, in order. An empty list when it sent none.
- `data.attributes.steps[]` (object): One tool call.
- `data.attributes.steps[].tool` (string): The tool it called.
- `data.attributes.steps[].arguments` (string): The arguments it sent, as the agent wrote them, or null.
- `data.attributes.steps[].outcome` (string): success or error.
- `data.attributes.steps[].result` (string): What came back, or null.
- `data.attributes.observed` (string): What happened.
- `data.attributes.expected` (string): What should have happened.
- `data.attributes.proposed_fix` (string): The fix the agent suggests.
- `data.attributes.proposed_code` (string): Code the agent suggests for the fix, or null.
- `data.attributes.model` (string): The model the agent says it runs on, or null.
- `data.attributes.connection_name` (string): The connected assistant or the API key the report came through.
- `data.attributes.account_id` (integer): The account the agent was working in.
- `data.attributes.user` (object): Who the agent was working for, or null once their user is deleted.
- `data.attributes.user.name` (string): Their name.
- `data.attributes.user.email` (string): Their email address.
- `data.attributes.submitted_at` (timestamp): When the report was sent, as a count of seconds since 1970.
- `data.attributes.notes` (array): The notes administrators left on it, the oldest first.
- `data.attributes.notes[]` (object): One note.
- `data.attributes.notes[].id` (uuid): The id of the note.
- `data.attributes.notes[].author_name` (string): The name of the administrator who wrote it.
- `data.attributes.notes[].body` (string): What was written, as plain text.
- `data.attributes.notes[].created_at` (timestamp): When it was written, as a count of seconds since 1970.
- `data.links` (object): Where to find this record.
- `data.links.self` (string): The absolute address this record is read from.

## Rate limit

Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in `X-RateLimit-Remaining`.

## Request

```sh
curl https://my.monicahq.com/api/v1/admin/agent-feedback/3d9b7e21-6f4a-4c85-9a02-b81e5c47d613/notes \
  -X POST \
  -H "Authorization: Bearer $MONICA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
      "body": "Confirmed on a test account. Planned for the next release."
  }'
```

```javascript
const response = await fetch('https://my.monicahq.com/api/v1/admin/agent-feedback/3d9b7e21-6f4a-4c85-9a02-b81e5c47d613/notes', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    body: 'Confirmed on a test account. Planned for the next release.',
  }),
})
const data = await response.json()
```

```php
$response = Http::withToken($token)->post('https://my.monicahq.com/api/v1/admin/agent-feedback/3d9b7e21-6f4a-4c85-9a02-b81e5c47d613/notes', [
    'body' => 'Confirmed on a test account. Planned for the next release.',
]);
```

## Response

`201`

```json
{
    "data": {
        "type": "agent_feedback_report",
        "id": "3d9b7e21-6f4a-4c85-9a02-b81e5c47d613",
        "attributes": {
            "number": 48,
            "status": "new",
            "kind": "bug",
            "severity": "blocks_task",
            "title": "Yearly reminders on 29 February are refused",
            "tool": "create-contact-reminder",
            "request": "Add a yearly reminder for the birthday of a cousin born on 29 February.",
            "steps": [
                {
                    "tool": "create-contact-reminder",
                    "arguments": "{\"contact\": \"<contact>\", \"day\": 29, \"month\": 2}",
                    "outcome": "error",
                    "result": "The date field must be a valid date."
                }
            ],
            "observed": "Any reminder on 29 February fails validation, with or without a year.",
            "expected": "The reminder is created and falls on 28 February in other years.",
            "proposed_fix": "Validate the day against a leap year when no year is given.",
            "proposed_code": null,
            "model": "Claude Opus",
            "connection_name": "Claude Desktop",
            "account_id": 12,
            "user": {
                "name": "Michael Scott",
                "email": "michael.scott@dundermifflin.test"
            },
            "submitted_at": 1791547200,
            "notes": [
                {
                    "id": "9f2c4a71-0d8e-4b36-a5c1-7e3b90d26f48",
                    "author_name": "Jim Halpert",
                    "body": "Confirmed on a test account. Planned for the next release.",
                    "created_at": 1791550800
                }
            ]
        },
        "links": {
            "self": "https://my.monicahq.com/api/v1/admin/agent-feedback/3d9b7e21-6f4a-4c85-9a02-b81e5c47d613"
        }
    }
}
```
