Create Note
Build structured notes with precise control
With the Create Note API, you can create formatted notes with full control over organization, collections, and formatting. This API gives you the power to build your knowledge base with structured content exactly the way you want it.
Here’s a simple example using the Create Note API:
The response includes your newly created note:
Creating note content
The Create Note API uses Markdown to format your notes, giving you control over headings, lists, formatting, and structure.
Using Markdown for content
The required content
parameter accepts a Markdown-formatted string. The first line of your content is automatically treated as the note title.
Some formatting options you can use:
- Headings: Use
#
for main title,##
for sections - Lists: Create ordered or unordered lists
- Formatting: Apply italic, bold, or
code
formatting - Links: Add hyperlinks
- Tables: Create structured data tables
Organizing your notes
Mem provides several ways to organize your notes into collections, either manually or automatically.
Adding to collections
The add_to_collections
parameter lets you specify which collections to add your note to:
You can use collection titles or IDs:
- Using titles:
"add_to_collections": ["Research", "AI"]
- Using IDs:
"add_to_collections": ["8a7b6c5d-4e3f-2a1b-0c9d"]
- Or mix both:
"add_to_collections": ["Research", "8a7b6c5d-4e3f-2a1b-0c9d"]
If a collection doesn’t exist yet, it will be created automatically.
Automatic organization
The auto_organize
parameter gives you two options:
- Boolean value: Set to
true
to let Mem intelligently organize your note
- String instructions: Provide specific organization guidance
Enhancing notes with templates and formatting
Templates and auto-formatting help maintain consistency across your notes.
Applying templates
Use the apply_template
parameter to structure your note according to a predefined template:
You can reference templates by title or ID.
Automatic formatting
The auto_format
parameter helps structure your content:
- Boolean value: Set to
true
to let Mem apply smart formatting
- String instructions: Provide specific formatting guidance
Setting note metadata
Control when your notes were created or updated with timestamp parameters.
Timestamps
Set custom creation and update times with created_at
and updated_at
:
Both parameters accept ISO 8601 datetime strings. If not specified, the current time is used.
Real-world examples
Quick capture note
Detailed meeting notes with organization
Project documentation with custom organization
Next steps
Check out the full API reference for additional options and capabilities.