Aprovan Registry
provider 2506 operations 141 docs pages
@utdk/posthog
PostHog API

Generated UTDK provider client for PostHog API. Generated UTDK provider types and OpenAPI-backed client for https://us.posthog.com/api/schema/.

Import sample

import posthog from "@utdk/posthog"

Factory sample

import { createPosthogClient } from "@utdk/posthog"
Provider path
posthog
Source API title
PostHog API
Version
1.0.0
Generated
Jul 12, 2026, 9:26 PM
Homepage
Open site
API spec
View spec
User Home Settings
Optional generated docs page for @utdk/posthog.

User Home Settings

Operations

posthog.userHomeSettingsRetrieve

  • HTTP: GET /api/user_home_settings/{uuid}/
  • What it does: Get the authenticated user's pinned sidebar tabs and configured homepage for the current team. Pass @me as the UUID.
  • OpenAPI operationId: user_home_settings_retrieve
  • Path params: uuid
  • Query params: None
  • Response codes: 200
  • Transport options: None
  • TypeScript: Client interface

Inputs

  • Client input type: { [key: string]: unknown }
  • Client transport options: None

Outputs

  • Client return type: { tabs?: ({ id?: string; pathname?: string; search?: string; hash?: string; title?: string; customTitle?: string | null; iconType?: string; sceneId?: string | null; sceneKey?: string | null; sceneParams?: unknown; pinne...
  • OpenAPI response codes: 200
import posthog from "@utdk/posthog";

type UserHomeSettingsRetrieveInput = Parameters<typeof posthog.userHomeSettingsRetrieve> extends [infer T, ...unknown[]] ? T : undefined;
type UserHomeSettingsRetrieveOutput = Awaited<ReturnType<typeof posthog.userHomeSettingsRetrieve>>;

const result: UserHomeSettingsRetrieveOutput = await posthog.userHomeSettingsRetrieve();

// Result shape (from schema): { tabs?: ({ id?: string; pathname?: string; search?: string; hash?: string; title?: string; customTitle?: string | null; iconType?: string; sceneId?: string | null; sceneKey?: string | null; sceneParams?: unknown; pinne...

posthog.userHomeSettingsPartialUpdate

  • HTTP: PATCH /api/user_home_settings/{uuid}/
  • What it does: Update the authenticated user's pinned sidebar tabs and/or homepage for the current team. Pass @me as the UUID. Send tabs to replace the pinned tab list, homepage to set the home destination (any PostHog URL — dashboard, insight, search results, scene). Either field may be omitted to leave it unchanged; sending homepage: null or {} clears the homepage.
  • OpenAPI operationId: user_home_settings_partial_update
  • Path params: uuid
  • Query params: None
  • Response codes: 200
  • Transport options: None
  • TypeScript: Client interface

Inputs

  • Client input type: { [key: string]: unknown }
  • Client transport options: None

Outputs

  • Client return type: { tabs?: ({ id?: string; pathname?: string; search?: string; hash?: string; title?: string; customTitle?: string | null; iconType?: string; sceneId?: string | null; sceneKey?: string | null; sceneParams?: unknown; pinne...
  • OpenAPI response codes: 200
import posthog from "@utdk/posthog";

type UserHomeSettingsPartialUpdateInput = Parameters<typeof posthog.userHomeSettingsPartialUpdate> extends [infer T, ...unknown[]] ? T : undefined;
type UserHomeSettingsPartialUpdateOutput = Awaited<ReturnType<typeof posthog.userHomeSettingsPartialUpdate>>;

const result: UserHomeSettingsPartialUpdateOutput = await posthog.userHomeSettingsPartialUpdate();

// Result shape (from schema): { tabs?: ({ id?: string; pathname?: string; search?: string; hash?: string; title?: string; customTitle?: string | null; iconType?: string; sceneId?: string | null; sceneKey?: string | null; sceneParams?: unknown; pinne...