Skip to Content
API ReferenceDocuments

Documents API

List Documents

GET /v1/documents

Query Parameters

ParameterTypeDescription
limitintegerResults per page (default: 20, max: 100)
offsetintegerPagination offset (default: 0)
sortstringcreated_at, updated_at, title
orderstringasc or desc
searchstringFull-text search query
tagstringFilter 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/:id

Create Document

POST /v1/documents

Request 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/:id

Delete Document

DELETE /v1/documents/:id

Delete Response

{ "success": true, "message": "Document moved to trash", "recoverable_until": "2026-02-19T09:15:00Z" }
Last updated on