glimpse2-runbook-test
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.
Viewing readonly version of main branch: v51View latest version
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
getDatabases()
- Search for all Notion databasesgetDatabaseById(databaseId)
- Retrieve specific database metadatagetPageById(pageId)
- Retrieve specific page from NotiongetPageBlocks(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 databaseupdatePageUrl(pageId, url)
- Update page URL property