curl --request POST \
--url https://api.example.com/api/notes \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>"
}
'{
"message": "<string>",
"data": {
"id": 123,
"title": "<string>",
"data": {},
"description": {},
"thumbnail": {},
"views": 123,
"visibility": "<string>",
"ownerId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"error": "<string>"
}Create a new note owned by the authenticated user
curl --request POST \
--url https://api.example.com/api/notes \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>"
}
'{
"message": "<string>",
"data": {
"id": 123,
"title": "<string>",
"data": {},
"description": {},
"thumbnail": {},
"views": 123,
"visibility": "<string>",
"ownerId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"error": "<string>"
}curl -X POST https://api.noteverse.com/api/notes \
-H "Authorization: Bearer YOUR_AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "My First Note"
}'
{
"message": "Note created",
"data": {
"id": 123,
"title": "My First Note",
"description": null,
"data": null,
"thumbnail": null,
"views": 0,
"visibility": "Private",
"createdAt": "2026-03-03T10:30:00.000Z",
"updatedAt": "2026-03-03T10:30:00.000Z",
"ownerId": 42,
"categoryId": null,
"subcategoryId": null
}
}
{
"error": "Invalid or expired token"
}
{
"error": "Error creating note"
}