Get SQL for a metric
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
idTypestringrequiredThe ID type the SQL is being generated for
sqlstringrequiredThe SQL query for the metric
401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequiredAllowed values:
401messagestringrequired404· Not Found. The requested resource could not be found.
statusintegerrequiredAllowed values:
404messagestringrequiredWas this helpful?