Auva Notes
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/notes | List with optional ?q= search |
| POST | /api/notes | Create |
| PATCH | /api/notes/:id | Update |
| DELETE | /api/notes/:id | Trash or permanent delete |
Sharing
Set on PATCH:
{
"isPublic": true,
"password": "optional",
"burnAfterRead": false,
"isAnonymousShare": false
}
Public notes live at /n/:id.
Attachments
POST /api/notes/:id/attachments
Body: { "dataUrl": "data:image/png;base64,...", "name": "screenshot.png" }
Collaboration
Send If-Match: <updatedAt ISO> on PATCH for optimistic locking. Conflicts return 409.
Presence stream:
GET /api/notes/:id/presence
Returns Server-Sent Events with active viewers.