provider organizationsorganizations POST /api/organizations/
@utdk/posthog /api/organizations/
create

Try it

Authentication
Configure credentials for PostHog API
create
POST/api/organizations/

Input

required
required
required
required
required
required
required
required
required
required
required

Legacy field; member-join emails are controlled per user in account notification settings.

required
required

When True, organization members (below admin) are allowed to create new projects. Admins and owners can always create projects.

required

When True, this organization allows its data to be used to train PostHog AI models.

required

When True, the AI training opt-out setting cannot be modified through the UI or API.

required

When True, in-app callouts inviting members to enable AI training are shown.

required

Default statistical method for new experiments in this organization. * `bayesian` - Bayesian * `frequentist` - Frequentist

Default setting for 'Discard client IP data' for new projects in this organization.

ID of the role to automatically assign to new members joining the organization

required

Set this to 'No' to temporarily disable an organization.

required

(optional) reason for why the organization has been de-activated. This will be displayed to users on the web app.

required

Set to True when org deletion has been initiated. Blocks all UI access until the async task completes.

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