provider accounts POST /api/environments/{environment_id}/accounts/
@utdk/posthog /api/environments/{environment_id}/accounts/
environments_accounts_create
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsAccountsCreate
POST/api/environments/{environment_id}/accounts/

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Input

required
required

Human-readable name of the account.

Identifier linking this account to its source customer — the analytics group key (the customer's organization id), used to match billing and external records. Optional.

Typed account properties: assignment fields (csm, account_executive, account_owner) and external system identifiers (stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id, zendesk_id, slack_channel_id, usage_dashboard_link). Defaults to an empty object. Unknown keys are rejected.

Tag names attached to the account. Pass a list to replace existing tags.

required

Short IDs of the internal notebooks linked to this account, used to persist investigations, call notes, and other free-form context. Empty list if no notebooks have been created for the account.

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.environmentsAccountsCreate()