FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
lightweight
lightweightglimpse2-runbook-test
Remix of lightweight/glimpse2-runbook
Public
Like
glimpse2-runbook-test
Home
Code
8
_townie
13
backend
7
frontend
1
shared
1
.vtignore
README.md
deno.json
H
main.tsx
Branches
3
Pull requests
Remixes
History
Environment variables
5
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
backend
/
services
/
README.md
Code
/
backend
/
services
/
README.md
Search
9/3/2025
README.md

Services

External API integrations (pure API calls only).

Services should:

  • Make direct API calls to external systems
  • Be pure functions that handle HTTP transport layer (response.ok)
  • Return consistent { success: boolean, data?: any, error?: string } format
  • NOT handle environment variables, business logic, or orchestrate multiple calls

Available Functions

  • getDatabases() - Search for all Notion databases
  • getDatabaseById(databaseId) - Retrieve specific database metadata
  • getPageById(pageId) - Retrieve specific page from Notion
  • getPageBlocks(pageId) - Retrieve page content blocks from Notion (with nested blocks recursively)
  • getMultiplePages(pageIds) - Batch retrieve multiple pages with their blocks from Notion (with nested blocks recursively)
  • getDatabasePages(databaseId) - Query pages from a database
  • updatePageUrl(pageId, url) - Update page URL property
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.