[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-posthog-setting-up-a-custom-rest-source":3,"mdc--8wbyki-key":49,"related-repo-posthog-setting-up-a-custom-rest-source":1824,"related-org-posthog-setting-up-a-custom-rest-source":1928},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":44,"sourceUrl":47,"mdContent":48},"setting-up-a-custom-rest-source","connect REST APIs to PostHog warehouse","Connect an arbitrary REST API to the PostHog data warehouse as a Custom source by authoring a JSON manifest, with no per-source code. Use when the user points at an API that has no built-in PostHog connector — \"import data from this REST API\", \"sync my internal API\", \"connect this API from its docs\", \"build a custom data warehouse source\" — and gives a docs URL or a natural-language description of the endpoints. Walks through drafting the RESTAPIConfig manifest (auth — bearer, API key, HTTP basic, or OAuth2 client credentials \u002F refresh token — pagination, record path, incremental cursor, parent\u002Fchild fan-out), validating it, test-reading live rows to verify the field mappings, and creating the source. If the API already has a native PostHog connector, use setting-up-a-data-warehouse-source instead — this skill checks the connector registry first and only handles APIs with no native connector.\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],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"Data Engineering","data-engineering",{"name":18,"slug":19,"type":13},"Integrations","integrations",{"name":21,"slug":22,"type":13},"REST API","rest-api",35568,"https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog","2026-06-26T07:42:14.812448",null,2977,[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"ab-testing","ai-analytics","analytics","cdp","data-warehouse","experiments","feature-flags","javascript","product-analytics","python","react","session-replay","surveys","typescript","web-analytics",{"repoUrl":24,"stars":23,"forks":27,"topics":45,"description":46},[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"🦔 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\u002Fwarehouse_sources\u002Fskills\u002Fsetting-up-a-custom-rest-source","---\nname: setting-up-a-custom-rest-source\ndescription: >\n  Connect an arbitrary REST API to the PostHog data warehouse as a Custom source by authoring a JSON manifest, with no\n  per-source code. Use when the user points at an API that has no built-in PostHog connector — \"import data from this\n  REST API\", \"sync my internal API\", \"connect this API from its docs\", \"build a custom data warehouse source\" — and\n  gives a docs URL or a natural-language description of the endpoints. Walks through drafting the RESTAPIConfig manifest\n  (auth — bearer, API key, HTTP basic, or OAuth2 client credentials \u002F refresh token — pagination, record path,\n  incremental cursor, parent\u002Fchild fan-out), validating it, test-reading live rows to verify the field mappings, and\n  creating the source. If the API already has a native PostHog connector, use\n  setting-up-a-data-warehouse-source instead — this skill checks the connector registry first and only handles APIs\n  with no native connector.\n---\n\n# Setting up a Custom REST source\n\nA **Custom source** imports any HTTP REST API into queryable warehouse tables from a JSON **manifest** — no\nper-source Python. The manifest is a `RESTAPIConfig`: the same shape that powers PostHog's built-in REST connectors\n(Intercom, Attio, Sentry, …), so the generic REST engine handles auth, pagination, JSONPath record extraction, and\nincremental cursors for you. Your job is to author a correct manifest and prove it against live data before creating\nthe source.\n\nThis is an **alpha** capability. Caps: at most 50 resources per manifest, and at most 5 Custom sources per project.\n\n## When to use this skill\n\n- The user wants to import an API that has **no built-in connector** — an internal service, a niche SaaS, a public\n  API — and can give you its docs URL or describe its endpoints.\n- The user explicitly asks for a \"custom REST source\", \"custom source manifest\", or to \"build a connector from docs\".\n\nA Custom source is the **fallback** — only correct when no native connector fits. PostHog ships **hundreds** of native\nconnectors, far more than could be listed here, so **never assume an API has no built-in** — most well-known SaaS apps\nand databases do, and guessing wrong misroutes them into a hand-authored manifest that duplicates a battle-tested\nconnector. Step 0 below makes you check the registry before drafting anything; if a native connector matches, hand off\nto `setting-up-a-data-warehouse-source` instead.\n\n## The grammar\n\nRead [references\u002Fmanifest-reference.md](references\u002Fmanifest-reference.md) before drafting — it is the full\n`RESTAPIConfig` field reference (auth types, the six paginators, incremental cursors, parent\u002Fchild fan-out) with worked\nexamples for each. Draft the manifest from that grammar; don't guess field names.\n\nThe skeleton:\n\n```json\n{\n  \"client\": {\n    \"base_url\": \"https:\u002F\u002Fapi.example.com\u002Fv1\",\n    \"auth\": { \"type\": \"bearer\" }\n  },\n  \"resources\": [\n    {\n      \"name\": \"users\",\n      \"primary_key\": \"id\",\n      \"endpoint\": {\n        \"path\": \"\u002Fusers\",\n        \"data_selector\": \"data\",\n        \"paginator\": { \"type\": \"json_response\", \"next_url_path\": \"next\" },\n        \"incremental\": { \"cursor_path\": \"updated_at\", \"start_param\": \"since\" }\n      }\n    }\n  ]\n}\n```\n\n**Secrets never go inline in the manifest.** `manifest_json` holds only the non-secret structure. The credential\ntravels in a separate payload key chosen by the manifest's `client.auth.type`: `auth_token` (bearer), `auth_api_key`\n(api_key), `auth_password` (http_basic), or `auth_oauth2_client_secret` for oauth2 (plus\n`auth_oauth2_refresh_token` for the refresh-token grant only). The\nengine injects it at run time, and PostHog redacts it from every response. Putting a token inline is rejected at\nvalidation.\n\n## Available tools\n\n| Tool                                     | Purpose                                                                                                                                                                  |\n| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `external-data-sources-wizard`           | List every native source type PostHog supports. Run this **first** (Step 0) to check whether the target API already has a built-in connector before drafting a manifest. |\n| `external-data-sources-db-schema`        | Validate the manifest + credential and list the resources (tables) it exposes, with detected primary keys and incremental cursors. This is the validate-and-list step.   |\n| `external-data-sources-preview-resource` | Read a small live sample of rows for one resource — verify `data_selector` \u002F `primary_key` \u002F `cursor_path` against real data before creating anything.                   |\n| `data-warehouse-source-setup`            | Create the source. Enables **all** manifest resources with sync defaults in one call.                                                                                    |\n| `external-data-sources-create`           | Advanced create — lets the user hand-pick which resources sync via a `schemas` array.                                                                                    |\n| `external-data-schemas-list`             | After creation, watch per-table sync status.                                                                                                                             |\n\n## Workflow\n\n### Step 0 — Check for a native connector first\n\nBefore drafting anything, call `external-data-sources-wizard` to list the native source types and check whether the\ntarget API is among them, matching on the service name. A Custom source is the fallback for APIs with **no** native\nconnector; do not skip this check on the assumption that a well-known API isn't supported — most are.\n\nIf a native connector matches, **stop and tell the user** the built-in path is simpler and battle-tested (it handles\nauth, pagination, schema, and incremental sync for you), and hand off to `setting-up-a-data-warehouse-source`. Only\ncontinue with this skill when the user has no matching native connector, or explicitly wants to exercise the custom\nREST path despite one existing.\n\n### Step 1 — Gather the API shape\n\nGet either a **docs URL** (fetch it and read the auth scheme, the list endpoints, their response envelopes, and any\npagination) or a **natural-language description** of the endpoints. You need, per resource you'll import:\n\n- the **path** (relative to a common `base_url`) and method (GET, or POST for query-style read endpoints),\n- the **auth scheme** (bearer token \u002F API key in header or query \u002F HTTP basic \u002F OAuth2 with a customer-owned client —\n  `client_credentials` or a pre-obtained refresh token; the interactive `authorization_code` flow is not supported),\n- the **record path** — where the array of records sits in the JSON response (e.g. `data`, `results`, `items`),\n- how the API **paginates** (next-URL, link header, cursor, offset, page number, or single page),\n- a **primary key** field, and\n- optionally an **incremental cursor** field (`updated_at`-style) so re-syncs only fetch new\u002Fchanged rows.\n\nAsk the user for the credential value, but tell them you'll only ever place it in the `auth_*` payload key, never in\nthe manifest.\n\n### Step 2 — Draft the manifest\n\nAuthor the `RESTAPIConfig` from [references\u002Fmanifest-reference.md](references\u002Fmanifest-reference.md). Match the auth\nblock to the scheme, pick the paginator that matches the docs, set `data_selector` to the record path, and add an\n`incremental` block when the API has an `updated_at`-style cursor and a matching query param. For an endpoint whose\nrows must be fetched per parent (e.g. `\u002Fforms\u002F{form_id}\u002Fresponses`), use a parent\u002Fchild **resolve** param — see the\nfan-out example. Keep it to one level of nesting.\n\n### Step 3 — Validate and list resources\n\nCall `external-data-sources-db-schema` with `{ source_type: \"Custom\", manifest_json: \"\u003Cstringified manifest>\",\nauth_token: \"\u003Ccredential>\" }`. The credential key is **not literally `auth_*`** — use the one for your auth type:\n`auth_token` (bearer), `auth_api_key` (api_key), `auth_password` (http_basic), or `auth_oauth2_client_secret` (+\n`auth_oauth2_refresh_token` for the refresh-token grant). It validates the manifest structure,\nthe fan-out graph, and the credential (a bounded live probe),\nthen returns one table entry per resource with `detected_primary_keys` and `incremental_fields`. If it returns a 400,\nthe `message` is plain English (e.g. `resources[0].endpoint.path: must not be empty`) — fix the manifest and retry.\nLoop here until it validates.\n\n### Step 4 — Test-read each resource\n\nFor each resource, call `external-data-sources-preview-resource` with `{ source_type: \"Custom\", payload: {\nmanifest_json, auth_token }, resource_name: \"\u003Cname>\", limit: 10 }` (the `auth_token` key varies by auth type, as in\nStep 3). It returns up to `limit` real rows plus the inferred\n`columns`. Check that:\n\n- **`data_selector` is right** — `rows` are the records you expect, not a wrapper object. If `rows` looks like\n  `[{ \"data\": [...] }]` you pointed at the envelope, not the array; fix `data_selector`.\n- **`primary_key` exists** in the rows and is unique.\n- **the incremental `cursor_path` field is present** in the rows and looks like a sortable timestamp\u002Fid.\n\nA live failure (unreachable host, auth rejected) comes back as `error` with empty `rows` — fix credentials or the URL\nand retry. Iterate Steps 2–4 until the sample looks right.\n\n### Step 5 — Create the source\n\nCall `data-warehouse-source-setup` with `{ source_type: \"Custom\", payload: { manifest_json, auth_token }, prefix:\n\"\u003Cshort_name>\" }` (the `auth_token` key varies by auth type, as in Step 3). It enables **every** resource in the manifest with sensible sync defaults (incremental where the\nmanifest declares a cursor, else full refresh) and creates the source. If the user only wants a subset of resources,\nuse `external-data-sources-create` with a `schemas` array instead (see `setting-up-a-data-warehouse-source` for the\nschemas shape). Pick a short lowercase `prefix` — tables become `{prefix}_{resource_name}` in HogQL.\n\nAfter creation, call `external-data-schemas-list` to show the user the initial sync status, and tell them how to query:\n`SELECT * FROM {prefix}_{resource_name} LIMIT 10`.\n\n## Important notes\n\n- **Always preview before creating.** db-schema proves the manifest parses and the credential works; preview proves the\n  field mappings (`data_selector` \u002F `primary_key` \u002F `cursor_path`) against real rows. Skipping preview is the most\n  common way to create a source that syncs zero or malformed rows.\n- **Secrets only in `auth_*`.** Never inline a token\u002Fkey\u002Fpassword in `manifest_json` — it's rejected, and the manifest\n  is non-secret (it round-trips to the client).\n- **One level of fan-out.** A child resource may depend on a top-level parent; a parent can't itself be a child.\n- **GET and POST only.** The engine reads upstream data; PUT\u002FPATCH\u002FDELETE are rejected so a manifest can't mutate the\n  source API.\n- **Pick the cursor carefully.** Prefer an `updated_at`-style field over `created_at` (it catches edits), and set\n  `cursor_type` when the cursor isn't a datetime (e.g. an integer id) so it's compared with the right type.\n- **OAuth2 secrets are adopted into a server-managed credential store** on the first db-schema \u002F preview \u002F create\n  call, and any rotated single-use refresh token is persisted server-side — so keep the entire `client.auth` block\n  identical across those calls within one setup, and re-submit the same secrets each time. Changing any auth-block\n  field mid-setup discards the stored rotation, and providers that rotate single-use refresh tokens will then reject\n  the next mint until the user fetches a fresh token. Never set `auth_oauth2_integration_id` yourself (it is server-owned); to\n  reconnect a source whose token broke, update it with re-entered `auth_oauth2_client_secret` \u002F\n  `auth_oauth2_refresh_token`. See the OAuth2 section of the manifest reference for the auth block fields.\n",{"data":50,"body":51},{"name":4,"description":6},{"type":52,"children":53},"root",[54,62,92,104,111,133,167,173,193,198,803,869,875,1047,1053,1060,1079,1098,1104,1123,1247,1260,1266,1320,1326,1423,1429,1471,1551,1571,1577,1645,1664,1670,1818],{"type":55,"tag":56,"props":57,"children":58},"element","h1",{"id":4},[59],{"type":60,"value":61},"text","Setting up a Custom REST source",{"type":55,"tag":63,"props":64,"children":65},"p",{},[66,68,74,76,81,83,90],{"type":60,"value":67},"A ",{"type":55,"tag":69,"props":70,"children":71},"strong",{},[72],{"type":60,"value":73},"Custom source",{"type":60,"value":75}," imports any HTTP REST API into queryable warehouse tables from a JSON ",{"type":55,"tag":69,"props":77,"children":78},{},[79],{"type":60,"value":80},"manifest",{"type":60,"value":82}," — no\nper-source Python. The manifest is a ",{"type":55,"tag":84,"props":85,"children":87},"code",{"className":86},[],[88],{"type":60,"value":89},"RESTAPIConfig",{"type":60,"value":91},": the same shape that powers PostHog's built-in REST connectors\n(Intercom, Attio, Sentry, …), so the generic REST engine handles auth, pagination, JSONPath record extraction, and\nincremental cursors for you. Your job is to author a correct manifest and prove it against live data before creating\nthe source.",{"type":55,"tag":63,"props":93,"children":94},{},[95,97,102],{"type":60,"value":96},"This is an ",{"type":55,"tag":69,"props":98,"children":99},{},[100],{"type":60,"value":101},"alpha",{"type":60,"value":103}," capability. Caps: at most 50 resources per manifest, and at most 5 Custom sources per project.",{"type":55,"tag":105,"props":106,"children":108},"h2",{"id":107},"when-to-use-this-skill",[109],{"type":60,"value":110},"When to use this skill",{"type":55,"tag":112,"props":113,"children":114},"ul",{},[115,128],{"type":55,"tag":116,"props":117,"children":118},"li",{},[119,121,126],{"type":60,"value":120},"The user wants to import an API that has ",{"type":55,"tag":69,"props":122,"children":123},{},[124],{"type":60,"value":125},"no built-in connector",{"type":60,"value":127}," — an internal service, a niche SaaS, a public\nAPI — and can give you its docs URL or describe its endpoints.",{"type":55,"tag":116,"props":129,"children":130},{},[131],{"type":60,"value":132},"The user explicitly asks for a \"custom REST source\", \"custom source manifest\", or to \"build a connector from docs\".",{"type":55,"tag":63,"props":134,"children":135},{},[136,138,143,145,150,152,157,159,165],{"type":60,"value":137},"A Custom source is the ",{"type":55,"tag":69,"props":139,"children":140},{},[141],{"type":60,"value":142},"fallback",{"type":60,"value":144}," — only correct when no native connector fits. PostHog ships ",{"type":55,"tag":69,"props":146,"children":147},{},[148],{"type":60,"value":149},"hundreds",{"type":60,"value":151}," of native\nconnectors, far more than could be listed here, so ",{"type":55,"tag":69,"props":153,"children":154},{},[155],{"type":60,"value":156},"never assume an API has no built-in",{"type":60,"value":158}," — most well-known SaaS apps\nand databases do, and guessing wrong misroutes them into a hand-authored manifest that duplicates a battle-tested\nconnector. Step 0 below makes you check the registry before drafting anything; if a native connector matches, hand off\nto ",{"type":55,"tag":84,"props":160,"children":162},{"className":161},[],[163],{"type":60,"value":164},"setting-up-a-data-warehouse-source",{"type":60,"value":166}," instead.",{"type":55,"tag":105,"props":168,"children":170},{"id":169},"the-grammar",[171],{"type":60,"value":172},"The grammar",{"type":55,"tag":63,"props":174,"children":175},{},[176,178,184,186,191],{"type":60,"value":177},"Read ",{"type":55,"tag":179,"props":180,"children":182},"a",{"href":181},"references\u002Fmanifest-reference.md",[183],{"type":60,"value":181},{"type":60,"value":185}," before drafting — it is the full\n",{"type":55,"tag":84,"props":187,"children":189},{"className":188},[],[190],{"type":60,"value":89},{"type":60,"value":192}," field reference (auth types, the six paginators, incremental cursors, parent\u002Fchild fan-out) with worked\nexamples for each. Draft the manifest from that grammar; don't guess field names.",{"type":55,"tag":63,"props":194,"children":195},{},[196],{"type":60,"value":197},"The skeleton:",{"type":55,"tag":199,"props":200,"children":205},"pre",{"className":201,"code":202,"language":203,"meta":204,"style":204},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"client\": {\n    \"base_url\": \"https:\u002F\u002Fapi.example.com\u002Fv1\",\n    \"auth\": { \"type\": \"bearer\" }\n  },\n  \"resources\": [\n    {\n      \"name\": \"users\",\n      \"primary_key\": \"id\",\n      \"endpoint\": {\n        \"path\": \"\u002Fusers\",\n        \"data_selector\": \"data\",\n        \"paginator\": { \"type\": \"json_response\", \"next_url_path\": \"next\" },\n        \"incremental\": { \"cursor_path\": \"updated_at\", \"start_param\": \"since\" }\n      }\n    }\n  ]\n}\n","json","",[206],{"type":55,"tag":84,"props":207,"children":208},{"__ignoreMap":204},[209,221,251,294,356,365,391,400,439,477,502,541,579,674,767,776,785,794],{"type":55,"tag":210,"props":211,"children":214},"span",{"class":212,"line":213},"line",1,[215],{"type":55,"tag":210,"props":216,"children":218},{"style":217},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[219],{"type":60,"value":220},"{\n",{"type":55,"tag":210,"props":222,"children":224},{"class":212,"line":223},2,[225,230,236,241,246],{"type":55,"tag":210,"props":226,"children":227},{"style":217},[228],{"type":60,"value":229},"  \"",{"type":55,"tag":210,"props":231,"children":233},{"style":232},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[234],{"type":60,"value":235},"client",{"type":55,"tag":210,"props":237,"children":238},{"style":217},[239],{"type":60,"value":240},"\"",{"type":55,"tag":210,"props":242,"children":243},{"style":217},[244],{"type":60,"value":245},":",{"type":55,"tag":210,"props":247,"children":248},{"style":217},[249],{"type":60,"value":250}," {\n",{"type":55,"tag":210,"props":252,"children":254},{"class":212,"line":253},3,[255,260,266,270,274,279,285,289],{"type":55,"tag":210,"props":256,"children":257},{"style":217},[258],{"type":60,"value":259},"    \"",{"type":55,"tag":210,"props":261,"children":263},{"style":262},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[264],{"type":60,"value":265},"base_url",{"type":55,"tag":210,"props":267,"children":268},{"style":217},[269],{"type":60,"value":240},{"type":55,"tag":210,"props":271,"children":272},{"style":217},[273],{"type":60,"value":245},{"type":55,"tag":210,"props":275,"children":276},{"style":217},[277],{"type":60,"value":278}," \"",{"type":55,"tag":210,"props":280,"children":282},{"style":281},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[283],{"type":60,"value":284},"https:\u002F\u002Fapi.example.com\u002Fv1",{"type":55,"tag":210,"props":286,"children":287},{"style":217},[288],{"type":60,"value":240},{"type":55,"tag":210,"props":290,"children":291},{"style":217},[292],{"type":60,"value":293},",\n",{"type":55,"tag":210,"props":295,"children":297},{"class":212,"line":296},4,[298,302,307,311,315,320,324,330,334,338,342,347,351],{"type":55,"tag":210,"props":299,"children":300},{"style":217},[301],{"type":60,"value":259},{"type":55,"tag":210,"props":303,"children":304},{"style":262},[305],{"type":60,"value":306},"auth",{"type":55,"tag":210,"props":308,"children":309},{"style":217},[310],{"type":60,"value":240},{"type":55,"tag":210,"props":312,"children":313},{"style":217},[314],{"type":60,"value":245},{"type":55,"tag":210,"props":316,"children":317},{"style":217},[318],{"type":60,"value":319}," {",{"type":55,"tag":210,"props":321,"children":322},{"style":217},[323],{"type":60,"value":278},{"type":55,"tag":210,"props":325,"children":327},{"style":326},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[328],{"type":60,"value":329},"type",{"type":55,"tag":210,"props":331,"children":332},{"style":217},[333],{"type":60,"value":240},{"type":55,"tag":210,"props":335,"children":336},{"style":217},[337],{"type":60,"value":245},{"type":55,"tag":210,"props":339,"children":340},{"style":217},[341],{"type":60,"value":278},{"type":55,"tag":210,"props":343,"children":344},{"style":281},[345],{"type":60,"value":346},"bearer",{"type":55,"tag":210,"props":348,"children":349},{"style":217},[350],{"type":60,"value":240},{"type":55,"tag":210,"props":352,"children":353},{"style":217},[354],{"type":60,"value":355}," }\n",{"type":55,"tag":210,"props":357,"children":359},{"class":212,"line":358},5,[360],{"type":55,"tag":210,"props":361,"children":362},{"style":217},[363],{"type":60,"value":364},"  },\n",{"type":55,"tag":210,"props":366,"children":368},{"class":212,"line":367},6,[369,373,378,382,386],{"type":55,"tag":210,"props":370,"children":371},{"style":217},[372],{"type":60,"value":229},{"type":55,"tag":210,"props":374,"children":375},{"style":232},[376],{"type":60,"value":377},"resources",{"type":55,"tag":210,"props":379,"children":380},{"style":217},[381],{"type":60,"value":240},{"type":55,"tag":210,"props":383,"children":384},{"style":217},[385],{"type":60,"value":245},{"type":55,"tag":210,"props":387,"children":388},{"style":217},[389],{"type":60,"value":390}," [\n",{"type":55,"tag":210,"props":392,"children":394},{"class":212,"line":393},7,[395],{"type":55,"tag":210,"props":396,"children":397},{"style":217},[398],{"type":60,"value":399},"    {\n",{"type":55,"tag":210,"props":401,"children":403},{"class":212,"line":402},8,[404,409,414,418,422,426,431,435],{"type":55,"tag":210,"props":405,"children":406},{"style":217},[407],{"type":60,"value":408},"      \"",{"type":55,"tag":210,"props":410,"children":411},{"style":262},[412],{"type":60,"value":413},"name",{"type":55,"tag":210,"props":415,"children":416},{"style":217},[417],{"type":60,"value":240},{"type":55,"tag":210,"props":419,"children":420},{"style":217},[421],{"type":60,"value":245},{"type":55,"tag":210,"props":423,"children":424},{"style":217},[425],{"type":60,"value":278},{"type":55,"tag":210,"props":427,"children":428},{"style":281},[429],{"type":60,"value":430},"users",{"type":55,"tag":210,"props":432,"children":433},{"style":217},[434],{"type":60,"value":240},{"type":55,"tag":210,"props":436,"children":437},{"style":217},[438],{"type":60,"value":293},{"type":55,"tag":210,"props":440,"children":442},{"class":212,"line":441},9,[443,447,452,456,460,464,469,473],{"type":55,"tag":210,"props":444,"children":445},{"style":217},[446],{"type":60,"value":408},{"type":55,"tag":210,"props":448,"children":449},{"style":262},[450],{"type":60,"value":451},"primary_key",{"type":55,"tag":210,"props":453,"children":454},{"style":217},[455],{"type":60,"value":240},{"type":55,"tag":210,"props":457,"children":458},{"style":217},[459],{"type":60,"value":245},{"type":55,"tag":210,"props":461,"children":462},{"style":217},[463],{"type":60,"value":278},{"type":55,"tag":210,"props":465,"children":466},{"style":281},[467],{"type":60,"value":468},"id",{"type":55,"tag":210,"props":470,"children":471},{"style":217},[472],{"type":60,"value":240},{"type":55,"tag":210,"props":474,"children":475},{"style":217},[476],{"type":60,"value":293},{"type":55,"tag":210,"props":478,"children":480},{"class":212,"line":479},10,[481,485,490,494,498],{"type":55,"tag":210,"props":482,"children":483},{"style":217},[484],{"type":60,"value":408},{"type":55,"tag":210,"props":486,"children":487},{"style":262},[488],{"type":60,"value":489},"endpoint",{"type":55,"tag":210,"props":491,"children":492},{"style":217},[493],{"type":60,"value":240},{"type":55,"tag":210,"props":495,"children":496},{"style":217},[497],{"type":60,"value":245},{"type":55,"tag":210,"props":499,"children":500},{"style":217},[501],{"type":60,"value":250},{"type":55,"tag":210,"props":503,"children":505},{"class":212,"line":504},11,[506,511,516,520,524,528,533,537],{"type":55,"tag":210,"props":507,"children":508},{"style":217},[509],{"type":60,"value":510},"        \"",{"type":55,"tag":210,"props":512,"children":513},{"style":326},[514],{"type":60,"value":515},"path",{"type":55,"tag":210,"props":517,"children":518},{"style":217},[519],{"type":60,"value":240},{"type":55,"tag":210,"props":521,"children":522},{"style":217},[523],{"type":60,"value":245},{"type":55,"tag":210,"props":525,"children":526},{"style":217},[527],{"type":60,"value":278},{"type":55,"tag":210,"props":529,"children":530},{"style":281},[531],{"type":60,"value":532},"\u002Fusers",{"type":55,"tag":210,"props":534,"children":535},{"style":217},[536],{"type":60,"value":240},{"type":55,"tag":210,"props":538,"children":539},{"style":217},[540],{"type":60,"value":293},{"type":55,"tag":210,"props":542,"children":544},{"class":212,"line":543},12,[545,549,554,558,562,566,571,575],{"type":55,"tag":210,"props":546,"children":547},{"style":217},[548],{"type":60,"value":510},{"type":55,"tag":210,"props":550,"children":551},{"style":326},[552],{"type":60,"value":553},"data_selector",{"type":55,"tag":210,"props":555,"children":556},{"style":217},[557],{"type":60,"value":240},{"type":55,"tag":210,"props":559,"children":560},{"style":217},[561],{"type":60,"value":245},{"type":55,"tag":210,"props":563,"children":564},{"style":217},[565],{"type":60,"value":278},{"type":55,"tag":210,"props":567,"children":568},{"style":281},[569],{"type":60,"value":570},"data",{"type":55,"tag":210,"props":572,"children":573},{"style":217},[574],{"type":60,"value":240},{"type":55,"tag":210,"props":576,"children":577},{"style":217},[578],{"type":60,"value":293},{"type":55,"tag":210,"props":580,"children":582},{"class":212,"line":581},13,[583,587,592,596,600,604,608,613,617,621,625,630,634,639,643,648,652,656,660,665,669],{"type":55,"tag":210,"props":584,"children":585},{"style":217},[586],{"type":60,"value":510},{"type":55,"tag":210,"props":588,"children":589},{"style":326},[590],{"type":60,"value":591},"paginator",{"type":55,"tag":210,"props":593,"children":594},{"style":217},[595],{"type":60,"value":240},{"type":55,"tag":210,"props":597,"children":598},{"style":217},[599],{"type":60,"value":245},{"type":55,"tag":210,"props":601,"children":602},{"style":217},[603],{"type":60,"value":319},{"type":55,"tag":210,"props":605,"children":606},{"style":217},[607],{"type":60,"value":278},{"type":55,"tag":210,"props":609,"children":611},{"style":610},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[612],{"type":60,"value":329},{"type":55,"tag":210,"props":614,"children":615},{"style":217},[616],{"type":60,"value":240},{"type":55,"tag":210,"props":618,"children":619},{"style":217},[620],{"type":60,"value":245},{"type":55,"tag":210,"props":622,"children":623},{"style":217},[624],{"type":60,"value":278},{"type":55,"tag":210,"props":626,"children":627},{"style":281},[628],{"type":60,"value":629},"json_response",{"type":55,"tag":210,"props":631,"children":632},{"style":217},[633],{"type":60,"value":240},{"type":55,"tag":210,"props":635,"children":636},{"style":217},[637],{"type":60,"value":638},",",{"type":55,"tag":210,"props":640,"children":641},{"style":217},[642],{"type":60,"value":278},{"type":55,"tag":210,"props":644,"children":645},{"style":610},[646],{"type":60,"value":647},"next_url_path",{"type":55,"tag":210,"props":649,"children":650},{"style":217},[651],{"type":60,"value":240},{"type":55,"tag":210,"props":653,"children":654},{"style":217},[655],{"type":60,"value":245},{"type":55,"tag":210,"props":657,"children":658},{"style":217},[659],{"type":60,"value":278},{"type":55,"tag":210,"props":661,"children":662},{"style":281},[663],{"type":60,"value":664},"next",{"type":55,"tag":210,"props":666,"children":667},{"style":217},[668],{"type":60,"value":240},{"type":55,"tag":210,"props":670,"children":671},{"style":217},[672],{"type":60,"value":673}," },\n",{"type":55,"tag":210,"props":675,"children":677},{"class":212,"line":676},14,[678,682,687,691,695,699,703,708,712,716,720,725,729,733,737,742,746,750,754,759,763],{"type":55,"tag":210,"props":679,"children":680},{"style":217},[681],{"type":60,"value":510},{"type":55,"tag":210,"props":683,"children":684},{"style":326},[685],{"type":60,"value":686},"incremental",{"type":55,"tag":210,"props":688,"children":689},{"style":217},[690],{"type":60,"value":240},{"type":55,"tag":210,"props":692,"children":693},{"style":217},[694],{"type":60,"value":245},{"type":55,"tag":210,"props":696,"children":697},{"style":217},[698],{"type":60,"value":319},{"type":55,"tag":210,"props":700,"children":701},{"style":217},[702],{"type":60,"value":278},{"type":55,"tag":210,"props":704,"children":705},{"style":610},[706],{"type":60,"value":707},"cursor_path",{"type":55,"tag":210,"props":709,"children":710},{"style":217},[711],{"type":60,"value":240},{"type":55,"tag":210,"props":713,"children":714},{"style":217},[715],{"type":60,"value":245},{"type":55,"tag":210,"props":717,"children":718},{"style":217},[719],{"type":60,"value":278},{"type":55,"tag":210,"props":721,"children":722},{"style":281},[723],{"type":60,"value":724},"updated_at",{"type":55,"tag":210,"props":726,"children":727},{"style":217},[728],{"type":60,"value":240},{"type":55,"tag":210,"props":730,"children":731},{"style":217},[732],{"type":60,"value":638},{"type":55,"tag":210,"props":734,"children":735},{"style":217},[736],{"type":60,"value":278},{"type":55,"tag":210,"props":738,"children":739},{"style":610},[740],{"type":60,"value":741},"start_param",{"type":55,"tag":210,"props":743,"children":744},{"style":217},[745],{"type":60,"value":240},{"type":55,"tag":210,"props":747,"children":748},{"style":217},[749],{"type":60,"value":245},{"type":55,"tag":210,"props":751,"children":752},{"style":217},[753],{"type":60,"value":278},{"type":55,"tag":210,"props":755,"children":756},{"style":281},[757],{"type":60,"value":758},"since",{"type":55,"tag":210,"props":760,"children":761},{"style":217},[762],{"type":60,"value":240},{"type":55,"tag":210,"props":764,"children":765},{"style":217},[766],{"type":60,"value":355},{"type":55,"tag":210,"props":768,"children":770},{"class":212,"line":769},15,[771],{"type":55,"tag":210,"props":772,"children":773},{"style":217},[774],{"type":60,"value":775},"      }\n",{"type":55,"tag":210,"props":777,"children":779},{"class":212,"line":778},16,[780],{"type":55,"tag":210,"props":781,"children":782},{"style":217},[783],{"type":60,"value":784},"    }\n",{"type":55,"tag":210,"props":786,"children":788},{"class":212,"line":787},17,[789],{"type":55,"tag":210,"props":790,"children":791},{"style":217},[792],{"type":60,"value":793},"  ]\n",{"type":55,"tag":210,"props":795,"children":797},{"class":212,"line":796},18,[798],{"type":55,"tag":210,"props":799,"children":800},{"style":217},[801],{"type":60,"value":802},"}\n",{"type":55,"tag":63,"props":804,"children":805},{},[806,811,813,819,821,827,829,835,837,843,845,851,853,859,861,867],{"type":55,"tag":69,"props":807,"children":808},{},[809],{"type":60,"value":810},"Secrets never go inline in the manifest.",{"type":60,"value":812}," ",{"type":55,"tag":84,"props":814,"children":816},{"className":815},[],[817],{"type":60,"value":818},"manifest_json",{"type":60,"value":820}," holds only the non-secret structure. The credential\ntravels in a separate payload key chosen by the manifest's ",{"type":55,"tag":84,"props":822,"children":824},{"className":823},[],[825],{"type":60,"value":826},"client.auth.type",{"type":60,"value":828},": ",{"type":55,"tag":84,"props":830,"children":832},{"className":831},[],[833],{"type":60,"value":834},"auth_token",{"type":60,"value":836}," (bearer), ",{"type":55,"tag":84,"props":838,"children":840},{"className":839},[],[841],{"type":60,"value":842},"auth_api_key",{"type":60,"value":844},"\n(api_key), ",{"type":55,"tag":84,"props":846,"children":848},{"className":847},[],[849],{"type":60,"value":850},"auth_password",{"type":60,"value":852}," (http_basic), or ",{"type":55,"tag":84,"props":854,"children":856},{"className":855},[],[857],{"type":60,"value":858},"auth_oauth2_client_secret",{"type":60,"value":860}," for oauth2 (plus\n",{"type":55,"tag":84,"props":862,"children":864},{"className":863},[],[865],{"type":60,"value":866},"auth_oauth2_refresh_token",{"type":60,"value":868}," for the refresh-token grant only). The\nengine injects it at run time, and PostHog redacts it from every response. Putting a token inline is rejected at\nvalidation.",{"type":55,"tag":105,"props":870,"children":872},{"id":871},"available-tools",[873],{"type":60,"value":874},"Available tools",{"type":55,"tag":876,"props":877,"children":878},"table",{},[879,898],{"type":55,"tag":880,"props":881,"children":882},"thead",{},[883],{"type":55,"tag":884,"props":885,"children":886},"tr",{},[887,893],{"type":55,"tag":888,"props":889,"children":890},"th",{},[891],{"type":60,"value":892},"Tool",{"type":55,"tag":888,"props":894,"children":895},{},[896],{"type":60,"value":897},"Purpose",{"type":55,"tag":899,"props":900,"children":901},"tbody",{},[902,927,944,981,1005,1030],{"type":55,"tag":884,"props":903,"children":904},{},[905,915],{"type":55,"tag":906,"props":907,"children":908},"td",{},[909],{"type":55,"tag":84,"props":910,"children":912},{"className":911},[],[913],{"type":60,"value":914},"external-data-sources-wizard",{"type":55,"tag":906,"props":916,"children":917},{},[918,920,925],{"type":60,"value":919},"List every native source type PostHog supports. Run this ",{"type":55,"tag":69,"props":921,"children":922},{},[923],{"type":60,"value":924},"first",{"type":60,"value":926}," (Step 0) to check whether the target API already has a built-in connector before drafting a manifest.",{"type":55,"tag":884,"props":928,"children":929},{},[930,939],{"type":55,"tag":906,"props":931,"children":932},{},[933],{"type":55,"tag":84,"props":934,"children":936},{"className":935},[],[937],{"type":60,"value":938},"external-data-sources-db-schema",{"type":55,"tag":906,"props":940,"children":941},{},[942],{"type":60,"value":943},"Validate the manifest + credential and list the resources (tables) it exposes, with detected primary keys and incremental cursors. This is the validate-and-list step.",{"type":55,"tag":884,"props":945,"children":946},{},[947,956],{"type":55,"tag":906,"props":948,"children":949},{},[950],{"type":55,"tag":84,"props":951,"children":953},{"className":952},[],[954],{"type":60,"value":955},"external-data-sources-preview-resource",{"type":55,"tag":906,"props":957,"children":958},{},[959,961,966,968,973,974,979],{"type":60,"value":960},"Read a small live sample of rows for one resource — verify ",{"type":55,"tag":84,"props":962,"children":964},{"className":963},[],[965],{"type":60,"value":553},{"type":60,"value":967}," \u002F ",{"type":55,"tag":84,"props":969,"children":971},{"className":970},[],[972],{"type":60,"value":451},{"type":60,"value":967},{"type":55,"tag":84,"props":975,"children":977},{"className":976},[],[978],{"type":60,"value":707},{"type":60,"value":980}," against real data before creating anything.",{"type":55,"tag":884,"props":982,"children":983},{},[984,993],{"type":55,"tag":906,"props":985,"children":986},{},[987],{"type":55,"tag":84,"props":988,"children":990},{"className":989},[],[991],{"type":60,"value":992},"data-warehouse-source-setup",{"type":55,"tag":906,"props":994,"children":995},{},[996,998,1003],{"type":60,"value":997},"Create the source. Enables ",{"type":55,"tag":69,"props":999,"children":1000},{},[1001],{"type":60,"value":1002},"all",{"type":60,"value":1004}," manifest resources with sync defaults in one call.",{"type":55,"tag":884,"props":1006,"children":1007},{},[1008,1017],{"type":55,"tag":906,"props":1009,"children":1010},{},[1011],{"type":55,"tag":84,"props":1012,"children":1014},{"className":1013},[],[1015],{"type":60,"value":1016},"external-data-sources-create",{"type":55,"tag":906,"props":1018,"children":1019},{},[1020,1022,1028],{"type":60,"value":1021},"Advanced create — lets the user hand-pick which resources sync via a ",{"type":55,"tag":84,"props":1023,"children":1025},{"className":1024},[],[1026],{"type":60,"value":1027},"schemas",{"type":60,"value":1029}," array.",{"type":55,"tag":884,"props":1031,"children":1032},{},[1033,1042],{"type":55,"tag":906,"props":1034,"children":1035},{},[1036],{"type":55,"tag":84,"props":1037,"children":1039},{"className":1038},[],[1040],{"type":60,"value":1041},"external-data-schemas-list",{"type":55,"tag":906,"props":1043,"children":1044},{},[1045],{"type":60,"value":1046},"After creation, watch per-table sync status.",{"type":55,"tag":105,"props":1048,"children":1050},{"id":1049},"workflow",[1051],{"type":60,"value":1052},"Workflow",{"type":55,"tag":1054,"props":1055,"children":1057},"h3",{"id":1056},"step-0-check-for-a-native-connector-first",[1058],{"type":60,"value":1059},"Step 0 — Check for a native connector first",{"type":55,"tag":63,"props":1061,"children":1062},{},[1063,1065,1070,1072,1077],{"type":60,"value":1064},"Before drafting anything, call ",{"type":55,"tag":84,"props":1066,"children":1068},{"className":1067},[],[1069],{"type":60,"value":914},{"type":60,"value":1071}," to list the native source types and check whether the\ntarget API is among them, matching on the service name. A Custom source is the fallback for APIs with ",{"type":55,"tag":69,"props":1073,"children":1074},{},[1075],{"type":60,"value":1076},"no",{"type":60,"value":1078}," native\nconnector; do not skip this check on the assumption that a well-known API isn't supported — most are.",{"type":55,"tag":63,"props":1080,"children":1081},{},[1082,1084,1089,1091,1096],{"type":60,"value":1083},"If a native connector matches, ",{"type":55,"tag":69,"props":1085,"children":1086},{},[1087],{"type":60,"value":1088},"stop and tell the user",{"type":60,"value":1090}," the built-in path is simpler and battle-tested (it handles\nauth, pagination, schema, and incremental sync for you), and hand off to ",{"type":55,"tag":84,"props":1092,"children":1094},{"className":1093},[],[1095],{"type":60,"value":164},{"type":60,"value":1097},". Only\ncontinue with this skill when the user has no matching native connector, or explicitly wants to exercise the custom\nREST path despite one existing.",{"type":55,"tag":1054,"props":1099,"children":1101},{"id":1100},"step-1-gather-the-api-shape",[1102],{"type":60,"value":1103},"Step 1 — Gather the API shape",{"type":55,"tag":63,"props":1105,"children":1106},{},[1107,1109,1114,1116,1121],{"type":60,"value":1108},"Get either a ",{"type":55,"tag":69,"props":1110,"children":1111},{},[1112],{"type":60,"value":1113},"docs URL",{"type":60,"value":1115}," (fetch it and read the auth scheme, the list endpoints, their response envelopes, and any\npagination) or a ",{"type":55,"tag":69,"props":1117,"children":1118},{},[1119],{"type":60,"value":1120},"natural-language description",{"type":60,"value":1122}," of the endpoints. You need, per resource you'll import:",{"type":55,"tag":112,"props":1124,"children":1125},{},[1126,1144,1171,1204,1216,1228],{"type":55,"tag":116,"props":1127,"children":1128},{},[1129,1131,1135,1137,1142],{"type":60,"value":1130},"the ",{"type":55,"tag":69,"props":1132,"children":1133},{},[1134],{"type":60,"value":515},{"type":60,"value":1136}," (relative to a common ",{"type":55,"tag":84,"props":1138,"children":1140},{"className":1139},[],[1141],{"type":60,"value":265},{"type":60,"value":1143},") and method (GET, or POST for query-style read endpoints),",{"type":55,"tag":116,"props":1145,"children":1146},{},[1147,1148,1153,1155,1161,1163,1169],{"type":60,"value":1130},{"type":55,"tag":69,"props":1149,"children":1150},{},[1151],{"type":60,"value":1152},"auth scheme",{"type":60,"value":1154}," (bearer token \u002F API key in header or query \u002F HTTP basic \u002F OAuth2 with a customer-owned client —\n",{"type":55,"tag":84,"props":1156,"children":1158},{"className":1157},[],[1159],{"type":60,"value":1160},"client_credentials",{"type":60,"value":1162}," or a pre-obtained refresh token; the interactive ",{"type":55,"tag":84,"props":1164,"children":1166},{"className":1165},[],[1167],{"type":60,"value":1168},"authorization_code",{"type":60,"value":1170}," flow is not supported),",{"type":55,"tag":116,"props":1172,"children":1173},{},[1174,1175,1180,1182,1187,1189,1195,1196,1202],{"type":60,"value":1130},{"type":55,"tag":69,"props":1176,"children":1177},{},[1178],{"type":60,"value":1179},"record path",{"type":60,"value":1181}," — where the array of records sits in the JSON response (e.g. ",{"type":55,"tag":84,"props":1183,"children":1185},{"className":1184},[],[1186],{"type":60,"value":570},{"type":60,"value":1188},", ",{"type":55,"tag":84,"props":1190,"children":1192},{"className":1191},[],[1193],{"type":60,"value":1194},"results",{"type":60,"value":1188},{"type":55,"tag":84,"props":1197,"children":1199},{"className":1198},[],[1200],{"type":60,"value":1201},"items",{"type":60,"value":1203},"),",{"type":55,"tag":116,"props":1205,"children":1206},{},[1207,1209,1214],{"type":60,"value":1208},"how the API ",{"type":55,"tag":69,"props":1210,"children":1211},{},[1212],{"type":60,"value":1213},"paginates",{"type":60,"value":1215}," (next-URL, link header, cursor, offset, page number, or single page),",{"type":55,"tag":116,"props":1217,"children":1218},{},[1219,1221,1226],{"type":60,"value":1220},"a ",{"type":55,"tag":69,"props":1222,"children":1223},{},[1224],{"type":60,"value":1225},"primary key",{"type":60,"value":1227}," field, and",{"type":55,"tag":116,"props":1229,"children":1230},{},[1231,1233,1238,1240,1245],{"type":60,"value":1232},"optionally an ",{"type":55,"tag":69,"props":1234,"children":1235},{},[1236],{"type":60,"value":1237},"incremental cursor",{"type":60,"value":1239}," field (",{"type":55,"tag":84,"props":1241,"children":1243},{"className":1242},[],[1244],{"type":60,"value":724},{"type":60,"value":1246},"-style) so re-syncs only fetch new\u002Fchanged rows.",{"type":55,"tag":63,"props":1248,"children":1249},{},[1250,1252,1258],{"type":60,"value":1251},"Ask the user for the credential value, but tell them you'll only ever place it in the ",{"type":55,"tag":84,"props":1253,"children":1255},{"className":1254},[],[1256],{"type":60,"value":1257},"auth_*",{"type":60,"value":1259}," payload key, never in\nthe manifest.",{"type":55,"tag":1054,"props":1261,"children":1263},{"id":1262},"step-2-draft-the-manifest",[1264],{"type":60,"value":1265},"Step 2 — Draft the manifest",{"type":55,"tag":63,"props":1267,"children":1268},{},[1269,1271,1276,1278,1282,1284,1289,1291,1296,1298,1303,1305,1311,1313,1318],{"type":60,"value":1270},"Author the ",{"type":55,"tag":84,"props":1272,"children":1274},{"className":1273},[],[1275],{"type":60,"value":89},{"type":60,"value":1277}," from ",{"type":55,"tag":179,"props":1279,"children":1280},{"href":181},[1281],{"type":60,"value":181},{"type":60,"value":1283},". Match the auth\nblock to the scheme, pick the paginator that matches the docs, set ",{"type":55,"tag":84,"props":1285,"children":1287},{"className":1286},[],[1288],{"type":60,"value":553},{"type":60,"value":1290}," to the record path, and add an\n",{"type":55,"tag":84,"props":1292,"children":1294},{"className":1293},[],[1295],{"type":60,"value":686},{"type":60,"value":1297}," block when the API has an ",{"type":55,"tag":84,"props":1299,"children":1301},{"className":1300},[],[1302],{"type":60,"value":724},{"type":60,"value":1304},"-style cursor and a matching query param. For an endpoint whose\nrows must be fetched per parent (e.g. ",{"type":55,"tag":84,"props":1306,"children":1308},{"className":1307},[],[1309],{"type":60,"value":1310},"\u002Fforms\u002F{form_id}\u002Fresponses",{"type":60,"value":1312},"), use a parent\u002Fchild ",{"type":55,"tag":69,"props":1314,"children":1315},{},[1316],{"type":60,"value":1317},"resolve",{"type":60,"value":1319}," param — see the\nfan-out example. Keep it to one level of nesting.",{"type":55,"tag":1054,"props":1321,"children":1323},{"id":1322},"step-3-validate-and-list-resources",[1324],{"type":60,"value":1325},"Step 3 — Validate and list resources",{"type":55,"tag":63,"props":1327,"children":1328},{},[1329,1331,1336,1338,1344,1346,1356,1358,1363,1364,1369,1371,1376,1377,1382,1384,1389,1391,1397,1399,1405,1407,1413,1415,1421],{"type":60,"value":1330},"Call ",{"type":55,"tag":84,"props":1332,"children":1334},{"className":1333},[],[1335],{"type":60,"value":938},{"type":60,"value":1337}," with ",{"type":55,"tag":84,"props":1339,"children":1341},{"className":1340},[],[1342],{"type":60,"value":1343},"{ source_type: \"Custom\", manifest_json: \"\u003Cstringified manifest>\", auth_token: \"\u003Ccredential>\" }",{"type":60,"value":1345},". The credential key is ",{"type":55,"tag":69,"props":1347,"children":1348},{},[1349,1351],{"type":60,"value":1350},"not literally ",{"type":55,"tag":84,"props":1352,"children":1354},{"className":1353},[],[1355],{"type":60,"value":1257},{"type":60,"value":1357}," — use the one for your auth type:\n",{"type":55,"tag":84,"props":1359,"children":1361},{"className":1360},[],[1362],{"type":60,"value":834},{"type":60,"value":836},{"type":55,"tag":84,"props":1365,"children":1367},{"className":1366},[],[1368],{"type":60,"value":842},{"type":60,"value":1370}," (api_key), ",{"type":55,"tag":84,"props":1372,"children":1374},{"className":1373},[],[1375],{"type":60,"value":850},{"type":60,"value":852},{"type":55,"tag":84,"props":1378,"children":1380},{"className":1379},[],[1381],{"type":60,"value":858},{"type":60,"value":1383}," (+\n",{"type":55,"tag":84,"props":1385,"children":1387},{"className":1386},[],[1388],{"type":60,"value":866},{"type":60,"value":1390}," for the refresh-token grant). It validates the manifest structure,\nthe fan-out graph, and the credential (a bounded live probe),\nthen returns one table entry per resource with ",{"type":55,"tag":84,"props":1392,"children":1394},{"className":1393},[],[1395],{"type":60,"value":1396},"detected_primary_keys",{"type":60,"value":1398}," and ",{"type":55,"tag":84,"props":1400,"children":1402},{"className":1401},[],[1403],{"type":60,"value":1404},"incremental_fields",{"type":60,"value":1406},". If it returns a 400,\nthe ",{"type":55,"tag":84,"props":1408,"children":1410},{"className":1409},[],[1411],{"type":60,"value":1412},"message",{"type":60,"value":1414}," is plain English (e.g. ",{"type":55,"tag":84,"props":1416,"children":1418},{"className":1417},[],[1419],{"type":60,"value":1420},"resources[0].endpoint.path: must not be empty",{"type":60,"value":1422},") — fix the manifest and retry.\nLoop here until it validates.",{"type":55,"tag":1054,"props":1424,"children":1426},{"id":1425},"step-4-test-read-each-resource",[1427],{"type":60,"value":1428},"Step 4 — Test-read each resource",{"type":55,"tag":63,"props":1430,"children":1431},{},[1432,1434,1439,1440,1446,1448,1453,1455,1461,1463,1469],{"type":60,"value":1433},"For each resource, call ",{"type":55,"tag":84,"props":1435,"children":1437},{"className":1436},[],[1438],{"type":60,"value":955},{"type":60,"value":1337},{"type":55,"tag":84,"props":1441,"children":1443},{"className":1442},[],[1444],{"type":60,"value":1445},"{ source_type: \"Custom\", payload: { manifest_json, auth_token }, resource_name: \"\u003Cname>\", limit: 10 }",{"type":60,"value":1447}," (the ",{"type":55,"tag":84,"props":1449,"children":1451},{"className":1450},[],[1452],{"type":60,"value":834},{"type":60,"value":1454}," key varies by auth type, as in\nStep 3). It returns up to ",{"type":55,"tag":84,"props":1456,"children":1458},{"className":1457},[],[1459],{"type":60,"value":1460},"limit",{"type":60,"value":1462}," real rows plus the inferred\n",{"type":55,"tag":84,"props":1464,"children":1466},{"className":1465},[],[1467],{"type":60,"value":1468},"columns",{"type":60,"value":1470},". Check that:",{"type":55,"tag":112,"props":1472,"children":1473},{},[1474,1519,1534],{"type":55,"tag":116,"props":1475,"children":1476},{},[1477,1487,1489,1495,1497,1502,1504,1510,1512,1517],{"type":55,"tag":69,"props":1478,"children":1479},{},[1480,1485],{"type":55,"tag":84,"props":1481,"children":1483},{"className":1482},[],[1484],{"type":60,"value":553},{"type":60,"value":1486}," is right",{"type":60,"value":1488}," — ",{"type":55,"tag":84,"props":1490,"children":1492},{"className":1491},[],[1493],{"type":60,"value":1494},"rows",{"type":60,"value":1496}," are the records you expect, not a wrapper object. If ",{"type":55,"tag":84,"props":1498,"children":1500},{"className":1499},[],[1501],{"type":60,"value":1494},{"type":60,"value":1503}," looks like\n",{"type":55,"tag":84,"props":1505,"children":1507},{"className":1506},[],[1508],{"type":60,"value":1509},"[{ \"data\": [...] }]",{"type":60,"value":1511}," you pointed at the envelope, not the array; fix ",{"type":55,"tag":84,"props":1513,"children":1515},{"className":1514},[],[1516],{"type":60,"value":553},{"type":60,"value":1518},".",{"type":55,"tag":116,"props":1520,"children":1521},{},[1522,1532],{"type":55,"tag":69,"props":1523,"children":1524},{},[1525,1530],{"type":55,"tag":84,"props":1526,"children":1528},{"className":1527},[],[1529],{"type":60,"value":451},{"type":60,"value":1531}," exists",{"type":60,"value":1533}," in the rows and is unique.",{"type":55,"tag":116,"props":1535,"children":1536},{},[1537,1549],{"type":55,"tag":69,"props":1538,"children":1539},{},[1540,1542,1547],{"type":60,"value":1541},"the incremental ",{"type":55,"tag":84,"props":1543,"children":1545},{"className":1544},[],[1546],{"type":60,"value":707},{"type":60,"value":1548}," field is present",{"type":60,"value":1550}," in the rows and looks like a sortable timestamp\u002Fid.",{"type":55,"tag":63,"props":1552,"children":1553},{},[1554,1556,1562,1564,1569],{"type":60,"value":1555},"A live failure (unreachable host, auth rejected) comes back as ",{"type":55,"tag":84,"props":1557,"children":1559},{"className":1558},[],[1560],{"type":60,"value":1561},"error",{"type":60,"value":1563}," with empty ",{"type":55,"tag":84,"props":1565,"children":1567},{"className":1566},[],[1568],{"type":60,"value":1494},{"type":60,"value":1570}," — fix credentials or the URL\nand retry. Iterate Steps 2–4 until the sample looks right.",{"type":55,"tag":1054,"props":1572,"children":1574},{"id":1573},"step-5-create-the-source",[1575],{"type":60,"value":1576},"Step 5 — Create the source",{"type":55,"tag":63,"props":1578,"children":1579},{},[1580,1581,1586,1587,1593,1594,1599,1601,1606,1608,1613,1615,1620,1622,1627,1629,1635,1637,1643],{"type":60,"value":1330},{"type":55,"tag":84,"props":1582,"children":1584},{"className":1583},[],[1585],{"type":60,"value":992},{"type":60,"value":1337},{"type":55,"tag":84,"props":1588,"children":1590},{"className":1589},[],[1591],{"type":60,"value":1592},"{ source_type: \"Custom\", payload: { manifest_json, auth_token }, prefix: \"\u003Cshort_name>\" }",{"type":60,"value":1447},{"type":55,"tag":84,"props":1595,"children":1597},{"className":1596},[],[1598],{"type":60,"value":834},{"type":60,"value":1600}," key varies by auth type, as in Step 3). It enables ",{"type":55,"tag":69,"props":1602,"children":1603},{},[1604],{"type":60,"value":1605},"every",{"type":60,"value":1607}," resource in the manifest with sensible sync defaults (incremental where the\nmanifest declares a cursor, else full refresh) and creates the source. If the user only wants a subset of resources,\nuse ",{"type":55,"tag":84,"props":1609,"children":1611},{"className":1610},[],[1612],{"type":60,"value":1016},{"type":60,"value":1614}," with a ",{"type":55,"tag":84,"props":1616,"children":1618},{"className":1617},[],[1619],{"type":60,"value":1027},{"type":60,"value":1621}," array instead (see ",{"type":55,"tag":84,"props":1623,"children":1625},{"className":1624},[],[1626],{"type":60,"value":164},{"type":60,"value":1628}," for the\nschemas shape). Pick a short lowercase ",{"type":55,"tag":84,"props":1630,"children":1632},{"className":1631},[],[1633],{"type":60,"value":1634},"prefix",{"type":60,"value":1636}," — tables become ",{"type":55,"tag":84,"props":1638,"children":1640},{"className":1639},[],[1641],{"type":60,"value":1642},"{prefix}_{resource_name}",{"type":60,"value":1644}," in HogQL.",{"type":55,"tag":63,"props":1646,"children":1647},{},[1648,1650,1655,1657,1663],{"type":60,"value":1649},"After creation, call ",{"type":55,"tag":84,"props":1651,"children":1653},{"className":1652},[],[1654],{"type":60,"value":1041},{"type":60,"value":1656}," to show the user the initial sync status, and tell them how to query:\n",{"type":55,"tag":84,"props":1658,"children":1660},{"className":1659},[],[1661],{"type":60,"value":1662},"SELECT * FROM {prefix}_{resource_name} LIMIT 10",{"type":60,"value":1518},{"type":55,"tag":105,"props":1665,"children":1667},{"id":1666},"important-notes",[1668],{"type":60,"value":1669},"Important notes",{"type":55,"tag":112,"props":1671,"children":1672},{},[1673,1702,1725,1735,1745,1778],{"type":55,"tag":116,"props":1674,"children":1675},{},[1676,1681,1683,1688,1689,1694,1695,1700],{"type":55,"tag":69,"props":1677,"children":1678},{},[1679],{"type":60,"value":1680},"Always preview before creating.",{"type":60,"value":1682}," db-schema proves the manifest parses and the credential works; preview proves the\nfield mappings (",{"type":55,"tag":84,"props":1684,"children":1686},{"className":1685},[],[1687],{"type":60,"value":553},{"type":60,"value":967},{"type":55,"tag":84,"props":1690,"children":1692},{"className":1691},[],[1693],{"type":60,"value":451},{"type":60,"value":967},{"type":55,"tag":84,"props":1696,"children":1698},{"className":1697},[],[1699],{"type":60,"value":707},{"type":60,"value":1701},") against real rows. Skipping preview is the most\ncommon way to create a source that syncs zero or malformed rows.",{"type":55,"tag":116,"props":1703,"children":1704},{},[1705,1716,1718,1723],{"type":55,"tag":69,"props":1706,"children":1707},{},[1708,1710,1715],{"type":60,"value":1709},"Secrets only in ",{"type":55,"tag":84,"props":1711,"children":1713},{"className":1712},[],[1714],{"type":60,"value":1257},{"type":60,"value":1518},{"type":60,"value":1717}," Never inline a token\u002Fkey\u002Fpassword in ",{"type":55,"tag":84,"props":1719,"children":1721},{"className":1720},[],[1722],{"type":60,"value":818},{"type":60,"value":1724}," — it's rejected, and the manifest\nis non-secret (it round-trips to the client).",{"type":55,"tag":116,"props":1726,"children":1727},{},[1728,1733],{"type":55,"tag":69,"props":1729,"children":1730},{},[1731],{"type":60,"value":1732},"One level of fan-out.",{"type":60,"value":1734}," A child resource may depend on a top-level parent; a parent can't itself be a child.",{"type":55,"tag":116,"props":1736,"children":1737},{},[1738,1743],{"type":55,"tag":69,"props":1739,"children":1740},{},[1741],{"type":60,"value":1742},"GET and POST only.",{"type":60,"value":1744}," The engine reads upstream data; PUT\u002FPATCH\u002FDELETE are rejected so a manifest can't mutate the\nsource API.",{"type":55,"tag":116,"props":1746,"children":1747},{},[1748,1753,1755,1760,1762,1768,1770,1776],{"type":55,"tag":69,"props":1749,"children":1750},{},[1751],{"type":60,"value":1752},"Pick the cursor carefully.",{"type":60,"value":1754}," Prefer an ",{"type":55,"tag":84,"props":1756,"children":1758},{"className":1757},[],[1759],{"type":60,"value":724},{"type":60,"value":1761},"-style field over ",{"type":55,"tag":84,"props":1763,"children":1765},{"className":1764},[],[1766],{"type":60,"value":1767},"created_at",{"type":60,"value":1769}," (it catches edits), and set\n",{"type":55,"tag":84,"props":1771,"children":1773},{"className":1772},[],[1774],{"type":60,"value":1775},"cursor_type",{"type":60,"value":1777}," when the cursor isn't a datetime (e.g. an integer id) so it's compared with the right type.",{"type":55,"tag":116,"props":1779,"children":1780},{},[1781,1786,1788,1794,1796,1802,1804,1809,1811,1816],{"type":55,"tag":69,"props":1782,"children":1783},{},[1784],{"type":60,"value":1785},"OAuth2 secrets are adopted into a server-managed credential store",{"type":60,"value":1787}," on the first db-schema \u002F preview \u002F create\ncall, and any rotated single-use refresh token is persisted server-side — so keep the entire ",{"type":55,"tag":84,"props":1789,"children":1791},{"className":1790},[],[1792],{"type":60,"value":1793},"client.auth",{"type":60,"value":1795}," block\nidentical across those calls within one setup, and re-submit the same secrets each time. Changing any auth-block\nfield mid-setup discards the stored rotation, and providers that rotate single-use refresh tokens will then reject\nthe next mint until the user fetches a fresh token. Never set ",{"type":55,"tag":84,"props":1797,"children":1799},{"className":1798},[],[1800],{"type":60,"value":1801},"auth_oauth2_integration_id",{"type":60,"value":1803}," yourself (it is server-owned); to\nreconnect a source whose token broke, update it with re-entered ",{"type":55,"tag":84,"props":1805,"children":1807},{"className":1806},[],[1808],{"type":60,"value":858},{"type":60,"value":1810}," \u002F\n",{"type":55,"tag":84,"props":1812,"children":1814},{"className":1813},[],[1815],{"type":60,"value":866},{"type":60,"value":1817},". See the OAuth2 section of the manifest reference for the auth block fields.",{"type":55,"tag":1819,"props":1820,"children":1821},"style",{},[1822],{"type":60,"value":1823},"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":1825,"total":1927},[1826,1842,1854,1866,1879,1894,1910],{"slug":1827,"name":1827,"fn":1828,"description":1829,"org":1830,"tags":1831,"stars":23,"repoUrl":24,"updatedAt":1841},"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},[1832,1834,1837,1840],{"name":1833,"slug":31,"type":13},"Analytics",{"name":1835,"slug":1836,"type":13},"Cost Optimization","cost-optimization",{"name":1838,"slug":1839,"type":13},"Observability","observability",{"name":9,"slug":8,"type":13},"2026-07-28T05:34:11.117757",{"slug":1843,"name":1843,"fn":1844,"description":1845,"org":1846,"tags":1847,"stars":23,"repoUrl":24,"updatedAt":1853},"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},[1848,1849,1852],{"name":1833,"slug":31,"type":13},{"name":1850,"slug":1851,"type":13},"Audit","audit",{"name":9,"slug":8,"type":13},"2026-06-08T08:08:33.693989",{"slug":1855,"name":1855,"fn":1856,"description":1857,"org":1858,"tags":1859,"stars":23,"repoUrl":24,"updatedAt":1865},"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},[1860,1861,1863,1864],{"name":1850,"slug":1851,"type":13},{"name":1862,"slug":33,"type":13},"Data Warehouse",{"name":1838,"slug":1839,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:22:57.67984",{"slug":1867,"name":1867,"fn":1868,"description":1869,"org":1870,"tags":1871,"stars":23,"repoUrl":24,"updatedAt":1878},"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},[1872,1873,1874,1877],{"name":1850,"slug":1851,"type":13},{"name":1862,"slug":33,"type":13},{"name":1875,"slug":1876,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-06-18T08:25:10.936787",{"slug":1880,"name":1880,"fn":1881,"description":1882,"org":1883,"tags":1884,"stars":23,"repoUrl":24,"updatedAt":1893},"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},[1885,1888,1891,1892],{"name":1886,"slug":1887,"type":13},"Alerting","alerting",{"name":1889,"slug":1890,"type":13},"Debugging","debugging",{"name":1838,"slug":1839,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:24:40.318583",{"slug":1895,"name":1895,"fn":1896,"description":1897,"org":1898,"tags":1899,"stars":23,"repoUrl":24,"updatedAt":1909},"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},[1900,1901,1904,1905,1908],{"name":1833,"slug":31,"type":13},{"name":1902,"slug":1903,"type":13},"Monitoring","monitoring",{"name":1838,"slug":1839,"type":13},{"name":1906,"slug":1907,"type":13},"Operations","operations",{"name":9,"slug":8,"type":13},"2026-07-18T05:10:54.430898",{"slug":1911,"name":1911,"fn":1912,"description":1913,"org":1914,"tags":1915,"stars":23,"repoUrl":24,"updatedAt":1926},"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},[1916,1919,1922,1923],{"name":1917,"slug":1918,"type":13},"Automation","automation",{"name":1920,"slug":1921,"type":13},"MCP","mcp",{"name":9,"slug":8,"type":13},{"name":1924,"slug":1925,"type":13},"Workflow Automation","workflow-automation","2026-07-28T05:34:12.167015",61,{"items":1929,"total":2046},[1930,1937,1943,1950,1957,1964,1972,1979,1993,2008,2018,2036],{"slug":1827,"name":1827,"fn":1828,"description":1829,"org":1931,"tags":1932,"stars":23,"repoUrl":24,"updatedAt":1841},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1933,1934,1935,1936],{"name":1833,"slug":31,"type":13},{"name":1835,"slug":1836,"type":13},{"name":1838,"slug":1839,"type":13},{"name":9,"slug":8,"type":13},{"slug":1843,"name":1843,"fn":1844,"description":1845,"org":1938,"tags":1939,"stars":23,"repoUrl":24,"updatedAt":1853},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1940,1941,1942],{"name":1833,"slug":31,"type":13},{"name":1850,"slug":1851,"type":13},{"name":9,"slug":8,"type":13},{"slug":1855,"name":1855,"fn":1856,"description":1857,"org":1944,"tags":1945,"stars":23,"repoUrl":24,"updatedAt":1865},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1946,1947,1948,1949],{"name":1850,"slug":1851,"type":13},{"name":1862,"slug":33,"type":13},{"name":1838,"slug":1839,"type":13},{"name":9,"slug":8,"type":13},{"slug":1867,"name":1867,"fn":1868,"description":1869,"org":1951,"tags":1952,"stars":23,"repoUrl":24,"updatedAt":1878},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1953,1954,1955,1956],{"name":1850,"slug":1851,"type":13},{"name":1862,"slug":33,"type":13},{"name":1875,"slug":1876,"type":13},{"name":9,"slug":8,"type":13},{"slug":1880,"name":1880,"fn":1881,"description":1882,"org":1958,"tags":1959,"stars":23,"repoUrl":24,"updatedAt":1893},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1960,1961,1962,1963],{"name":1886,"slug":1887,"type":13},{"name":1889,"slug":1890,"type":13},{"name":1838,"slug":1839,"type":13},{"name":9,"slug":8,"type":13},{"slug":1895,"name":1895,"fn":1896,"description":1897,"org":1965,"tags":1966,"stars":23,"repoUrl":24,"updatedAt":1909},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1967,1968,1969,1970,1971],{"name":1833,"slug":31,"type":13},{"name":1902,"slug":1903,"type":13},{"name":1838,"slug":1839,"type":13},{"name":1906,"slug":1907,"type":13},{"name":9,"slug":8,"type":13},{"slug":1911,"name":1911,"fn":1912,"description":1913,"org":1973,"tags":1974,"stars":23,"repoUrl":24,"updatedAt":1926},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1975,1976,1977,1978],{"name":1917,"slug":1918,"type":13},{"name":1920,"slug":1921,"type":13},{"name":9,"slug":8,"type":13},{"name":1924,"slug":1925,"type":13},{"slug":1980,"name":1980,"fn":1981,"description":1982,"org":1983,"tags":1984,"stars":23,"repoUrl":24,"updatedAt":1992},"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},[1985,1986,1987,1990,1991],{"name":1833,"slug":31,"type":13},{"name":1889,"slug":1890,"type":13},{"name":1988,"slug":1989,"type":13},"Frontend","frontend",{"name":1838,"slug":1839,"type":13},{"name":9,"slug":8,"type":13},"2026-05-07T05:56:19.828048",{"slug":1994,"name":1994,"fn":1995,"description":1996,"org":1997,"tags":1998,"stars":23,"repoUrl":24,"updatedAt":2007},"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},[1999,2002,2003,2004],{"name":2000,"slug":2001,"type":13},"API Development","api-development",{"name":1988,"slug":1989,"type":13},{"name":9,"slug":8,"type":13},{"name":2005,"slug":2006,"type":13},"SDK","sdk","2026-06-08T08:08:34.929454",{"slug":2009,"name":2009,"fn":2010,"description":2011,"org":2012,"tags":2013,"stars":23,"repoUrl":24,"updatedAt":2017},"copying-endpoints-across-projects","copy PostHog endpoints across projects","Copy a PostHog endpoint (a saved HogQL\u002Finsight query exposed as an API route) to another project in the same organization, or duplicate it under a new name in the same project. Use when the user wants to duplicate an endpoint, promote an endpoint from staging to production, replicate an endpoint's query\u002Fvariables\u002Ffreshness config in another workspace, or clone an endpoint to iterate on it. Unlike feature flags and experiments, endpoints have NO native cross-project copy tool — this skill covers the read-then-recreate flow (endpoint-get then endpoint-create), the active-project switching it requires, name-collision checks, and the safe defaults (land unmaterialised in the target, verify with endpoint-run). Does not cover editing endpoint versions (see managing-endpoint-versions) or authoring a brand-new endpoint from scratch (see creating-an-endpoint).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2014,2015,2016],{"name":2000,"slug":2001,"type":13},{"name":1906,"slug":1907,"type":13},{"name":9,"slug":8,"type":13},"2026-07-15T05:29:58.442727",{"slug":2019,"name":2019,"fn":2020,"description":2021,"org":2022,"tags":2023,"stars":23,"repoUrl":24,"updatedAt":2035},"creating-ai-subscription","schedule recurring AI-generated PostHog reports","Create a recurring AI-generated PostHog report — schedule a free-text prompt to run on a cron, with the LLM-synthesized markdown delivered to email or Slack on each tick. Use when the user wants a recurring AI summary of X on any cadence (daily, weekly, monthly, yearly) rather than a one-off report. (To attach an AI summary to an existing insight\u002Fdashboard subscription instead of a free-text prompt, see `managing-subscriptions` and its `summary_enabled` option.)\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2024,2025,2028,2029,2032],{"name":1917,"slug":1918,"type":13},{"name":2026,"slug":2027,"type":13},"Email","email",{"name":9,"slug":8,"type":13},{"name":2030,"slug":2031,"type":13},"Reporting","reporting",{"name":2033,"slug":2034,"type":13},"Slack","slack","2026-06-09T07:32:27.935712",{"slug":2037,"name":2037,"fn":2038,"description":2039,"org":2040,"tags":2041,"stars":23,"repoUrl":24,"updatedAt":2045},"creating-an-endpoint","create PostHog API endpoints","Create a PostHog endpoint with the right shape on the first try — covers query kind choice, name conventions, what to expose as variables (HogQL code_name vs insight breakdown), data_freshness_seconds, and whether to materialise on day one. Use when the user says \"create an endpoint\", \"expose this query as an API\", \"turn this insight into an endpoint\", or asks for help structuring a new endpoint. Steers away from common mistakes: materialising a query with cohort breakdowns or compare mode, inline-only variables on a materialised endpoint, unbounded date ranges, ambiguous names.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2042,2043,2044],{"name":1833,"slug":31,"type":13},{"name":2000,"slug":2001,"type":13},{"name":9,"slug":8,"type":13},"2026-06-08T08:08:29.624498",231]