# POST /knowledge-bases/:kb_id/ingest-text

**Resource:** [Knowledge Bases](./knowledge-bases.md)  
**MCP tool:** `ingest_knowledge_base_text`  
**Scopes:** `knowledge:write`  
**Write operation:** yes

Add a block of text (e.g. an uploaded document's content) to a knowledge base as an embedded entry.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `kb_id` | path | string | yes |  |
| `title` | body | string | yes |  |
| `text` | body | string | yes |  |
| `source_ref` | body | string | no |  |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/knowledge-bases/:kb_id/ingest-text"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"title":"...","text":"...","source_ref":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`