Documents API
List Documents
GET /v1/documentsQuery Parameters
| Parameter | Type | Description |
|---|---|---|
limit | integer | Results per page (default: 20, max: 100) |
offset | integer | Pagination offset (default: 0) |
sort | string | created_at, updated_at, title |
order | string | asc or desc |
search | string | Full-text search query |
tag | string | Filter by tag |
Example
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://philipshih.org/apps/rosetta/api/v1/documents?limit=10&sort=created_at&order=desc"Get Document
GET /v1/documents/:idCreate Document
POST /v1/documentsRequest Body
{
"title": "New Progress Note",
"content": "Document content in markdown...",
"tags": ["progress-note"],
"template_id": "tpl_123",
"metadata": {
"document_type": "progress_note",
"date_of_service": "2026-01-20"
}
}Update Document
PATCH /v1/documents/:idDelete Document
DELETE /v1/documents/:idDelete Response
{
"success": true,
"message": "Document moved to trash",
"recoverable_until": "2026-02-19T09:15:00Z"
}Last updated on