:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { useValues } from 'kea'
import { LemonSkeleton } from '@posthog/lemon-ui'
import { CodeSnippet } from 'lib/components/CodeSnippet'
import { Link } from 'lib/lemon-ui/Link'
import { organizationLogic } from 'scenes/organizationLogic'
export function OrganizationVariables(): JSX.Element {
const { currentOrganization } = useValues(organizationLogic)
return (
<div className="border rounded p-4 space-y-3 bg-bg-light max-w-160">
{currentOrganization ? (
<CodeSnippet compact thing="organization ID">
{String(currentOrganization.id)}
</CodeSnippet>
) : (
<LemonSkeleton className="h-9" />
)}
<p className="text-muted text-xs mb-0">
Use this ID to identify your organization in the{' '}
<Link to="https://posthog.com/docs/api">PostHog API</Link>.
</p>
</div>
)
}