provider event_definitions POST /api/projects/{project_id}/event_definitions/
@utdk/posthog /api/projects/{project_id}/event_definitions/
event_definitions_create
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
eventDefinitionsCreate
POST/api/projects/{project_id}/event_definitions/

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required
required
required
required
required
required
required
required
required

* `allow` - Allow * `reject` - Reject

Name of a single property on this event that PostHog UIs should display alongside the event (for example `$pathname` on `$pageview`). When set, surfaces like the session replay inspector show the property's value next to the event name without the user having to open the event.

required
required
required
required
required
required

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.eventDefinitionsCreate({
  "post_to_slack": false
})