Event definitions
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
GET | |
GET | |
GET |
Retrieve event definitions
Required API key scopes
event_definition:readPath parameters
- project_idstring
Example request
GET /api /projects /:project_id /event_definitionsExample response
Status 200 No response body
Create event definitions
Required API key scopes
event_definition:writePath parameters
- project_idstring
Example request
POST /api /projects /:project_id /event_definitionsExample response
Status 201 No response body
Retrieve event definitions retrieve
Required API key scopes
event_definition:readPath parameters
- idstring
- project_idstring
Example request
GET /api /projects /:project_id /event_definitions /:idExample response
Status 200 No response body
Update event definitions
Required API key scopes
event_definition:writePath parameters
- idstring
- project_idstring
Example request
PATCH /api /projects /:project_id /event_definitions /:idExample response
Status 200 No response body
Delete event definitions
Required API key scopes
event_definition:writePath parameters
- idstring
- project_idstring
Example request
DELETE /api /projects /:project_id /event_definitions /:idExample response
Status 204 No response body
Retrieve event definitions metrics
Path parameters
- idstring
- project_idstring
Example request
GET /api /projects /:project_id /event_definitions /:id /metricsExample response
Status 200 No response body
Retrieve event definitions golang
Required API key scopes
event_definition:readPath parameters
- project_idstring
Example request
GET /api /projects /:project_id /event_definitions /golangExample response
Status 200 No response body
Retrieve event definitions python
Required API key scopes
event_definition:readPath parameters
- project_idstring
Example request
GET /api /projects /:project_id /event_definitions /pythonExample response
Status 200 No response body
Retrieve event definitions typescript
Required API key scopes
event_definition:readPath parameters
- project_idstring
Example request
GET /api /projects /:project_id /event_definitions /typescriptExample response
Status 200 No response body
PostHog is an all-in-one developer platform for building successful products. We provide product analytics, web analytics, session replay, error tracking, feature flags, experiments, surveys, LLM analytics, data warehouse, CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.