CreateNotePayload
@curiouslycory/memai-sdk / CreateNotePayload
Type Alias: CreateNotePayload
CreateNotePayload =
object
Defined in: types.ts:215
Payload for creating a new note directly (MemClient.createNote).
See
Example
const payload: CreateNotePayload = {
content: "# Project Ideas\n- Idea 1\n- Idea 2",
add_to_collections: ["Brainstorming"],
auto_organize: "File under 'Projects' and tag with #idea",
created_at: new Date().toISOString(),
};
Properties
add_to_collections?
optional
add_to_collections:string
[]
Defined in: types.ts:219
An array of collection titles or IDs to which the new note should be added.
apply_template?
optional
apply_template:string
Defined in: types.ts:224
The title or ID of a template to apply to the new note.
auto_format?
optional
auto_format:boolean
|string
Defined in: types.ts:227
If true
, Mem attempts to automatically format the note.
If a string, provides natural language instructions for formatting.
auto_organize?
optional
auto_organize:boolean
|string
Defined in: types.ts:222
If true
, Mem attempts to automatically organize the note.
If a string, provides natural language instructions for organization.
content
content:
string
Defined in: types.ts:217
The content of the note, typically in Markdown format.
created_at?
optional
created_at:string
Defined in: types.ts:229
Optional timestamp (ISO 8601 format) for when the note was created, if different from the processing time.
updated_at?
optional
updated_at:string
Defined in: types.ts:231
Optional timestamp (ISO 8601 format) for when the note was last updated, if different from the processing time.