Skip to main content
POST
pctx0

Authorizations

X-Access-Key
string
header
required

Workspace access key for agent/runtime integrations.

Path Parameters

workspaceId
string<uuid>
required

Body

multipart/form-data
file
file
required

.txt or .md file, max 2 MB

title
string
required
Maximum string length: 255
Example:

"Product FAQ"

labels
string

JSON array string like ["faq","support"] or comma-separated values

Example:

"[\"faq\",\"support\"]"

Response

Created

id
string<uuid>
required
Example:

"88888888-8888-8888-8888-888888888888"

workspaceId
string<uuid>
required
Example:

"11111111-1111-1111-1111-111111111111"

title
string
required
Example:

"Product FAQ"

filename
string
required
Example:

"faq.md"

contentType
string
required
Example:

"text/markdown"

checksum
string
required
Example:

"e3b0c44298fc1c149afbf4c8996fb924"

size
object
required
charCount
integer
required
Example:

1800

status
enum<string>
required
Available options:
processing,
indexed,
failed
Example:

"processing"

createdAt
string<date-time>
required
Example:

"2026-07-01T12:00:00Z"

updatedAt
string<date-time>
required
Example:

"2026-07-01T12:00:00Z"

labels
string[]
Example:
chunkingStrategy
string
Example:

"recursive"

chunkSize
integer
Example:

800

chunkOverlap
integer
Example:

100