cURL
Endpoints
Submit Query
Submits a query to Isofold for optimization and execution.
POST
cURL
Submit a SQL query to Isofold. The query will be analyzed, rewritten, and executed against the configured data warehouse. This is the primary entrypoint for using Isofold programmatically.
Next: Estimate Cost
Request
Send a JSON payload like the following:Fields
| Field | Type | Required | Description |
|---|---|---|---|
query | string | ✅ | The raw SQL to execute |
warehouse | string | ✅ | Target warehouse (bigquery, snowflake, aurora) |
Response
Fields
| Field | Type | Description |
|---|---|---|
trace_id | string | Unique identifier for this request |
rewritten_query | string | The version Isofold actually executed |
duration_ms | number | Total end-to-end latency in milliseconds |
rows | integer | Row count in the result set |
Authorization
All requests must include a Bearer token:Next: Estimate Cost
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The SQL query to run