---
title: "Add Content Knowledge Text Public"
method: POST
path: "/content/knowledge/sources/text"
tags: ["public-api"]
---

# Add Content Knowledge Text Public

`POST /content/knowledge/sources/text`

## Request

- Base URL: `https://api.trakkr.ai`
- URL: `https://api.trakkr.ai/content/knowledge/sources/text`
- Auth: HTTP bearer

Add a raw-text source to a brand's knowledge base.

Processing is async: the source returns with status='pending' and is chunked
and embedded in the background. Poll GET /content/knowledge?view=sources for
status (pending -> ready/error) and chunk counts.

## Request body

- PublicKnowledgeTextRequest: POST /content/knowledge/sources/text body.
  - `brand_id` string, uuid, required
  - `name` string, required
  - `content` string, required

## Response `200`

Successful Response

- ContentMutationPublicResponse
  - `success` boolean, nullable
  - `status` string, nullable
  - `id` string, nullable
  - `brand_id` string, nullable

## Other responses

- `401`: Missing, malformed, or expired credentials
- `402`: The current plan does not fund this operation
- `403`: Invalid credentials, missing brand access, or insufficient role
- `422`: Validation Error
- `429`: Rate limit exceeded
- `500`: The operation failed
- `503`: Authentication, entitlement, or a required dependency is temporarily unavailable

---

[API](https://skmtc.dev/trakkr/apis/trakkr-api.md) · [All operations](https://skmtc.dev/trakkr/apis/trakkr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trakkr/apis/trakkr-api/revisions/189a9e76b8d5?raw)
