API Reference

Query public notes, subjects, and topics directly from your code tools using our developer endpoints.

GET/api/notes

Retrieve a list of public notes, filtered by pagination, subject, or topic.

Request Parameters

ParameterTypeDescription
pageintegerPage number (default: 1)
limitintegerNotes per page (default: 10)
subjectstringSubject slug filter

Example Response (JSON)

{
  "notes": [
    {
      "id": "cmqlccfr7001qwemo4ye3ozaz",
      "title": "The CAP Theorem",
      "slug": "the-cap-theorem",
      "excerpt": "Master consistency, availability, and partition tolerance...",
      "difficulty": "HARD",
      "views": 482,
      "topic": {
        "name": "Distributed Databases",
        "slug": "distributed-databases"
      }
    }
  ],
  "totalPages": 5,
  "currentPage": 1
}
GET/api/notes/:id

Retrieve comprehensive details of a single public note, including its content sections.

Request Parameters

ParameterTypeDescription
idstringUnique UUID or Cuid of the note

Example Response (JSON)

{
  "id": "cmqlccfr7001qwemo4ye3ozaz",
  "title": "The CAP Theorem",
  "status": "PUBLISHED",
  "sections": [
    {
      "id": "sec-1",
      "title": "Deconstructing CAP",
      "contentType": "TEXT",
      "content": "Formulated by Eric Brewer..."
    }
  ]
}