Event
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
Retrieve event definitions
Required API key scopes
event_definition:readPath parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request
GET /api /projects /:project_id /event_definitionsexport POSTHOG_PERSONAL_API_KEY=[your personal api key]curl \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/projects/:project_id/event_definitions/
Response
Status 200 No response body
Retrieve event definitions retrieve
Required API key scopes
event_definition:readPath parameters
- idstring
A UUID string identifying this event definition.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request
GET /api /projects /:project_id /event_definitions /:idexport POSTHOG_PERSONAL_API_KEY=[your personal api key]curl \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/projects/:project_id/event_definitions/:id/
Response
Status 200 No response body
Update event definitions
Required API key scopes
event_definition:writePath parameters
- idstring
A UUID string identifying this event definition.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request
PATCH /api /projects /:project_id /event_definitions /:idexport POSTHOG_PERSONAL_API_KEY=[your personal api key]curl -X PATCH \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/projects/:project_id/event_definitions/:id/
Response
Status 200 No response body
Delete event definitions
Required API key scopes
event_definition:writePath parameters
- idstring
A UUID string identifying this event definition.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request
DELETE /api /projects /:project_id /event_definitions /:idexport POSTHOG_PERSONAL_API_KEY=[your personal api key]curl -X DELETE \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/projects/:project_id/event_definitions/:id/