Skip to main content
GET
/
api
/
notes
Get All Notes
curl --request GET \
  --url https://arfan-notes.val.run/api/notes
[
  {
    "id": 1,
    "title": "CSS Grid Layout",
    "content": "CSS Grid is a powerful layout system...",
    "category": "css",
    "group": "first",
    "color": "primary",
    "archived": false,
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z"
  },
  {
    "id": 2,
    "title": "Val Town Functions",
    "content": "Val Town is a platform for writing...",
    "category": "val-town",
    "group": "second",
    "color": "info",
    "archived": false,
    "createdAt": "2024-01-16T14:22:00Z",
    "updatedAt": "2024-01-16T14:22:00Z"
  }
]

Get All Notes

Retrieves all notes stored in the database. This endpoint returns an array of note objects with all their properties.

Endpoint

curl -X GET "https://arfan-notes.val.run/api/notes" \
  -H "Content-Type: application/json"

Response

[
  {
    "id": 1,
    "title": "CSS Grid Layout",
    "content": "CSS Grid is a powerful layout system...",
    "category": "css",
    "group": "first",
    "color": "primary",
    "archived": false,
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z"
  },
  {
    "id": 2,
    "title": "Val Town Functions",
    "content": "Val Town is a platform for writing...",
    "category": "val-town",
    "group": "second",
    "color": "info",
    "archived": false,
    "createdAt": "2024-01-16T14:22:00Z",
    "updatedAt": "2024-01-16T14:22:00Z"
  }
]

Response Fields

id
integer
Unique identifier for the note
title
string
The title of the note
content
string
The main content/body of the note
category
string
Category classification (css, val-town, prompts, notes, chat-gpt, cursor-chats, bash-commands)
group
string
Group classification (first, second, third, fourth, fifth)
color
string
Visual color coding (primary, secondary, accent, neutral, info, success, warning, error)
archived
boolean
Whether the note is archived or not
createdAt
datetime
Timestamp when the note was created
updatedAt
datetime
Timestamp when the note was last updated
I