PostHog
List PostHog Events
List PostHog Events.
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. |
| afterstring · optional | string | optional | PostHog after. |
| beforestring · optional | string | optional | PostHog before. |
| distinct_idstring · optional | string | optional | Your stable identifier for the person or entity in this PostHog project; capture and identify can use a new identifier. |
| eventstring · optional | string | optional | PostHog event. |
| limitnumber · optional | number | optional | Results per page, from 1 to 100; defaults to 50. Default: |
| offsetnumber · optional | number | optional | PostHog offset. |
| person_idstring · optional | string | optional | PostHog person id from the matching lookup in this project. |
| propertiesstring · optional | string | optional | JSON properties to set, or property filters for a list action. Use the action’s object or array shape. |
| cursorstring · optional | string | optional | Pass next_cursor from the previous page unchanged; omit for the first page. |
Response schema
{
"type": "object",
"required": [
"events"
],
"properties": {
"events": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"distinct_id",
"event",
"timestamp"
],
"properties": {
"id": {
"type": "string"
},
"event": {
"type": "string"
},
"person": {},
"elements": {
"type": "array",
"items": {}
},
"timestamp": {
"type": "string"
},
"properties": {
"type": "object",
"additionalProperties": {}
},
"distinct_id": {
"type": "string"
},
"elements_chain": {
"type": "string"
}
},
"additionalProperties": false
}
},
"next_cursor": {
"type": "string"
}
},
"additionalProperties": false
}