Use "project API token" terminology over "API key"#208
Conversation
Aligns the wording the wizard emits with PostHog's "project API token" terminology. The project token (the public phc_… ingestion key) was being called an "API key" in several skill descriptions and one example app, which is inconsistent with the project-token convention used everywhere else. - Omnibus instrument-* skills: the credential step now asks for the "project API token" rather than the "API key". - mcp-analytics: env var renamed POSTHOG_PROJECT_API_KEY → POSTHOG_PROJECT_TOKEN, prose updated to "project API token". - PHP example app: POSTHOG_API_KEY → POSTHOG_PROJECT_TOKEN, matching every other example app. - Renamed incidental local variables that hold a project token to projectToken (js-web, expo, react-native) for consistency with the node example. Left untouched: genuine personal-API-key references (source-map upload / error tracking, local-evaluation keys, query-API personal keys) and the SDKs' own apiKey / api_key parameter names, which are fixed by the SDK signatures. Why: feedback that the wizard's generated setup labels the project token as an "API key" instead of a token. Generated-By: PostHog Code Task-Id: 870391f2-b0c5-4a20-8534-7dd9607b7a48
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
|
@gewenyu99 I think you need to one more agent sweep. It should be |
|
Oh no API either? |
Per review feedback: PostHog's term is "project token", not "project API token". Drops the "API" word across the omnibus instrument-* skills, mcp-analytics, and the Rails commandment. The MCP `api_token` field name in code is unchanged, and "personal API key" references are untouched. Generated-By: PostHog Code Task-Id: 870391f2-b0c5-4a20-8534-7dd9607b7a48
|
Done in 26ea636 — dropped the "API" so it now reads "project token" (not "project API token") across the omnibus |
lucasheriques
left a comment
There was a problem hiding this comment.
Looks good, and the scoping (leaving personal API key references and SDK apiKey parameters alone) is right. One follow-up: the posthog.com MCP analytics docs still use POSTHOG_PROJECT_API_KEY in their snippets, so after this merges the skill and the published docs will disagree on the env var name. I'll raise a companion docs change to align them.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Aligns the wording the wizard emits with PostHog's project API token terminology. The project token (the public
phc_…ingestion key) was being called an "API key" in several skill descriptions and one example app — inconsistent with the project-token convention used everywhere else, and the source of the wizard emittingPOSTHOG_API_KEYinstead of a token.What changed
instrument-*skills (all six): the credential step now asks for the project API token rather than the "API key".mcp-analytics: env varPOSTHOG_PROJECT_API_KEY→POSTHOG_PROJECT_TOKEN; prose → "project API token".POSTHOG_API_KEY→POSTHOG_PROJECT_TOKEN(the lone example app that used the old name).commandments.yaml(Rails): "Store API key…" → "Store the project API token…".projectToken(js-web, expo, react-native) for consistency with the node example.Deliberately left untouched
apiKey/api_key/PostHogConfig(apiKey:)parameter names, which are fixed by the SDK signatures — renaming them would break the code.Why
Feedback that the wizard's generated setup labels the project token as an "API key" instead of a token.
npm test(92 passing) andnpm run buildboth green.Created with PostHog from a Slack thread