Data API
Generate a access token to use in requests
Body
clientSecretstringOptionalExample:
{{dataClientSecret}}environmentApiKeystringOptionalExample:
{{dataApiKey}}Responses
200
Successful Response
application/json
accessTokenstringOptionalExample:
access tokentokenTypestringOptionalExample:
Bearerpost/metrics/auth/token
POST /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
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
encodedQuerystringOptionalExample:
U0VMRUNUIHRpbWVzdGFtcCwgdXNlcklkLCBhbm9ueW1vdXNJZCwgbmFtZSwgdWZQcm9wZXJ0aWVzLnVybFBhdGggYXMgcGFnZVBhdGggCkZST00gZXZlbnRzVGFibGUgCldIRVJFIG5hbWUgPSAnQHtldmVudE5hbWV9JyAKTElNSVQgQHtyb3dMaW1pdH0=Responses
200
Successful Response
application/json
post/metrics/query
POST /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