> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memcontext.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Context Vault Feedback

> Rate and correct extracted workspace memories.

Feedback gives your application a way to record whether a retrieved memory was
useful.

Use `POST /api/context-vault/memories/{memoryId}/feedback` for lightweight
signals:

* `helpful`
* `not_helpful`
* `outdated`
* `wrong`

Use `POST /api/context-vault/memories/{memoryId}/correction` when the caller
knows the corrected content.

## Correction workflow

Corrections update the memory itself. For document-backed memories, if
`correctedChunkContent` is provided, the cited source chunk is updated as well
so future document retrieval does not drift away from the corrected memory. For
curated company facts, there is no source chunk, so the correction updates only
the company fact.

```bash theme={null}
curl -X POST "https://api.memcontext.in/api/context-vault/memories/MEMORY_ID/correction" \
  -H "X-API-Key: $MEMCONTEXT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspaceId": "WORKSPACE_ID",
    "type": "wrong",
    "reason": "The trial period changed after the latest pricing update.",
    "correctedContent": "The free trial lasts 30 days.",
    "correctedChunkContent": "The free trial lasts 30 days."
  }'
```

Viewers can submit regular feedback but cannot directly correct workspace
memories. Correction is available to owners, admins, and members.

Use `DELETE /api/context-vault/memories/{memoryId}?workspaceId=...` to remove a
curated company fact. Document-extracted memories are cleaned up through document
deletion when they are no longer backed by any source document.
