Use this file to discover all available pages before exploring further.
Predefined queries let you create named queries that can be executed via public endpoints without authentication. Define a query once with optional parameters, then expose it as a public API for frontend apps or third-party consumers.
Use client.executeQuery() to run a predefined query. This calls a public endpoint — no authentication is required.
const result = await client.executeQuery( 'active_users_by_country', // query name { country: 'US' }, // parameters 1 // version (optional));console.log(result.data); // Array of matching recordsconsole.log(result.count); // Number of recordsconsole.log(result.query_time_ms); // Execution time in milliseconds
The response follows the QueryDataResponse format:
Public API endpoints — Expose curated data from your collections without sharing app keys.
Parameterized queries for frontends — Let client-side code fetch data with query parameters, while the server controls the base query shape and accessible fields.
Rate-limited data access — Provide controlled read access to third parties without granting full API credentials.
Versioned queries — Use the version parameter to maintain backward compatibility when updating query logic.