Metrics API
Generate a access token to use in metrics API requests
Body
clientSecretstringOptionalExample:
{{metricsClientSecret}}
environmentApiKeystringOptionalExample:
{{metricsApiKey}}
Responses
200
Successful Response
application/json
post
POST /metrics/auth/token HTTP/1.1
Host: metrics-api.userflux.co
Content-Type: application/json
Accept: */*
200
Successful Response
No content
Run a query against one of your pre-defined metrics
Authorizations
Body
variablesobjectOptional
Responses
200
Successful Response
application/json
post
POST /metrics/query/{metric-id} HTTP/1.1
Host: metrics-api.userflux.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
200
Successful Response
No content
Run a SQL query
Authorizations
Body
encodedQuerystringOptionalExample:
U0VMRUNUIHRpbWVzdGFtcCwgdXNlcklkLCBhbm9ueW1vdXNJZCwgbmFtZSwgdWZQcm9wZXJ0aWVzLnVybFBhdGggYXMgcGFnZVBhdGggCkZST00gZXZlbnRzVGFibGUgCldIRVJFIG5hbWUgPSAnQHtldmVudE5hbWV9JyAKTElNSVQgQHtyb3dMaW1pdH0=
Responses
200
Successful Response
application/json
post
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