All sharing endpoints require authentication via JWT or API token. Only note owners can manage shares.
Bearer token (JWT or API token)
Share Note
Share a note with another user by their user ID.Note UUID to share
UUID of user to share with (cannot be empty)
Share permission level:
viewer- Read-only accesseditor- Read and write access
Unique share ID
Note being shared
User receiving access
User who created the share (note owner)
Permission level:
viewer or editorUser details for the recipient
Error Responses
403 Forbidden
404 Not Found
409 Conflict
List Note Shares
Get all users a note is shared with.Note UUID
Only the note owner can view the list of shares. Users with shared access cannot see who else has access to the note.
Update Share Permission
Change the permission level of an existing share.Note UUID
Share UUID
Updated permission level:
viewer- Read-only accesseditor- Read and write access
Error Responses
403 Forbidden
404 Not Found
Revoke Share
Remove a user’s access to a note.Note UUID
Share UUID to revoke
Error Responses
403 Forbidden
404 Not Found
Revoking a share soft-deletes it (marks as
isDeleted: true). The share record remains in the database but the user immediately loses access to the note.Permission Levels
Viewer Permission
Users withviewer permission can:
- View note content
- See note metadata (title, tags, timestamps)
- View note in their shared notes list
viewer permission cannot:
- Edit note content or metadata
- Delete or archive the note
- Share the note with others
- Modify tags
Editor Permission
Users witheditor permission can:
- View note content
- Edit note content, title, and metadata
- Pin/unpin the note
- Archive/unarchive the note
- Add/remove tags
- Move note to trash (soft delete)
editor permission cannot:
- Permanently delete the note
- Share the note with others
- Modify existing shares
- Change note ownership
Shared Note Behavior
In List Endpoints
Shared notes appear in the note list with additional metadata:false for shared notes, true for owned notesCurrent user’s permission:
viewer or editor (null for owned notes)Deleted Shares
Shares marked asisDeleted: true are excluded from:
- List note shares endpoint
- Note list queries (shared users no longer see the note)
- Permission checks (access is revoked)
Finding Shared Notes
The main notes list endpoint (GET /api/notes) automatically includes:
- Notes you own
- Notes shared with you (with active shares)
Share Lifecycle
- Create Share: Owner shares note with user
- Active: User can access note per permission level
- Update: Owner can change permission from viewer to editor or vice versa
- Revoke: Owner removes user’s access (soft delete)