insights

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, as are views from impersonated staff-support sessions. Returns 201 on success regardless of how many ids were retained.

post/api/projects/{project_id}/insights/viewed/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/insights/viewed/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Query parameters

format'csv' | 'json'

Request body

insight_idsinteger[] required

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

Response

Views recorded.

Changes

No recorded changes to this operation across all 1 revision of this API.