Execute read-only ClickHouse SQL queries against your Formo analytics data warehouse via the API. Returns structured results for events, users, and sessions.

query:read permission. Send it in the Authorization header:
POST/v0/querySELECT/WITH statement (read-only).LIMIT is required and must be <= 1000.200 OK returns rows plus pagination metadata inferred from the query:
400: missing query, invalid SQL, LIMIT over 1000, or missing project id.401: missing/invalid authorization header or API key.403: API key lacks query:read permission.404: project or read token not found.500: failure executing the query.Workspace API key (e.g. formo_xxx). Create one in the Formo dashboard under Team Settings > API Keys.
SQL query to execute. Must be read-only (SELECT/WITH), single statement, no comments. LIMIT is capped at 1,000,000.