PostHog
List PostHog Insights
List PostHog Insights.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| project_idstring · required | string | required | Project ID returned by List PostHog Projects. Uses only the selected connected account. |
| limitnumber · optional | number | optional | Results per page, from 1 to 100; defaults to 50. Default: |
| cursorstring · optional | string | optional | Pass next_cursor from the previous page unchanged; omit for the first page. |
| savedboolean · optional | boolean | optional | PostHog saved. |
| searchstring · optional | string | optional | PostHog search. |
| short_idstring · optional | string | optional | PostHog short id from the matching lookup in this project. |
| insightstring · optional | string | optional | PostHog insight. |
| favoritedboolean · optional | boolean | optional | PostHog favorited. |
Response schema
{
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"short_id"
],
"properties": {
"id": {
"type": "number"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"tags": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
]
},
"hogql": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"order": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"query": {},
"types": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
]
},
"alerts": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
]
},
"result": {},
"columns": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"deleted": {
"type": "boolean"
},
"hasMore": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"short_id": {
"type": "string"
},
"timezone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"favorited": {
"type": "boolean"
},
"is_cached": {
"type": "boolean"
},
"is_sample": {
"type": "boolean"
},
"created_at": {
"type": "string"
},
"created_by": {
"anyOf": [
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number"
},
"uuid": {
"type": "string"
},
"email": {
"type": "string"
},
"last_name": {
"type": "string"
},
"first_name": {
"type": "string"
},
"distinct_id": {
"type": "string"
},
"hedgehog_config": {},
"is_email_verified": {
"type": "boolean"
},
"role_at_organization": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"dashboards": {
"type": "array",
"items": {
"type": "number"
}
},
"updated_at": {
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"derived_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"last_refresh": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"query_status": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"last_viewed_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"dashboard_tiles": {
"type": "array",
"items": {}
},
"cache_target_age": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"last_modified_at": {
"type": "string"
},
"last_modified_by": {
"anyOf": [
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number"
},
"uuid": {
"type": "string"
},
"email": {
"type": "string"
},
"last_name": {
"type": "string"
},
"first_name": {
"type": "string"
},
"distinct_id": {
"type": "string"
},
"hedgehog_config": {},
"is_email_verified": {
"type": "boolean"
},
"role_at_organization": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"user_access_level": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"resolved_date_range": {
"anyOf": [
{
"type": "object",
"required": [],
"properties": {
"date_to": {
"type": "string"
},
"date_from": {
"type": "string"
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"effective_privilege_level": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"effective_restriction_level": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"next_allowed_client_refresh": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"next_cursor": {
"type": "string"
}
},
"additionalProperties": false
}