
PostHog Identify
CertifiedIdentify a PostHog user
PostHog Identify
Identify a PostHog user
Sets or updates the person properties of the user identified by distinctId, by sending an $identify event with the properties in $set. Uses the project API key (phc_). Unlike the frontend identify, this does not merge an anonymous user into an identified one: use Alias for that.
type: io.kestra.plugin.posthog.IdentifyExamples
Identify a user and set their properties
id: user_onboarding_tracking
namespace: company.growth
inputs:
- id: user_id
type: STRING
- id: plan
type: STRING
tasks:
- id: identify_user
type: io.kestra.plugin.posthog.Identify
apiKey: "{{ secret('POSTHOG_API_KEY') }}"
host: "https://us.i.posthog.com"
distinctId: "{{ inputs.user_id }}"
properties:
plan: "{{ inputs.plan }}"
onboarding_completed: true
Properties
apiKey *string
PostHog project API key
The project API key (starts with phc_). Use a Kestra secret, e.g. {{ secret('POSTHOG_API_KEY') }}.
distinctId *string
Distinct ID
The distinct ID of the user to identify.
properties *object
Person properties
The properties to set on the person, sent as $set. At least one property is required. Properties with a null value are omitted: a null does not unset a property.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150host string
PostHog host
The PostHog ingestion host, e.g. https://us.i.posthog.com (US Cloud), https://eu.i.posthog.com (EU Cloud) or a self-hosted URL. Defaults to US Cloud when empty.