CREATE PROJECT INSIGHTS WITH FORMAT OPTION
Create project insights with optional CSV/JSON format parameter. Requires
`project_id` in the path and a JSON body with project insight details. Supports
personal API key authentication. Succe
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_CREATE_PROJECT_INSIGHTS_WITH_FORMAT_OPTION])
RETRIEVE INSIGHT SHARING CONFIGURATIONS
Retrieve sharing configurations for a specific insight within a project,
requiring project and insight IDs. Validates access via PersonalAPIKeyAuth.
Returns data such as creation time and acce
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_RETRIEVE_INSIGHT_SHARING_CONFIGURATIONS])
RETRIEVE PROJECT INSIGHT DETAILS
Retrieve details for a specific project insight by ID, with options to format
as JSON/CSV, request refresh, and specify dashboard context. Supports PersonalAPIKeyAuth
with insight read access.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_RETRIEVE_PROJECT_INSIGHT_DETAILS])
UPDATE PROJECT INSIGHT DETAILS
Endpoint "/api/projects/{project_id}/insights/{id}/" allows for updating
an insight's details for a given project and insight ID, supporting JSON
and CSV formats, with fields like name, query,
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_UPDATE_PROJECT_INSIGHT_DETAILS])
PARTIAL UPDATE OF A PROJECT INSIGHT
The PATCH endpoint supports partial insight updates in a project, allows
format specification (CSV/JSON), and requires `PersonalAPIKeyAuth` and `insight:write`
scope for access.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_PARTIAL_UPDATE_OF_A_PROJECT_INSIGHT])
SET INSIGHT DELETION FLAG
Hard delete of this model is not allowed. Use a patch API call to set "deleted"
to true
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_SET_INSIGHT_DELETION_FLAG])
RETRIEVE PROJECT INSIGHT ACTIVITY DATA
Retrieve insights activity for a specific project and insight ID, offering
data in JSON or CSV format. Requires project_id and insight id in the path,
with optional data format query. Secure a
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_RETRIEVE_PROJECT_INSIGHT_ACTIVITY_DATA])
MARK INSIGHT AS VIEWED WITH CONFIGURABLE FORMAT
The POST endpoint marks an insight as viewed for a specified project, requires
`project_id` and `id`, supports `csv` or `json` formats, and returns fast-loading
serialized data.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_MARK_INSIGHT_AS_VIEWED_WITH_CONFIGURABLE_FORMAT])
RETRIEVE PROJECT ACTIVITY INSIGHTS
Retrieve activity insights for a specific project by project_id, supporting
CSV or JSON formats. Requires an API key with activity_log:read permission.
Limited to essential data to enhance res
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_RETRIEVE_PROJECT_ACTIVITY_INSIGHTS])
CANCEL INSIGHTS FOR A PROJECT
The "/api/projects/{project_id}/insights/cancel/" endpoint allows users
to cancel insights for a project by providing a project ID and insight details
in JSON or CSV, and confirms cancellation
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_CANCEL_INSIGHTS_FOR_A_PROJECT])
RETRIEVE FUNNEL INSIGHTS IN PROJECT
Gain insights from funnel analysis of a specific project by providing its
ID and having 'insight:read' permission. Supports JSON/CSV formats and offers
detailed info like creation, modificatio
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_RETRIEVE_FUNNEL_INSIGHTS_IN_PROJECT])
RETRIEVE PROJECT FUNNEL CORRELATION INSIGHTS
Retrieve insights about funnel correlations for a specific project by ID,
offering results in JSON or CSV. Supports querying and output formatting,
with a focus on fast loading of large datase
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_RETRIEVE_PROJECT_FUNNEL_CORRELATION_INSIGHTS])
GENERATE PROJECT FUNNEL CORRELATION INSIGHT
The /api/projects/{project_id}/insights/funnel/correlation endpoint generates
a correlation insight for funnel analysis in a project, accepting JSON/CSV
and needing 'project_id' and insight de
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_GENERATE_PROJECT_FUNNEL_CORRELATION_INSIGHT])
RETRIEVE LAST VIEWED INSIGHTS FOR USER
Returns basic details about the last 5 insights viewed by this user. Most
recently viewed first.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_RETRIEVE_LAST_VIEWED_INSIGHTS_FOR_USER])
RETRIEVE PROJECT INSIGHTS DETAILS
Retrieve detailed insights for a specific project using its ID. Queries
can be made in CSV or JSON format. Requires 'insight:read' permission. Results
include various metadata like creation, l
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_RETRIEVE_PROJECT_INSIGHTS_DETAILS])
CREATE PROJECT INSIGHTS WITH CUSTOMIZABLE PARAMETERS
The POST endpoint enables creating insights for projects using a project_id
and supports JSON/CSV. It offers detailed parameters for customizing insights
and returns structured data with Perso
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_CREATE_PROJECT_INSIGHTS_WITH_CUSTOMIZABLE_PARAMETERS])
RETRIEVE RETENTION INSIGHTS
Retrieve retention insights for a specified project. Options to output in
CSV or JSON format. Requires a project ID and supports query customization.
Authenticated access with 'insight:read' p
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_RETRIEVE_RETENTION_INSIGHTS])
CREATE RETRIEVE RETENTION INSIGHTS FOR PROJECT
Create and retrieve retention insights for a project using its ID, allowing
CSV/JSON outputs. Requires an API key with `insight:read` permissions and
supports query node JSON strings and old d
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_CREATE_RETRIEVE_RETENTION_INSIGHTS_FOR_PROJECT])
CREATE PROJECT TIMING INSIGHTS
Create timing insights for a project by POST to /api/projects/{project_id}/insights/timing,
supporting CSV or JSON. It returns a 200 status with content in the chosen
format.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_CREATE_PROJECT_TIMING_INSIGHTS])
RETRIEVE PROJECT TREND INSIGHTS
Retrieve trend insights for a specific project, supporting CSV or JSON formats.
Mandatory project_id required. Provides details on insight cache status,
creator, and associated dashboards. Aut
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.POSTHOG_RETRIEVE_PROJECT_TREND_INSIGHTS])