Data API
Generate a access token to use in requests
Body
clientSecretstringOptionalExample:
{{dataClientSecret}}environmentApiKeystringOptionalExample:
{{dataApiKey}}Responses
200
Successful Response
application/json
post
/metrics/auth/tokenPOST /metrics/auth/token HTTP/1.1
Host: metrics-api.userflux.co
Content-Type: application/json
Accept: */*
200
Successful Response
No content
Run a SQL query against your warehouse
Authorizations
Body
encodedQuerystringOptionalExample:
U0VMRUNUIHRpbWVzdGFtcCwgdXNlcklkLCBhbm9ueW1vdXNJZCwgbmFtZSwgdWZQcm9wZXJ0aWVzLnVybFBhdGggYXMgcGFnZVBhdGggCkZST00gZXZlbnRzVGFibGUgCldIRVJFIG5hbWUgPSAnQHtldmVudE5hbWV9JyAKTElNSVQgQHtyb3dMaW1pdH0=Responses
200
Successful Response
application/json
post
/metrics/queryPOST /metrics/query HTTP/1.1
Host: metrics-api.userflux.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
200
Successful Response
No content
Last updated