Endpoints
| Method | Path | Scope | Description |
|---|---|---|---|
GET | /documents | documents:read | List documents |
POST | /documents | documents:write | Create a document |
GET | /documents/:id | documents:read | Get a document with content |
PATCH | /documents/:id | documents:write | Update a document |
DELETE | /documents/:id | documents:write | Soft-delete a document |
List Documents
| Param | Type | Default | Description |
|---|---|---|---|
limit | integer | 50 | Results per page (max 100) |
offset | integer | 0 | Number of results to skip |
project_id | uuid | — | Filter by project |
Create a Document
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Document title (max 200 chars) |
description | string | No | Short description (max 500 chars) |
content | object | No | Document content (see format below) |
project_id | uuid | No | Assign to a project |
201 Created):
Get a Document
content.
Update a Document
| Field | Type | Description |
|---|---|---|
title | string | New title |
description | string | New description |
content | object | Replace document content |
Delete a Document
200 OK):
Content Format
Document content follows a block-based structure:heading, text, code, table, divider
Screenshot blocks are created by uploading media first via the Media API and referencing the returned key in the content.