MessageOS
Guides

Knowledge and gaps

Approved answers and the gaps report.

Knowledge

GET /v1/knowledge needs knowledge:read. It returns up to 200 entries, filtered by status and tag. POST /v1/knowledge, PATCH /v1/knowledge/{id}, and POST /v1/knowledge/{id}/approve need knowledge:write. Each returns the entry inside entry.

Approved answers are what the assistant answers from, so an agent whose own system answers has no use for them. knowledge:write is a permission MessageOS sets while it manages your approved answers: Authentication says which permissions you can give a key yourself.

{ "question": "Where can I park?", "answer": "Parking is in the lot behind the building.", "tags": ["parking"] }

Creating an entry requires Idempotency-Key. A key reused with a different body returns 422 idempotency_key_reuse, and a key reused while the first request is still running returns 409 conflict with Retry-After: 1.

A new entry is a draft. Only a draft can be edited or approved. Editing or approving an entry that is not a draft returns 404. Each edit adds one to version. The assistant uses approved entries only, and sends an entry marked verbatim word for word.

Gaps

GET /v1/gaps needs gaps:read. It is hidden until gap recording is enabled.

Query: reason, status (open, reviewed, or dismissed), from and to (times), category, and cursor. A call returns up to 50 gaps in id order. Pass the last id you received as cursor for the next ones.

{ "gaps": [{ "id": 1, "reason": "unsupported_request", "reasonDetail": null, "category": "hours", "groupKey": "unsupported_request:hours", "summary": null, "toolName": null, "status": "open", "createdAt": "2026-10-28T23:00:00.000Z" }] }

When the client's policy omits summaries, summary is null. Reasons in use include tool_failed and unsupported_request. Other reasons may appear, including budget_exhausted, no_faq_answer, and abandoned_mid_workflow.

On this page