Skip to main content
POST

Create Note

Create a new note by providing the required fields. All fields are mandatory for creating a note.

Request Body

string
required
The title of the note
string
required
The main content/body of the note
string
required
Category classification. Valid values: css, val-town, prompts, notes, chat-gpt, cursor-chats, bash-commands
string
required
Group classification. Valid values: first, second, third, fourth, fifth
string
required
Visual color coding. Valid values: primary, secondary, accent, neutral, info, success, warning, error

Examples

Request Example

Response

Validation Rules

  • title: Must be a non-empty string
  • content: Must be a non-empty string
  • category: Must be one of the valid category values
  • group: Must be one of the valid group values
  • color: Must be one of the valid color values

Response Fields

The response includes all the provided fields plus:
  • id: Auto-generated unique identifier
  • archived: Defaults to false for new notes
  • createdAt: Timestamp when the note was created
  • updatedAt: Timestamp when the note was last updated (same as createdAt for new notes)