Get SQL for a metric

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
idTypestringrequired

The ID type the SQL is being generated for

sqlstringrequired

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
Allowed values:401
messagestringrequired
404· Not Found. The requested resource could not be found.
statusintegerrequired
Allowed values:404
messagestringrequired

Was this helpful?