Data API

Get Access Token

post

Generate a access token to use in requests

Body
clientSecretstringOptionalExample: {{dataClientSecret}}
environmentApiKeystringOptionalExample: {{dataApiKey}}
Responses
200

Successful Response

application/json
post
/metrics/auth/token
200

Successful Response

No content

Run SQL Query

post

Run a SQL query against your warehouse

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
encodedQuerystringOptionalExample: U0VMRUNUIHRpbWVzdGFtcCwgdXNlcklkLCBhbm9ueW1vdXNJZCwgbmFtZSwgdWZQcm9wZXJ0aWVzLnVybFBhdGggYXMgcGFnZVBhdGggCkZST00gZXZlbnRzVGFibGUgCldIRVJFIG5hbWUgPSAnQHtldmVudE5hbWV9JyAKTElNSVQgQHtyb3dMaW1pdH0=
Responses
200

Successful Response

application/json
post
/metrics/query
200

Successful Response

No content

Last updated