API v1
v1
View as Markdown

List agent feedback reports

GET /api/v1/admin/agent-feedback

List the reports agents sent from every account, the newest first. The notes are left out of a list. Read one report to get them.

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.

This endpoint also answers QUERY, with the same parameters sent in the request body. How QUERY works.

Query parameters

Sent as JSON. Anything not listed here is ignored.

status string Optional default: new

Which reports to list: new, accepted, fixed, dismissed or all. Any other value is taken as new.

q string Optional

Keep only the reports whose title, tool, or user name or email holds this text.

kind string Optional

Keep only one kind: bug, missing_tool, unclear_description or improvement.

severity string Optional

Keep only one severity: blocks_task, needs_workaround or minor.

page integer Optional default: 1

Which page to answer with.

Returns

A page of report objects, how many there are in all, and in meta.counts how many each status holds.

data array

The reports on this page. An empty list rather than an error when there are none.

data[] object

One 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[].links object

Where to find this record.

data[].links.self string

The absolute address this record is read from.

meta object

Where you are in the collection.

meta.page integer

The page this is, counting from 1.

meta.per_page integer

How many one page holds, which is the size that was asked for once it has been brought into the allowed range.

meta.total integer

How many reports there are in all, not how many are on this page.

meta.counts object

How many reports each status holds under the filters you sent, apart from the status itself.

meta.counts.new integer

Reports nobody has looked at.

meta.counts.accepted integer

Reports accepted and waiting for a fix.

meta.counts.fixed integer

Reports marked as fixed.

meta.counts.dismissed integer

Reports dismissed.

meta.counts.all integer

Every report.

Rate limit

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

GET
curl https://my.monicahq.com/api/v1/admin/agent-feedback \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://my.monicahq.com/api/v1/admin/agent-feedback', {
headers: { Authorization: `Bearer ${token}` },
})
const data = await response.json()
$response = Http::withToken($token)->get('https://my.monicahq.com/api/v1/admin/agent-feedback');
Response 200
{
"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": "[email protected]"
},
"submitted_at": 1791547200
},
"links": {
"self": "https://my.monicahq.com/api/v1/admin/agent-feedback/3d9b7e21-6f4a-4c85-9a02-b81e5c47d613"
}
}
],
"meta": {
"page": 1,
"per_page": 10,
"total": 1,
"counts": {
"new": 1,
"accepted": 0,
"fixed": 0,
"dismissed": 0,
"all": 1
}
}
}

Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.