provider insights POST /api/environments/{environment_id}/insights/viewed/
@utdk/posthog /api/environments/{environment_id}/insights/viewed/
environments_insights_viewed_create
Record that the current user has just viewed one or more insights. Submitted ids that do not belong to the current project or that point at deleted insights are silently dropped. Returns 201 on success regardless of how many ids were retained.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
format query
enum: csv, json

Try it

Authentication
Configure credentials for PostHog API
environmentsInsightsViewedCreate
POST/api/environments/{environment_id}/insights/viewed/
Record that the current user has just viewed one or more insights. Submitted ids that do not belong to the current project or that point at deleted insights are silently dropped. Returns 201 on success regardless of how many ids were retained.

Parameters

required

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

Input

required

Insight IDs that were just viewed by the current user. At most 2500 ids per request.

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.environmentsInsightsViewedCreate()