All docs
Docs
API Reference

SQL API

The SQL API executes SQL against the database branch associated with the API key.

Overview

Database-scoped keys pin requests to a runtime branch.

The hosted gateway rejects explicit branch override SQL for scoped keys.

Use SQL for schema, data, branches, contexts, capabilities, and selected operator-reviewed workflows.

Developer notes

  • Use parameterized calls in SDKs where available.
  • Avoid branch-control SQL from public database-scoped keys.
  • Treat DDL as migration-controlled.
  • Check result size limits for user-facing queries.