---
title: "Get the SQL Code generated by Cube"
method: GET
path: "/api/v1/sql"
---

# Get the SQL Code generated by Cube

`GET /api/v1/sql`

## Headers

- `x-hasura-datasource-id` string, uuid, required
- `x-hasura-branch-id` string, uuid

## Response `200`

SQL query details

---

[API](https://skmtc.net/synmetrix/apis/cube-api.md) · [All operations](https://skmtc.net/synmetrix/apis/cube-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/synmetrix/cube-api/versions/2760f840d69f/schema)
