Example: Creating a Collection and a Note
Common Use Cases
- Integrations where you want complete control over the note content
- Migrating notes or collections from other services
- Automating the creation of notes from structured forms
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl "https://api.mem.ai/v2/collections" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MEM_API_KEY" \
-d '{
"id": "90815ddd-4c9b-49e3-b119-897ca04367f1",
"name": "Project Ideas",
"description": "A collection of project ideas"
}'
curl "https://api.mem.ai/v2/notes" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MEM_API_KEY" \
-d '{
"content": "# Great Idea\n\nBuild a mobile app that helps track daily water intake.",
"collection_ids": ["90815ddd-4c9b-49e3-b119-897ca04367f1"]
}'