Skip to main content
POST
Create document from text

Authorizations

Authorization
string
header
required

API key issued via POST /v1/api-keys. Prefix is zsk_. Pass as Authorization: Bearer zsk_…. Scopes are enforced per key.

Body

application/json
text
string
required

Document content. UTF-8 text, max 2 MB.

name
string

Display name. Defaults to the first ~40 chars of text.

folder_id
object

Parent folder ID; null = root.

Response

201 - undefined