Metrics

Get Dashboard Filter Suggestions

POST
/v0/projects/{idOrSlug}/metrics/filter-suggestions

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Request Body

application/json
  1. body
dashboardId?string|null|null
fields*array<string>
numericFields?array<string>|null
timeRange?|||null

Response Body

Success

application/json
  1. response
[key: string]?
curl -X POST 'https://api.faststats.dev/v0/projects/string/metrics/filter-suggestions' \  -H 'Content-Type: application/json' \  -d '{  "fields": [    "string"  ]}'
{  "property1": {    "values": [      "string"    ],    "numericRange": {      "min": 0,      "max": 0    }  },  "property2": {    "values": [      "string"    ],    "numericRange": {      "min": 0,      "max": 0    }  }}