notes
Classes
NoteModel
Bases: BaseModel
Model representing a Note.
- Code Reference routers notes Classes NotesClient Functions
- Code Reference models notes Classes NoteUserResponse
Attributes
data
The content of the note.
Dict Fields
content(dict, required): Content in multiple formatscontent.json(Any, optional): JSON representation of content, typically nullcontent.html(str, optional): HTML formatted contentcontent.md(str, optional): Markdown formatted contentversions(list, optional): Historical versions of the note contentversions[].content(dict, optional): Version content structureversions[].timestamp(int, optional): Version timestamp in epochversions[].user_id(str, optional): User ID who created the version
meta
Metadata associated with the note.
Dict Fields
This dictionary is used to store additional metadata about the note. It can contain arbitrary key-value pairs for extensibility. No specific keys are enforced by the backend - it accepts any valid JSON structure. Common usage patterns include storing custom attributes, tags, or application-specific metadata. When updating notes, the backend merges new meta data with existing meta data.
access_control
Access control settings for the note.
Dict Fields
read(dict, optional): Read access control configurationread.group_ids(list[str], optional): List of group IDs that have read accessread.user_ids(list[str], optional): List of user IDs that have read accesswrite(dict, optional): Write access control configurationwrite.group_ids(list[str], optional): List of group IDs that have write accesswrite.user_ids(list[str], optional): List of user IDs that have write access
When None: Public read access, no write access (except owner) When {}: No special access control (public access for both read and write)
NoteForm
Bases: BaseModel
Form data for creating a new note.
- Code Reference routers notes Classes NotesClient Functions
Attributes
data
The content of the note.
Dict Fields
content(dict, required): Content in multiple formatscontent.json(Any, optional): JSON representation of content, typically nullcontent.html(str, optional): HTML formatted contentcontent.md(str, optional): Markdown formatted contentversions(list, optional): Historical versions of the note contentversions[].content(dict, optional): Version content structureversions[].timestamp(int, optional): Version timestamp in epochversions[].user_id(str, optional): User ID who created the version
meta
Metadata associated with the note.
Dict Fields
This dictionary is used to store additional metadata about the note. It can contain arbitrary key-value pairs for extensibility. No specific keys are enforced by the backend - it accepts any valid JSON structure. Common usage patterns include storing custom attributes, tags, or application-specific metadata.
access_control
Access control settings for the note.
Dict Fields
read(dict, optional): Read access control configurationread.group_ids(list[str], optional): List of group IDs that have read accessread.user_ids(list[str], optional): List of user IDs that have read accesswrite(dict, optional): Write access control configurationwrite.group_ids(list[str], optional): List of group IDs that have write accesswrite.user_ids(list[str], optional): List of user IDs that have write access
When None: Public read access, no write access (except owner) When {}: No special access control (public access for both read and write)
NoteUpdateForm
Bases: BaseModel
Form data for updating an existing note.
Attributes
data
The content of the note.
Dict Fields
content(dict, required): Content in multiple formatscontent.json(Any, optional): JSON representation of content, typically nullcontent.html(str, optional): HTML formatted contentcontent.md(str, optional): Markdown formatted contentversions(list, optional): Historical versions of the note contentversions[].content(dict, optional): Version content structureversions[].timestamp(int, optional): Version timestamp in epochversions[].user_id(str, optional): User ID who created the version
meta
Metadata associated with the note.
Dict Fields
This dictionary is used to store additional metadata about the note. It can contain arbitrary key-value pairs for extensibility. No specific keys are enforced by the backend - it accepts any valid JSON structure. Common usage patterns include storing custom attributes, tags, or application-specific metadata. When updating notes, the backend merges new meta data with existing meta data using shallow merge. If the same key exists in both existing and new meta, the new value overwrites the existing one.
access_control
Access control settings for the note.
Dict Fields
read(dict, optional): Read access control configurationread.group_ids(list[str], optional): List of group IDs that have read accessread.user_ids(list[str], optional): List of user IDs that have read accesswrite(dict, optional): Write access control configurationwrite.group_ids(list[str], optional): List of group IDs that have write accesswrite.user_ids(list[str], optional): List of user IDs that have write access
When None: Public read access, no write access (except owner) When {}: No special access control (public access for both read and write)
NoteUserResponse
NoteTitleIdResponse
Bases: BaseModel
Simplified note model containing only ID, title and timestamps.
- Code Reference routers notes Classes NotesClient Functions get_note_list