Skip to main content
POST
/
api
/
cdp
/
sql
SQL Livre
curl --request POST \
  --url https://cdp.analytics.synapside.com/api/cdp/sql \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sql": "SELECT * FROM leads WHERE idade > 25"
}
'
{
  "success": true,
  "rows": [
    {}
  ],
  "row_count": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.analytics.synapside.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
sql
string
required
Example:

"SELECT * FROM leads WHERE idade > 25"

Response

SQL executado com sucesso.

success
boolean
type
enum<string>
Available options:
SELECT
rows
object[]
row_count
integer