curl -X POST "https://your-domain.com/api/notes/create" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Project Ideas",
"data": {
"content": {
"md": "# New Feature Ideas\n\n- Add dark mode\n- Improve search"
}
}
}'
{
"id": "note_xyz789",
"user_id": "user_123",
"title": "Project Ideas",
"data": {
"content": {
"md": "# New Feature Ideas\n\n- Add dark mode\n- Improve search"
}
},
"folder_id": null,
"access_grants": [],
"updated_at": 1709395200,
"created_at": 1709395200
}
Notes & Folders
Create Note
POST
/
api
/
notes
/
create
curl -X POST "https://your-domain.com/api/notes/create" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Project Ideas",
"data": {
"content": {
"md": "# New Feature Ideas\n\n- Add dark mode\n- Improve search"
}
}
}'
{
"id": "note_xyz789",
"user_id": "user_123",
"title": "Project Ideas",
"data": {
"content": {
"md": "# New Feature Ideas\n\n- Add dark mode\n- Improve search"
}
},
"folder_id": null,
"access_grants": [],
"updated_at": 1709395200,
"created_at": 1709395200
}
Create a new note for the authenticated user.
Authorization
Requires user permissionfeatures.notes or admin role.
Request Body
Title of the note
ID of the folder to place the note in
Response
Returns the created note object.Unique identifier for the note
ID of the note owner
Title of the note
Note content data
ID of the folder containing the note
Access control grants for the note
Unix timestamp of last update
Unix timestamp of creation
curl -X POST "https://your-domain.com/api/notes/create" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Project Ideas",
"data": {
"content": {
"md": "# New Feature Ideas\n\n- Add dark mode\n- Improve search"
}
}
}'
{
"id": "note_xyz789",
"user_id": "user_123",
"title": "Project Ideas",
"data": {
"content": {
"md": "# New Feature Ideas\n\n- Add dark mode\n- Improve search"
}
},
"folder_id": null,
"access_grants": [],
"updated_at": 1709395200,
"created_at": 1709395200
}
Access Control
- Users must have
features.notespermission enabled - The authenticated user becomes the owner of the note
- Access grants are filtered based on user permissions
- Public sharing requires
sharing.public_notespermission
⌘I