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
}
{
"detail": "Unauthorized"
}
{
"detail": "An error occurred"
}
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
}
{
"detail": "Unauthorized"
}
{
"detail": "An error occurred"
}
Create a new note for the authenticated user.
Authorization
Requires user permissionfeatures.notes or admin role.
Request Body
string
required
Title of the note
string
ID of the folder to place the note in
array
Response
Returns the created note object.string
required
Unique identifier for the note
string
required
ID of the note owner
string
required
Title of the note
object
Note content data
string
ID of the folder containing the note
array
Access control grants for the note
integer
required
Unix timestamp of last update
integer
required
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
}
{
"detail": "Unauthorized"
}
{
"detail": "An error occurred"
}
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