Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Delete session recording by uuid
POSTHOG_DELETE_SESSION_RECORDINGDelete a session recording by providing the session's UUID and the associated project ID. Requires `session_recording:write` permission. Returns no content on successful deletion.
Remove session recording from playlist
POSTHOG_DELETE_SESSION_RECORDING_FROM_PLAYLISTRemove a session recording from a playlist in a PostHog project. This action only removes the recording from the playlist - it does not delete the recording itself. The recording remains available in the project and can be re-added to playlists later. Requires project_id (get via /api/projects/), short_id (playlist identifier), and session_recording_id. Returns HTTP 204 on success. The operation is idempotent - removing a non-existent recording succeeds. Useful for curating playlists by removing irrelevant or accidentally added recordings. Works with 'collection' type playlists.
Delete survey by id
POSTHOG_DELETE_SURVEYDelete a survey by providing its UUID and the associated project ID. Requires 'survey:write' permission. Returns no content with a 204 status on success.
Delete warehouse saved query
POSTHOG_DELETE_WAREHOUSE_SAVED_QUERYTool to delete a warehouse saved query from PostHog. Use when you need to remove a saved query from the data warehouse. The operation succeeds if the API returns 204 No Content status.
Delete web experiment
POSTHOG_DELETE_WEB_EXPERIMENTDelete a web experiment by its ID from a specific project. Use when you need to permanently remove a web experiment. Requires 'experiment:write' scope.
Disable Feature Flag
POSTHOG_DISABLE_FEATURE_FLAGDisable feature flag in a PostHog project. Disable a feature flag.
Cohort duplication to static
POSTHOG_DUPLICATE_COHORT_TO_STATICThis endpoint duplicates a specified cohort as a static one within a project. Path parameters include `project_id` (string) and cohort `id` (integer). Successful requests return cohort details.
Duplicate experiment
POSTHOG_DUPLICATE_EXPERIMENTTool to duplicate an existing experiment in PostHog. Use when you need to create a copy of an experiment with the same configuration. The API automatically appends '(Copy)' to the duplicated experiment name and creates a new feature flag for it.
Duplicate Llm Prompt
POSTHOG_DUPLICATE_LLM_PROMPTDuplicate named LLM prompt in a PostHog project.
Duplicate survey to projects
POSTHOG_DUPLICATE_SURVEY_TO_PROJECTSDuplicate a survey to multiple projects in a single transaction. Accepts a list of target team IDs and creates a copy of the survey in each project. Uses an all-or-nothing approach - if any duplication fails, all changes are rolled back.
Enable Feature Flag
POSTHOG_ENABLE_FEATURE_FLAGEnable feature flag in a PostHog project. Enable a feature flag.
Enable project early access feature
POSTHOG_ENABLE_PROJECT_EARLY_ACCESS_FEATUREEnables a new early access feature for a project using project ID, payload with details, and PersonalAPIKeyAuth. Returns a 201 status on success.
End Experiment
POSTHOG_END_EXPERIMENTEnd experiment in a PostHog project. End a running experiment without shipping a variant.
Finish symbol sets bulk upload
POSTHOG_FINISH_SYMBOL_SETS_BULK_UPLOADTool to finalize bulk upload of error tracking symbol sets for a PostHog project. Use when completing a multi-part symbol set upload process. This endpoint marks the upload as complete and makes the symbol sets available for error stack trace symbolication.
Flag annotation as deleted
POSTHOG_FLAG_ANNOTATION_AS_DELETEDUpdate an annotation's deleted flag by project and annotation ID. The flag defaults to true to mark the annotation as deleted, but can also be set to false.
Create Notebook Widgets Fork
POSTHOG_FORK_NOTEBOOK_WIDGETFork notebook widget in a PostHog project. PostHog documents this notebook API as early access and subject to breaking changes.
Create Experiment Freeze Exposure
POSTHOG_FREEZE_EXPERIMENT_EXPOSUREFreeze experiment exposure in a PostHog project. Freeze exposure on a running experiment while metrics keep flowing.
Create Insight Generate Metadata
POSTHOG_GENERATE_INSIGHT_METADATAGenerate insight metadata in a PostHog project. Generate an AI-suggested name and description for an insight based on its query configuration.
Generate Insight Name
POSTHOG_GENERATE_INSIGHT_NAMETool to generate an AI-suggested name for a PostHog insight based on its query configuration. Use when you need to automatically name an insight instead of manually creating a descriptive title.
Create Notebook Widgets Generate
POSTHOG_GENERATE_NOTEBOOK_WIDGETQueue AI generation for an existing markdown Widget node in a PostHog notebook. Returns HTTP 202 status, not completed source. Requires organization AI data-processing approval and available AI credits; generation may incur charges. Reuse generation_id only for identical retries. PostHog documents this notebook API as early access and subject to breaking changes.