View Routes

Server-side rendered views for frontend.

Endpoints

GET /views/glimpse/:id

  • Purpose: Returns Notion page data with related content as JSON (filtered for data consumption)
  • Authentication: Required (Google OAuth)
  • Parameters: id - Notion page ID
  • Response: Service response object with Notion page data and related content (button properties removed)
  • Filtering: Removes UI-specific properties (type: "button") for cleaner data consumption

Enhanced Functionality

The endpoint now fetches and includes related pages from the "Glimpse content" relation property with full nested block structures for complete content representation.