Skip to main content
POST
/
sql
/
transpile
/
{dialect}
Transpile SQL
curl --request POST \
  --url https://partner.peaka.studio/api/v1/sql/transpile/{dialect} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "SELECT * FROM catalog.schema.table WHERE id = 1"
}
'
{
  "result": "SELECT * FROM `catalog`.`schema`.`table` WHERE `id` = 1"
}

Authorizations

Authorization
string
header
required

Use the Authorization header with the value 'Bearer ' to authenticate. Partner API Keys have full access; Project API Keys are limited to their project scope. Learn more: https://docs.peaka.com/api-reference/authentication

Path Parameters

dialect
string
required

Target SQL dialect to transpile into

Body

application/json

SQL query to transpile

query
string

Response

200 - application/json

Transpiled query