> For the complete documentation index, see [llms.txt](https://api.docs.blockbrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.docs.blockbrain.ai/de/erste-schritte/getting-started/dateien-hochladen-und-mit-ihnen-arbeiten.md).

# Dateien hochladen und mit ihnen arbeiten

**Durch das Hochladen von Dateien als Wissensinhalte in einen Data Room stellen Sie dem Bot diese Wissensinhalte zur Verfügung, damit er Ihren Kontext versteht und Ihnen bei Ihrer Arbeit hilft.**

Die Arbeit mit Dateien innerhalb von Block Brain über die API erfordert drei separate Schritte:

1. Die Datei in einen bestimmten Data Room hochladen
2. Auf Abschluss der Verarbeitung warten (`status: "IN_PROGRESS"` ⇒ `status: "SUCCESS"`)
3. Chatnachrichten senden und[Mit Bot interagieren](/de/erste-schritte/getting-started/interact-with-bot.md)

### Anhänge (Dateien) direkt in einen Data Room hochladen

#### Um einen Anhang hochzuladen

Die maximal unterstützte Größe für einen Textanhang beträgt **10 MB**, und **25 MB** für einen Audioanhang.

Die unterstützten Anhangstypen sind:

* Akzeptiertes Textformat: `.pdf`, `.txt`, `.docx`, `.doc`, `.json`, `.csv`, `.eml`, `.msg`, `.pptx`, `.ppt`, `.md`, `.xlsx`, `.xls`, `.rtf`.
* Akzeptiertes Bildformat: `.jpg`, `.jpeg`, `.png`, `.gif`, `.webp`.
* Akzeptiertes Audioformat: `mp3`, `wav`, `ogg`, `flac`, `m4a`, `mpga`, `oga`, `webm`.

{% hint style="info" %}
Hochgeladene Bilder werden nur dann an das KI-Modell gesendet, wenn dieses Modell multimodale Eingaben unterstützt
{% endhint %}

Um eine Datei direkt in einen Data Room hochzuladen und ihren Inhalt dem Kontext des KI-Modells bereitzustellen, verwenden Sie den folgenden Endpunkt:

{% openapi src="<https://blocky.theblockbrain.ai/openapi.json>" path="/cortex/conversation/{convo\_id}/attachment" method="post" %}
<https://blocky.theblockbrain.ai/openapi.json>
{% endopenapi %}

#### Die Liste der in einem Data Room hochgeladenen Anhänge abrufen

Um zu sehen, welche Anhänge in den Data Room hochgeladen wurden und welchen Status sie haben, verwenden Sie den folgenden Endpunkt:

{% openapi src="<https://blocky.theblockbrain.ai/openapi.json>" path="/cortex/conversation/{convo\_id}/attachment" method="get" %}
<https://blocky.theblockbrain.ai/openapi.json>
{% endopenapi %}

#### Einen hochgeladenen Anhang aktivieren / deaktivieren

Um einen Anhang vorübergehend zu deaktivieren (seinen Inhalt aus der Eingabe des KI-Modells auszuschließen) oder wieder zu aktivieren, verwenden Sie den folgenden Endpunkt:

| `status` | Typ       | Beschreibung            |
| -------- | --------- | ----------------------- |
| `true`   | `boolean` | Den Anhang aktivieren   |
| `false`  | `boolean` | Den Anhang deaktivieren |

{% openapi src="<https://blocky.theblockbrain.ai/openapi.json>" path="/cortex/conversation/{convo\_id}/attachment/{attachment\_id}" method="patch" %}
<https://blocky.theblockbrain.ai/openapi.json>
{% endopenapi %}

#### Löschen eines hochgeladenen Anhangs

Das Löschen eines Anhangs entfernt ihn vollständig aus dem Data Room und kann nicht rückgängig gemacht werden.

{% openapi src="<https://blocky.theblockbrain.ai/openapi.json>" path="/cortex/conversation/{convo\_id}/attachment/{attachment\_id}" method="delete" %}
<https://blocky.theblockbrain.ai/openapi.json>
{% endopenapi %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api.docs.blockbrain.ai/de/erste-schritte/getting-started/dateien-hochladen-und-mit-ihnen-arbeiten.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
