provider metricsmetrics GET /api/environments/{environment_id}/metrics/values/
@utdk/posthog /api/environments/{environment_id}/metrics/values/
environments_metrics_values_retrieve
Distinct metric names for the team. Backs the picker UI.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
limit query
Max number of names to return. Defaults to 100; maximum 1000.
integer
value query
Substring filter (case-insensitive) applied to metric names.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsMetricsValuesRetrieve
GET/api/environments/{environment_id}/metrics/values/
Distinct metric names for the team. Backs the picker UI.

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Max number of names to return. Defaults to 100; maximum 1000.

Substring filter (case-insensitive) applied to metric names.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsMetricsValuesRetrieve({
  "limit": 100
})