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

# Add text or FAQs

> Add a text, or a list of questions and answers, to a knowledge base without uploading a file.

Adds a text, or a list of questions and answers, to a knowledge base. Verbeo saves it as a Markdown file named after its title (`<title>.md`), the same file the dashboard's **Add text** saves, so it is a [file](https://docs.verbeo.ai/api-reference/knowledge-bases/overview.md#the-file-object) of the knowledge base in every way: it counts toward your plan's files, and you can read, [edit](https://docs.verbeo.ai/api-reference/knowledge-bases/edit-text.md), download or delete it like any other.

An FAQ list is saved as a two-column table, `| Question | Answer |`. From four questions on, each question becomes a passage of its own with its answer, so a caller's question finds exactly that answer.

## Path parameters

**id** `string` *required*

UUID of the knowledge base.

## Body

Send `text` or `faqs`, not both.

**title** `string` *required*

The text's name, 1 to 252 characters: the file is `<title>.md`.

**text** `string`

The text, in plain text or Markdown. Surrounding spaces are trimmed.

**faqs** `object[]`

At least one question with its answer: `[{ "question": "…", "answer": "…" }]`. Each needs both, and each is kept on one line.

The request may be up to 25 MB, and the file it makes is checked against your plan like an upload.

## Request

```bash Text theme={null}
curl -X POST "https://api.verbeo.ai/v1/knowledge-base/5df09066-0842-4c92-8ef0-6cf2ff6d7455/texts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "title": "Holiday hours", "text": "We are closed on 25 and 26 December, and open 10 to 2 on 31 December." }'
```

```bash FAQ list theme={null}
curl -X POST "https://api.verbeo.ai/v1/knowledge-base/5df09066-0842-4c92-8ef0-6cf2ff6d7455/texts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Parking FAQ",
    "faqs": [
      { "question": "Is parking free?", "answer": "Yes, for patients, in the basement." },
      { "question": "Is there a lift?", "answer": "Yes, from the basement to every floor." }
    ]
  }'
```

## Response

`201 Created` with the [file object](https://docs.verbeo.ai/api-reference/knowledge-bases/overview.md#the-file-object), `processing`.

```json theme={null}
{
  "success": true,
  "data": {
    "id": "7d0e1f2a-3b4c-4d5e-8f6a-7b8c9d0e1f2a",
    "store_id": "5df09066-0842-4c92-8ef0-6cf2ff6d7455",
    "display_name": "Parking FAQ.md",
    "file_type": "text/markdown",
    "file_size": 132,
    "status": "processing",
    "…": "every field of the file object"
  }
}
```

## Errors

| Code | Status | When |
| - | - | - |
| `VALIDATION_FAILED` | 422 | `title: required`; `title: must be at most 252 characters`; `text: send the text, or faqs for an FAQ list`; `text: send the text or faqs, not both`; `faqs: must hold at least one question and its answer`; `faqs.0.answer: required`. |
| `KB_DUPLICATE_FILE` | 409 | The same text is already a file of this knowledge base. |
| `KB_*` | 409 | Another of your [plan's limits](https://docs.verbeo.ai/api-reference/knowledge-bases/overview.md#errors). The message starts with the file's name, `<title>.md`. |
| `PAYLOAD_TOO_LARGE` | 413 | A request over 25 MB. |
| `NOT_FOUND` | 404 | No such knowledge base: `Knowledge base not found`. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.