ByteChef LogoByteChef

PostHog

PostHog is the only all-in-one platform for product analytics, feature flags, session replays, experiments, and surveys that's built for developers.

Categories: Analytics

Type: postHog/v1


Connections

Version: 1

API Key

Properties

NameLabelTypeDescriptionRequired
tokenAPI keySTRINGtrue

Connection Setup

  1. Navigate to your PostHog homepage.
  2. Click on Settings.
  3. Scroll until you reach Project ID.
  4. There you will see your Project API Key.

Actions

Create Event

Name: createEvent

Create a new event.

Properties

NameLabelTypeDescriptionRequired
api_keyApi Key ProjectSTRINGThe project API key used to create a new event.Found in Settings -> Project -> Project ID -> Project API key.true
eventEventSTRINGEvent name used to create a new event.true
distinct_idDistinct IDSTRINGA unique identifier for the user creating the event, such as their username, email address, or system-assigned ID.true

Example JSON Structure

{
  "label" : "Create Event",
  "name" : "createEvent",
  "parameters" : {
    "api_key" : "",
    "event" : "",
    "distinct_id" : ""
  },
  "type" : "postHog/v1/createEvent"
}

Output

Type: OBJECT

Properties

NameTypeDescription
statusSTRINGThe status of the request.

Output Example

{
  "status" : ""
}

Create Project

Name: createProject

Create a new Project.

Properties

NameLabelTypeDescriptionRequired
idOrganization IDSTRINGtrue
nameProject NameSTRINGtrue

Example JSON Structure

{
  "label" : "Create Project",
  "name" : "createProject",
  "parameters" : {
    "id" : "",
    "name" : ""
  },
  "type" : "postHog/v1/createProject"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRINGThe unique identifier for this project.
organizationSTRINGThe organization UUID associated with this project.
nameSTRINGThe name of the project.
product_descriptionSTRINGA description of the product.
created_atSTRINGCreation timestamp in ISO 8601 format.
effective_membership_levelINTEGERLevel of membership assigned to this organization.
has_group_typesBOOLEAN
Options true, false
Indicates whether group types are enabled.
live_events_tokenSTRINGToken used for accessing live events.
updated_atSTRINGLast updated timestamp in ISO 8601 format.
uuidSTRINGUniversally unique identifier for this record.
api_tokenSTRINGAPI token used for authentication.
app_urlsARRAY
Items [STRING]
List of application URLs.
slack_incoming_webhookSTRINGSlack webhook URL for incoming messages.
anonymize_ipsBOOLEAN
Options true, false
Whether IPs are anonymized.
completed_snippet_onboardingBOOLEAN
Options true, false
Whether the snippet onboarding has been completed.
ingested_eventBOOLEAN
Options true, false
Indicates if any event has been ingested.
test_account_filtersSTRINGFilters used to define test accounts.
test_account_filters_default_checkedBOOLEAN
Options true, false
Default checked state for test account filters.
path_cleaning_filtersSTRINGFilters used to clean paths in analytics.
is_demoBOOLEAN
Options true, false
Whether this is a demo account.
timezoneSTRINGTimezone of the account.
data_attributesSTRINGAdditional data attributes.
person_display_name_propertiesARRAY
Items [STRING]
Properties used to display person's name.
correlation_configSTRINGConfiguration for correlation analysis.
autocapture_opt_outBOOLEAN
Options true, false
Whether autocapture is disabled.
autocapture_exceptions_opt_inBOOLEAN
Options true, false
Whether exceptions are autocaptured.
autocapture_web_vitals_opt_inBOOLEAN
Options true, false
Whether web vitals are autocaptured.
autocapture_web_vitals_allowed_metricsSTRINGMetrics allowed for web vitals autocapture.
autocapture_exceptions_errors_to_ignoreSTRINGList of error types to ignore in exceptions.
capture_console_log_opt_inBOOLEAN
Options true, false
Whether console log capturing is enabled.
capture_performance_opt_inBOOLEAN
Options true, false
Whether performance capturing is enabled.
session_recording_opt_inBOOLEAN
Options true, false
Whether session recording is enabled.
session_recording_sample_rateSTRINGSample rate for session recording.
session_recording_minimum_duration_millisecondsINTEGERMinimum duration for recorded sessions in milliseconds.
session_recording_linked_flagSTRINGFlag linking session recordings.
session_recording_network_payload_capture_configSTRINGNetwork payload config for session recordings.
session_recording_masking_configSTRINGMasking configuration for session recordings.
session_replay_configSTRINGConfiguration for session replay.
survey_configSTRINGConfiguration for surveys.
access_controlBOOLEAN
Options true, false
Whether access control is enabled.
week_start_dayINTEGERDefines the first day of the week.
primary_dashboardINTEGERID of the primary dashboard.
live_events_columnsARRAY
Items [STRING]
Columns shown in live events.
recording_domainsARRAY
Items [STRING]
List of domains where recording is allowed.
person_on_events_querying_enabledSTRINGWhether person querying on events is enabled.
inject_web_appsBOOLEAN
Options true, false
Whether web apps should be injected.
extra_settingsSTRINGAny extra settings not covered elsewhere.
modifiersSTRINGCurrent modifiers in use.
default_modifiersSTRINGDefault modifier settings.
has_completed_onboarding_forSTRINGFeatures the user has completed onboarding for.
surveys_opt_inBOOLEAN
Options true, false
Whether surveys are enabled.
heatmaps_opt_inBOOLEAN
Options true, false
Whether heatmaps are enabled.
product_intentsSTRINGProduct intents settings.
flags_persistence_defaultSTRINGDefault setting for flags persistence.

Output Example

{
  "id" : "",
  "organization" : "",
  "name" : "",
  "product_description" : "",
  "created_at" : "",
  "effective_membership_level" : 1,
  "has_group_types" : false,
  "live_events_token" : "",
  "updated_at" : "",
  "uuid" : "",
  "api_token" : "",
  "app_urls" : [ "" ],
  "slack_incoming_webhook" : "",
  "anonymize_ips" : false,
  "completed_snippet_onboarding" : false,
  "ingested_event" : false,
  "test_account_filters" : "",
  "test_account_filters_default_checked" : false,
  "path_cleaning_filters" : "",
  "is_demo" : false,
  "timezone" : "",
  "data_attributes" : "",
  "person_display_name_properties" : [ "" ],
  "correlation_config" : "",
  "autocapture_opt_out" : false,
  "autocapture_exceptions_opt_in" : false,
  "autocapture_web_vitals_opt_in" : false,
  "autocapture_web_vitals_allowed_metrics" : "",
  "autocapture_exceptions_errors_to_ignore" : "",
  "capture_console_log_opt_in" : false,
  "capture_performance_opt_in" : false,
  "session_recording_opt_in" : false,
  "session_recording_sample_rate" : "",
  "session_recording_minimum_duration_milliseconds" : 1,
  "session_recording_linked_flag" : "",
  "session_recording_network_payload_capture_config" : "",
  "session_recording_masking_config" : "",
  "session_replay_config" : "",
  "survey_config" : "",
  "access_control" : false,
  "week_start_day" : 1,
  "primary_dashboard" : 1,
  "live_events_columns" : [ "" ],
  "recording_domains" : [ "" ],
  "person_on_events_querying_enabled" : "",
  "inject_web_apps" : false,
  "extra_settings" : "",
  "modifiers" : "",
  "default_modifiers" : "",
  "has_completed_onboarding_for" : "",
  "surveys_opt_in" : false,
  "heatmaps_opt_in" : false,
  "product_intents" : "",
  "flags_persistence_default" : ""
}

How is this guide?

Last updated on

On this page