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

> ## Agent Instructions
> Conare's API is at https://api.conare.ai. Authenticate with `Authorization: Bearer $CONARE_API_KEY`.
> The full OpenAPI spec is at https://api.conare.ai/openapi.yaml; each endpoint has a page under /api-reference, and appending .md to any page URL returns its Markdown.
> Embed with model conare-embed-1; send input_type "query" for search queries. Rerank with conare-rerank-1.
> Prefer the TypeScript SDK (`npm install conare`) or plain HTTP in examples.
> Install the Conare skill with `npx skills add https://docs.conare.ai`; search these docs over MCP at https://docs.conare.ai/mcp; the whole site is at https://docs.conare.ai/llms-full.txt.

# Dokumente abrufen, auflisten und löschen

> Ein Dokument lesen, einen Namespace seitenweise durchgehen und nach Id oder Filter löschen.

Um alles in einem Namespace zu löschen, [löschen Sie den Namespace](https://docs.conare.ai/de/namespaces.md#einen-namespace-löschen).

## Ein Dokument abrufen

`GET /namespaces/:namespace/documents/:id`

Gibt ein Dokument mit vollständigem Text zurück, oder `404 document_not_found`.

```bash curl theme={null}
curl https://api.conare.ai/namespaces/docs/documents/refunds \
  -H "Authorization: Bearer $CONARE_API_KEY"
```

```ts TypeScript theme={null}
const doc = await docs.get("refunds"); // null if it doesn't exist
```

```json Response theme={null}
{
  "id": "refunds",
  "text": "Refunds are available for 30 days.",
  "metadata": { "team": "support" },
  "updated_at": "2026-10-21T21:38:52Z",
  "version": 1
}
```

| Feld | Bedeutung |
| - | - |
| `id`, `text`, `metadata` | Das Dokument |
| `updated_at` | Wann es sich zuletzt geändert hat, in UTC |
| `version` | Steigt mit jeder Änderung |
| `user`, `seq` | Wie [geschrieben](https://docs.conare.ai/de/write.md), sofern gesetzt |

Vollständiges Schema: [Ein Dokument abrufen](https://docs.conare.ai/de/api-reference/documents/get-a-document.md).

## Dokumente auflisten

`GET /namespaces/:namespace/documents`

Gibt Dokumente in Id-Reihenfolge zurück, ohne ihren Text.

```bash curl theme={null}
curl "https://api.conare.ai/namespaces/docs/documents?limit=100" \
  -H "Authorization: Bearer $CONARE_API_KEY"
```

```ts TypeScript theme={null}
for await (const doc of docs.list()) {
  console.log(doc.id, doc.version); // reads every page
}
```

```json Response theme={null}
{
  "documents": [
    { "id": "refunds", "metadata": { "team": "support" }, "updated_at": "2026-10-21T21:38:52Z", "version": 1 },
    { "id": "shipping", "metadata": { "team": "ops" }, "updated_at": "2026-10-21T21:38:52Z", "version": 1 }
  ],
  "next_cursor": null
}
```

| Option | Typ | Funktion |
| - | - | - |
| `limit` | integer, Standard 50 | Dokumente pro Seite, 1-100 |
| `cursor` | string | Der `next_cursor` der vorherigen Seite, der auf der letzten Seite `null` ist |

Vollständiges Schema: [Dokumente auflisten](https://docs.conare.ai/de/api-reference/documents/list-documents.md).

## Ein Dokument löschen

`DELETE /namespaces/:namespace/documents/:id`

Löscht ein Dokument oder gibt `404 document_not_found` zurück.

```bash curl theme={null}
curl -X DELETE https://api.conare.ai/namespaces/docs/documents/refunds \
  -H "Authorization: Bearer $CONARE_API_KEY"
```

```ts TypeScript theme={null}
await docs.delete("refunds");
```

```json Response theme={null}
{ "deleted": true }
```

Vollständiges Schema: [Ein Dokument löschen](https://docs.conare.ai/de/api-reference/documents/delete-a-document.md).

## Mehrere löschen

`POST /namespaces/:namespace/documents/delete`

Löscht eine Liste von Ids oder jedes Dokument, auf das ein Filter passt: Senden Sie `ids` oder `filter`, nicht beides.

```bash curl theme={null}
curl https://api.conare.ai/namespaces/docs/documents/delete \
  -H "Authorization: Bearer $CONARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ids": ["refunds", "shipping"]}'

curl https://api.conare.ai/namespaces/docs/documents/delete \
  -H "Authorization: Bearer $CONARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filter": {"team": "support"}}'
```

```ts TypeScript theme={null}
await docs.deleteMany(["refunds", "shipping"]); // how many were deleted
await docs.deleteWhere({ team: "support" });    // repeats until done
```

```json Response theme={null}
{ "deleted": 2, "more": false }
```

| Option | Typ | Funktion |
| - | - | - |
| `ids` | array | 1-1.000 Dokument-Ids; fehlende Ids werden übersprungen |
| `filter` | object | Ein [Filter](https://docs.conare.ai/de/filters.md), ohne `$ne` oder `$nin` |

* `deleted` gibt an, wie viele dieser Aufruf gelöscht hat.
* Ein Filter löscht in Stapeln: Solange `more` `true` ist, senden Sie ihn erneut.

> [!WARNING]
>
> Ein falsch geschriebener Filterschlüssel passt auf nichts, also wird nichts gelöscht.

Vollständiges Schema: [Dokumente nach Id oder Filter löschen](https://docs.conare.ai/de/api-reference/documents/delete-documents-by-id-or-filter.md).


## Related topics

- [Namespaces](https://docs.conare.ai/de/namespaces.md)
- [turbopuffer API](https://docs.conare.ai/de/turbopuffer.md)
- [Quellen](https://docs.conare.ai/de/sources.md)
- [Google Cloud Storage](https://docs.conare.ai/de/gcs.md)
- [Dokumente schreiben](https://docs.conare.ai/de/write.md)


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