---
title: "Upload a raw document to a given assistant"
method: POST
path: "/api/documents/assistant/raw"
tags: ["Assistant Documents"]
---

# Upload a raw document to a given assistant

`POST /api/documents/assistant/raw`

Upload a raw document to a given assistant.

## Headers

- `x-api-key` string, required

## Request body

- CreateRawDocumentDto
  - `content` string, required
  - `fileName` string, required
  - `externalId` string, required
  - `assistantId` string, uuid
  - `folderId` string, uuid, required
  - `icon` string

## Response `201`

Document created successfully.

## Other responses

- `400` — Bad request.
- `401` — Unauthorized.

---

[API](https://skmtc.net/vambe/apis/vambe-ai-api.md) · [All operations](https://skmtc.net/vambe/apis/vambe-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vambe/vambe-ai-api/revisions/e206709d4be5/schema)
