Save a SQL query as a dynamic table
Converts one read-only SELECT over guest_profiles or master_profiles into a dynamic table: the WHERE clause becomes the saved filter document, so the table refreshes through the same evaluator and reconcile workflow as any other dynamic table. Select list, aggregations, GROUP BY, ORDER BY, LIMIT, and OFFSET are dropped; only the WHERE clause carries over. Queries the filter model cannot express (joins, unknown columns, unsupported predicates) return 422 sql_not_convertible. Requires scope write:tables.
Authorizations
Authorization: Bearer <token>. Token types resolve to the same scoped credential: a user-generated API key (casa_…, from Account settings — recommended for machines and MCP clients), a WorkOS AuthKit session JWT (the web app; org and role come from verified token claims), or a static token. API keys are group-scoped, optionally pinned to one property at creation. MCP OAuth connector tokens authenticate the MCP server only and are rejected on these REST routes.
Body
Response
Created table and its saved filter row.