GET a PostHog API endpoint
posthog_api_getRetrieve PostHog REST endpoints not covered by HogQL—feature flags, insights, dashboards, experiments, cohorts—with automatic project ID substitution.
Instructions
GET any PostHog REST endpoint for what HogQL does not cover: feature flags, insights, dashboards, experiments, cohorts. {project_id} in the path is replaced with the default project, e.g. /api/projects/{project_id}/feature_flags/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "posthog_api_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Endpoint path, e.g. /api/projects/{project_id}/insights/ | |
| params | No | Query-string parameters |