Get SQL for a metric
get
https://statsigapi.net/console/v1/metrics/{id}/sqlAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredid
Response
application/json200· Get SQL for a metric
messagestringrequiredA simple string explaining the result of the operation.
dataobject[]requiredShow child attributes
idType[]stringrequiredThe ID type the SQL is being generated for
sql[]stringrequiredThe SQL query for the metric
401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequiredmessagestringrequired404· Not Found. The requested resource could not be found.
statusintegerrequiredmessagestringrequiredWas this helpful?