SQL API (Serverless)

Run read-only SQL queries against organization tables over HTTPS with serverless compute.

Run read-only SQL queries against your organization's data over HTTPS. Queries execute on serverless compute managed by Amigo, so you don't need to provision or operate any infrastructure.

Access and Permissions

  • The feature must be enabled for your organization by Amigo (request via Slack).

  • Beta: the SQL API is in active development, so behavior and limits may change.

  • The endpoint requires elevated privileges; use an admin or service account token per your internal security policy.

  • Standard Amigo authentication applies (Authorization: Bearer <token>).

Endpoint

  • Method: POST

  • Path: /v1/<YOUR-ORG-ID>/admin/sql_query

  • Auth: Authorization: Bearer <AUTH-TOKEN-OF-USER>

  • Content-Type: application/json

Request Body

  • sql_query (string): a read-only SELECT statement over your data.

  • async_query (boolean): only false is supported today, for synchronous queries.

Query Execution Flow

Example Request

Replace <REGIONAL-BASE-URL> with your region's API host (see Getting Started → Regions & Endpoints) and <TABLE> with a table available to your organization.

Response

On success, the response contains execution metadata, columns, and rows. Synchronous queries return at most 1000 rows per request.

Limits and Behavior

  • Read-only: SELECT statements only. DDL, DML, and admin commands are not allowed.

  • Result size: up to 1000 rows per synchronous request.

  • Timeout: 30 seconds per synchronous query.

  • Rate limiting: 6 requests per minute per user.

If you need to extract larger result sets or run recurring analytics jobs, use Delta Sharing.

JDBC/ODBC Connectivity (Optional)

If you plan to connect BI tools or ETL platforms via standard database drivers:

  • Private preview: JDBC/ODBC connectivity is available only to select customers.

  • Request consideration by messaging your Amigo representative via Slack. Availability is limited and not guaranteed for all tenants.

  • You will receive driver and connection details (host or URL, authentication method, and any required parameters).

  • Configure your client or tool using the details provided, along with your admin or service account credentials.

Environments vary, so always use the exact connection information Amigo provides for your tenant. Don't guess driver names, ports, or parameters.

Last updated

Was this helpful?