provider actions POST /api/projects/{project_id}/actions/
@utdk/posthog /api/projects/{project_id}/actions/
actions_create
format query
enum: csv, json
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
actionsCreate
POST/api/projects/{project_id}/actions/

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

Name of the action (must be unique within the project).

Human-readable description of what this action represents.

Whether to post a notification to Slack when this action is triggered.

Custom Slack message format. Supports templates with event properties.

Action steps defining trigger conditions. Each step matches events by name, properties, URL, or element attributes. Multiple steps are OR-ed together.

required
required
required
required
required
required

ISO 8601 timestamp when the action was pinned, or null if not pinned. Set any value to pin, null to unpin.

required
required

The effective access level the user has for this object

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.actionsCreate({
  "is_action": true
})