[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-posthog-modeling-revenue-metrics":3,"mdc--pa6a8u-key":51,"related-repo-posthog-modeling-revenue-metrics":1030,"related-org-posthog-modeling-revenue-metrics":1133},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":46,"sourceUrl":49,"mdContent":50},"modeling-revenue-metrics","model revenue metrics in PostHog","Build reusable revenue models — MRR, ARR, gross revenue, new\u002Fexpansion\u002Fcontraction\u002Fchurn, ARPU, LTV, and per-customer\u002Fper-account revenue — on either PostHog data-warehouse views (HogQL) or an external dbt project. Use when the user wants to model, define, or compute recurring revenue, monthly\u002Fannual recurring revenue, churn or retention of revenue, lifetime value, average revenue per user, or revenue by customer, cohort, product, or currency. On PostHog, build on the managed revenue_analytics_* views (revenue_item, mrr, customer, subscription, charge, product) fed by Stripe or custom revenue events — not raw Stripe tables — and normalize money with convertCurrency(). In dbt, stage the payment source and compute fct_mrr \u002F fct_revenue_item \u002F dim_customer marts with tests. Covers picking the right source, the subscription-config gotcha that leaves MRR empty, currency handling, and linking revenue to persons\u002Fgroups. Read modeling-warehouse-foundations first for the view-vs-dbt mechanics.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"posthog","PostHog","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fposthog.png",[12,14,17,20,23],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"Data Engineering","data-engineering",{"name":18,"slug":19,"type":13},"Reporting","reporting",{"name":21,"slug":22,"type":13},"Finance","finance",{"name":24,"slug":25,"type":13},"Analytics","analytics",35568,"https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog","2026-08-06T06:09:30.679995",null,2977,[32,33,25,34,35,36,37,38,39,40,41,42,43,44,45],"ab-testing","ai-analytics","cdp","data-warehouse","experiments","feature-flags","javascript","product-analytics","python","react","session-replay","surveys","typescript","web-analytics",{"repoUrl":27,"stars":26,"forks":30,"topics":47,"description":48},[32,33,25,34,35,36,37,38,39,40,41,42,43,44,45],"🦔 PostHog is an all-in-one developer platform for building successful products. We offer product analytics, web analytics, session replay, error tracking, feature flags, experimentation, surveys, data warehouse, a CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.","https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog\u002Ftree\u002FHEAD\u002Fproducts\u002Fdata_modeling\u002Fskills\u002Fmodeling-revenue-metrics","---\nname: modeling-revenue-metrics\ndescription: >\n  Build reusable revenue models — MRR, ARR, gross revenue, new\u002Fexpansion\u002Fcontraction\u002Fchurn, ARPU, LTV, and\n  per-customer\u002Fper-account revenue — on either PostHog data-warehouse views (HogQL) or an external dbt\n  project. Use when the user wants to model, define, or compute recurring revenue, monthly\u002Fannual recurring\n  revenue, churn or retention of revenue, lifetime value, average revenue per user, or revenue by customer,\n  cohort, product, or currency. On PostHog, build on the managed revenue_analytics_* views (revenue_item,\n  mrr, customer, subscription, charge, product) fed by Stripe or custom revenue events — not raw Stripe\n  tables — and normalize money with convertCurrency(). In dbt, stage the payment source and compute\n  fct_mrr \u002F fct_revenue_item \u002F dim_customer marts with tests. Covers picking the right source, the\n  subscription-config gotcha that leaves MRR empty, currency handling, and linking revenue to persons\u002Fgroups.\n  Read modeling-warehouse-foundations first for the view-vs-dbt mechanics.\n---\n\n# Modeling revenue metrics\n\nTurn payment\u002Fsubscription data into durable revenue models. Read `modeling-warehouse-foundations` first for\nthe view-vs-dbt decision, the `view-*` workflow, and `convertCurrency()`; this skill is the revenue-specific\nlayer on top. Metric definitions live in\n[`references\u002Frevenue-metric-definitions.md`](references\u002Frevenue-metric-definitions.md); copy-paste recipes in\n[`references\u002Fposthog\u002F`](references\u002Fposthog\u002F) and [`references\u002Fdbt\u002F`](references\u002Fdbt\u002F).\n\n## Step 1 — find where revenue lives\n\nRevenue reaches PostHog two ways; both feed the same **managed `revenue_analytics_*` views**:\n\n- **A payment platform as a warehouse source** — Stripe today (Chargebee\u002FPolar\u002FRevenueCat coming). Best when\n  the business runs on a billing platform. Connect via `setting-up-a-data-warehouse-source`.\n- **Custom revenue events** — you send events (e.g. `purchase_completed`) with a revenue property. Best when\n  there's no supported platform or you already track revenue in-product.\n\nIf neither exists yet, use `suggesting-data-imports` to recommend a source. In **dbt**, the equivalent is\nstaging whichever billing tables landed in the warehouse.\n\n## Step 2 — model on the managed views, not raw tables\n\nPostHog auto-generates a curated set of views per source. **Do not re-derive revenue from raw Stripe\ntables** — the managed views already handle deferred-revenue recognition, currency, and a stable schema.\n\nDiscover the exact names (they're prefixed by source, e.g. `stripe.\u003Cprefix>.…`, plus a cross-source\n`revenue_analytics.all.…`):\n\n```sql\nSELECT table_name FROM system.information_schema.tables WHERE table_name ILIKE '%revenue_analytics%'\n```\n\n| Managed view                    | Grain                        | Use for                                                                                                               |\n| ------------------------------- | ---------------------------- | --------------------------------------------------------------------------------------------------------------------- |\n| `revenue_item` (**start here**) | 1 \u002F invoice line item        | Gross revenue, monthly recurring revenue, revenue by product\u002Fcustomer\u002Fperiod. Implements deferred revenue + currency. |\n| `mrr`                           | 1 \u002F (customer, subscription) | **Live snapshot** of current MRR — not a time series.                                                                 |\n| `customer`                      | 1 \u002F customer                 | `dim_customer`: email, country, cohort, metadata.                                                                     |\n| `subscription`                  | 1 \u002F subscription             | Subscription state for churn\u002Fexpansion logic.                                                                         |\n| `charge`                        | 1 \u002F charge                   | Raw charges; prefer `revenue_item` unless you specifically need charges.                                              |\n| `product`                       | 1 \u002F product                  | Product dimension.                                                                                                    |\n\nKey `revenue_item` columns: `amount` (already converted to the project **base currency**), `currency` (that\nbase currency), `original_amount` \u002F `original_currency` (as charged), `is_recurring`, `customer_id`,\n`subscription_id`, `product_id`, `group_0_key`…`group_4_key` (B2B account keys), `timestamp`.\n\n## Rules before you model (revenue gotchas)\n\n1. **MRR is empty without a subscription config.** For event-based revenue, MRR only populates when a\n   subscription property is configured. Empty MRR + populated gross revenue is **expected behaviour**, not a\n   bug — say so instead of \"fixing\" it.\n2. **The `mrr` managed view is a current snapshot**, not history (\"MRR at the current time\"). For MRR _over\n   time_, sum recurring `amount` per month from `revenue_item` (see the recipe), or materialize a monthly\n   snapshot of the `mrr` view on a schedule.\n3. **`amount` is already in base currency.** Use it directly for reporting. Only call\n   `convertCurrency(original_currency, 'XXX', original_amount, timestamp)` when you need a _different_ target\n   currency, or when working from raw events.\n4. **Link revenue to people via metadata.** Person\u002Fgroup-level revenue needs\n   `posthog_person_distinct_id` metadata on the Stripe customer (or the person join). Without it, revenue is\n   customer-level only.\n5. **Don't build on the Revenue dashboard** — it's being retired (~2026-06-30). Model against the\n   `revenue_analytics_*` views and the person\u002Fgroup revenue properties.\n6. **Exclude test accounts.** Confirm `filter_test_accounts` behaviour so QA\u002Finternal charges don't inflate\n   revenue.\n\n## Step 3 — build the model\n\n**PostHog:** write the HogQL (alias every column), `view-create`, verify with `view-get`, then\n`view-materialize` the expensive monthly rollups (a daily `sync_frequency` is usually right for revenue).\nRecipes: [`references\u002Fposthog\u002F`](references\u002Fposthog\u002F) — `mrr_and_arr.sql`, `gross_revenue_by_month.sql`,\n`revenue_by_customer.sql`.\n\n**dbt:** stage the billing source → `fct_revenue_item`, `fct_mrr`, `dim_customer` marts with tests.\nRecipes: [`references\u002Fdbt\u002F`](references\u002Fdbt\u002F). Note dbt has no `convertCurrency()` — supply a rate seed.\n\nThen register the model (`references\u002Fgovernance.md` in foundations): annotate columns and, if MRR\u002FARR is a\nheadline number, propose it to the semantic layer.\n\n## File map\n\n| File                                                                                   | Read when                                                                         |\n| -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |\n| [`references\u002Frevenue-metric-definitions.md`](references\u002Frevenue-metric-definitions.md) | Precise definitions: MRR, ARR, gross, new\u002Fexpansion\u002Fcontraction\u002Fchurn, ARPU, LTV. |\n| [`references\u002Fposthog\u002F`](references\u002Fposthog\u002F)                                           | HogQL view recipes on the managed views.                                          |\n| [`references\u002Fdbt\u002F`](references\u002Fdbt\u002F)                                                   | dbt staging + `fct_*`\u002F`dim_*` marts + `schema.yml` tests.                         |\n\n## Companions\n\n`modeling-warehouse-foundations` (mechanics), `setting-up-a-data-warehouse-source` +\n`suggesting-data-imports` (get Stripe\u002Frevenue data in), `modeling-dimension-tables` (currency\u002Fplan\ndimensions), `querying-posthog-data` (HogQL + the semantic-layer metric check).\n",{"data":52,"body":53},{"name":4,"description":6},{"type":54,"children":55},"root",[56,64,129,136,157,197,217,223,235,256,277,469,573,579,729,735,808,856,869,875,978,984,1024],{"type":57,"tag":58,"props":59,"children":60},"element","h1",{"id":4},[61],{"type":62,"value":63},"text","Modeling revenue metrics",{"type":57,"tag":65,"props":66,"children":67},"p",{},[68,70,77,79,85,87,93,95,105,107,116,118,127],{"type":62,"value":69},"Turn payment\u002Fsubscription data into durable revenue models. Read ",{"type":57,"tag":71,"props":72,"children":74},"code",{"className":73},[],[75],{"type":62,"value":76},"modeling-warehouse-foundations",{"type":62,"value":78}," first for\nthe view-vs-dbt decision, the ",{"type":57,"tag":71,"props":80,"children":82},{"className":81},[],[83],{"type":62,"value":84},"view-*",{"type":62,"value":86}," workflow, and ",{"type":57,"tag":71,"props":88,"children":90},{"className":89},[],[91],{"type":62,"value":92},"convertCurrency()",{"type":62,"value":94},"; this skill is the revenue-specific\nlayer on top. Metric definitions live in\n",{"type":57,"tag":96,"props":97,"children":99},"a",{"href":98},"references\u002Frevenue-metric-definitions.md",[100],{"type":57,"tag":71,"props":101,"children":103},{"className":102},[],[104],{"type":62,"value":98},{"type":62,"value":106},"; copy-paste recipes in\n",{"type":57,"tag":96,"props":108,"children":110},{"href":109},"references\u002Fposthog\u002F",[111],{"type":57,"tag":71,"props":112,"children":114},{"className":113},[],[115],{"type":62,"value":109},{"type":62,"value":117}," and ",{"type":57,"tag":96,"props":119,"children":121},{"href":120},"references\u002Fdbt\u002F",[122],{"type":57,"tag":71,"props":123,"children":125},{"className":124},[],[126],{"type":62,"value":120},{"type":62,"value":128},".",{"type":57,"tag":130,"props":131,"children":133},"h2",{"id":132},"step-1-find-where-revenue-lives",[134],{"type":62,"value":135},"Step 1 — find where revenue lives",{"type":57,"tag":65,"props":137,"children":138},{},[139,141,155],{"type":62,"value":140},"Revenue reaches PostHog two ways; both feed the same ",{"type":57,"tag":142,"props":143,"children":144},"strong",{},[145,147,153],{"type":62,"value":146},"managed ",{"type":57,"tag":71,"props":148,"children":150},{"className":149},[],[151],{"type":62,"value":152},"revenue_analytics_*",{"type":62,"value":154}," views",{"type":62,"value":156},":",{"type":57,"tag":158,"props":159,"children":160},"ul",{},[161,179],{"type":57,"tag":162,"props":163,"children":164},"li",{},[165,170,172,178],{"type":57,"tag":142,"props":166,"children":167},{},[168],{"type":62,"value":169},"A payment platform as a warehouse source",{"type":62,"value":171}," — Stripe today (Chargebee\u002FPolar\u002FRevenueCat coming). Best when\nthe business runs on a billing platform. Connect via ",{"type":57,"tag":71,"props":173,"children":175},{"className":174},[],[176],{"type":62,"value":177},"setting-up-a-data-warehouse-source",{"type":62,"value":128},{"type":57,"tag":162,"props":180,"children":181},{},[182,187,189,195],{"type":57,"tag":142,"props":183,"children":184},{},[185],{"type":62,"value":186},"Custom revenue events",{"type":62,"value":188}," — you send events (e.g. ",{"type":57,"tag":71,"props":190,"children":192},{"className":191},[],[193],{"type":62,"value":194},"purchase_completed",{"type":62,"value":196},") with a revenue property. Best when\nthere's no supported platform or you already track revenue in-product.",{"type":57,"tag":65,"props":198,"children":199},{},[200,202,208,210,215],{"type":62,"value":201},"If neither exists yet, use ",{"type":57,"tag":71,"props":203,"children":205},{"className":204},[],[206],{"type":62,"value":207},"suggesting-data-imports",{"type":62,"value":209}," to recommend a source. In ",{"type":57,"tag":142,"props":211,"children":212},{},[213],{"type":62,"value":214},"dbt",{"type":62,"value":216},", the equivalent is\nstaging whichever billing tables landed in the warehouse.",{"type":57,"tag":130,"props":218,"children":220},{"id":219},"step-2-model-on-the-managed-views-not-raw-tables",[221],{"type":62,"value":222},"Step 2 — model on the managed views, not raw tables",{"type":57,"tag":65,"props":224,"children":225},{},[226,228,233],{"type":62,"value":227},"PostHog auto-generates a curated set of views per source. ",{"type":57,"tag":142,"props":229,"children":230},{},[231],{"type":62,"value":232},"Do not re-derive revenue from raw Stripe\ntables",{"type":62,"value":234}," — the managed views already handle deferred-revenue recognition, currency, and a stable schema.",{"type":57,"tag":65,"props":236,"children":237},{},[238,240,246,248,254],{"type":62,"value":239},"Discover the exact names (they're prefixed by source, e.g. ",{"type":57,"tag":71,"props":241,"children":243},{"className":242},[],[244],{"type":62,"value":245},"stripe.\u003Cprefix>.…",{"type":62,"value":247},", plus a cross-source\n",{"type":57,"tag":71,"props":249,"children":251},{"className":250},[],[252],{"type":62,"value":253},"revenue_analytics.all.…",{"type":62,"value":255},"):",{"type":57,"tag":257,"props":258,"children":263},"pre",{"className":259,"code":260,"language":261,"meta":262,"style":262},"language-sql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","SELECT table_name FROM system.information_schema.tables WHERE table_name ILIKE '%revenue_analytics%'\n","sql","",[264],{"type":57,"tag":71,"props":265,"children":266},{"__ignoreMap":262},[267],{"type":57,"tag":268,"props":269,"children":272},"span",{"class":270,"line":271},"line",1,[273],{"type":57,"tag":268,"props":274,"children":275},{},[276],{"type":62,"value":260},{"type":57,"tag":278,"props":279,"children":280},"table",{},[281,305],{"type":57,"tag":282,"props":283,"children":284},"thead",{},[285],{"type":57,"tag":286,"props":287,"children":288},"tr",{},[289,295,300],{"type":57,"tag":290,"props":291,"children":292},"th",{},[293],{"type":62,"value":294},"Managed view",{"type":57,"tag":290,"props":296,"children":297},{},[298],{"type":62,"value":299},"Grain",{"type":57,"tag":290,"props":301,"children":302},{},[303],{"type":62,"value":304},"Use for",{"type":57,"tag":306,"props":307,"children":308},"tbody",{},[309,341,368,396,418,447],{"type":57,"tag":286,"props":310,"children":311},{},[312,331,336],{"type":57,"tag":313,"props":314,"children":315},"td",{},[316,322,324,329],{"type":57,"tag":71,"props":317,"children":319},{"className":318},[],[320],{"type":62,"value":321},"revenue_item",{"type":62,"value":323}," (",{"type":57,"tag":142,"props":325,"children":326},{},[327],{"type":62,"value":328},"start here",{"type":62,"value":330},")",{"type":57,"tag":313,"props":332,"children":333},{},[334],{"type":62,"value":335},"1 \u002F invoice line item",{"type":57,"tag":313,"props":337,"children":338},{},[339],{"type":62,"value":340},"Gross revenue, monthly recurring revenue, revenue by product\u002Fcustomer\u002Fperiod. Implements deferred revenue + currency.",{"type":57,"tag":286,"props":342,"children":343},{},[344,353,358],{"type":57,"tag":313,"props":345,"children":346},{},[347],{"type":57,"tag":71,"props":348,"children":350},{"className":349},[],[351],{"type":62,"value":352},"mrr",{"type":57,"tag":313,"props":354,"children":355},{},[356],{"type":62,"value":357},"1 \u002F (customer, subscription)",{"type":57,"tag":313,"props":359,"children":360},{},[361,366],{"type":57,"tag":142,"props":362,"children":363},{},[364],{"type":62,"value":365},"Live snapshot",{"type":62,"value":367}," of current MRR — not a time series.",{"type":57,"tag":286,"props":369,"children":370},{},[371,380,385],{"type":57,"tag":313,"props":372,"children":373},{},[374],{"type":57,"tag":71,"props":375,"children":377},{"className":376},[],[378],{"type":62,"value":379},"customer",{"type":57,"tag":313,"props":381,"children":382},{},[383],{"type":62,"value":384},"1 \u002F customer",{"type":57,"tag":313,"props":386,"children":387},{},[388,394],{"type":57,"tag":71,"props":389,"children":391},{"className":390},[],[392],{"type":62,"value":393},"dim_customer",{"type":62,"value":395},": email, country, cohort, metadata.",{"type":57,"tag":286,"props":397,"children":398},{},[399,408,413],{"type":57,"tag":313,"props":400,"children":401},{},[402],{"type":57,"tag":71,"props":403,"children":405},{"className":404},[],[406],{"type":62,"value":407},"subscription",{"type":57,"tag":313,"props":409,"children":410},{},[411],{"type":62,"value":412},"1 \u002F subscription",{"type":57,"tag":313,"props":414,"children":415},{},[416],{"type":62,"value":417},"Subscription state for churn\u002Fexpansion logic.",{"type":57,"tag":286,"props":419,"children":420},{},[421,430,435],{"type":57,"tag":313,"props":422,"children":423},{},[424],{"type":57,"tag":71,"props":425,"children":427},{"className":426},[],[428],{"type":62,"value":429},"charge",{"type":57,"tag":313,"props":431,"children":432},{},[433],{"type":62,"value":434},"1 \u002F charge",{"type":57,"tag":313,"props":436,"children":437},{},[438,440,445],{"type":62,"value":439},"Raw charges; prefer ",{"type":57,"tag":71,"props":441,"children":443},{"className":442},[],[444],{"type":62,"value":321},{"type":62,"value":446}," unless you specifically need charges.",{"type":57,"tag":286,"props":448,"children":449},{},[450,459,464],{"type":57,"tag":313,"props":451,"children":452},{},[453],{"type":57,"tag":71,"props":454,"children":456},{"className":455},[],[457],{"type":62,"value":458},"product",{"type":57,"tag":313,"props":460,"children":461},{},[462],{"type":62,"value":463},"1 \u002F product",{"type":57,"tag":313,"props":465,"children":466},{},[467],{"type":62,"value":468},"Product dimension.",{"type":57,"tag":65,"props":470,"children":471},{},[472,474,479,481,487,489,494,496,502,504,510,512,518,520,526,528,534,536,542,543,549,550,556,558,564,566,572],{"type":62,"value":473},"Key ",{"type":57,"tag":71,"props":475,"children":477},{"className":476},[],[478],{"type":62,"value":321},{"type":62,"value":480}," columns: ",{"type":57,"tag":71,"props":482,"children":484},{"className":483},[],[485],{"type":62,"value":486},"amount",{"type":62,"value":488}," (already converted to the project ",{"type":57,"tag":142,"props":490,"children":491},{},[492],{"type":62,"value":493},"base currency",{"type":62,"value":495},"), ",{"type":57,"tag":71,"props":497,"children":499},{"className":498},[],[500],{"type":62,"value":501},"currency",{"type":62,"value":503}," (that\nbase currency), ",{"type":57,"tag":71,"props":505,"children":507},{"className":506},[],[508],{"type":62,"value":509},"original_amount",{"type":62,"value":511}," \u002F ",{"type":57,"tag":71,"props":513,"children":515},{"className":514},[],[516],{"type":62,"value":517},"original_currency",{"type":62,"value":519}," (as charged), ",{"type":57,"tag":71,"props":521,"children":523},{"className":522},[],[524],{"type":62,"value":525},"is_recurring",{"type":62,"value":527},", ",{"type":57,"tag":71,"props":529,"children":531},{"className":530},[],[532],{"type":62,"value":533},"customer_id",{"type":62,"value":535},",\n",{"type":57,"tag":71,"props":537,"children":539},{"className":538},[],[540],{"type":62,"value":541},"subscription_id",{"type":62,"value":527},{"type":57,"tag":71,"props":544,"children":546},{"className":545},[],[547],{"type":62,"value":548},"product_id",{"type":62,"value":527},{"type":57,"tag":71,"props":551,"children":553},{"className":552},[],[554],{"type":62,"value":555},"group_0_key",{"type":62,"value":557},"…",{"type":57,"tag":71,"props":559,"children":561},{"className":560},[],[562],{"type":62,"value":563},"group_4_key",{"type":62,"value":565}," (B2B account keys), ",{"type":57,"tag":71,"props":567,"children":569},{"className":568},[],[570],{"type":62,"value":571},"timestamp",{"type":62,"value":128},{"type":57,"tag":130,"props":574,"children":576},{"id":575},"rules-before-you-model-revenue-gotchas",[577],{"type":62,"value":578},"Rules before you model (revenue gotchas)",{"type":57,"tag":580,"props":581,"children":582},"ol",{},[583,600,646,676,694,711],{"type":57,"tag":162,"props":584,"children":585},{},[586,591,593,598],{"type":57,"tag":142,"props":587,"children":588},{},[589],{"type":62,"value":590},"MRR is empty without a subscription config.",{"type":62,"value":592}," For event-based revenue, MRR only populates when a\nsubscription property is configured. Empty MRR + populated gross revenue is ",{"type":57,"tag":142,"props":594,"children":595},{},[596],{"type":62,"value":597},"expected behaviour",{"type":62,"value":599},", not a\nbug — say so instead of \"fixing\" it.",{"type":57,"tag":162,"props":601,"children":602},{},[603,615,617,623,625,630,632,637,639,644],{"type":57,"tag":142,"props":604,"children":605},{},[606,608,613],{"type":62,"value":607},"The ",{"type":57,"tag":71,"props":609,"children":611},{"className":610},[],[612],{"type":62,"value":352},{"type":62,"value":614}," managed view is a current snapshot",{"type":62,"value":616},", not history (\"MRR at the current time\"). For MRR ",{"type":57,"tag":618,"props":619,"children":620},"em",{},[621],{"type":62,"value":622},"over\ntime",{"type":62,"value":624},", sum recurring ",{"type":57,"tag":71,"props":626,"children":628},{"className":627},[],[629],{"type":62,"value":486},{"type":62,"value":631}," per month from ",{"type":57,"tag":71,"props":633,"children":635},{"className":634},[],[636],{"type":62,"value":321},{"type":62,"value":638}," (see the recipe), or materialize a monthly\nsnapshot of the ",{"type":57,"tag":71,"props":640,"children":642},{"className":641},[],[643],{"type":62,"value":352},{"type":62,"value":645}," view on a schedule.",{"type":57,"tag":162,"props":647,"children":648},{},[649,659,661,667,669,674],{"type":57,"tag":142,"props":650,"children":651},{},[652,657],{"type":57,"tag":71,"props":653,"children":655},{"className":654},[],[656],{"type":62,"value":486},{"type":62,"value":658}," is already in base currency.",{"type":62,"value":660}," Use it directly for reporting. Only call\n",{"type":57,"tag":71,"props":662,"children":664},{"className":663},[],[665],{"type":62,"value":666},"convertCurrency(original_currency, 'XXX', original_amount, timestamp)",{"type":62,"value":668}," when you need a ",{"type":57,"tag":618,"props":670,"children":671},{},[672],{"type":62,"value":673},"different",{"type":62,"value":675}," target\ncurrency, or when working from raw events.",{"type":57,"tag":162,"props":677,"children":678},{},[679,684,686,692],{"type":57,"tag":142,"props":680,"children":681},{},[682],{"type":62,"value":683},"Link revenue to people via metadata.",{"type":62,"value":685}," Person\u002Fgroup-level revenue needs\n",{"type":57,"tag":71,"props":687,"children":689},{"className":688},[],[690],{"type":62,"value":691},"posthog_person_distinct_id",{"type":62,"value":693}," metadata on the Stripe customer (or the person join). Without it, revenue is\ncustomer-level only.",{"type":57,"tag":162,"props":695,"children":696},{},[697,702,704,709],{"type":57,"tag":142,"props":698,"children":699},{},[700],{"type":62,"value":701},"Don't build on the Revenue dashboard",{"type":62,"value":703}," — it's being retired (~2026-06-30). Model against the\n",{"type":57,"tag":71,"props":705,"children":707},{"className":706},[],[708],{"type":62,"value":152},{"type":62,"value":710}," views and the person\u002Fgroup revenue properties.",{"type":57,"tag":162,"props":712,"children":713},{},[714,719,721,727],{"type":57,"tag":142,"props":715,"children":716},{},[717],{"type":62,"value":718},"Exclude test accounts.",{"type":62,"value":720}," Confirm ",{"type":57,"tag":71,"props":722,"children":724},{"className":723},[],[725],{"type":62,"value":726},"filter_test_accounts",{"type":62,"value":728}," behaviour so QA\u002Finternal charges don't inflate\nrevenue.",{"type":57,"tag":130,"props":730,"children":732},{"id":731},"step-3-build-the-model",[733],{"type":62,"value":734},"Step 3 — build the model",{"type":57,"tag":65,"props":736,"children":737},{},[738,743,745,751,753,759,761,767,769,775,777,785,787,793,794,800,801,807],{"type":57,"tag":142,"props":739,"children":740},{},[741],{"type":62,"value":742},"PostHog:",{"type":62,"value":744}," write the HogQL (alias every column), ",{"type":57,"tag":71,"props":746,"children":748},{"className":747},[],[749],{"type":62,"value":750},"view-create",{"type":62,"value":752},", verify with ",{"type":57,"tag":71,"props":754,"children":756},{"className":755},[],[757],{"type":62,"value":758},"view-get",{"type":62,"value":760},", then\n",{"type":57,"tag":71,"props":762,"children":764},{"className":763},[],[765],{"type":62,"value":766},"view-materialize",{"type":62,"value":768}," the expensive monthly rollups (a daily ",{"type":57,"tag":71,"props":770,"children":772},{"className":771},[],[773],{"type":62,"value":774},"sync_frequency",{"type":62,"value":776}," is usually right for revenue).\nRecipes: ",{"type":57,"tag":96,"props":778,"children":779},{"href":109},[780],{"type":57,"tag":71,"props":781,"children":783},{"className":782},[],[784],{"type":62,"value":109},{"type":62,"value":786}," — ",{"type":57,"tag":71,"props":788,"children":790},{"className":789},[],[791],{"type":62,"value":792},"mrr_and_arr.sql",{"type":62,"value":527},{"type":57,"tag":71,"props":795,"children":797},{"className":796},[],[798],{"type":62,"value":799},"gross_revenue_by_month.sql",{"type":62,"value":535},{"type":57,"tag":71,"props":802,"children":804},{"className":803},[],[805],{"type":62,"value":806},"revenue_by_customer.sql",{"type":62,"value":128},{"type":57,"tag":65,"props":809,"children":810},{},[811,816,818,824,825,831,832,837,839,847,849,854],{"type":57,"tag":142,"props":812,"children":813},{},[814],{"type":62,"value":815},"dbt:",{"type":62,"value":817}," stage the billing source → ",{"type":57,"tag":71,"props":819,"children":821},{"className":820},[],[822],{"type":62,"value":823},"fct_revenue_item",{"type":62,"value":527},{"type":57,"tag":71,"props":826,"children":828},{"className":827},[],[829],{"type":62,"value":830},"fct_mrr",{"type":62,"value":527},{"type":57,"tag":71,"props":833,"children":835},{"className":834},[],[836],{"type":62,"value":393},{"type":62,"value":838}," marts with tests.\nRecipes: ",{"type":57,"tag":96,"props":840,"children":841},{"href":120},[842],{"type":57,"tag":71,"props":843,"children":845},{"className":844},[],[846],{"type":62,"value":120},{"type":62,"value":848},". Note dbt has no ",{"type":57,"tag":71,"props":850,"children":852},{"className":851},[],[853],{"type":62,"value":92},{"type":62,"value":855}," — supply a rate seed.",{"type":57,"tag":65,"props":857,"children":858},{},[859,861,867],{"type":62,"value":860},"Then register the model (",{"type":57,"tag":71,"props":862,"children":864},{"className":863},[],[865],{"type":62,"value":866},"references\u002Fgovernance.md",{"type":62,"value":868}," in foundations): annotate columns and, if MRR\u002FARR is a\nheadline number, propose it to the semantic layer.",{"type":57,"tag":130,"props":870,"children":872},{"id":871},"file-map",[873],{"type":62,"value":874},"File map",{"type":57,"tag":278,"props":876,"children":877},{},[878,894],{"type":57,"tag":282,"props":879,"children":880},{},[881],{"type":57,"tag":286,"props":882,"children":883},{},[884,889],{"type":57,"tag":290,"props":885,"children":886},{},[887],{"type":62,"value":888},"File",{"type":57,"tag":290,"props":890,"children":891},{},[892],{"type":62,"value":893},"Read when",{"type":57,"tag":306,"props":895,"children":896},{},[897,916,935],{"type":57,"tag":286,"props":898,"children":899},{},[900,911],{"type":57,"tag":313,"props":901,"children":902},{},[903],{"type":57,"tag":96,"props":904,"children":905},{"href":98},[906],{"type":57,"tag":71,"props":907,"children":909},{"className":908},[],[910],{"type":62,"value":98},{"type":57,"tag":313,"props":912,"children":913},{},[914],{"type":62,"value":915},"Precise definitions: MRR, ARR, gross, new\u002Fexpansion\u002Fcontraction\u002Fchurn, ARPU, LTV.",{"type":57,"tag":286,"props":917,"children":918},{},[919,930],{"type":57,"tag":313,"props":920,"children":921},{},[922],{"type":57,"tag":96,"props":923,"children":924},{"href":109},[925],{"type":57,"tag":71,"props":926,"children":928},{"className":927},[],[929],{"type":62,"value":109},{"type":57,"tag":313,"props":931,"children":932},{},[933],{"type":62,"value":934},"HogQL view recipes on the managed views.",{"type":57,"tag":286,"props":936,"children":937},{},[938,949],{"type":57,"tag":313,"props":939,"children":940},{},[941],{"type":57,"tag":96,"props":942,"children":943},{"href":120},[944],{"type":57,"tag":71,"props":945,"children":947},{"className":946},[],[948],{"type":62,"value":120},{"type":57,"tag":313,"props":950,"children":951},{},[952,954,960,962,968,970,976],{"type":62,"value":953},"dbt staging + ",{"type":57,"tag":71,"props":955,"children":957},{"className":956},[],[958],{"type":62,"value":959},"fct_*",{"type":62,"value":961},"\u002F",{"type":57,"tag":71,"props":963,"children":965},{"className":964},[],[966],{"type":62,"value":967},"dim_*",{"type":62,"value":969}," marts + ",{"type":57,"tag":71,"props":971,"children":973},{"className":972},[],[974],{"type":62,"value":975},"schema.yml",{"type":62,"value":977}," tests.",{"type":57,"tag":130,"props":979,"children":981},{"id":980},"companions",[982],{"type":62,"value":983},"Companions",{"type":57,"tag":65,"props":985,"children":986},{},[987,992,994,999,1001,1006,1008,1014,1016,1022],{"type":57,"tag":71,"props":988,"children":990},{"className":989},[],[991],{"type":62,"value":76},{"type":62,"value":993}," (mechanics), ",{"type":57,"tag":71,"props":995,"children":997},{"className":996},[],[998],{"type":62,"value":177},{"type":62,"value":1000}," +\n",{"type":57,"tag":71,"props":1002,"children":1004},{"className":1003},[],[1005],{"type":62,"value":207},{"type":62,"value":1007}," (get Stripe\u002Frevenue data in), ",{"type":57,"tag":71,"props":1009,"children":1011},{"className":1010},[],[1012],{"type":62,"value":1013},"modeling-dimension-tables",{"type":62,"value":1015}," (currency\u002Fplan\ndimensions), ",{"type":57,"tag":71,"props":1017,"children":1019},{"className":1018},[],[1020],{"type":62,"value":1021},"querying-posthog-data",{"type":62,"value":1023}," (HogQL + the semantic-layer metric check).",{"type":57,"tag":1025,"props":1026,"children":1027},"style",{},[1028],{"type":62,"value":1029},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1031,"total":1132},[1032,1047,1059,1071,1084,1099,1115],{"slug":1033,"name":1033,"fn":1034,"description":1035,"org":1036,"tags":1037,"stars":26,"repoUrl":27,"updatedAt":1046},"analyzing-expensive-users","analyze expensive users in AI observability","Analyze the most expensive users in AI observability and explain why they cost so much. Use when the user asks about top spenders, expensive users, per-user LLM cost, user-level cost drivers, or patterns behind high AI observability spend.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1038,1039,1042,1045],{"name":24,"slug":25,"type":13},{"name":1040,"slug":1041,"type":13},"Cost Optimization","cost-optimization",{"name":1043,"slug":1044,"type":13},"Observability","observability",{"name":9,"slug":8,"type":13},"2026-07-28T05:34:11.117757",{"slug":1048,"name":1048,"fn":1049,"description":1050,"org":1051,"tags":1052,"stars":26,"repoUrl":27,"updatedAt":1058},"auditing-endpoints","audit PostHog project endpoints","Audit every endpoint in a PostHog project for staleness, failed materialisations, and unused materialised versions. Use when the user asks \"what endpoints can I clean up?\", \"are any of my endpoints broken?\", \"which materialised versions are still being called?\", or wants a one-shot cleanup pass over the Endpoints product. Produces a prioritised report grouped by issue type, with recommended actions but does not modify anything without explicit confirmation.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1053,1054,1057],{"name":24,"slug":25,"type":13},{"name":1055,"slug":1056,"type":13},"Audit","audit",{"name":9,"slug":8,"type":13},"2026-06-08T08:08:33.693989",{"slug":1060,"name":1060,"fn":1061,"description":1062,"org":1063,"tags":1064,"stars":26,"repoUrl":27,"updatedAt":1070},"auditing-warehouse-source-health","audit PostHog data warehouse source health","Audit the health of a PostHog project's data warehouse sources and syncs — find every broken or degraded source connection, sync schema, and webhook channel. Use when the user asks \"why are my imports failing?\", \"what's broken with my sources?\", \"why is my warehouse data stale?\", or wants a one-shot triage of source\u002Fsync health before deciding where to dig in. Produces a prioritized report grouped by severity, with recommended next steps. For materialized-view health use `auditing-warehouse-view-health`; for a single failing sync use `diagnosing-failed-warehouse-syncs`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1065,1066,1068,1069],{"name":1055,"slug":1056,"type":13},{"name":1067,"slug":35,"type":13},"Data Warehouse",{"name":1043,"slug":1044,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:22:57.67984",{"slug":1072,"name":1072,"fn":1073,"description":1074,"org":1075,"tags":1076,"stars":26,"repoUrl":27,"updatedAt":1083},"auditing-warehouse-view-health","audit PostHog materialized view health","Audit the health of a PostHog project's materialized views (saved queries) — find every failed materialization and flag unused or stale materialized views that cost storage and compute. Use when the user asks \"which of my views are broken?\", \"why is this materialized view failing?\", \"are any of my views wasting compute?\", or wants a one-shot triage of view health. For source\u002Fsync health use `auditing-warehouse-source-health`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1077,1078,1079,1082],{"name":1055,"slug":1056,"type":13},{"name":1067,"slug":35,"type":13},{"name":1080,"slug":1081,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-06-18T08:25:10.936787",{"slug":1085,"name":1085,"fn":1086,"description":1087,"org":1088,"tags":1089,"stars":26,"repoUrl":27,"updatedAt":1098},"authoring-error-tracking-alerts","author PostHog error tracking alerts","Author error tracking alerts that fire when an issue is created, reopened, or starts spiking. Use when the user asks to set up error notifications, route exceptions to Slack\u002Fwebhook\u002FLinear, or evaluate which error events are worth alerting on. Covers trigger-event selection, integration choice, dedup against existing alerts, and shipping with the canonical message body shape.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1090,1093,1096,1097],{"name":1091,"slug":1092,"type":13},"Alerting","alerting",{"name":1094,"slug":1095,"type":13},"Debugging","debugging",{"name":1043,"slug":1044,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:24:40.318583",{"slug":1100,"name":1100,"fn":1101,"description":1102,"org":1103,"tags":1104,"stars":26,"repoUrl":27,"updatedAt":1114},"authoring-log-alerts","author log alerts in PostHog","Author useful, low-noise log alerts on services in a PostHog project. Use when the user asks to set up alerts for their logs, suggest alerts they should add, or evaluate whether a service is worth monitoring. Covers service triage, baseline characterisation, threshold drafting, back-testing via simulate, and shipping with a notification destination.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1105,1106,1109,1110,1113],{"name":24,"slug":25,"type":13},{"name":1107,"slug":1108,"type":13},"Monitoring","monitoring",{"name":1043,"slug":1044,"type":13},{"name":1111,"slug":1112,"type":13},"Operations","operations",{"name":9,"slug":8,"type":13},"2026-07-18T05:10:54.430898",{"slug":1116,"name":1116,"fn":1117,"description":1118,"org":1119,"tags":1120,"stars":26,"repoUrl":27,"updatedAt":1131},"building-canvases","create and edit PostHog canvases","Create or edit a PostHog canvas — a sandboxed browser application (data board, document, form, small tool, graphics experiment) stored in PostHog and rendered by the desktop\u002Fweb app. Use when a task asks to build, generate, update, or fix a canvas, or when a canvas id is given as the publish target. Covers resolving or creating the target canvas, choosing an implementation approach (React + Quill vs plain HTML\u002Fbrowser APIs), the read → edit → validate → publish → build loop, and which companion canvas skills to load for the details.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1121,1124,1127,1128],{"name":1122,"slug":1123,"type":13},"Automation","automation",{"name":1125,"slug":1126,"type":13},"Design","design",{"name":9,"slug":8,"type":13},{"name":1129,"slug":1130,"type":13},"Prototyping","prototyping","2026-08-06T06:09:29.946969",74,{"items":1134,"total":1260},[1135,1142,1148,1155,1162,1169,1177,1184,1202,1218,1233,1245],{"slug":1033,"name":1033,"fn":1034,"description":1035,"org":1136,"tags":1137,"stars":26,"repoUrl":27,"updatedAt":1046},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1138,1139,1140,1141],{"name":24,"slug":25,"type":13},{"name":1040,"slug":1041,"type":13},{"name":1043,"slug":1044,"type":13},{"name":9,"slug":8,"type":13},{"slug":1048,"name":1048,"fn":1049,"description":1050,"org":1143,"tags":1144,"stars":26,"repoUrl":27,"updatedAt":1058},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1145,1146,1147],{"name":24,"slug":25,"type":13},{"name":1055,"slug":1056,"type":13},{"name":9,"slug":8,"type":13},{"slug":1060,"name":1060,"fn":1061,"description":1062,"org":1149,"tags":1150,"stars":26,"repoUrl":27,"updatedAt":1070},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1151,1152,1153,1154],{"name":1055,"slug":1056,"type":13},{"name":1067,"slug":35,"type":13},{"name":1043,"slug":1044,"type":13},{"name":9,"slug":8,"type":13},{"slug":1072,"name":1072,"fn":1073,"description":1074,"org":1156,"tags":1157,"stars":26,"repoUrl":27,"updatedAt":1083},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1158,1159,1160,1161],{"name":1055,"slug":1056,"type":13},{"name":1067,"slug":35,"type":13},{"name":1080,"slug":1081,"type":13},{"name":9,"slug":8,"type":13},{"slug":1085,"name":1085,"fn":1086,"description":1087,"org":1163,"tags":1164,"stars":26,"repoUrl":27,"updatedAt":1098},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1165,1166,1167,1168],{"name":1091,"slug":1092,"type":13},{"name":1094,"slug":1095,"type":13},{"name":1043,"slug":1044,"type":13},{"name":9,"slug":8,"type":13},{"slug":1100,"name":1100,"fn":1101,"description":1102,"org":1170,"tags":1171,"stars":26,"repoUrl":27,"updatedAt":1114},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1172,1173,1174,1175,1176],{"name":24,"slug":25,"type":13},{"name":1107,"slug":1108,"type":13},{"name":1043,"slug":1044,"type":13},{"name":1111,"slug":1112,"type":13},{"name":9,"slug":8,"type":13},{"slug":1116,"name":1116,"fn":1117,"description":1118,"org":1178,"tags":1179,"stars":26,"repoUrl":27,"updatedAt":1131},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1180,1181,1182,1183],{"name":1122,"slug":1123,"type":13},{"name":1125,"slug":1126,"type":13},{"name":9,"slug":8,"type":13},{"name":1129,"slug":1130,"type":13},{"slug":1185,"name":1185,"fn":1186,"description":1187,"org":1188,"tags":1189,"stars":26,"repoUrl":27,"updatedAt":1201},"building-html-canvases","author HTML and CSS PostHog canvases","Author a PostHog canvas with semantic HTML, CSS, and direct browser APIs — documents, articles, generative graphics, 2D canvas and WebGL experiences, and focused experiments where React components add no useful structure. Use after building-canvases has routed a canvas request to a plain-HTML\u002Fbrowser-API implementation. Covers the thin component wrapper the current runtime requires, styling and theming without Quill, drawing surfaces, and animation\u002Fcleanup patterns.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1190,1193,1194,1197,1200],{"name":1191,"slug":1192,"type":13},"CSS","css",{"name":1125,"slug":1126,"type":13},{"name":1195,"slug":1196,"type":13},"Graphics","graphics",{"name":1198,"slug":1199,"type":13},"HTML","html",{"name":9,"slug":8,"type":13},"2026-08-06T06:09:30.313848",{"slug":1203,"name":1203,"fn":1204,"description":1205,"org":1206,"tags":1207,"stars":26,"repoUrl":27,"updatedAt":1217},"building-react-quill-canvases","build React and Quill canvases","Author the React + Quill implementation of a PostHog canvas: the single-component contract, the allowed imports, Quill (PostHog's design system) component and composition rules, theme-aware design tokens, loading skeletons, and the in-canvas date picker. Use after building-canvases has routed a canvas request to a React implementation — dashboards, data boards, forms, tools, or any canvas that should look native to PostHog.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1208,1209,1212,1214],{"name":1125,"slug":1126,"type":13},{"name":1210,"slug":1211,"type":13},"Frontend","frontend",{"name":1213,"slug":41,"type":13},"React",{"name":1215,"slug":1216,"type":13},"UI Components","ui-components","2026-08-06T06:09:18.633724",{"slug":1219,"name":1219,"fn":1220,"description":1221,"org":1222,"tags":1223,"stars":26,"repoUrl":27,"updatedAt":1232},"building-workflows","build and edit PostHog workflows","Build, edit, test, enable, and monitor PostHog workflows over MCP. Author the action\u002Fedge graph so it runs and opens cleanly in the visual editor, then change drafts surgically with patch operations. Use when asked to build, set up, automate, change, fix, or debug a workflow, campaign, broadcast, drip sequence, or event-triggered automation in the workflows product.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1224,1225,1228,1229],{"name":1122,"slug":1123,"type":13},{"name":1226,"slug":1227,"type":13},"MCP","mcp",{"name":9,"slug":8,"type":13},{"name":1230,"slug":1231,"type":13},"Workflow Automation","workflow-automation","2026-08-06T05:36:26.504811",{"slug":1234,"name":1234,"fn":1235,"description":1236,"org":1237,"tags":1238,"stars":26,"repoUrl":27,"updatedAt":1244},"check-posthog-loading","inspect PostHog SDK loading across URLs","Inspect how the PostHog JavaScript SDK is loaded across a list of URLs. Use to confirm consistent installation across pages, find pages missing the snippet, detect mismatched API keys or hosts between pages, and verify the load method (head snippet vs deferred vs array.js).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1239,1240,1241,1242,1243],{"name":24,"slug":25,"type":13},{"name":1094,"slug":1095,"type":13},{"name":1210,"slug":1211,"type":13},{"name":1043,"slug":1044,"type":13},{"name":9,"slug":8,"type":13},"2026-05-07T05:56:19.828048",{"slug":1246,"name":1246,"fn":1247,"description":1248,"org":1249,"tags":1250,"stars":26,"repoUrl":27,"updatedAt":1259},"consuming-endpoints-from-client-code","integrate PostHog endpoints into client applications","Wire a PostHog endpoint into a client app or SDK. Covers fetching the OpenAPI spec, generating a typed client with openapi-generator or @hey-api\u002Fopenapi-ts, sending the right auth header, shaping the variables payload (HogQL code_name vs insight breakdown property), handling rate-limit and materialised-endpoint error responses. Use when the user says \"how do I call my endpoint\", \"generate a client for this\", or \"what auth header do I use\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1251,1254,1255,1256],{"name":1252,"slug":1253,"type":13},"API Development","api-development",{"name":1210,"slug":1211,"type":13},{"name":9,"slug":8,"type":13},{"name":1257,"slug":1258,"type":13},"SDK","sdk","2026-06-08T08:08:34.929454",243]