posthog.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Events
aliasCreate
events.aliasCreate
Create an alias linking two distinct user IDs
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
distinct_id | string | Yes | — |
alias | string | Yes | — |
object
Output full type
Output full type
eventCreate
events.eventCreate
Ingest an analytics event
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
distinct_id | string | Yes | — |
event | string | Yes | — |
properties | object | No | — |
timestamp | string | No | — |
uuid | string | No | — |
properties full type
properties full type
object
Output full type
Output full type
identityCreate
events.identityCreate
Associate properties with a user identity
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
distinct_id | string | Yes | — |
properties | object | No | — |
properties full type
properties full type
object
Output full type
Output full type
trackPage
events.trackPage
Track a page view event
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
distinct_id | string | Yes | — |
url | string | Yes | — |
properties | object | No | — |
timestamp | string | No | — |
uuid | string | No | — |
properties full type
properties full type
object
Output full type
Output full type
trackScreen
events.trackScreen
Track a screen view event
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
distinct_id | string | Yes | — |
screen_name | string | Yes | — |
properties | object | No | — |
timestamp | string | No | — |
uuid | string | No | — |
properties full type
properties full type
object
Output full type
Output full type