# Assistant Knowledge

What the workspace's AI assistant knows about the business: saved notes and learned rules, and the playbooks it follows. New knowledge from the assistant is proposed on an approval card and only saved when a workspace admin approves it; every change can be undone. Required scopes: assistant-knowledge:read, assistant-knowledge:write.

**Base URL:** `https://api.trustpager.com/functions/v1/api/v1`

## Endpoints

### DELETE /assistant-knowledge/notes/:note_id

Take a workspace memory note or learned rule out of force. It stays in the history and undo_assistant_note_change brings it back. Waits for a workspace admin when called by the assistant or a connected AI.

**Scopes:** `assistant-knowledge:write` — [full detail](./assistant-knowledge/delete-assistant-knowledge-notes-note-id.md)

### GET /assistant-knowledge/notes/:note_id

Fetch one workspace memory note or learned rule by UUID, with who proposed it, who approved it, when, and why it was proposed.

**Scopes:** `assistant-knowledge:read` — [full detail](./assistant-knowledge/get-assistant-knowledge-notes-note-id.md)

### GET /assistant-knowledge/playbooks/:playbook_id

Fetch one assistant playbook by UUID with its full steps.

**Scopes:** `assistant-knowledge:read` — [full detail](./assistant-knowledge/get-assistant-knowledge-playbooks-playbook-id.md)

### GET /assistant-knowledge/notes

List what the AI assistant remembers and follows for this whole workspace: workspace memory (facts such as business hours or pricing rules) and learned rules (things to always do). Each note says who proposed it, who approved it and when. status=active (default) is what is in force now; status=removed is what was taken out; status=all is the full history. Free read.

**Scopes:** `assistant-knowledge:read` — [full detail](./assistant-knowledge/get-assistant-knowledge-notes.md)

### GET /assistant-knowledge/playbooks

List the assistant's ready-made playbooks: step lists for common jobs such as chasing overdue invoices, following up a quote and onboarding a new customer. The assistant loads the one that fits a request by itself. Returns name, what it is for, and the words that bring it in. Free read. (Not the Learning Hub training boards: those are list_playbooks.)

**Scopes:** `assistant-knowledge:read` — [full detail](./assistant-knowledge/get-assistant-knowledge-playbooks.md)

### POST /assistant-knowledge/notes

This is how the assistant remembers things about the business: opening hours, prices, terms, who handles what, a word the team uses, and rules to always follow ("remember that we close at 5", "always copy accounts@ on invoices"). Propose a fact for workspace memory or a rule for the assistant to follow every time. It is NOT saved by itself: it waits for a workspace admin, who sees a Save / Don't save card in the chat (or the approvals list) and decides. Tell the person it is waiting for an admin, never that it is saved. Use it for a lasting fact the person states, or a correction that should apply every time. Not for one-off requests. Check list_assistant_notes first so the same note is not proposed twice.

**Scopes:** `assistant-knowledge:write` — [full detail](./assistant-knowledge/post-assistant-knowledge-notes.md)

### POST /assistant-knowledge/notes/:note_id/undo

Put the last change to a note back: an active note is taken out of force, a removed note is brought back into force. Waits for a workspace admin when called by the assistant or a connected AI.

**Scopes:** `assistant-knowledge:write` — [full detail](./assistant-knowledge/post-assistant-knowledge-notes-note-id-undo.md)
