Get SQL for a metric

gethttps://statsigapi.net/console/v1/metrics/{id}/sql

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

idstringrequired

id

Response

application/json
200· Get SQL for a metric
messagestringrequired

A simple string explaining the result of the operation.

dataobject[]required
Show child attributes
idType[]stringrequired

The ID type the SQL is being generated for

sql[]stringrequired

The SQL query for the metric

401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequired
messagestringrequired
404· Not Found. The requested resource could not be found.
statusintegerrequired
messagestringrequired

Was this helpful?