---
title: "/woz/documents/content"
method: POST
path: "/woz/documents/content"
tags: ["Woz"]
---

# /woz/documents/content

`POST /woz/documents/content`

## Request

- Base URL: `<<api-url>>` (relative, and the document’s source URL is not known)
- URL: `<<api-url>>/woz/documents/content`
- Auth: API key in header `X-API-KEY`

Add text content to be indexed

## Headers

- `octa-agent-email` string

## Request body

- AddDocumentContentDto
  - `content` string, required: Text content to be indexed
  - `title` string: Descriptive title. Used as the .txt file name and as idempotency key. If omitted, uses the document ID.
  - `agentIds` string[]: IDs of agents that will have access to the content. If omitted, linked to the default agent.

## Response `201`

- DocumentContentResponse
  - `id` string, required: Document ID
  - `externalKey` string, required: External key for idempotency
  - `status` string, required: Processing status
  - `active` boolean, required: Whether the document is active
  - `createdAt` string, required: Creation timestamp

---

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