What your agents can do

Real PostHog actions, managed and audited.

Your user connects PostHog once; your agent can then work with product analytics, feature flags, experiments, session replay, surveys, and error tracking — scoped to the OAuth permissions you grant and the tool allowlist you configure. Every action is least-privilege and written to a tamper-evident audit trail.

  1. 01Connect

    Your user grants PostHog access once (OAuth) — the token lands in the vault.

  2. 02Call

    Your agent calls a tool over MCP or the typed API; Open Connector injects the credential server-side.

  3. 03Audit

    Every routed call appends a hash-chained audit record — nothing leaves your infra.

Tools & triggers

Supported PostHog tools.

Browse 2,473 tools in the PostHog catalog. Each action uses your configured authentication and tool allowlist.

Showing 2,473 tools.

Accounts Create
POSTHOG_ACCOUNTS_CREATE
Accounts Create
accounts
Accounts Custom Property Values Create
POSTHOG_ACCOUNTS_CUSTOM_PROPERTY_VALUES_CREATE
Accounts Custom Property Values Create
customer_analyticsaccounts
Accounts Custom Property Values List
POSTHOG_ACCOUNTS_CUSTOM_PROPERTY_VALUES_LIST
Accounts Custom Property Values List
customer_analyticsaccounts
Accounts Destroy
POSTHOG_ACCOUNTS_DESTROY
Accounts Destroy
accounts
Accounts List
POSTHOG_ACCOUNTS_LIST
Accounts List
accounts
Accounts Notebooks Create
POSTHOG_ACCOUNTS_NOTEBOOKS_CREATE
Accounts Notebooks Create
customer_analyticsaccounts
Accounts Notebooks Destroy
POSTHOG_ACCOUNTS_NOTEBOOKS_DESTROY
Accounts Notebooks Destroy
customer_analyticsaccounts
Accounts Notebooks List
POSTHOG_ACCOUNTS_NOTEBOOKS_LIST
Accounts Notebooks List
customer_analyticsaccounts
Accounts Notebooks Retrieve
POSTHOG_ACCOUNTS_NOTEBOOKS_RETRIEVE
Accounts Notebooks Retrieve
customer_analyticsaccounts
Accounts Partial Update
POSTHOG_ACCOUNTS_PARTIAL_UPDATE
Accounts Partial Update
accounts
Accounts Relationships Create
POSTHOG_ACCOUNTS_RELATIONSHIPS_CREATE
Accounts Relationships Create
customer_analyticsaccounts
Accounts Relationships End Create
POSTHOG_ACCOUNTS_RELATIONSHIPS_END_CREATE
Accounts Relationships End Create
customer_analyticsaccounts
Accounts Relationships List
POSTHOG_ACCOUNTS_RELATIONSHIPS_LIST
Accounts Relationships List
customer_analyticsaccounts
Accounts Retrieve
POSTHOG_ACCOUNTS_RETRIEVE
Accounts Retrieve
accounts
Accounts Update
POSTHOG_ACCOUNTS_UPDATE
Accounts Update
accounts
Account Notes List
POSTHOG_ACCOUNT_NOTES_LIST
Account Notes List
customer_analyticsaccount_notes
Account Relationship Definitions Create
POSTHOG_ACCOUNT_RELATIONSHIP_DEFINITIONS_CREATE
Account Relationship Definitions Create
account_relationship_definitions
Account Relationship Definitions Destroy
POSTHOG_ACCOUNT_RELATIONSHIP_DEFINITIONS_DESTROY
Account Relationship Definitions Destroy
account_relationship_definitions
Account Relationship Definitions List
POSTHOG_ACCOUNT_RELATIONSHIP_DEFINITIONS_LIST
Account Relationship Definitions List
account_relationship_definitions
Account Relationship Definitions Partial Update
POSTHOG_ACCOUNT_RELATIONSHIP_DEFINITIONS_PARTIAL_UPDATE
Account Relationship Definitions Partial Update
account_relationship_definitions
Account Relationship Definitions Retrieve
POSTHOG_ACCOUNT_RELATIONSHIP_DEFINITIONS_RETRIEVE
Account Relationship Definitions Retrieve
account_relationship_definitions
Account Relationship Definitions Update
POSTHOG_ACCOUNT_RELATIONSHIP_DEFINITIONS_UPDATE
Account Relationship Definitions Update
account_relationship_definitions
Actions Bulk Update Tags Create
POSTHOG_ACTIONS_BULK_UPDATE_TAGS_CREATE
Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``<scope>:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list
actions
Actions Create
POSTHOG_ACTIONS_CREATE
Actions Create
actions
Actions Destroy
POSTHOG_ACTIONS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
actions
Actions List
POSTHOG_ACTIONS_LIST
Actions List
actions
Actions Partial Update
POSTHOG_ACTIONS_PARTIAL_UPDATE
Actions Partial Update
actions
Actions References List
POSTHOG_ACTIONS_REFERENCES_LIST
Actions References List
actions
Actions Retrieve
POSTHOG_ACTIONS_RETRIEVE
Actions Retrieve
actions
Actions Update
POSTHOG_ACTIONS_UPDATE
Actions Update
actions
Activity Log List
POSTHOG_ACTIVITY_LOG_LIST
Activity Log List
activity_logsactivity_log
Advanced Activity Logs Available Filters Retrieve
POSTHOG_ADVANCED_ACTIVITY_LOGS_AVAILABLE_FILTERS_RETRIEVE
Advanced Activity Logs Available Filters Retrieve
advanced_activity_logs
Advanced Activity Logs Export Create
POSTHOG_ADVANCED_ACTIVITY_LOGS_EXPORT_CREATE
Advanced Activity Logs Export Create
advanced_activity_logs
Advanced Activity Logs List
POSTHOG_ADVANCED_ACTIVITY_LOGS_LIST
Advanced Activity Logs List
advanced_activity_logs
Agent Applications Approvals Decide
POSTHOG_AGENT_APPLICATIONS_APPROVALS_DECIDE
Approve or reject a queued `agent`-type tool-approval request. This is the OWNER decision surface — the only PostHog-authoritative one: team admins decide here, in the console. `principal`-type approvals are decided by the session principal at the ingress decision API, not here. The runtime side runs the tool platform-side on approve and wakes the session with a synthetic tool_result either way.
agent_platformagent_applications
Agent Applications Approvals List
POSTHOG_AGENT_APPLICATIONS_APPROVALS_LIST
List approval-gated tool requests for this application. Team-admin only (per plan §6.1). Default returns all states — pass `?state=queued` for the inbox view.
agent_platformagent_applications
Agent Applications Approvals Retrieve
POSTHOG_AGENT_APPLICATIONS_APPROVALS_RETRIEVE
Single approval request — full proposed args, assistant snapshot, decision metadata, dispatch outcome. Team-admin only (plan §6.1).
agent_platformagent_applications
Agent Applications Create
POSTHOG_AGENT_APPLICATIONS_CREATE
Agent applications — the deployable unit of the platform. URLs: GET /api/projects/<team>/agent_applications/ list POST /api/projects/<team>/agent_applications/ create GET /api/projects/<team>/agent_applications/<id|slug>/ retrieve PATCH /api/projects/<team>/agent_applications/<id|slug>/ update DELETE /api/projects/<team>/agent_applications/<id|slug>/ archive POST /api/projects/<team>/agent_applications/<id|slug>/set_env/ bulk replace env GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/ list set keys GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ is one key set? PUT /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ set one key DELETE /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ clear one key
agent_platformagent_applications
Agent Applications Destroy
POSTHOG_AGENT_APPLICATIONS_DESTROY
Agent applications — the deployable unit of the platform. URLs: GET /api/projects/<team>/agent_applications/ list POST /api/projects/<team>/agent_applications/ create GET /api/projects/<team>/agent_applications/<id|slug>/ retrieve PATCH /api/projects/<team>/agent_applications/<id|slug>/ update DELETE /api/projects/<team>/agent_applications/<id|slug>/ archive POST /api/projects/<team>/agent_applications/<id|slug>/set_env/ bulk replace env GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/ list set keys GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ is one key set? PUT /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ set one key DELETE /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ clear one key
agent_platformagent_applications
Agent Applications List
POSTHOG_AGENT_APPLICATIONS_LIST
Agent applications — the deployable unit of the platform. URLs: GET /api/projects/<team>/agent_applications/ list POST /api/projects/<team>/agent_applications/ create GET /api/projects/<team>/agent_applications/<id|slug>/ retrieve PATCH /api/projects/<team>/agent_applications/<id|slug>/ update DELETE /api/projects/<team>/agent_applications/<id|slug>/ archive POST /api/projects/<team>/agent_applications/<id|slug>/set_env/ bulk replace env GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/ list set keys GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ is one key set? PUT /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ set one key DELETE /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ clear one key
agent_platformagent_applications
Agent Applications Models
POSTHOG_AGENT_APPLICATIONS_MODELS
Served-model catalog — each model's id, provider, context window, and USD-per-million-token pricing — plus the curated auto-level → model map. Project-agnostic; sourced from the AI gateway catalog. Powers the config UI model browser and the agent builder's model-choosing skill.
agent_platformagent_applications
Agent Applications Partial Update
POSTHOG_AGENT_APPLICATIONS_PARTIAL_UPDATE
Agent applications — the deployable unit of the platform. URLs: GET /api/projects/<team>/agent_applications/ list POST /api/projects/<team>/agent_applications/ create GET /api/projects/<team>/agent_applications/<id|slug>/ retrieve PATCH /api/projects/<team>/agent_applications/<id|slug>/ update DELETE /api/projects/<team>/agent_applications/<id|slug>/ archive POST /api/projects/<team>/agent_applications/<id|slug>/set_env/ bulk replace env GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/ list set keys GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ is one key set? PUT /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ set one key DELETE /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ clear one key
agent_platformagent_applications
Agent Applications Preview Proxy
POSTHOG_AGENT_APPLICATIONS_PREVIEW_PROXY
Authoring-side proxy for invoking a *draft* (or any non-live) revision. Closes the anonymous-draft-invoke gap: the public ingress URL refuses non-live invokes that don't carry the `x-agent-preview-secret` header; this proxy attaches it after authenticating the Django caller. URL: `/api/projects/<team>/agent_applications/<app>/preview-proxy/<rest>` Auth: standard PAT / session — `agents:write` scope (POST run/send/cancel is a mutating invoke; the read-only `listen` GET is `agents:read`).
agent_platformagent_applications
Agent Applications Preview Proxy Get
POSTHOG_AGENT_APPLICATIONS_PREVIEW_PROXY_GET
GET passthrough for the preview-proxy — used for `/listen` SSE.
agent_platformagent_applications
Agent Applications Preview Token
POSTHOG_AGENT_APPLICATIONS_PREVIEW_TOKEN
GET sibling of `preview_token_mint`. Same body and response shape — exists because `EventSource` can't set headers, so SSE callers fetch the token via GET and then attach `?preview_token=` to the ingress URL. Behind the same URL (`url_path="preview-token"`) thanks to DRF's `@<action>.mapping.get`; DRF resolves it to a distinct `view.action`, but it is in `scope_object_write_actions` alongside the POST sibling — both return a usable credential, so both require `agents:write`.
agent_platformagent_applications
Agent Applications Preview Token Mint
POSTHOG_AGENT_APPLICATIONS_PREVIEW_TOKEN_MINT
Mint a short-lived JWT for talking to a non-live revision directly via the public ingress URL. The caller attaches it as the `x-agent-preview-token` header (or `?preview_token=` query param for `EventSource`). See `_mint_preview_jwt` for the payload + claim binding. The response also includes `endpoints`, `auth`, and `preview_proxy` blocks so the caller can wire a preview invocation without grepping the agent-ingress source for which path each trigger exposes or which header name carries the token. This is the "self-describing" half of preview-mode — every piece of info you need to hit ingress is in one response. POST is the canonical verb — minting credentials for downstream `run`/`send`/`cancel` is a write-class capability. A GET sibling exists at the same URL for `EventSource` callers (which can't set headers); it is also write-scoped, since it returns the same token.
agent_platformagent_applications
Agent Applications Retrieve
POSTHOG_AGENT_APPLICATIONS_RETRIEVE
Agent applications — the deployable unit of the platform. URLs: GET /api/projects/<team>/agent_applications/ list POST /api/projects/<team>/agent_applications/ create GET /api/projects/<team>/agent_applications/<id|slug>/ retrieve PATCH /api/projects/<team>/agent_applications/<id|slug>/ update DELETE /api/projects/<team>/agent_applications/<id|slug>/ archive POST /api/projects/<team>/agent_applications/<id|slug>/set_env/ bulk replace env GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/ list set keys GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ is one key set? PUT /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ set one key DELETE /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ clear one key
agent_platformagent_applications
Agent Applications Revisions Agent Md Update
POSTHOG_AGENT_APPLICATIONS_REVISIONS_AGENT_MD_UPDATE
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)
agent_platformagent_applications
Agent Applications Revisions Archive Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_ARCHIVE_CREATE
Mark a revision archived. If it was the live one, clear the application's live_revision pointer (the app effectively has no deployable version until another revision is promoted).
agent_platformagent_applications
Agent Applications Revisions Bundle File Update
POSTHOG_AGENT_APPLICATIONS_REVISIONS_BUNDLE_FILE_UPDATE
Update one `.md` file on a draft revision. `agent.md` writes go to the draft bundle. `skills/<id>/SKILL.md` writes are store-backed — skills are materialized from the skill store at freeze, so the edit publishes a new version of the referenced store skill and re-pins the draft's `skill_refs` entry to it. `<id>` must be a ref alias on this revision; add new skills via `bundle/import/` or `skill_refs`. Tool source / schema editing is out of scope here — use the per-tool endpoints. Returns the updated revision so the caller can refresh in one round-trip.
agent_platformagent_applications
Agent Applications Revisions Bundle Import Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_BUNDLE_IMPORT_CREATE
Bulk-merge a set of `.md` files into a draft revision. Sets `agent_md` on the draft bundle if present. `skills[]` are store-backed and merge by `id`: an id already referenced by the draft publishes a new version of its store skill; an unreferenced id attaches the store skill of that name (publishing the payload's body to it), or creates it when no such skill exists — and each ref is (re-)pinned to the published version. Skills not mentioned are left alone, so the import is safe to retry. Draft-only; non-draft revisions return 409 untouched.
agent_platformagent_applications
Agent Applications Revisions Bundle Retrieve
POSTHOG_AGENT_APPLICATIONS_REVISIONS_BUNDLE_RETRIEVE
Read the full typed bundle: `{ agent_md, skills, tools, spec }`.
agent_platformagent_applications
Agent Applications Revisions Bundle Update
POSTHOG_AGENT_APPLICATIONS_REVISIONS_BUNDLE_UPDATE
Full-replace the typed bundle. Anything not in the payload is deleted. Tool sources are AST-checked + esbuild-compiled by the janitor before any S3 writes.
agent_platformagent_applications
Agent Applications Revisions Clone From Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_CLONE_FROM_CREATE
Copy every file from `source_revision_id` into this revision.
agent_platformagent_applications
Agent Applications Revisions Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_CREATE
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)
agent_platformagent_applications
Agent Applications Revisions Cron Fire Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_CRON_FIRE_CREATE
Fire one cron job out-of-band — the same execution path the scheduler walks, but on demand. Authoring UX: the user iterates on a cron prompt by clicking 'Fire now' rather than waiting for the next scheduled firing. Without this, 'did my prompt do the right thing?' is unanswerable until the cron actually fires. Idempotent via `request_id`: repeat clicks with the same id resolve to the same session id rather than firing N times.
agent_platformagent_applications
Agent Applications Revisions Destroy
POSTHOG_AGENT_APPLICATIONS_REVISIONS_DESTROY
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)
agent_platformagent_applications
Agent Applications Revisions Freeze Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_FREEZE_CREATE
Freeze the bundle: draft → ready, stamps sha256 on the row. Django is a thin proxy here: resolve template refs into the bundle, ask the janitor to seal it (the janitor returns the sha + the spec it derived from the typed resources), then stamp the row. No `transaction.atomic()` — the janitor's freeze is idempotent (on retry it re-reads the existing `.frozen` marker + re-derives spec), so a partial failure here is recoverable by re-calling freeze, not by transactional rollback. Holding an atomic block across the janitor HTTP call previously deadlocked the agent_revision row against the janitor's spec write — that's moved off the janitor side as part of the same fix.
agent_platformagent_applications
Agent Applications Revisions List
POSTHOG_AGENT_APPLICATIONS_REVISIONS_LIST
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)
agent_platformagent_applications
Agent Applications Revisions Manifest Retrieve
POSTHOG_AGENT_APPLICATIONS_REVISIONS_MANIFEST_RETRIEVE
List every file in this revision's bundle (path, size, sha256).
agent_platformagent_applications
Agent Applications Revisions New Draft Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_NEW_DRAFT_CREATE
Create a fresh draft revision under `application_id` and seed it from `source_revision_id`. Saves the MCP one round-trip vs the explicit create + clone_from sequence.
agent_platformagent_applications
Agent Applications Revisions Partial Update
POSTHOG_AGENT_APPLICATIONS_REVISIONS_PARTIAL_UPDATE
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)
agent_platformagent_applications
Agent Applications Revisions Promote Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_PROMOTE_CREATE
ready → live. Sets the parent application's live_revision.
agent_platformagent_applications
Agent Applications Revisions Retrieve
POSTHOG_AGENT_APPLICATIONS_REVISIONS_RETRIEVE
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)
agent_platformagent_applications
Agent Applications Revisions Set Env Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_SET_ENV_CREATE
Replace this revision's encrypted env block. The body is `{ "env": { "<KEY>": "<value>", ... } }`. The encrypted text is stored on `AgentRevision.encrypted_env`; the worker decrypts it at session start via the same Fernet schedule (see agent-shared/src/runtime/encryption.ts).
agent_platformagent_applications
Agent Applications Revisions Skill Refs Update
POSTHOG_AGENT_APPLICATIONS_REVISIONS_SKILL_REFS_UPDATE
Full-replace the draft's store-skill references. They are resolved and materialized into the bundle at freeze, not here — this only records which skills (and pinned versions) the freeze should pull in.
agent_platformagent_applications
Agent Applications Revisions Slack Manifest
POSTHOG_AGENT_APPLICATIONS_REVISIONS_SLACK_MANIFEST
Build a Slack app manifest for this revision's slack trigger. Deterministic: the OAuth scopes and bot event subscriptions are derived from the slack trigger config (`mention_only` / `auto_resume_threads` / `ack_reaction`) and the agent's Slack tools, so the manifest already subscribes to exactly the events the config needs. 400 if the revision has no slack trigger.
agent_platformagent_applications
Agent Applications Revisions Spec Update
POSTHOG_AGENT_APPLICATIONS_REVISIONS_SPEC_UPDATE
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)
agent_platformagent_applications
Agent Applications Revisions System Prompt
POSTHOG_AGENT_APPLICATIONS_REVISIONS_SYSTEM_PROMPT
Return the fully-assembled system prompt for this revision. Authoring tools call this to preview what the model will actually see at session start — the platform framework preamble plus the bundle's `agent.md` plus the skills index. Useful for debugging author-vs-framework precedence conflicts and verifying `spec.framework_prompt.omit` overrides took effect.
agent_platformagent_applications
Agent Applications Revisions Tools Destroy
POSTHOG_AGENT_APPLICATIONS_REVISIONS_TOOLS_DESTROY
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)
agent_platformagent_applications
Agent Applications Revisions Tools Dry Run Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_TOOLS_DRY_RUN_CREATE
Execute one persisted custom tool in a single-shot sandbox. Authoring loop's "test this tool" button. The tool's source must already be PUT (compiled.js is what runs); this just invokes it with the caller-supplied args and a stubbed ctx. No real secrets leave Django — `mock_secrets` is a `{name → placeholder}` map.
agent_platformagent_applications
Agent Applications Revisions Tools Update
POSTHOG_AGENT_APPLICATIONS_REVISIONS_TOOLS_UPDATE
Revisions of an agent. Created in `draft`, promoted through `ready → live` once the bundle has been uploaded + frozen. URLs (nested under an application): Model CRUD: GET .../revisions/ list POST .../revisions/ create draft GET .../revisions/<id>/ retrieve PATCH .../revisions/<id>/ update spec (draft only) Lifecycle: POST .../revisions/<id>/promote/ ready → live POST .../revisions/<id>/archive/ → archived POST .../revisions/<id>/freeze/ draft → ready (stamps sha256) POST .../revisions/<id>/clone_from/ copy bundle from another rev POST .../revisions/new_draft/ create draft + clone_from atomically Bundle authoring (proxied to the janitor): GET .../revisions/<id>/manifest/ list paths + sha256 GET .../revisions/<id>/file/?path=… read one file PUT .../revisions/<id>/file/?path=… write one file (draft) DELETE .../revisions/<id>/file/?path=… delete one file (draft) GET .../revisions/<id>/bundle/ bulk pull all files PUT .../revisions/<id>/bundle/ bulk push (replace|merge)
agent_platformagent_applications
Agent Applications Revisions Update
POSTHOG_AGENT_APPLICATIONS_REVISIONS_UPDATE
Spec edits are only allowed while state='draft'. Once promoted to ready/live the spec is frozen — change requires a new revision.
agent_platformagent_applications
Agent Applications Revisions Validate Create
POSTHOG_AGENT_APPLICATIONS_REVISIONS_VALIDATE_CREATE
Pre-flight checks before freeze + promote: agent.md exists, every native tool id is registered, every custom tool has its compiled.js + schema.json, every skill path exists, every declared secret has a value set in this revision's env block. Returns `{ ok, errors: [...] }`. Works on any revision state.
agent_platformagent_applications
Agent Applications Sessions List
POSTHOG_AGENT_APPLICATIONS_SESSIONS_LIST
List sessions for this application, newest first. Strips the conversation transcript from each summary, but includes a `preview` (last assistant text, ~120 chars) and `usage_total` (token + cost aggregate). Use `agent-applications-sessions-retrieve` for the full transcript of a single session.
agent_platformagent_applications
Agent Applications Sessions Retrieve
POSTHOG_AGENT_APPLICATIONS_SESSIONS_RETRIEVE
Fetch one session's state — full conversation by default, or just the trailing N messages with `?last_n=`. Always returns a `usage_total` block aggregated over the entire session, regardless of trim. The runner-side queue DB is the source of truth.
agent_platformagent_applications
Agent Applications Session Logs
POSTHOG_AGENT_APPLICATIONS_SESSION_LOGS
Read the runner's structured event log for one session from ClickHouse. Filters (limit / after / before / level / search) match the shared `LogEntryMixin` helper used by hog_function + hog_flow.
agent_platformagent_applications
Agent Applications Spec Schema
POSTHOG_AGENT_APPLICATIONS_SPEC_SCHEMA
The canonical JSON Schema for an agent `spec` — every field, type, enum, default, and the discriminated unions for `models` / `triggers[]` / `tools[]`, each with an inline description. Emitted from the same source the runner validates against (fields with a default are optional on write), so read it BEFORE composing a spec for create / revisions-spec-update instead of guessing the shape. Pass `section` to fetch just one part.
agent_platformagent_applications
Agent Applications Stats
POSTHOG_AGENT_APPLICATIONS_STATS
Roll-up stats for the agent — drives the agent-detail overview tiles.
agent_platformagent_applications
Agent Applications Update
POSTHOG_AGENT_APPLICATIONS_UPDATE
Agent applications — the deployable unit of the platform. URLs: GET /api/projects/<team>/agent_applications/ list POST /api/projects/<team>/agent_applications/ create GET /api/projects/<team>/agent_applications/<id|slug>/ retrieve PATCH /api/projects/<team>/agent_applications/<id|slug>/ update DELETE /api/projects/<team>/agent_applications/<id|slug>/ archive POST /api/projects/<team>/agent_applications/<id|slug>/set_env/ bulk replace env GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/ list set keys GET /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ is one key set? PUT /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ set one key DELETE /api/projects/<team>/agent_applications/<id|slug>/env_keys/<KEY>/ clear one key
agent_platformagent_applications
Agent Applications Users Connection Delete
POSTHOG_AGENT_APPLICATIONS_USERS_CONNECTION_DELETE
Revoke one of an end-user's linked connections. The credential is marked revoked (kept for audit), so the agent can no longer act as that user on the provider.
agent_platformagent_applications
Agent Applications Users List
POSTHOG_AGENT_APPLICATIONS_USERS_LIST
List this agent's end-users (the stable identities behind inbound principals) and each user's linked external connections. Connection metadata only — credential material is never returned.
agent_platformagent_applications
Agent Fleet Approvals List
POSTHOG_AGENT_FLEET_APPROVALS_LIST
Approval-gated tool requests across every agent in this team. Team-admin only.
agent_platformagent_fleet
Agent Fleet Live Sessions
POSTHOG_AGENT_FLEET_LIVE_SESSIONS
Live (non-terminal) sessions across every agent owned by this team, newest activity first.
agent_platformagent_fleet
Agent Fleet Stats
POSTHOG_AGENT_FLEET_STATS
Roll-up stats across every agent owned by this team.
agent_platformagent_fleet
Agent Memory Create File
POSTHOG_AGENT_MEMORY_CREATE_FILE
Create a memory file. Fails if the path already exists — use the update endpoint to overwrite.
agent_platformagent_applications
Agent Memory Delete File
POSTHOG_AGENT_MEMORY_DELETE_FILE
Hard-delete a memory file. Activity log captures the action against the agent.
agent_platformagent_applications
Agent Memory Get File
POSTHOG_AGENT_MEMORY_GET_FILE
Read one memory file in full (frontmatter + markdown body).
agent_platformagent_applications
Agent Memory List Files
POSTHOG_AGENT_MEMORY_LIST_FILES
List memory file headers under the agent's prefix. Headers only — no bodies.
agent_platformagent_applications
Agent Memory List Tables
POSTHOG_AGENT_MEMORY_LIST_TABLES
List the agent's tabular-reference tables (the @posthog/table-* JSONL tables): name + byte size.
agent_platformagent_applications
Agent Memory Read Table
POSTHOG_AGENT_MEMORY_READ_TABLE
Read rows from one tabular-reference table (capped via ?limit).
agent_platformagent_applications
Agent Memory Tree
POSTHOG_AGENT_MEMORY_TREE
Pre-aggregated folder tree of memory files. Saves the frontend re-derivation work.
agent_platformagent_applications
Agent Memory Update File
POSTHOG_AGENT_MEMORY_UPDATE_FILE
Update a memory file. Any field omitted is preserved from the existing file.
agent_platformagent_applications
Agent Native Tools List
POSTHOG_AGENT_NATIVE_TOOLS_LIST
Read-only catalog of every @posthog/* native tool the runner knows.
agent_platformagent_native_tools
Agent Revisions Env Keys Clear
POSTHOG_AGENT_REVISIONS_ENV_KEYS_CLEAR
GET / PUT / DELETE one secret by name on this revision. - `GET` → `{ key, is_set }` (never returns the value). - `PUT` → upserts `{ value }` into the env block. - `DELETE` → removes the key. No-op when it wasn't set. Per-method scope: GET is treated as a write action so the single action name maps to one consistent scope; reading whether a secret is set is restricted to writers in any case.
agent_platformagent_applications
Agent Revisions Env Keys Get
POSTHOG_AGENT_REVISIONS_ENV_KEYS_GET
GET / PUT / DELETE one secret by name on this revision. - `GET` → `{ key, is_set }` (never returns the value). - `PUT` → upserts `{ value }` into the env block. - `DELETE` → removes the key. No-op when it wasn't set. Per-method scope: GET is treated as a write action so the single action name maps to one consistent scope; reading whether a secret is set is restricted to writers in any case.
agent_platformagent_applications
Agent Revisions Env Keys List
POSTHOG_AGENT_REVISIONS_ENV_KEYS_LIST
List the names of secrets currently set on this revision. Returns names only — values stay server-side under `EncryptedTextField`. Use this to drive the "set / unset" badge next to a declared secret in the editor UI.
agent_platformagent_applications
Agent Revisions Env Keys Set
POSTHOG_AGENT_REVISIONS_ENV_KEYS_SET
GET / PUT / DELETE one secret by name on this revision. - `GET` → `{ key, is_set }` (never returns the value). - `PUT` → upserts `{ value }` into the env block. - `DELETE` → removes the key. No-op when it wasn't set. Per-method scope: GET is treated as a write action so the single action name maps to one consistent scope; reading whether a secret is set is restricted to writers in any case.
agent_platformagent_applications
Alerts Create
POSTHOG_ALERTS_CREATE
Alerts Create
alerts
Alerts Destroy
POSTHOG_ALERTS_DESTROY
Alerts Destroy
alerts
Alerts List
POSTHOG_ALERTS_LIST
Alerts List
alerts
Alerts Partial Update
POSTHOG_ALERTS_PARTIAL_UPDATE
Alerts Partial Update
alerts
Alerts Retrieve
POSTHOG_ALERTS_RETRIEVE
Alerts Retrieve
alerts
Alerts Simulate Create
POSTHOG_ALERTS_SIMULATE_CREATE
Simulate a detector on an insight's historical data. Read-only — no AlertCheck records are created.
alerts
Alerts Update
POSTHOG_ALERTS_UPDATE
Alerts Update
alerts
Annotations Create
POSTHOG_ANNOTATIONS_CREATE
Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations.
annotations
Annotations Destroy
POSTHOG_ANNOTATIONS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
annotations
Annotations List
POSTHOG_ANNOTATIONS_LIST
Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations.
annotations
Annotations Partial Update
POSTHOG_ANNOTATIONS_PARTIAL_UPDATE
Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations.
annotations
Annotations Retrieve
POSTHOG_ANNOTATIONS_RETRIEVE
Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations.
annotations
Annotations Update
POSTHOG_ANNOTATIONS_UPDATE
Create, Read, Update and Delete annotations. [See docs](https://posthog.com/docs/data/annotations) for more information on annotations.
annotations
Approval Policies Create
POSTHOG_APPROVAL_POLICIES_CREATE
Approval Policies Create
platform_featuresapproval_policies
Approval Policies Destroy
POSTHOG_APPROVAL_POLICIES_DESTROY
Approval Policies Destroy
platform_featuresapproval_policies
Approval Policies List
POSTHOG_APPROVAL_POLICIES_LIST
Approval Policies List
platform_featuresapproval_policies
Approval Policies Partial Update
POSTHOG_APPROVAL_POLICIES_PARTIAL_UPDATE
Approval Policies Partial Update
platform_featuresapproval_policies
Approval Policies Retrieve
POSTHOG_APPROVAL_POLICIES_RETRIEVE
Approval Policies Retrieve
platform_featuresapproval_policies
Approval Policies Update
POSTHOG_APPROVAL_POLICIES_UPDATE
Approval Policies Update
platform_featuresapproval_policies
Batch Exports Backfills Cancel Create
POSTHOG_BATCH_EXPORTS_BACKFILLS_CANCEL_CREATE
Cancel a batch export backfill.
batch_exports
Batch Exports Backfills Create
POSTHOG_BATCH_EXPORTS_BACKFILLS_CREATE
Create a new backfill for a BatchExport.
batch_exports
Batch Exports Backfills List
POSTHOG_BATCH_EXPORTS_BACKFILLS_LIST
ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them.
batch_exports
Batch Exports Backfills Retrieve
POSTHOG_BATCH_EXPORTS_BACKFILLS_RETRIEVE
ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them.
batch_exports
Batch Exports Create
POSTHOG_BATCH_EXPORTS_CREATE
Batch Exports Create
batch_exportsbatch_exports
Batch Exports Destroy
POSTHOG_BATCH_EXPORTS_DESTROY
Batch Exports Destroy
batch_exportsbatch_exports
Batch Exports List
POSTHOG_BATCH_EXPORTS_LIST
Batch Exports List
batch_exportsbatch_exports
Batch Exports Logs Retrieve
POSTHOG_BATCH_EXPORTS_LOGS_RETRIEVE
Batch Exports Logs Retrieve
batch_exportsbatch_exports
Batch Exports Partial Update
POSTHOG_BATCH_EXPORTS_PARTIAL_UPDATE
Batch Exports Partial Update
batch_exportsbatch_exports
Batch Exports Pause Create
POSTHOG_BATCH_EXPORTS_PAUSE_CREATE
Pause a BatchExport.
batch_exportsbatch_exports
Batch Exports Retrieve
POSTHOG_BATCH_EXPORTS_RETRIEVE
Batch Exports Retrieve
batch_exportsbatch_exports
Batch Exports Runs Cancel Create
POSTHOG_BATCH_EXPORTS_RUNS_CANCEL_CREATE
Cancel a batch export run.
batch_exportsbatch_exports
Batch Exports Runs List
POSTHOG_BATCH_EXPORTS_RUNS_LIST
Batch Exports Runs List
batch_exportsbatch_exports
Batch Exports Runs Logs Retrieve
POSTHOG_BATCH_EXPORTS_RUNS_LOGS_RETRIEVE
Batch Exports Runs Logs Retrieve
batch_exportsbatch_exports
Batch Exports Runs Retrieve
POSTHOG_BATCH_EXPORTS_RUNS_RETRIEVE
Batch Exports Runs Retrieve
batch_exportsbatch_exports
Batch Exports Runs Retry Create
POSTHOG_BATCH_EXPORTS_RUNS_RETRY_CREATE
Retry a batch export run. We use the same underlying mechanism as when backfilling a batch export, as retrying a run is the same as backfilling one run.
batch_exportsbatch_exports
Batch Exports Run Test Step Create
POSTHOG_BATCH_EXPORTS_RUN_TEST_STEP_CREATE
Batch Exports Run Test Step Create
batch_exportsbatch_exports
Batch Exports Run Test Step New Create
POSTHOG_BATCH_EXPORTS_RUN_TEST_STEP_NEW_CREATE
Batch Exports Run Test Step New Create
batch_exportsbatch_exports
Batch Exports Test Retrieve
POSTHOG_BATCH_EXPORTS_TEST_RETRIEVE
Batch Exports Test Retrieve
batch_exportsbatch_exports
Batch Exports Unpause Create
POSTHOG_BATCH_EXPORTS_UNPAUSE_CREATE
Unpause a BatchExport.
batch_exportsbatch_exports
Batch Exports Update
POSTHOG_BATCH_EXPORTS_UPDATE
Batch Exports Update
batch_exportsbatch_exports
Business Knowledge Documents Search List
POSTHOG_BUSINESS_KNOWLEDGE_DOCUMENTS_SEARCH_LIST
Read-only access to parsed knowledge documents. Exposes hybrid search (``search``) and a drill-down window (``window``) so an agent (PHAI or MCP) can find and explore business knowledge chunks.
business_knowledge
Business Knowledge Documents Window List
POSTHOG_BUSINESS_KNOWLEDGE_DOCUMENTS_WINDOW_LIST
Read-only access to parsed knowledge documents. Exposes hybrid search (``search``) and a drill-down window (``window``) so an agent (PHAI or MCP) can find and explore business knowledge chunks.
business_knowledge
Business Knowledge Gap Suggestions Accept Create
POSTHOG_BUSINESS_KNOWLEDGE_GAP_SUGGESTIONS_ACCEPT_CREATE
Surfaces topics the support AI couldn't answer from the knowledge base. Two list shapes controlled by the ``ticket_id`` query param: - **per-ticket** (``?ticket_id=<uuid>``): individual gap rows for that ticket. - **aggregated** (no ``ticket_id``): gaps grouped by normalized topic with counts, for the Business knowledge suggestions panel.
business_knowledge
Business Knowledge Gap Suggestions Accept Topic Create
POSTHOG_BUSINESS_KNOWLEDGE_GAP_SUGGESTIONS_ACCEPT_TOPIC_CREATE
Accept all pending suggestions for a normalized topic cluster.
business_knowledge
Business Knowledge Gap Suggestions Dismiss Create
POSTHOG_BUSINESS_KNOWLEDGE_GAP_SUGGESTIONS_DISMISS_CREATE
Surfaces topics the support AI couldn't answer from the knowledge base. Two list shapes controlled by the ``ticket_id`` query param: - **per-ticket** (``?ticket_id=<uuid>``): individual gap rows for that ticket. - **aggregated** (no ``ticket_id``): gaps grouped by normalized topic with counts, for the Business knowledge suggestions panel.
business_knowledge
Business Knowledge Gap Suggestions Dismiss Topic Create
POSTHOG_BUSINESS_KNOWLEDGE_GAP_SUGGESTIONS_DISMISS_TOPIC_CREATE
Dismiss all pending suggestions for a normalized topic cluster.
business_knowledge
Business Knowledge Gap Suggestions List
POSTHOG_BUSINESS_KNOWLEDGE_GAP_SUGGESTIONS_LIST
Surfaces topics the support AI couldn't answer from the knowledge base. Two list shapes controlled by the ``ticket_id`` query param: - **per-ticket** (``?ticket_id=<uuid>``): individual gap rows for that ticket. - **aggregated** (no ``ticket_id``): gaps grouped by normalized topic with counts, for the Business knowledge suggestions panel.
business_knowledge
Business Knowledge Sources Create
POSTHOG_BUSINESS_KNOWLEDGE_SOURCES_CREATE
Business Knowledge Sources Create
business_knowledge
Business Knowledge Sources Destroy
POSTHOG_BUSINESS_KNOWLEDGE_SOURCES_DESTROY
Business Knowledge Sources Destroy
business_knowledge
Business Knowledge Sources List
POSTHOG_BUSINESS_KNOWLEDGE_SOURCES_LIST
Business Knowledge Sources List
business_knowledge
Business Knowledge Sources Partial Update
POSTHOG_BUSINESS_KNOWLEDGE_SOURCES_PARTIAL_UPDATE
Business Knowledge Sources Partial Update
business_knowledge
Business Knowledge Sources Refresh Create
POSTHOG_BUSINESS_KNOWLEDGE_SOURCES_REFRESH_CREATE
Business Knowledge Sources Refresh Create
business_knowledge
Business Knowledge Sources Retrieve
POSTHOG_BUSINESS_KNOWLEDGE_SOURCES_RETRIEVE
Business Knowledge Sources Retrieve
business_knowledge
Business Knowledge Sources Text Retrieve
POSTHOG_BUSINESS_KNOWLEDGE_SOURCES_TEXT_RETRIEVE
Business Knowledge Sources Text Retrieve
business_knowledge
Change Requests Approve Create
POSTHOG_CHANGE_REQUESTS_APPROVE_CREATE
Approve a change request. If quorum is reached, automatically applies the change immediately.
platform_featureschange_requests
Change Requests Cancel Create
POSTHOG_CHANGE_REQUESTS_CANCEL_CREATE
Cancel a change request. Only the requester can cancel their own pending change request.
platform_featureschange_requests
Change Requests List
POSTHOG_CHANGE_REQUESTS_LIST
Change Requests List
platform_featureschange_requests
Change Requests Reject Create
POSTHOG_CHANGE_REQUESTS_REJECT_CREATE
Reject a change request.
platform_featureschange_requests
Change Requests Retrieve
POSTHOG_CHANGE_REQUESTS_RETRIEVE
Change Requests Retrieve
platform_featureschange_requests
Cimd Verification Tokens Create
POSTHOG_CIMD_VERIFICATION_TOKENS_CREATE
Manage CIMD verification tokens for an organization. A partner embeds the plaintext token in their CIMD metadata document as `verification_token` inside the `com.posthog` object (the legacy top-level `posthog_verification_token` field still works as a fallback). When PostHog fetches the metadata, matching the token links the partner app to this organization and grants a higher default rate limit for account provisioning. The plaintext value is only available on creation; we store a hash.
organizationscimd_verification_tokens
Cimd Verification Tokens Destroy
POSTHOG_CIMD_VERIFICATION_TOKENS_DESTROY
Manage CIMD verification tokens for an organization. A partner embeds the plaintext token in their CIMD metadata document as `verification_token` inside the `com.posthog` object (the legacy top-level `posthog_verification_token` field still works as a fallback). When PostHog fetches the metadata, matching the token links the partner app to this organization and grants a higher default rate limit for account provisioning. The plaintext value is only available on creation; we store a hash.
organizationscimd_verification_tokens
Cimd Verification Tokens List
POSTHOG_CIMD_VERIFICATION_TOKENS_LIST
Manage CIMD verification tokens for an organization. A partner embeds the plaintext token in their CIMD metadata document as `verification_token` inside the `com.posthog` object (the legacy top-level `posthog_verification_token` field still works as a fallback). When PostHog fetches the metadata, matching the token links the partner app to this organization and grants a higher default rate limit for account provisioning. The plaintext value is only available on creation; we store a hash.
organizationscimd_verification_tokens
Cimd Verification Tokens Retrieve
POSTHOG_CIMD_VERIFICATION_TOKENS_RETRIEVE
Manage CIMD verification tokens for an organization. A partner embeds the plaintext token in their CIMD metadata document as `verification_token` inside the `com.posthog` object (the legacy top-level `posthog_verification_token` field still works as a fallback). When PostHog fetches the metadata, matching the token links the partner app to this organization and grants a higher default rate limit for account provisioning. The plaintext value is only available on creation; we store a hash.
organizationscimd_verification_tokens
Check access
POSTHOG_CODE_INVITES_CHECK_ACCESS_RETRIEVE
Check whether the authenticated user has access to PostHog Code.
code-invitescode
Redeem invite code
POSTHOG_CODE_INVITES_REDEEM_CREATE
Redeem a PostHog Code invite code to enable access.
code-invitescode
Cohorts Activity Retrieve
POSTHOG_COHORTS_ACTIVITY_RETRIEVE
Cohorts Activity Retrieve
cohorts
Cohorts Add Persons To Static Cohort Partial Update
POSTHOG_COHORTS_ADD_PERSONS_TO_STATIC_COHORT_PARTIAL_UPDATE
Cohorts Add Persons To Static Cohort Partial Update
cohorts
Cohorts All Activity Retrieve
POSTHOG_COHORTS_ALL_ACTIVITY_RETRIEVE
Cohorts All Activity Retrieve
cohorts
Cohorts Calculation History Retrieve
POSTHOG_COHORTS_CALCULATION_HISTORY_RETRIEVE
Cohorts Calculation History Retrieve
cohorts
Cohorts Create
POSTHOG_COHORTS_CREATE
Cohorts Create
cohorts
Cohorts Destroy
POSTHOG_COHORTS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
cohorts
Cohorts List
POSTHOG_COHORTS_LIST
Cohorts List
cohorts
Cohorts Partial Update
POSTHOG_COHORTS_PARTIAL_UPDATE
Cohorts Partial Update
cohorts
Cohorts Persons Retrieve
POSTHOG_COHORTS_PERSONS_RETRIEVE
Cohorts Persons Retrieve
cohorts
Cohorts Remove Person From Static Cohort Partial Update
POSTHOG_COHORTS_REMOVE_PERSON_FROM_STATIC_COHORT_PARTIAL_UPDATE
Cohorts Remove Person From Static Cohort Partial Update
cohorts
Cohorts Retrieve
POSTHOG_COHORTS_RETRIEVE
Cohorts Retrieve
cohorts
Cohorts Update
POSTHOG_COHORTS_UPDATE
Cohorts Update
cohorts
Cohorts Used In Retrieve
POSTHOG_COHORTS_USED_IN_RETRIEVE
Cohorts Used In Retrieve
cohorts
Comments Complete Create
POSTHOG_COMMENTS_COMPLETE_CREATE
Mark a task-comment as complete. Sets completed_at and completed_by. 400 if the comment is not a task or is already complete.
comments
Comments Count Retrieve
POSTHOG_COMMENTS_COUNT_RETRIEVE
Comments Count Retrieve
comments
Comments Create
POSTHOG_COMMENTS_CREATE
Comments Create
comments
Comments Destroy
POSTHOG_COMMENTS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
comments
Comments List
POSTHOG_COMMENTS_LIST
Comments List
comments
Comments Partial Update
POSTHOG_COMMENTS_PARTIAL_UPDATE
Comments Partial Update
comments
Comments Reopen Create
POSTHOG_COMMENTS_REOPEN_CREATE
Reopen a completed task-comment. Clears completed_at and completed_by. 400 if the comment is not a task or is already open.
comments
Comments Retrieve
POSTHOG_COMMENTS_RETRIEVE
Comments Retrieve
comments
Comments Thread Retrieve
POSTHOG_COMMENTS_THREAD_RETRIEVE
Comments Thread Retrieve
comments
Comments Update
POSTHOG_COMMENTS_UPDATE
Comments Update
comments
Conversations Append Message Create
POSTHOG_CONVERSATIONS_APPEND_MESSAGE_CREATE
Appends a message to an existing conversation without triggering AI processing. This is used for client-side generated messages that need to be persisted (e.g., support ticket confirmation messages).
maxconversations
Conversations Cancel Partial Update
POSTHOG_CONVERSATIONS_CANCEL_PARTIAL_UPDATE
Cancel the conversation's in-progress LangGraph run.
maxconversations
Conversations Create
POSTHOG_CONVERSATIONS_CREATE
Unified endpoint that handles both conversation creation and streaming. - If message is provided: Start new conversation processing - If no message: Stream from existing conversation
maxconversations
Conversations Destroy
POSTHOG_CONVERSATIONS_DESTROY
Delete a conversation.
maxconversations
Conversations List
POSTHOG_CONVERSATIONS_LIST
Conversations List
maxconversations
Conversations Open Create
POSTHOG_CONVERSATIONS_OPEN_CREATE
Create-or-resume a sandbox conversation — the single sandbox session opener. With `content`, processes the turn (first message, in-progress follow-up, or terminal resume); without `content`, warms a sandbox that idles awaiting the first message. Returns the `(task, run)` handle the frontend opens SSE against. The conversation row is created on first use from the URL id.
maxconversations
Conversations Queue Clear Create
POSTHOG_CONVERSATIONS_QUEUE_CLEAR_CREATE
Conversations Queue Clear Create
maxconversations
Conversations Queue Create
POSTHOG_CONVERSATIONS_QUEUE_CREATE
Conversations Queue Create
maxconversations
Conversations Queue Destroy
POSTHOG_CONVERSATIONS_QUEUE_DESTROY
Conversations Queue Destroy
maxconversations
Conversations Queue Partial Update
POSTHOG_CONVERSATIONS_QUEUE_PARTIAL_UPDATE
Conversations Queue Partial Update
maxconversations
Conversations Queue Retrieve
POSTHOG_CONVERSATIONS_QUEUE_RETRIEVE
Conversations Queue Retrieve
maxconversations
Conversations Retrieve
POSTHOG_CONVERSATIONS_RETRIEVE
Conversations Retrieve
maxconversations
Conversations Tickets Ai Feedback Create
POSTHOG_CONVERSATIONS_TICKETS_AI_FEEDBACK_CREATE
Record reviewer feedback on an AI reply, captured to the internal analytics project.
conversations
Conversations Tickets Bulk Update Status Create
POSTHOG_CONVERSATIONS_TICKETS_BULK_UPDATE_STATUS_CREATE
Update the status of multiple tickets in a single request. Only tickets belonging to the current team are affected; other-team UUIDs are silently ignored. Tickets already in the requested status are skipped.
conversations
Conversations Tickets Bulk Update Tags Create
POSTHOG_CONVERSATIONS_TICKETS_BULK_UPDATE_TAGS_CREATE
Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``<scope>:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list
conversations
Conversations Tickets Compose Create
POSTHOG_CONVERSATIONS_TICKETS_COMPOSE_CREATE
Create a new outbound ticket and send the first message to the customer.
conversations
Conversations Tickets Create
POSTHOG_CONVERSATIONS_TICKETS_CREATE
Conversations Tickets Create
conversations
Conversations Tickets Destroy
POSTHOG_CONVERSATIONS_TICKETS_DESTROY
Conversations Tickets Destroy
conversations
Conversations Tickets List
POSTHOG_CONVERSATIONS_TICKETS_LIST
List tickets with person data attached.
conversations
Conversations Tickets Messages List
POSTHOG_CONVERSATIONS_TICKETS_MESSAGES_LIST
Return the message thread for a ticket, ordered chronologically (paginated).
conversations
Conversations Tickets Partial Update
POSTHOG_CONVERSATIONS_TICKETS_PARTIAL_UPDATE
Conversations Tickets Partial Update
conversations
Conversations Tickets Reply Create
POSTHOG_CONVERSATIONS_TICKETS_REPLY_CREATE
Post a reply or internal note to a ticket. With is_private=false, the reply is delivered to the customer via the ticket's channel (email, Slack, Teams, GitHub). With is_private=true, the message is stored as an internal note only visible to team members.
conversations
Conversations Tickets Retrieve
POSTHOG_CONVERSATIONS_TICKETS_RETRIEVE
Get single ticket and mark as read by team.
conversations
Conversations Tickets Unread Count Retrieve
POSTHOG_CONVERSATIONS_TICKETS_UNREAD_COUNT_RETRIEVE
Get total unread ticket count for the team. Returns the sum of unread_team_count for all non-resolved tickets. Cached in Redis for 30 seconds, invalidated on changes.
conversations
Conversations Tickets Update
POSTHOG_CONVERSATIONS_TICKETS_UPDATE
Handle ticket updates including assignee changes.
conversations
Conversations Views Create
POSTHOG_CONVERSATIONS_VIEWS_CREATE
Conversations Views Create
conversations
Conversations Views Destroy
POSTHOG_CONVERSATIONS_VIEWS_DESTROY
Conversations Views Destroy
conversations
Conversations Views List
POSTHOG_CONVERSATIONS_VIEWS_LIST
Conversations Views List
conversations
Conversations Views Retrieve
POSTHOG_CONVERSATIONS_VIEWS_RETRIEVE
Conversations Views Retrieve
conversations
Create
POSTHOG_CREATE
Create
organizationsorganizations
Create Session Summaries
POSTHOG_CREATE_SESSION_SUMMARIES
Generate AI summary for a group of session recordings to find patterns and generate a notebook.
session_summaries
Create Session Summaries Individually
POSTHOG_CREATE_SESSION_SUMMARIES_INDIVIDUALLY
Generate AI individual summary for each session, without grouping.
replaysession_summaries
Customer Journeys Create
POSTHOG_CUSTOMER_JOURNEYS_CREATE
Customer Journeys Create
customer_journeys
Customer Journeys Destroy
POSTHOG_CUSTOMER_JOURNEYS_DESTROY
Customer Journeys Destroy
customer_journeys
Customer Journeys List
POSTHOG_CUSTOMER_JOURNEYS_LIST
Customer Journeys List
customer_journeys
Customer Journeys Partial Update
POSTHOG_CUSTOMER_JOURNEYS_PARTIAL_UPDATE
Customer Journeys Partial Update
customer_journeys
Customer Journeys Retrieve
POSTHOG_CUSTOMER_JOURNEYS_RETRIEVE
Customer Journeys Retrieve
customer_journeys
Customer Journeys Update
POSTHOG_CUSTOMER_JOURNEYS_UPDATE
Customer Journeys Update
customer_journeys
Customer Profile Configs Create
POSTHOG_CUSTOMER_PROFILE_CONFIGS_CREATE
Customer Profile Configs Create
customer_profile_configs
Customer Profile Configs Destroy
POSTHOG_CUSTOMER_PROFILE_CONFIGS_DESTROY
Customer Profile Configs Destroy
customer_profile_configs
Customer Profile Configs List
POSTHOG_CUSTOMER_PROFILE_CONFIGS_LIST
Customer Profile Configs List
customer_profile_configs
Customer Profile Configs Partial Update
POSTHOG_CUSTOMER_PROFILE_CONFIGS_PARTIAL_UPDATE
Customer Profile Configs Partial Update
customer_profile_configs
Customer Profile Configs Retrieve
POSTHOG_CUSTOMER_PROFILE_CONFIGS_RETRIEVE
Customer Profile Configs Retrieve
customer_profile_configs
Customer Profile Configs Update
POSTHOG_CUSTOMER_PROFILE_CONFIGS_UPDATE
Customer Profile Configs Update
customer_profile_configs
Custom Property Definitions Create
POSTHOG_CUSTOM_PROPERTY_DEFINITIONS_CREATE
Custom Property Definitions Create
custom_property_definitions
Custom Property Definitions Destroy
POSTHOG_CUSTOM_PROPERTY_DEFINITIONS_DESTROY
Custom Property Definitions Destroy
custom_property_definitions
Custom Property Definitions List
POSTHOG_CUSTOM_PROPERTY_DEFINITIONS_LIST
Custom Property Definitions List
custom_property_definitions
Custom Property Definitions Partial Update
POSTHOG_CUSTOM_PROPERTY_DEFINITIONS_PARTIAL_UPDATE
Custom Property Definitions Partial Update
custom_property_definitions
Custom Property Definitions Retrieve
POSTHOG_CUSTOM_PROPERTY_DEFINITIONS_RETRIEVE
Custom Property Definitions Retrieve
custom_property_definitions
Custom Property Definitions Update
POSTHOG_CUSTOM_PROPERTY_DEFINITIONS_UPDATE
Custom Property Definitions Update
custom_property_definitions
Custom Property Sources Create
POSTHOG_CUSTOM_PROPERTY_SOURCES_CREATE
Custom Property Sources Create
custom_property_sources
Custom Property Sources Destroy
POSTHOG_CUSTOM_PROPERTY_SOURCES_DESTROY
Custom Property Sources Destroy
custom_property_sources
Custom Property Sources List
POSTHOG_CUSTOM_PROPERTY_SOURCES_LIST
Custom Property Sources List
custom_property_sources
Custom Property Sources Partial Update
POSTHOG_CUSTOM_PROPERTY_SOURCES_PARTIAL_UPDATE
Custom Property Sources Partial Update
custom_property_sources
Custom Property Sources Retrieve
POSTHOG_CUSTOM_PROPERTY_SOURCES_RETRIEVE
Custom Property Sources Retrieve
custom_property_sources
Custom Property Sources Update
POSTHOG_CUSTOM_PROPERTY_SOURCES_UPDATE
Custom Property Sources Update
custom_property_sources
Dashboards Bulk Update Tags Create
POSTHOG_DASHBOARDS_BULK_UPDATE_TAGS_CREATE
Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``<scope>:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list
dashboards
Dashboards Collaborators Create
POSTHOG_DASHBOARDS_COLLABORATORS_CREATE
Dashboards Collaborators Create
dashboards
Dashboards Collaborators Destroy
POSTHOG_DASHBOARDS_COLLABORATORS_DESTROY
Dashboards Collaborators Destroy
dashboards
Dashboards Collaborators List
POSTHOG_DASHBOARDS_COLLABORATORS_LIST
Dashboards Collaborators List
dashboards
Dashboards Copy Tile Create
POSTHOG_DASHBOARDS_COPY_TILE_CREATE
Copy an existing dashboard tile to another dashboard (insight, text card, or widget tile).
dashboards
Dashboards Create
POSTHOG_DASHBOARDS_CREATE
Dashboards Create
dashboards
Dashboards Create From Template Json Create
POSTHOG_DASHBOARDS_CREATE_FROM_TEMPLATE_JSON_CREATE
Dashboards Create From Template Json Create
dashboards
Dashboards Create Text Tile Create
POSTHOG_DASHBOARDS_CREATE_TEXT_TILE_CREATE
Add a markdown text tile to a dashboard. Text tiles render as markdown blocks on the dashboard — useful as section headings, dividers, or annotations between insight tiles to give the dashboard structure.
dashboards
Dashboards Create Unlisted Dashboard Create
POSTHOG_DASHBOARDS_CREATE_UNLISTED_DASHBOARD_CREATE
Creates an unlisted dashboard from template by tag. Enforces uniqueness (one per tag per team). Returns 409 if unlisted dashboard with this tag already exists.
dashboards
Dashboards Delete Tile
POSTHOG_DASHBOARDS_DELETE_TILE
Soft-delete a single tile from a dashboard. Works for text, insight, and button tiles. The underlying Insight, Text, or ButtonTile object is preserved — only the dashboard tile is hidden. To delete the entire dashboard, use the dashboard delete endpoint instead.
dashboards
Dashboards Destroy
POSTHOG_DASHBOARDS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
dashboards
Dashboards List
POSTHOG_DASHBOARDS_LIST
Dashboards List
dashboards
Dashboards Move Tile Create
POSTHOG_DASHBOARDS_MOVE_TILE_CREATE
Dashboards Move Tile Create
dashboards
Dashboards Move Tile Partial Update
POSTHOG_DASHBOARDS_MOVE_TILE_PARTIAL_UPDATE
Dashboards Move Tile Partial Update
dashboards
Dashboards Partial Update
POSTHOG_DASHBOARDS_PARTIAL_UPDATE
Dashboards Partial Update
dashboards
Dashboards Reorder Tiles Create
POSTHOG_DASHBOARDS_REORDER_TILES_CREATE
Dashboards Reorder Tiles Create
dashboards
Dashboards Retrieve
POSTHOG_DASHBOARDS_RETRIEVE
Dashboards Retrieve
dashboards
Dashboards Run Insights Retrieve
POSTHOG_DASHBOARDS_RUN_INSIGHTS_RETRIEVE
Run all insights on a dashboard and return their results.
dashboards
Dashboards Run Widgets Retrieve
POSTHOG_DASHBOARDS_RUN_WIDGETS_RETRIEVE
Dashboards Run Widgets Retrieve
dashboards
Dashboards Sharing List
POSTHOG_DASHBOARDS_SHARING_LIST
Dashboards Sharing List
dashboards
Dashboards Sharing Passwords Create
POSTHOG_DASHBOARDS_SHARING_PASSWORDS_CREATE
Create a new password for the sharing configuration.
dashboards
Dashboards Sharing Passwords Destroy
POSTHOG_DASHBOARDS_SHARING_PASSWORDS_DESTROY
Delete a password from the sharing configuration.
dashboards
Dashboards Sharing Refresh Create
POSTHOG_DASHBOARDS_SHARING_REFRESH_CREATE
Dashboards Sharing Refresh Create
dashboards
Dashboards Stream Tiles Retrieve
POSTHOG_DASHBOARDS_STREAM_TILES_RETRIEVE
Stream dashboard metadata and tiles via Server-Sent Events. Sends metadata first, then tiles as they are rendered.
dashboards
Dashboards Update
POSTHOG_DASHBOARDS_UPDATE
Dashboards Update
dashboards
Dashboards Update Text Tile Create
POSTHOG_DASHBOARDS_UPDATE_TEXT_TILE_CREATE
Update the markdown body, layout, or color of an existing text tile on a dashboard.
dashboards
Dashboards Update Widgets Batch
POSTHOG_DASHBOARDS_UPDATE_WIDGETS_BATCH
Update the settings of existing widgets in place, atomically — config, name, and description. Each entry targets a widget by its tile_id and reuses the same write path as the dashboard PATCH endpoint. The widget_type is immutable. This edits widget settings only (config, name, description); tile placement (layouts, show_description) is a dashboard concern — use the dashboard PATCH endpoint or reorder_tiles for that. All updates succeed or fail together. To add new widgets, use the widgets/batch POST endpoint; to remove one, use delete_tile.
dashboards
Dashboards Widgets Batch Create
POSTHOG_DASHBOARDS_WIDGETS_BATCH_CREATE
Add multiple widget tiles to a dashboard in one atomic request.
dashboards
Dashboards Widget Catalog Retrieve
POSTHOG_DASHBOARDS_WIDGET_CATALOG_RETRIEVE
List registered dashboard widget types and per-type config_schema documentation for agents.
dashboards
Copy a team template to this project
POSTHOG_DASHBOARD_TEMPLATES_COPY_BETWEEN_PROJECTS_CREATE
Creates a new team-scoped template in the **target** project (URL) from a **team-scoped** source template in the same organization. Global and feature-flag templates return 400. Cross-organization or inaccessible sources return 404. Source and destination projects must differ (400 if equal). Conflicting `template_name` values on the destination are auto-suffixed with `(copy)`, `(copy 2)`, …
dashboard_templates
Dashboard Templates Create
POSTHOG_DASHBOARD_TEMPLATES_CREATE
Dashboard Templates Create
dashboard_templates
Dashboard Templates Destroy
POSTHOG_DASHBOARD_TEMPLATES_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
dashboard_templates
Dashboard Templates Json Schema Retrieve
POSTHOG_DASHBOARD_TEMPLATES_JSON_SCHEMA_RETRIEVE
Dashboard Templates Json Schema Retrieve
dashboard_templates
Dashboard Templates List
POSTHOG_DASHBOARD_TEMPLATES_LIST
Dashboard Templates List
dashboard_templates
Dashboard Templates Partial Update
POSTHOG_DASHBOARD_TEMPLATES_PARTIAL_UPDATE
Dashboard Templates Partial Update
dashboard_templates
Dashboard Templates Retrieve
POSTHOG_DASHBOARD_TEMPLATES_RETRIEVE
Dashboard Templates Retrieve
dashboard_templates
Dashboard Templates Update
POSTHOG_DASHBOARD_TEMPLATES_UPDATE
Dashboard Templates Update
dashboard_templates
Datasets Create
POSTHOG_DATASETS_CREATE
Datasets Create
datasets
Datasets Destroy
POSTHOG_DATASETS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
datasets
Datasets List
POSTHOG_DATASETS_LIST
Datasets List
datasets
Datasets Partial Update
POSTHOG_DATASETS_PARTIAL_UPDATE
Datasets Partial Update
datasets
Datasets Retrieve
POSTHOG_DATASETS_RETRIEVE
Datasets Retrieve
datasets
Datasets Update
POSTHOG_DATASETS_UPDATE
Datasets Update
datasets
Dataset Items Create
POSTHOG_DATASET_ITEMS_CREATE
Dataset Items Create
dataset_items
Dataset Items Destroy
POSTHOG_DATASET_ITEMS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
dataset_items
Dataset Items List
POSTHOG_DATASET_ITEMS_LIST
Dataset Items List
dataset_items
Dataset Items Partial Update
POSTHOG_DATASET_ITEMS_PARTIAL_UPDATE
Dataset Items Partial Update
dataset_items
Dataset Items Retrieve
POSTHOG_DATASET_ITEMS_RETRIEVE
Dataset Items Retrieve
dataset_items
Dataset Items Update
POSTHOG_DATASET_ITEMS_UPDATE
Dataset Items Update
dataset_items
Data Color Themes Create
POSTHOG_DATA_COLOR_THEMES_CREATE
Data Color Themes Create
data_color_themes
Data Color Themes Destroy
POSTHOG_DATA_COLOR_THEMES_DESTROY
Data Color Themes Destroy
data_color_themes
Data Color Themes List
POSTHOG_DATA_COLOR_THEMES_LIST
Data Color Themes List
data_color_themes
Data Color Themes Partial Update
POSTHOG_DATA_COLOR_THEMES_PARTIAL_UPDATE
Data Color Themes Partial Update
data_color_themes
Data Color Themes Retrieve
POSTHOG_DATA_COLOR_THEMES_RETRIEVE
Data Color Themes Retrieve
data_color_themes
Data Color Themes Update
POSTHOG_DATA_COLOR_THEMES_UPDATE
Data Color Themes Update
data_color_themes
Data Modeling Jobs List
POSTHOG_DATA_MODELING_JOBS_LIST
List data modeling jobs which are "runs" for our saved queries.
data_modeling_jobs
Data Modeling Jobs Recent Retrieve
POSTHOG_DATA_MODELING_JOBS_RECENT_RETRIEVE
Get the most recent non-running job for each saved query from the v2 backend.
data_modeling_jobs
Data Modeling Jobs Retrieve
POSTHOG_DATA_MODELING_JOBS_RETRIEVE
List data modeling jobs which are "runs" for our saved queries.
data_modeling_jobs
Data Modeling Jobs Running Retrieve
POSTHOG_DATA_MODELING_JOBS_RUNNING_RETRIEVE
Get all currently running jobs from the v2 backend.
data_modeling_jobs
Data Warehouse Check Database Name Retrieve
POSTHOG_DATA_WAREHOUSE_CHECK_DATABASE_NAME_RETRIEVE
Check if a database name is available.
data_warehouse
Data Warehouse Completed Activity Retrieve
POSTHOG_DATA_WAREHOUSE_COMPLETED_ACTIVITY_RETRIEVE
Returns completed/non-running activities (jobs with status 'Completed'). Supports pagination and cutoff time filtering.
data_warehouse
Data Warehouse Data Health Issues Retrieve
POSTHOG_DATA_WAREHOUSE_DATA_HEALTH_ISSUES_RETRIEVE
Returns failed/disabled data pipeline items for the Pipeline status side panel. Includes: materializations, syncs, sources, destinations, and transformations.
data_warehouse
Data Warehouse Data Ops Dashboard Retrieve
POSTHOG_DATA_WAREHOUSE_DATA_OPS_DASHBOARD_RETRIEVE
Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet.
data_warehouse
Data Warehouse Delete Org Destroy
POSTHOG_DATA_WAREHOUSE_DELETE_ORG_DESTROY
Remove the organization's provisioning record after teardown, freeing its warehouse name. Called once the warehouse status reports `deleted`: deprovision tears the warehouse down, this removes the now-empty org row so the database_name can be reused. Restricted to organization admins.
data_warehouse
Data Warehouse Deprovision Create
POSTHOG_DATA_WAREHOUSE_DEPROVISION_CREATE
Start deprovisioning the organization's managed warehouse. Restricted to organization admins.
data_warehouse
Data Warehouse Enable Backfill Create
POSTHOG_DATA_WAREHOUSE_ENABLE_BACKFILL_CREATE
Enable warehouse backfill for this environment with a dedicated set of tables. Requires a table name and records the environment's membership in the organization's managed warehouse. Restricted to organization admins.
data_warehouse
Data Warehouse Job Stats Retrieve
POSTHOG_DATA_WAREHOUSE_JOB_STATS_RETRIEVE
Returns success and failed job statistics for the last 1, 7, or 30 days. Query parameter 'days' can be 1, 7, or 30 (default: 7).
data_warehouse
Data Warehouse Property Values Retrieve
POSTHOG_DATA_WAREHOUSE_PROPERTY_VALUES_RETRIEVE
API endpoints for data warehouse aggregate statistics and operations.
data_warehouse
Data Warehouse Provision Create
POSTHOG_DATA_WAREHOUSE_PROVISION_CREATE
Start provisioning a managed warehouse for this organization (shared by all its teams).
data_warehouse
Data Warehouse Reset Password Create
POSTHOG_DATA_WAREHOUSE_RESET_PASSWORD_CREATE
Reset the root password for the managed warehouse.
data_warehouse
Data Warehouse Running Activity Retrieve
POSTHOG_DATA_WAREHOUSE_RUNNING_ACTIVITY_RETRIEVE
Returns currently running activities (jobs with status 'Running'). Supports pagination and cutoff time filtering.
data_warehouse
Data Warehouse Total Rows Stats Retrieve
POSTHOG_DATA_WAREHOUSE_TOTAL_ROWS_STATS_RETRIEVE
Returns aggregated statistics for the data warehouse total rows processed within the current billing period. Used by the frontend data warehouse scene to display usage information.
data_warehouse
Data Warehouse Warehouse Status Retrieve
POSTHOG_DATA_WAREHOUSE_WAREHOUSE_STATUS_RETRIEVE
Get the current provisioning status of the managed warehouse, with this project's backfill state.
data_warehouse
Desktop File System Canvas Partial Update
POSTHOG_DESKTOP_FILE_SYSTEM_CANVAS_PARTIAL_UPDATE
Publish a new version of a freeform canvas's React source. Merges into the dashboard row's `meta` (never replaces it), so existing keys like `channelId`/`templateId` survive. Appends a full-file version snapshot and points `currentVersionId` at it — the server-side mirror of the app's dashboardsService.saveFreeform.
desktop_file_system
Desktop File System Context Generation Retrieve
POSTHOG_DESKTOP_FILE_SYSTEM_CONTEXT_GENERATION_RETRIEVE
Return the Task currently generating this folder's CONTEXT.md, or null if none.
desktop_file_system
Desktop File System Context Generation Update
POSTHOG_DESKTOP_FILE_SYSTEM_CONTEXT_GENERATION_UPDATE
Set or clear the Task associated with this folder's CONTEXT.md generation.
desktop_file_system
Desktop File System Count By Path Create
POSTHOG_DESKTOP_FILE_SYSTEM_COUNT_BY_PATH_CREATE
Get count of all files in a folder.
desktop_file_system
Desktop File System Count Create
POSTHOG_DESKTOP_FILE_SYSTEM_COUNT_CREATE
Get count of all files in a folder.
desktop_file_system
Desktop File System Create
POSTHOG_DESKTOP_FILE_SYSTEM_CREATE
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Desktop File System Destroy
POSTHOG_DESKTOP_FILE_SYSTEM_DESTROY
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Desktop File System Instructions Destroy
POSTHOG_DESKTOP_FILE_SYSTEM_INSTRUCTIONS_DESTROY
Soft-delete every version of this folder's instructions.
desktop_file_system
Desktop File System Instructions Partial Update
POSTHOG_DESKTOP_FILE_SYSTEM_INSTRUCTIONS_PARTIAL_UPDATE
Publish a new version of the folder's instructions.
desktop_file_system
Desktop File System Instructions Retrieve
POSTHOG_DESKTOP_FILE_SYSTEM_INSTRUCTIONS_RETRIEVE
Return the latest non-deleted instructions for this folder.
desktop_file_system
Desktop File System Instructions Update
POSTHOG_DESKTOP_FILE_SYSTEM_INSTRUCTIONS_UPDATE
Publish a new version of the folder's instructions.
desktop_file_system
Desktop File System Instructions Versions List
POSTHOG_DESKTOP_FILE_SYSTEM_INSTRUCTIONS_VERSIONS_LIST
List the version history for this folder's instructions, newest first.
desktop_file_system
Desktop File System List
POSTHOG_DESKTOP_FILE_SYSTEM_LIST
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Desktop File System Log View Create
POSTHOG_DESKTOP_FILE_SYSTEM_LOG_VIEW_CREATE
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Desktop File System Log View Retrieve
POSTHOG_DESKTOP_FILE_SYSTEM_LOG_VIEW_RETRIEVE
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Desktop File System Move Create
POSTHOG_DESKTOP_FILE_SYSTEM_MOVE_CREATE
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Desktop File System Partial Update
POSTHOG_DESKTOP_FILE_SYSTEM_PARTIAL_UPDATE
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Desktop File System Retrieve
POSTHOG_DESKTOP_FILE_SYSTEM_RETRIEVE
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Desktop File System Shortcut Create
POSTHOG_DESKTOP_FILE_SYSTEM_SHORTCUT_CREATE
Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface.
desktop_file_system_shortcut
Desktop File System Shortcut Destroy
POSTHOG_DESKTOP_FILE_SYSTEM_SHORTCUT_DESTROY
Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface.
desktop_file_system_shortcut
Desktop File System Shortcut List
POSTHOG_DESKTOP_FILE_SYSTEM_SHORTCUT_LIST
Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface.
desktop_file_system_shortcut
Desktop File System Shortcut Partial Update
POSTHOG_DESKTOP_FILE_SYSTEM_SHORTCUT_PARTIAL_UPDATE
Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface.
desktop_file_system_shortcut
Desktop File System Shortcut Reorder Create
POSTHOG_DESKTOP_FILE_SYSTEM_SHORTCUT_REORDER_CREATE
Set the display order of the current user's shortcuts. `ordered_ids` becomes the new top-to-bottom order; any unknown IDs are rejected.
desktop_file_system_shortcut
Desktop File System Shortcut Retrieve
POSTHOG_DESKTOP_FILE_SYSTEM_SHORTCUT_RETRIEVE
Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface.
desktop_file_system_shortcut
Desktop File System Shortcut Update
POSTHOG_DESKTOP_FILE_SYSTEM_SHORTCUT_UPDATE
Sidebar shortcuts for the desktop product surface. Reuses all FileSystemShortcutViewSet behaviour but is scoped to the "desktop" surface, so its shortcuts are fully isolated from the default "web" surface.
desktop_file_system_shortcut
Desktop File System Undo Delete Create
POSTHOG_DESKTOP_FILE_SYSTEM_UNDO_DELETE_CREATE
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Desktop File System Unfiled Retrieve
POSTHOG_DESKTOP_FILE_SYSTEM_UNFILED_RETRIEVE
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Desktop File System Update
POSTHOG_DESKTOP_FILE_SYSTEM_UPDATE
The file tree for the desktop product surface. Reuses all FileSystemViewSet behaviour but is scoped to the "desktop" surface, so its tree is fully isolated from the default "web" tree. Adds per-folder, versioned markdown instructions describing the contents of a folder.
desktop_file_system
Destroy
POSTHOG_DESTROY
Destroy
organizationsorganizations
Domains Create
POSTHOG_DOMAINS_CREATE
Domains Create
organizationsdomains
Domains Destroy
POSTHOG_DOMAINS_DESTROY
Domains Destroy
organizationsdomains
Domains List
POSTHOG_DOMAINS_LIST
Domains List
organizationsdomains
Domains Partial Update
POSTHOG_DOMAINS_PARTIAL_UPDATE
Domains Partial Update
organizationsdomains
Domains Retrieve
POSTHOG_DOMAINS_RETRIEVE
Domains Retrieve
organizationsdomains
Domains Scim Logs Retrieve
POSTHOG_DOMAINS_SCIM_LOGS_RETRIEVE
Domains Scim Logs Retrieve
organizationsdomains
Domains Scim Token Create
POSTHOG_DOMAINS_SCIM_TOKEN_CREATE
Regenerate SCIM bearer token.
organizationsdomains
Domains Update
POSTHOG_DOMAINS_UPDATE
Domains Update
organizationsdomains
Domains Verify Create
POSTHOG_DOMAINS_VERIFY_CREATE
Domains Verify Create
organizationsdomains
Early Access Feature Create
POSTHOG_EARLY_ACCESS_FEATURE_CREATE
Early Access Feature Create
early_access_feature
Early Access Feature Destroy
POSTHOG_EARLY_ACCESS_FEATURE_DESTROY
Early Access Feature Destroy
early_access_feature
Early Access Feature List
POSTHOG_EARLY_ACCESS_FEATURE_LIST
Early Access Feature List
early_access_feature
Early Access Feature Partial Update
POSTHOG_EARLY_ACCESS_FEATURE_PARTIAL_UPDATE
Early Access Feature Partial Update
early_access_feature
Early Access Feature Retrieve
POSTHOG_EARLY_ACCESS_FEATURE_RETRIEVE
Early Access Feature Retrieve
early_access_feature
Early Access Feature Update
POSTHOG_EARLY_ACCESS_FEATURE_UPDATE
Early Access Feature Update
early_access_feature
Elements Create
POSTHOG_ELEMENTS_CREATE
Elements Create
elements
Elements Destroy
POSTHOG_ELEMENTS_DESTROY
Elements Destroy
elements
Elements List
POSTHOG_ELEMENTS_LIST
Elements List
elements
Elements Partial Update
POSTHOG_ELEMENTS_PARTIAL_UPDATE
Elements Partial Update
elements
Elements Retrieve
POSTHOG_ELEMENTS_RETRIEVE
Elements Retrieve
elements
Elements Stats Retrieve
POSTHOG_ELEMENTS_STATS_RETRIEVE
Counts of $autocapture, $rageclick, and $dead_click events grouped by the element chain they occurred on, ordered by count. Defaults to all three event types; narrow with the include parameter.
elements
Elements Update
POSTHOG_ELEMENTS_UPDATE
Elements Update
elements
Elements Values List
POSTHOG_ELEMENTS_VALUES_LIST
Elements Values List
elements
Endpoints Create
POSTHOG_ENDPOINTS_CREATE
Create a new endpoint.
endpoints
Endpoints Destroy
POSTHOG_ENDPOINTS_DESTROY
Delete an endpoint and clean up materialized query.
endpoints
Endpoints Last Execution Times Create
POSTHOG_ENDPOINTS_LAST_EXECUTION_TIMES_CREATE
Get the most recent execution time per endpoint (endpoint-level). Timestamps are recorded by the run path for personal-API-key calls. For per-version usage, query the query_log table directly.
endpoints
Endpoints List
POSTHOG_ENDPOINTS_LIST
List all endpoints for the team.
endpoints
Endpoints Logs Retrieve
POSTHOG_ENDPOINTS_LOGS_RETRIEVE
Endpoints Logs Retrieve
endpoints
Endpoints Materialization Conditions Retrieve
POSTHOG_ENDPOINTS_MATERIALIZATION_CONDITIONS_RETRIEVE
Get the source code of the live materialization checks, plus the rewrite contract. Lets an agent rewrite a rejected endpoint query itself: fetch these conditions, produce a semantically equivalent query that passes every check, update the endpoint with it, then confirm via materialization_status. The source is read from the running system, so it always matches the checks this instance enforces.
endpoints
Endpoints Materialization Preview Create
POSTHOG_ENDPOINTS_MATERIALIZATION_PREVIEW_CREATE
Preview the materialization transform for an endpoint. Shows what the query will look like after materialization, including range pair detection and bucket functions.
endpoints
Endpoints Materialization Status Retrieve
POSTHOG_ENDPOINTS_MATERIALIZATION_STATUS_RETRIEVE
Get materialization status for an endpoint. Supports ?version=N query param.
endpoints
Endpoints Materialization Suggestion Create
POSTHOG_ENDPOINTS_MATERIALIZATION_SUGGESTION_CREATE
Ask AI to rewrite the endpoint's query into a semantically equivalent form that can be materialized. Only applicable to SQL (HogQL) endpoints that currently fail the materialization checks. The suggestion is validated against the live checks before being returned; nothing is saved. Requires the organization's AI data processing approval.
endpoints
Endpoints Openapi Spec Retrieve
POSTHOG_ENDPOINTS_OPENAPI_SPEC_RETRIEVE
Get OpenAPI 3.0 specification for this endpoint. Use this to generate typed SDK clients.
endpoints
Endpoints Partial Update
POSTHOG_ENDPOINTS_PARTIAL_UPDATE
Update an existing endpoint.
endpoints
Endpoints Retrieve
POSTHOG_ENDPOINTS_RETRIEVE
Retrieve an endpoint, or a specific version via ?version=N.
endpoints
Endpoints Run Create
POSTHOG_ENDPOINTS_RUN_CREATE
Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set.
endpoints
Endpoints Run Retrieve
POSTHOG_ENDPOINTS_RUN_RETRIEVE
Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set.
endpoints
Endpoints Update
POSTHOG_ENDPOINTS_UPDATE
Update an existing endpoint. Parameters are optional. Pass version in body or ?version=N query param to target a specific version.
endpoints
Endpoints Versions List
POSTHOG_ENDPOINTS_VERSIONS_LIST
List all versions for an endpoint.
endpoints
Engineering Analytics Author Workflow Costs
POSTHOG_ENGINEERING_ANALYTICS_AUTHOR_WORKFLOW_COSTS
One author's estimated CI cost split by workflow over a window (date_from default -30d), highest spend first. Runs are attributed to the author through their pull requests (attribution is by PR number). Returns an empty list when the job-level source isn't synced.
engineering_analyticsengineering_analytics
Engineering Analytics Ci Cards
POSTHOG_ENGINEERING_ANALYTICS_CI_CARDS
Headline counts for the open-PR backlog: open PRs, distinct repos, stuck PRs (open, non-draft, non-bot, older than 7 days), and PRs with failing CI. The failing-CI count rests on the head-SHA join and can lag until late CI completions settle.
engineering_analyticsengineering_analytics
Engineering Analytics Ci Failure Logs
POSTHOG_ENGINEERING_ANALYTICS_CI_FAILURE_LOGS
The thinned CI failure logs for a pull request, grouped by failed job. Resolves the PR to its workflow runs via the pull_requests association (all of the PR's pushes, not just the latest commit), then reads the Logs product joined on run_id. Returns failed jobs only (the worker fetches logs for failures); logs_available is false when CI hasn't failed, the logs aged out of the short Logs retention, or a fork PR has no run association. Each line carries its original 1-based line number in the full pre-thinning log; lines are the failure region (errors plus surrounding context, with omission markers), capped per job and overall.
engineering_analyticsengineering_analytics
Engineering Analytics Flaky Tests
POSTHOG_ENGINEERING_ANALYTICS_FLAKY_TESTS
The flaky-test leaderboard: backend tests ranked by flakiness signal from the per-test CI spans, over a window (default -7d, maximum 30 days). A test qualifies by passing on retry at least min_rerun_passes times OR failing on at least min_failed_prs distinct PRs. All figures are absolute counts, never rates: fast passing runs are not emitted, so denominators are biased. Pass-on-retry counts only flow from CI lanes running with reruns enabled; in other lanes a flake surfaces as a plain failure, which the distinct-PR count catches.
engineering_analyticsengineering_analytics
Engineering Analytics Job Aggregates
POSTHOG_ENGINEERING_ANALYTICS_JOB_AGGREGATES
Per-job aggregates for one workflow over a window (default -30d), one row per de-sharded job name (matrix shards aggregate together), busiest first: queue p50, duration p50/p95, failure rate, retry pressure, run share (below 1.0 = conditional job), and billable cost. Jobs always need their run as context — this is the aggregate view; use workflow_jobs for one run's jobs. Empty when the job-level source isn't synced.
engineering_analyticsengineering_analytics
Engineering Analytics Master Failures
POSTHOG_ENGINEERING_ANALYTICS_MASTER_FAILURES
Default-branch failures over a window (default -24h), grouped error-tracking style by (workflow, de-sharded failing job) with a run count and first/last seen, newest group first. `branch` overrides the detected default branch. PR-branch failures are deliberately excluded — at monorepo volume a flat feed is a firehose; those surface per PR. Groups degrade to workflow level (failed_job '') when the job-level source isn't synced.
engineering_analyticsengineering_analytics
Engineering Analytics Pr Cost
POSTHOG_ENGINEERING_ANALYTICS_PR_COST
Estimated CI cost for a pull request, summed over the jobs of all its workflow runs. Billable self-hosted Linux runners only — provider-hosted (free GitHub-hosted) and non-Linux jobs are excluded. Every figure is zero/null with `jobs_available` false when the job-level source isn't synced yet.
engineering_analyticsengineering_analytics
Engineering Analytics Pr Lifecycle
POSTHOG_ENGINEERING_ANALYTICS_PR_LIFECYCLE
The timeline of a single pull request: header plus ordered events (opened, CI started/finished, merged or closed). Use this to answer 'where is this PR stuck and what happened to it'. This is a partial view: review and comment events are not yet available.
engineering_analyticsengineering_analytics
Engineering Analytics Pr Runs
POSTHOG_ENGINEERING_ANALYTICS_PR_RUNS
Every workflow run attributed to a pull request, across all its commits (grouped by head SHA client-side), newest first. Run-level only.
engineering_analyticsengineering_analytics
Engineering Analytics Pull Requests
POSTHOG_ENGINEERING_ANALYTICS_PULL_REQUESTS
Open pull requests plus any merged or closed since date_from (default -30d), newest first, each with its head-SHA CI rollup. The list is capped; when more match, `truncated` is true and the ci_cards counts can exceed it. open_to_merge_seconds is coarse — it fuses draft and ready-for-review time; CI counts can lag until late completions settle.
engineering_analyticsengineering_analytics
Flaky-test quarantine file
POSTHOG_ENGINEERING_ANALYTICS_QUARANTINE
The repository's checked-in .test_quarantine.json: flaky tests temporarily quarantined with a hard expiry, classified by urgency (overdue, in grace, expiring soon, active). `available` is false when the repo has no quarantine file — that is not an error. Parsing is fail-open: malformed entries are reported in parse_errors while well-formed ones are kept.
engineering_analyticsengineering_analytics
Quarantine, extend, or unquarantine a flaky test
POSTHOG_ENGINEERING_ANALYTICS_QUARANTINE_REQUEST
Opens a pull request that edits the repository's checked-in .test_quarantine.json — and, for a new quarantine, a tracking issue the PR links but does not close. The file stays the source of truth that CI enforces; this never bypasses it. A quarantine only affects CI runs that start after the PR merges.
engineering_analyticsengineering_analytics
Engineering Analytics Repo Overview
POSTHOG_ENGINEERING_ANALYTICS_REPO_OVERVIEW
Repo-level headline aggregates over a window (default -30d): run count, success rate, re-run cycles, median PR open-to-merge (bots and drafts excluded; coarse — draft and ready time fused), and billable minutes + estimated cost — each with its equal-length previous-window twin so a caller can render honest deltas. Also carries the detected default branch and its completed-run history series. Cost figures are null until the job-level source is synced.
engineering_analyticsengineering_analytics
Engineering Analytics Repo Run Activity
POSTHOG_ENGINEERING_ANALYTICS_REPO_RUN_ACTIVITY
Default-branch health as compact chart points over a window (default -30d), newest first, for the repo-hub run-activity chart. All of a commit's workflow runs are collapsed into ONE point per commit (head SHA): its earliest workflow start, wall-clock duration until the last workflow settled (null while any is still running), and an overall conclusion that is 'failure' if any workflow decisively failed, else 'success' when at least one passed, else 'neutral'. `branch` overrides the detected default branch. `truncated` is true when more commits matched than the cap, so the chart covers only the most recent commits.
engineering_analyticsengineering_analytics
Engineering Analytics Run Failure Logs
POSTHOG_ENGINEERING_ANALYTICS_RUN_FAILURE_LOGS
The thinned CI failure logs of one workflow run, grouped by failed job — the run-scoped twin of ci_failure_logs for surfaces that aren't PR-scoped (default-branch failures, the run page). logs_available is false when the run didn't fail or its logs aged out of the short Logs retention.
engineering_analyticsengineering_analytics
Engineering Analytics Sources
POSTHOG_ENGINEERING_ANALYTICS_SOURCES
The team's connected GitHub data warehouse sources, oldest first. Populate a source picker from this and pass a chosen `id` back as `source_id` to the other endpoints. A team can connect GitHub more than once (e.g. one source per repository); this lists them all, including any whose tables aren't fully synced yet.
engineering_analyticsengineering_analytics
Engineering Analytics Workflow Health
POSTHOG_ENGINEERING_ANALYTICS_WORKFLOW_HEALTH
Per-workflow CI health over a window (default last 24 hours, maximum 366 days): run count, success rate, p50/p95 duration over completed runs, last failure time, latest-run status, and a zero-filled run history bucketed by hour/day/week to fit the window. Optionally scope to a single git branch via `branch`. Use this for 'is CI getting slower' and 'which workflow is the long pole'; compare two windows to get a trend.
engineering_analyticsengineering_analytics
Engineering Analytics Workflow Jobs
POSTHOG_ENGINEERING_ANALYTICS_WORKFLOW_JOBS
Jobs of a single workflow run attempt, with per-job duration, runner tier, and estimated cost. Scoped to one run_attempt (the latest unless specified) so a re-run's attempts don't merge. Returns an empty list when the job-level source isn't synced yet.
engineering_analyticsengineering_analytics
Engineering Analytics Workflow Run
POSTHOG_ENGINEERING_ANALYTICS_WORKFLOW_RUN
A single workflow run: status, conclusion, duration, branch, attempt, and the attributed pull request. Run-level only — per-job and per-step detail are not tracked yet.
engineering_analyticsengineering_analytics
Engineering Analytics Workflow Runner Costs
POSTHOG_ENGINEERING_ANALYTICS_WORKFLOW_RUNNER_COSTS
A workflow's estimated CI cost broken down by runner tier over a window (date_from default -30d), highest spend first. Optionally scope to a single git branch via `branch`. Returns an empty list when the job-level source isn't synced.
engineering_analyticsengineering_analytics
Engineering Analytics Workflow Runs
POSTHOG_ENGINEERING_ANALYTICS_WORKFLOW_RUNS
Runs of a single workflow within a repo over a window (date_from default -30d), newest first. Optionally scope to a single git branch via `branch`. Each row is run-level — per-job and per-step detail are not tracked yet. Use this as the GitHub 'workflow' page between the workflow list and a single run.
engineering_analyticsengineering_analytics
Engineering Analytics Workflow Run Activity
POSTHOG_ENGINEERING_ANALYTICS_WORKFLOW_RUN_ACTIVITY
Compact per-run points for a single workflow over a window (date_from default -30d), newest first, for the run-activity chart: each run's start time, duration, conclusion, branch, and attributed PR. Optionally scope to a single git branch via `branch`, matching workflow_runs. Leaner and higher-capped than workflow_runs so the chart spans the full window even on busy workflows; `truncated` is true when the cap is hit, so the chart covers only the most recent runs.
engineering_analyticsengineering_analytics
Environments Accounts Create
POSTHOG_ENVIRONMENTS_ACCOUNTS_CREATE
Environments Accounts Create
accounts
Environments Accounts Destroy
POSTHOG_ENVIRONMENTS_ACCOUNTS_DESTROY
Environments Accounts Destroy
accounts
Environments Accounts List
POSTHOG_ENVIRONMENTS_ACCOUNTS_LIST
Environments Accounts List
accounts
Environments Accounts Notebooks Create
POSTHOG_ENVIRONMENTS_ACCOUNTS_NOTEBOOKS_CREATE
Environments Accounts Notebooks Create
customer_analyticsaccounts
Environments Accounts Notebooks Destroy
POSTHOG_ENVIRONMENTS_ACCOUNTS_NOTEBOOKS_DESTROY
Environments Accounts Notebooks Destroy
customer_analyticsaccounts
Environments Accounts Notebooks List
POSTHOG_ENVIRONMENTS_ACCOUNTS_NOTEBOOKS_LIST
Environments Accounts Notebooks List
customer_analyticsaccounts
Environments Accounts Notebooks Retrieve
POSTHOG_ENVIRONMENTS_ACCOUNTS_NOTEBOOKS_RETRIEVE
Environments Accounts Notebooks Retrieve
customer_analyticsaccounts
Environments Accounts Partial Update
POSTHOG_ENVIRONMENTS_ACCOUNTS_PARTIAL_UPDATE
Environments Accounts Partial Update
accounts
Environments Accounts Retrieve
POSTHOG_ENVIRONMENTS_ACCOUNTS_RETRIEVE
Environments Accounts Retrieve
accounts
Environments Accounts Update
POSTHOG_ENVIRONMENTS_ACCOUNTS_UPDATE
Environments Accounts Update
accounts
Environments Activity Retrieve
POSTHOG_ENVIRONMENTS_ACTIVITY_RETRIEVE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Add Product Intent Partial Update
POSTHOG_ENVIRONMENTS_ADD_PRODUCT_INTENT_PARTIAL_UPDATE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Alerts Create
POSTHOG_ENVIRONMENTS_ALERTS_CREATE
Environments Alerts Create
alerts
Environments Alerts Destroy
POSTHOG_ENVIRONMENTS_ALERTS_DESTROY
Environments Alerts Destroy
alerts
Environments Alerts List
POSTHOG_ENVIRONMENTS_ALERTS_LIST
Environments Alerts List
alerts
Environments Alerts Partial Update
POSTHOG_ENVIRONMENTS_ALERTS_PARTIAL_UPDATE
Environments Alerts Partial Update
alerts
Environments Alerts Retrieve
POSTHOG_ENVIRONMENTS_ALERTS_RETRIEVE
Environments Alerts Retrieve
alerts
Environments Alerts Simulate Create
POSTHOG_ENVIRONMENTS_ALERTS_SIMULATE_CREATE
Simulate a detector on an insight's historical data. Read-only — no AlertCheck records are created.
alerts
Environments Alerts Update
POSTHOG_ENVIRONMENTS_ALERTS_UPDATE
Environments Alerts Update
alerts
Environments Approval Policies Create
POSTHOG_ENVIRONMENTS_APPROVAL_POLICIES_CREATE
Environments Approval Policies Create
platform_featuresapproval_policies
Environments Approval Policies Destroy
POSTHOG_ENVIRONMENTS_APPROVAL_POLICIES_DESTROY
Environments Approval Policies Destroy
platform_featuresapproval_policies
Environments Approval Policies List
POSTHOG_ENVIRONMENTS_APPROVAL_POLICIES_LIST
Environments Approval Policies List
platform_featuresapproval_policies
Environments Approval Policies Partial Update
POSTHOG_ENVIRONMENTS_APPROVAL_POLICIES_PARTIAL_UPDATE
Environments Approval Policies Partial Update
platform_featuresapproval_policies
Environments Approval Policies Retrieve
POSTHOG_ENVIRONMENTS_APPROVAL_POLICIES_RETRIEVE
Environments Approval Policies Retrieve
platform_featuresapproval_policies
Environments Approval Policies Update
POSTHOG_ENVIRONMENTS_APPROVAL_POLICIES_UPDATE
Environments Approval Policies Update
platform_featuresapproval_policies
Environments Batch Exports Backfills Cancel Create
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_BACKFILLS_CANCEL_CREATE
Cancel a batch export backfill.
batch_exports
Environments Batch Exports Backfills Create
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_BACKFILLS_CREATE
Create a new backfill for a BatchExport.
batch_exports
Environments Batch Exports Backfills List
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_BACKFILLS_LIST
ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them.
batch_exports
Environments Batch Exports Backfills Retrieve
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_BACKFILLS_RETRIEVE
ViewSet for BatchExportBackfill models. Allows creating and reading backfills, but not updating or deleting them.
batch_exports
Environments Batch Exports Create
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_CREATE
Environments Batch Exports Create
batch_exportsbatch_exports
Environments Batch Exports Destroy
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_DESTROY
Environments Batch Exports Destroy
batch_exportsbatch_exports
Environments Batch Exports List
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_LIST
Environments Batch Exports List
batch_exportsbatch_exports
Environments Batch Exports Logs Retrieve
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_LOGS_RETRIEVE
Environments Batch Exports Logs Retrieve
batch_exportsbatch_exports
Environments Batch Exports Partial Update
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_PARTIAL_UPDATE
Environments Batch Exports Partial Update
batch_exportsbatch_exports
Environments Batch Exports Pause Create
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_PAUSE_CREATE
Pause a BatchExport.
batch_exportsbatch_exports
Environments Batch Exports Retrieve
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_RETRIEVE
Environments Batch Exports Retrieve
batch_exportsbatch_exports
Environments Batch Exports Runs Cancel Create
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_RUNS_CANCEL_CREATE
Cancel a batch export run.
batch_exportsbatch_exports
Environments Batch Exports Runs List
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_RUNS_LIST
Environments Batch Exports Runs List
batch_exportsbatch_exports
Environments Batch Exports Runs Logs Retrieve
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_RUNS_LOGS_RETRIEVE
Environments Batch Exports Runs Logs Retrieve
batch_exportsbatch_exports
Environments Batch Exports Runs Retrieve
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_RUNS_RETRIEVE
Environments Batch Exports Runs Retrieve
batch_exportsbatch_exports
Environments Batch Exports Runs Retry Create
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_RUNS_RETRY_CREATE
Retry a batch export run. We use the same underlying mechanism as when backfilling a batch export, as retrying a run is the same as backfilling one run.
batch_exportsbatch_exports
Environments Batch Exports Run Test Step Create
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_RUN_TEST_STEP_CREATE
Environments Batch Exports Run Test Step Create
batch_exportsbatch_exports
Environments Batch Exports Run Test Step New Create
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_RUN_TEST_STEP_NEW_CREATE
Environments Batch Exports Run Test Step New Create
batch_exportsbatch_exports
Environments Batch Exports Test Retrieve
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_TEST_RETRIEVE
Environments Batch Exports Test Retrieve
batch_exportsbatch_exports
Environments Batch Exports Unpause Create
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_UNPAUSE_CREATE
Unpause a BatchExport.
batch_exportsbatch_exports
Environments Batch Exports Update
POSTHOG_ENVIRONMENTS_BATCH_EXPORTS_UPDATE
Environments Batch Exports Update
batch_exportsbatch_exports
Environments Change Requests Approve Create
POSTHOG_ENVIRONMENTS_CHANGE_REQUESTS_APPROVE_CREATE
Approve a change request. If quorum is reached, automatically applies the change immediately.
platform_featureschange_requests
Environments Change Requests Cancel Create
POSTHOG_ENVIRONMENTS_CHANGE_REQUESTS_CANCEL_CREATE
Cancel a change request. Only the requester can cancel their own pending change request.
platform_featureschange_requests
Environments Change Requests List
POSTHOG_ENVIRONMENTS_CHANGE_REQUESTS_LIST
Environments Change Requests List
platform_featureschange_requests
Environments Change Requests Reject Create
POSTHOG_ENVIRONMENTS_CHANGE_REQUESTS_REJECT_CREATE
Reject a change request.
platform_featureschange_requests
Environments Change Requests Retrieve
POSTHOG_ENVIRONMENTS_CHANGE_REQUESTS_RETRIEVE
Environments Change Requests Retrieve
platform_featureschange_requests
Environments Complete Product Onboarding Partial Update
POSTHOG_ENVIRONMENTS_COMPLETE_PRODUCT_ONBOARDING_PARTIAL_UPDATE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Conversations Append Message Create
POSTHOG_ENVIRONMENTS_CONVERSATIONS_APPEND_MESSAGE_CREATE
Appends a message to an existing conversation without triggering AI processing. This is used for client-side generated messages that need to be persisted (e.g., support ticket confirmation messages).
maxconversations
Environments Conversations Cancel Partial Update
POSTHOG_ENVIRONMENTS_CONVERSATIONS_CANCEL_PARTIAL_UPDATE
Cancel the conversation's in-progress LangGraph run.
maxconversations
Environments Conversations Create
POSTHOG_ENVIRONMENTS_CONVERSATIONS_CREATE
Unified endpoint that handles both conversation creation and streaming. - If message is provided: Start new conversation processing - If no message: Stream from existing conversation
maxconversations
Environments Conversations Destroy
POSTHOG_ENVIRONMENTS_CONVERSATIONS_DESTROY
Delete a conversation.
maxconversations
Environments Conversations List
POSTHOG_ENVIRONMENTS_CONVERSATIONS_LIST
Environments Conversations List
maxconversations
Environments Conversations Open Create
POSTHOG_ENVIRONMENTS_CONVERSATIONS_OPEN_CREATE
Create-or-resume a sandbox conversation — the single sandbox session opener. With `content`, processes the turn (first message, in-progress follow-up, or terminal resume); without `content`, warms a sandbox that idles awaiting the first message. Returns the `(task, run)` handle the frontend opens SSE against. The conversation row is created on first use from the URL id.
maxconversations
Environments Conversations Queue Clear Create
POSTHOG_ENVIRONMENTS_CONVERSATIONS_QUEUE_CLEAR_CREATE
Environments Conversations Queue Clear Create
maxconversations
Environments Conversations Queue Create
POSTHOG_ENVIRONMENTS_CONVERSATIONS_QUEUE_CREATE
Environments Conversations Queue Create
maxconversations
Environments Conversations Queue Destroy
POSTHOG_ENVIRONMENTS_CONVERSATIONS_QUEUE_DESTROY
Environments Conversations Queue Destroy
maxconversations
Environments Conversations Queue Partial Update
POSTHOG_ENVIRONMENTS_CONVERSATIONS_QUEUE_PARTIAL_UPDATE
Environments Conversations Queue Partial Update
maxconversations
Environments Conversations Queue Retrieve
POSTHOG_ENVIRONMENTS_CONVERSATIONS_QUEUE_RETRIEVE
Environments Conversations Queue Retrieve
maxconversations
Environments Conversations Retrieve
POSTHOG_ENVIRONMENTS_CONVERSATIONS_RETRIEVE
Environments Conversations Retrieve
maxconversations
Environments Conversations Views Create
POSTHOG_ENVIRONMENTS_CONVERSATIONS_VIEWS_CREATE
Environments Conversations Views Create
conversations
Environments Conversations Views Destroy
POSTHOG_ENVIRONMENTS_CONVERSATIONS_VIEWS_DESTROY
Environments Conversations Views Destroy
conversations
Environments Conversations Views List
POSTHOG_ENVIRONMENTS_CONVERSATIONS_VIEWS_LIST
Environments Conversations Views List
conversations
Environments Conversations Views Retrieve
POSTHOG_ENVIRONMENTS_CONVERSATIONS_VIEWS_RETRIEVE
Environments Conversations Views Retrieve
conversations
Environments Create
POSTHOG_ENVIRONMENTS_CREATE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Create Session Summaries
POSTHOG_ENVIRONMENTS_CREATE_SESSION_SUMMARIES
Generate AI summary for a group of session recordings to find patterns and generate a notebook.
session_summaries
Environments Create Session Summaries Individually
POSTHOG_ENVIRONMENTS_CREATE_SESSION_SUMMARIES_INDIVIDUALLY
Generate AI individual summary for each session, without grouping.
replaysession_summaries
Environments Customer Journeys Create
POSTHOG_ENVIRONMENTS_CUSTOMER_JOURNEYS_CREATE
Environments Customer Journeys Create
customer_journeys
Environments Customer Journeys Destroy
POSTHOG_ENVIRONMENTS_CUSTOMER_JOURNEYS_DESTROY
Environments Customer Journeys Destroy
customer_journeys
Environments Customer Journeys List
POSTHOG_ENVIRONMENTS_CUSTOMER_JOURNEYS_LIST
Environments Customer Journeys List
customer_journeys
Environments Customer Journeys Partial Update
POSTHOG_ENVIRONMENTS_CUSTOMER_JOURNEYS_PARTIAL_UPDATE
Environments Customer Journeys Partial Update
customer_journeys
Environments Customer Journeys Retrieve
POSTHOG_ENVIRONMENTS_CUSTOMER_JOURNEYS_RETRIEVE
Environments Customer Journeys Retrieve
customer_journeys
Environments Customer Journeys Update
POSTHOG_ENVIRONMENTS_CUSTOMER_JOURNEYS_UPDATE
Environments Customer Journeys Update
customer_journeys
Environments Customer Profile Configs Create
POSTHOG_ENVIRONMENTS_CUSTOMER_PROFILE_CONFIGS_CREATE
Environments Customer Profile Configs Create
customer_profile_configs
Environments Customer Profile Configs Destroy
POSTHOG_ENVIRONMENTS_CUSTOMER_PROFILE_CONFIGS_DESTROY
Environments Customer Profile Configs Destroy
customer_profile_configs
Environments Customer Profile Configs List
POSTHOG_ENVIRONMENTS_CUSTOMER_PROFILE_CONFIGS_LIST
Environments Customer Profile Configs List
customer_profile_configs
Environments Customer Profile Configs Partial Update
POSTHOG_ENVIRONMENTS_CUSTOMER_PROFILE_CONFIGS_PARTIAL_UPDATE
Environments Customer Profile Configs Partial Update
customer_profile_configs
Environments Customer Profile Configs Retrieve
POSTHOG_ENVIRONMENTS_CUSTOMER_PROFILE_CONFIGS_RETRIEVE
Environments Customer Profile Configs Retrieve
customer_profile_configs
Environments Customer Profile Configs Update
POSTHOG_ENVIRONMENTS_CUSTOMER_PROFILE_CONFIGS_UPDATE
Environments Customer Profile Configs Update
customer_profile_configs
Environments Custom Property Definitions Create
POSTHOG_ENVIRONMENTS_CUSTOM_PROPERTY_DEFINITIONS_CREATE
Environments Custom Property Definitions Create
custom_property_definitions
Environments Custom Property Definitions Destroy
POSTHOG_ENVIRONMENTS_CUSTOM_PROPERTY_DEFINITIONS_DESTROY
Environments Custom Property Definitions Destroy
custom_property_definitions
Environments Custom Property Definitions List
POSTHOG_ENVIRONMENTS_CUSTOM_PROPERTY_DEFINITIONS_LIST
Environments Custom Property Definitions List
custom_property_definitions
Environments Custom Property Definitions Partial Update
POSTHOG_ENVIRONMENTS_CUSTOM_PROPERTY_DEFINITIONS_PARTIAL_UPDATE
Environments Custom Property Definitions Partial Update
custom_property_definitions
Environments Custom Property Definitions Retrieve
POSTHOG_ENVIRONMENTS_CUSTOM_PROPERTY_DEFINITIONS_RETRIEVE
Environments Custom Property Definitions Retrieve
custom_property_definitions
Environments Custom Property Definitions Update
POSTHOG_ENVIRONMENTS_CUSTOM_PROPERTY_DEFINITIONS_UPDATE
Environments Custom Property Definitions Update
custom_property_definitions
Environments Dashboards Bulk Update Tags Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_BULK_UPDATE_TAGS_CREATE
Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``<scope>:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list
dashboards
Environments Dashboards Collaborators Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_COLLABORATORS_CREATE
Environments Dashboards Collaborators Create
dashboards
Environments Dashboards Collaborators Destroy
POSTHOG_ENVIRONMENTS_DASHBOARDS_COLLABORATORS_DESTROY
Environments Dashboards Collaborators Destroy
dashboards
Environments Dashboards Collaborators List
POSTHOG_ENVIRONMENTS_DASHBOARDS_COLLABORATORS_LIST
Environments Dashboards Collaborators List
dashboards
Environments Dashboards Copy Tile Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_COPY_TILE_CREATE
Copy an existing dashboard tile to another dashboard (insight, text card, or widget tile).
dashboards
Environments Dashboards Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_CREATE
Environments Dashboards Create
dashboards
Environments Dashboards Create From Template Json Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_CREATE_FROM_TEMPLATE_JSON_CREATE
Environments Dashboards Create From Template Json Create
dashboards
Environments Dashboards Create Text Tile Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_CREATE_TEXT_TILE_CREATE
Add a markdown text tile to a dashboard. Text tiles render as markdown blocks on the dashboard — useful as section headings, dividers, or annotations between insight tiles to give the dashboard structure.
dashboards
Environments Dashboards Create Unlisted Dashboard Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_CREATE_UNLISTED_DASHBOARD_CREATE
Creates an unlisted dashboard from template by tag. Enforces uniqueness (one per tag per team). Returns 409 if unlisted dashboard with this tag already exists.
dashboards
Environments Dashboards Delete Tile
POSTHOG_ENVIRONMENTS_DASHBOARDS_DELETE_TILE
Soft-delete a single tile from a dashboard. Works for text, insight, and button tiles. The underlying Insight, Text, or ButtonTile object is preserved — only the dashboard tile is hidden. To delete the entire dashboard, use the dashboard delete endpoint instead.
dashboards
Environments Dashboards Destroy
POSTHOG_ENVIRONMENTS_DASHBOARDS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
dashboards
Environments Dashboards List
POSTHOG_ENVIRONMENTS_DASHBOARDS_LIST
Environments Dashboards List
dashboards
Environments Dashboards Move Tile Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_MOVE_TILE_CREATE
Environments Dashboards Move Tile Create
dashboards
Environments Dashboards Move Tile Partial Update
POSTHOG_ENVIRONMENTS_DASHBOARDS_MOVE_TILE_PARTIAL_UPDATE
Environments Dashboards Move Tile Partial Update
dashboards
Environments Dashboards Partial Update
POSTHOG_ENVIRONMENTS_DASHBOARDS_PARTIAL_UPDATE
Environments Dashboards Partial Update
dashboards
Environments Dashboards Reorder Tiles Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_REORDER_TILES_CREATE
Environments Dashboards Reorder Tiles Create
dashboards
Environments Dashboards Retrieve
POSTHOG_ENVIRONMENTS_DASHBOARDS_RETRIEVE
Environments Dashboards Retrieve
dashboards
Environments Dashboards Run Insights Retrieve
POSTHOG_ENVIRONMENTS_DASHBOARDS_RUN_INSIGHTS_RETRIEVE
Run all insights on a dashboard and return their results.
dashboards
Environments Dashboards Run Widgets Retrieve
POSTHOG_ENVIRONMENTS_DASHBOARDS_RUN_WIDGETS_RETRIEVE
Environments Dashboards Run Widgets Retrieve
dashboards
Environments Dashboards Sharing List
POSTHOG_ENVIRONMENTS_DASHBOARDS_SHARING_LIST
Environments Dashboards Sharing List
dashboards
Environments Dashboards Sharing Passwords Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_SHARING_PASSWORDS_CREATE
Create a new password for the sharing configuration.
dashboards
Environments Dashboards Sharing Passwords Destroy
POSTHOG_ENVIRONMENTS_DASHBOARDS_SHARING_PASSWORDS_DESTROY
Delete a password from the sharing configuration.
dashboards
Environments Dashboards Sharing Refresh Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_SHARING_REFRESH_CREATE
Environments Dashboards Sharing Refresh Create
dashboards
Environments Dashboards Stream Tiles Retrieve
POSTHOG_ENVIRONMENTS_DASHBOARDS_STREAM_TILES_RETRIEVE
Stream dashboard metadata and tiles via Server-Sent Events. Sends metadata first, then tiles as they are rendered.
dashboards
Environments Dashboards Update
POSTHOG_ENVIRONMENTS_DASHBOARDS_UPDATE
Environments Dashboards Update
dashboards
Environments Dashboards Update Text Tile Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_UPDATE_TEXT_TILE_CREATE
Update the markdown body, layout, or color of an existing text tile on a dashboard.
dashboards
Environments Dashboards Update Widgets Batch
POSTHOG_ENVIRONMENTS_DASHBOARDS_UPDATE_WIDGETS_BATCH
Update the settings of existing widgets in place, atomically — config, name, and description. Each entry targets a widget by its tile_id and reuses the same write path as the dashboard PATCH endpoint. The widget_type is immutable. This edits widget settings only (config, name, description); tile placement (layouts, show_description) is a dashboard concern — use the dashboard PATCH endpoint or reorder_tiles for that. All updates succeed or fail together. To add new widgets, use the widgets/batch POST endpoint; to remove one, use delete_tile.
dashboards
Environments Dashboards Widgets Batch Create
POSTHOG_ENVIRONMENTS_DASHBOARDS_WIDGETS_BATCH_CREATE
Add multiple widget tiles to a dashboard in one atomic request.
dashboards
Environments Dashboards Widget Catalog Retrieve
POSTHOG_ENVIRONMENTS_DASHBOARDS_WIDGET_CATALOG_RETRIEVE
List registered dashboard widget types and per-type config_schema documentation for agents.
dashboards
Environments Datasets Create
POSTHOG_ENVIRONMENTS_DATASETS_CREATE
Environments Datasets Create
datasets
Environments Datasets Destroy
POSTHOG_ENVIRONMENTS_DATASETS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
datasets
Environments Datasets List
POSTHOG_ENVIRONMENTS_DATASETS_LIST
Environments Datasets List
datasets
Environments Datasets Partial Update
POSTHOG_ENVIRONMENTS_DATASETS_PARTIAL_UPDATE
Environments Datasets Partial Update
datasets
Environments Datasets Retrieve
POSTHOG_ENVIRONMENTS_DATASETS_RETRIEVE
Environments Datasets Retrieve
datasets
Environments Datasets Update
POSTHOG_ENVIRONMENTS_DATASETS_UPDATE
Environments Datasets Update
datasets
Environments Dataset Items Create
POSTHOG_ENVIRONMENTS_DATASET_ITEMS_CREATE
Environments Dataset Items Create
dataset_items
Environments Dataset Items Destroy
POSTHOG_ENVIRONMENTS_DATASET_ITEMS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
dataset_items
Environments Dataset Items List
POSTHOG_ENVIRONMENTS_DATASET_ITEMS_LIST
Environments Dataset Items List
dataset_items
Environments Dataset Items Partial Update
POSTHOG_ENVIRONMENTS_DATASET_ITEMS_PARTIAL_UPDATE
Environments Dataset Items Partial Update
dataset_items
Environments Dataset Items Retrieve
POSTHOG_ENVIRONMENTS_DATASET_ITEMS_RETRIEVE
Environments Dataset Items Retrieve
dataset_items
Environments Dataset Items Update
POSTHOG_ENVIRONMENTS_DATASET_ITEMS_UPDATE
Environments Dataset Items Update
dataset_items
Environments Data Color Themes Create
POSTHOG_ENVIRONMENTS_DATA_COLOR_THEMES_CREATE
Environments Data Color Themes Create
data_color_themes
Environments Data Color Themes Destroy
POSTHOG_ENVIRONMENTS_DATA_COLOR_THEMES_DESTROY
Environments Data Color Themes Destroy
data_color_themes
Environments Data Color Themes List
POSTHOG_ENVIRONMENTS_DATA_COLOR_THEMES_LIST
Environments Data Color Themes List
data_color_themes
Environments Data Color Themes Partial Update
POSTHOG_ENVIRONMENTS_DATA_COLOR_THEMES_PARTIAL_UPDATE
Environments Data Color Themes Partial Update
data_color_themes
Environments Data Color Themes Retrieve
POSTHOG_ENVIRONMENTS_DATA_COLOR_THEMES_RETRIEVE
Environments Data Color Themes Retrieve
data_color_themes
Environments Data Color Themes Update
POSTHOG_ENVIRONMENTS_DATA_COLOR_THEMES_UPDATE
Environments Data Color Themes Update
data_color_themes
Environments Data Modeling Jobs List
POSTHOG_ENVIRONMENTS_DATA_MODELING_JOBS_LIST
List data modeling jobs which are "runs" for our saved queries.
data_modeling_jobs
Environments Data Modeling Jobs Recent Retrieve
POSTHOG_ENVIRONMENTS_DATA_MODELING_JOBS_RECENT_RETRIEVE
Get the most recent non-running job for each saved query from the v2 backend.
data_modeling_jobs
Environments Data Modeling Jobs Retrieve
POSTHOG_ENVIRONMENTS_DATA_MODELING_JOBS_RETRIEVE
List data modeling jobs which are "runs" for our saved queries.
data_modeling_jobs
Environments Data Modeling Jobs Running Retrieve
POSTHOG_ENVIRONMENTS_DATA_MODELING_JOBS_RUNNING_RETRIEVE
Get all currently running jobs from the v2 backend.
data_modeling_jobs
Environments Data Warehouse Check Database Name Retrieve
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_CHECK_DATABASE_NAME_RETRIEVE
Check if a database name is available.
data_warehouse
Environments Data Warehouse Completed Activity Retrieve
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_COMPLETED_ACTIVITY_RETRIEVE
Returns completed/non-running activities (jobs with status 'Completed'). Supports pagination and cutoff time filtering.
data_warehouse
Environments Data Warehouse Data Health Issues Retrieve
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_DATA_HEALTH_ISSUES_RETRIEVE
Returns failed/disabled data pipeline items for the Pipeline status side panel. Includes: materializations, syncs, sources, destinations, and transformations.
data_warehouse
Environments Data Warehouse Data Ops Dashboard Retrieve
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_DATA_OPS_DASHBOARD_RETRIEVE
Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet.
data_warehouse
Environments Data Warehouse Delete Org Destroy
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_DELETE_ORG_DESTROY
Remove the organization's provisioning record after teardown, freeing its warehouse name. Called once the warehouse status reports `deleted`: deprovision tears the warehouse down, this removes the now-empty org row so the database_name can be reused. Restricted to organization admins.
data_warehouse
Environments Data Warehouse Deprovision Create
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_DEPROVISION_CREATE
Start deprovisioning the organization's managed warehouse. Restricted to organization admins.
data_warehouse
Environments Data Warehouse Enable Backfill Create
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_ENABLE_BACKFILL_CREATE
Enable warehouse backfill for this environment with a dedicated set of tables. Requires a table name and records the environment's membership in the organization's managed warehouse. Restricted to organization admins.
data_warehouse
Environments Data Warehouse Job Stats Retrieve
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_JOB_STATS_RETRIEVE
Returns success and failed job statistics for the last 1, 7, or 30 days. Query parameter 'days' can be 1, 7, or 30 (default: 7).
data_warehouse
Environments Data Warehouse Property Values Retrieve
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_PROPERTY_VALUES_RETRIEVE
API endpoints for data warehouse aggregate statistics and operations.
data_warehouse
Environments Data Warehouse Provision Create
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_PROVISION_CREATE
Start provisioning a managed warehouse for this organization (shared by all its teams).
data_warehouse
Environments Data Warehouse Reset Password Create
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_RESET_PASSWORD_CREATE
Reset the root password for the managed warehouse.
data_warehouse
Environments Data Warehouse Running Activity Retrieve
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_RUNNING_ACTIVITY_RETRIEVE
Returns currently running activities (jobs with status 'Running'). Supports pagination and cutoff time filtering.
data_warehouse
Environments Data Warehouse Total Rows Stats Retrieve
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_TOTAL_ROWS_STATS_RETRIEVE
Returns aggregated statistics for the data warehouse total rows processed within the current billing period. Used by the frontend data warehouse scene to display usage information.
data_warehouse
Environments Data Warehouse Warehouse Status Retrieve
POSTHOG_ENVIRONMENTS_DATA_WAREHOUSE_WAREHOUSE_STATUS_RETRIEVE
Get the current provisioning status of the managed warehouse, with this project's backfill state.
data_warehouse
Environments Default Evaluation Contexts Create
POSTHOG_ENVIRONMENTS_DEFAULT_EVALUATION_CONTEXTS_CREATE
Manage default evaluation contexts for a team.
environments
Environments Default Evaluation Contexts Destroy
POSTHOG_ENVIRONMENTS_DEFAULT_EVALUATION_CONTEXTS_DESTROY
Manage default evaluation contexts for a team.
environments
Environments Default Evaluation Contexts Retrieve
POSTHOG_ENVIRONMENTS_DEFAULT_EVALUATION_CONTEXTS_RETRIEVE
Manage default evaluation contexts for a team.
environments
Environments Default Release Conditions Retrieve
POSTHOG_ENVIRONMENTS_DEFAULT_RELEASE_CONDITIONS_RETRIEVE
Manage default release conditions for new feature flags in this team.
environments
Environments Default Release Conditions Update
POSTHOG_ENVIRONMENTS_DEFAULT_RELEASE_CONDITIONS_UPDATE
Manage default release conditions for new feature flags in this team.
environments
Environments Delete Secret Token Backup Partial Update
POSTHOG_ENVIRONMENTS_DELETE_SECRET_TOKEN_BACKUP_PARTIAL_UPDATE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Destroy
POSTHOG_ENVIRONMENTS_DESTROY
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Elements Create
POSTHOG_ENVIRONMENTS_ELEMENTS_CREATE
Environments Elements Create
elements
Environments Elements Destroy
POSTHOG_ENVIRONMENTS_ELEMENTS_DESTROY
Environments Elements Destroy
elements
Environments Elements List
POSTHOG_ENVIRONMENTS_ELEMENTS_LIST
Environments Elements List
elements
Environments Elements Partial Update
POSTHOG_ENVIRONMENTS_ELEMENTS_PARTIAL_UPDATE
Environments Elements Partial Update
elements
Environments Elements Retrieve
POSTHOG_ENVIRONMENTS_ELEMENTS_RETRIEVE
Environments Elements Retrieve
elements
Environments Elements Stats Retrieve
POSTHOG_ENVIRONMENTS_ELEMENTS_STATS_RETRIEVE
Counts of $autocapture, $rageclick, and $dead_click events grouped by the element chain they occurred on, ordered by count. Defaults to all three event types; narrow with the include parameter.
elements
Environments Elements Update
POSTHOG_ENVIRONMENTS_ELEMENTS_UPDATE
Environments Elements Update
elements
Environments Elements Values List
POSTHOG_ENVIRONMENTS_ELEMENTS_VALUES_LIST
Environments Elements Values List
elements
Environments Endpoints Create
POSTHOG_ENVIRONMENTS_ENDPOINTS_CREATE
Create a new endpoint.
endpoints
Environments Endpoints Destroy
POSTHOG_ENVIRONMENTS_ENDPOINTS_DESTROY
Delete an endpoint and clean up materialized query.
endpoints
Environments Endpoints Last Execution Times Create
POSTHOG_ENVIRONMENTS_ENDPOINTS_LAST_EXECUTION_TIMES_CREATE
Get the most recent execution time per endpoint (endpoint-level). Timestamps are recorded by the run path for personal-API-key calls. For per-version usage, query the query_log table directly.
endpoints
Environments Endpoints List
POSTHOG_ENVIRONMENTS_ENDPOINTS_LIST
List all endpoints for the team.
endpoints
Environments Endpoints Logs Retrieve
POSTHOG_ENVIRONMENTS_ENDPOINTS_LOGS_RETRIEVE
Environments Endpoints Logs Retrieve
endpoints
Environments Endpoints Materialization Conditions Retrieve
POSTHOG_ENVIRONMENTS_ENDPOINTS_MATERIALIZATION_CONDITIONS_RETRIEVE
Get the source code of the live materialization checks, plus the rewrite contract. Lets an agent rewrite a rejected endpoint query itself: fetch these conditions, produce a semantically equivalent query that passes every check, update the endpoint with it, then confirm via materialization_status. The source is read from the running system, so it always matches the checks this instance enforces.
endpoints
Environments Endpoints Materialization Preview Create
POSTHOG_ENVIRONMENTS_ENDPOINTS_MATERIALIZATION_PREVIEW_CREATE
Preview the materialization transform for an endpoint. Shows what the query will look like after materialization, including range pair detection and bucket functions.
endpoints
Environments Endpoints Materialization Status Retrieve
POSTHOG_ENVIRONMENTS_ENDPOINTS_MATERIALIZATION_STATUS_RETRIEVE
Get materialization status for an endpoint. Supports ?version=N query param.
endpoints
Environments Endpoints Materialization Suggestion Create
POSTHOG_ENVIRONMENTS_ENDPOINTS_MATERIALIZATION_SUGGESTION_CREATE
Ask AI to rewrite the endpoint's query into a semantically equivalent form that can be materialized. Only applicable to SQL (HogQL) endpoints that currently fail the materialization checks. The suggestion is validated against the live checks before being returned; nothing is saved. Requires the organization's AI data processing approval.
endpoints
Environments Endpoints Openapi Spec Retrieve
POSTHOG_ENVIRONMENTS_ENDPOINTS_OPENAPI_SPEC_RETRIEVE
Get OpenAPI 3.0 specification for this endpoint. Use this to generate typed SDK clients.
endpoints
Environments Endpoints Partial Update
POSTHOG_ENVIRONMENTS_ENDPOINTS_PARTIAL_UPDATE
Update an existing endpoint.
endpoints
Environments Endpoints Retrieve
POSTHOG_ENVIRONMENTS_ENDPOINTS_RETRIEVE
Retrieve an endpoint, or a specific version via ?version=N.
endpoints
Environments Endpoints Run Create
POSTHOG_ENVIRONMENTS_ENDPOINTS_RUN_CREATE
Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set.
endpoints
Environments Endpoints Run Retrieve
POSTHOG_ENVIRONMENTS_ENDPOINTS_RUN_RETRIEVE
Execute endpoint with optional materialization. Supports version parameter, runs latest version if not set.
endpoints
Environments Endpoints Update
POSTHOG_ENVIRONMENTS_ENDPOINTS_UPDATE
Update an existing endpoint. Parameters are optional. Pass version in body or ?version=N query param to target a specific version.
endpoints
Environments Endpoints Versions List
POSTHOG_ENVIRONMENTS_ENDPOINTS_VERSIONS_LIST
List all versions for an endpoint.
endpoints
Environments Environment Vision Quota Retrieve
POSTHOG_ENVIRONMENTS_ENVIRONMENT_VISION_QUOTA_RETRIEVE
Environments Environment Vision Quota Retrieve
vision
Environments Error Tracking Assignment Rules Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ASSIGNMENT_RULES_CREATE
Environments Error Tracking Assignment Rules Create
error_tracking
Environments Error Tracking Assignment Rules Destroy
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ASSIGNMENT_RULES_DESTROY
Environments Error Tracking Assignment Rules Destroy
error_tracking
Environments Error Tracking Assignment Rules List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ASSIGNMENT_RULES_LIST
Environments Error Tracking Assignment Rules List
error_tracking
Environments Error Tracking Assignment Rules Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ASSIGNMENT_RULES_PARTIAL_UPDATE
Environments Error Tracking Assignment Rules Partial Update
error_tracking
Environments Error Tracking Assignment Rules Reorder Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ASSIGNMENT_RULES_REORDER_PARTIAL_UPDATE
Environments Error Tracking Assignment Rules Reorder Partial Update
error_tracking
Environments Error Tracking Assignment Rules Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ASSIGNMENT_RULES_RETRIEVE
Environments Error Tracking Assignment Rules Retrieve
error_tracking
Environments Error Tracking Assignment Rules Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ASSIGNMENT_RULES_UPDATE
Environments Error Tracking Assignment Rules Update
error_tracking
Environments Error Tracking Bypass Rules Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_BYPASS_RULES_CREATE
Environments Error Tracking Bypass Rules Create
error_tracking
Environments Error Tracking Bypass Rules Destroy
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_BYPASS_RULES_DESTROY
Environments Error Tracking Bypass Rules Destroy
error_tracking
Environments Error Tracking Bypass Rules List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_BYPASS_RULES_LIST
Environments Error Tracking Bypass Rules List
error_tracking
Environments Error Tracking Bypass Rules Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_BYPASS_RULES_PARTIAL_UPDATE
Environments Error Tracking Bypass Rules Partial Update
error_tracking
Environments Error Tracking Bypass Rules Reorder Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_BYPASS_RULES_REORDER_PARTIAL_UPDATE
Environments Error Tracking Bypass Rules Reorder Partial Update
error_tracking
Environments Error Tracking Bypass Rules Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_BYPASS_RULES_RETRIEVE
Environments Error Tracking Bypass Rules Retrieve
error_tracking
Environments Error Tracking Bypass Rules Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_BYPASS_RULES_UPDATE
Environments Error Tracking Bypass Rules Update
error_tracking
Environments Error Tracking External References Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_EXTERNAL_REFERENCES_CREATE
Environments Error Tracking External References Create
error_tracking
Environments Error Tracking External References Destroy
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_EXTERNAL_REFERENCES_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
error_tracking
Environments Error Tracking External References List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_EXTERNAL_REFERENCES_LIST
Environments Error Tracking External References List
error_tracking
Environments Error Tracking External References Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_EXTERNAL_REFERENCES_RETRIEVE
Environments Error Tracking External References Retrieve
error_tracking
Environments Error Tracking Fingerprints Destroy
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_FINGERPRINTS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
error_tracking
Environments Error Tracking Fingerprints List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_FINGERPRINTS_LIST
Environments Error Tracking Fingerprints List
error_tracking
Environments Error Tracking Fingerprints Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_FINGERPRINTS_RETRIEVE
Environments Error Tracking Fingerprints Retrieve
error_tracking
Environments Error Tracking Grouping Rules Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_GROUPING_RULES_CREATE
Environments Error Tracking Grouping Rules Create
error_tracking
Environments Error Tracking Grouping Rules Destroy
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_GROUPING_RULES_DESTROY
Environments Error Tracking Grouping Rules Destroy
error_tracking
Environments Error Tracking Grouping Rules List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_GROUPING_RULES_LIST
Environments Error Tracking Grouping Rules List
error_tracking
Environments Error Tracking Grouping Rules Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_GROUPING_RULES_PARTIAL_UPDATE
Environments Error Tracking Grouping Rules Partial Update
error_tracking
Environments Error Tracking Grouping Rules Reorder Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_GROUPING_RULES_REORDER_PARTIAL_UPDATE
Environments Error Tracking Grouping Rules Reorder Partial Update
error_tracking
Environments Error Tracking Grouping Rules Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_GROUPING_RULES_RETRIEVE
Environments Error Tracking Grouping Rules Retrieve
error_tracking
Environments Error Tracking Grouping Rules Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_GROUPING_RULES_UPDATE
Environments Error Tracking Grouping Rules Update
error_tracking
Environments Error Tracking Issues Activity Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_ACTIVITY_RETRIEVE
Environments Error Tracking Issues Activity Retrieve
error_tracking
Environments Error Tracking Issues All Activity Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_ALL_ACTIVITY_RETRIEVE
Environments Error Tracking Issues All Activity Retrieve
error_tracking
Environments Error Tracking Issues Assign Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_ASSIGN_PARTIAL_UPDATE
Environments Error Tracking Issues Assign Partial Update
error_tracking
Environments Error Tracking Issues Bulk Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_BULK_CREATE
Environments Error Tracking Issues Bulk Create
error_tracking
Environments Error Tracking Issues Cohort Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_COHORT_UPDATE
Environments Error Tracking Issues Cohort Update
error_tracking
Environments Error Tracking Issues Destroy
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
error_tracking
Environments Error Tracking Issues Exists Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_EXISTS_RETRIEVE
Environments Error Tracking Issues Exists Retrieve
error_tracking
Environments Error Tracking Issues List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_LIST
Environments Error Tracking Issues List
error_tracking
Environments Error Tracking Issues Merge Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_MERGE_CREATE
Environments Error Tracking Issues Merge Create
error_tracking
Environments Error Tracking Issues Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_PARTIAL_UPDATE
Environments Error Tracking Issues Partial Update
error_tracking
Environments Error Tracking Issues Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_RETRIEVE
Environments Error Tracking Issues Retrieve
error_tracking
Environments Error Tracking Issues Split Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_SPLIT_CREATE
Environments Error Tracking Issues Split Create
error_tracking
Environments Error Tracking Issues Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_UPDATE
Environments Error Tracking Issues Update
error_tracking
Environments Error Tracking Issues Values Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_ISSUES_VALUES_RETRIEVE
Environments Error Tracking Issues Values Retrieve
error_tracking
List compact error tracking issues
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_QUERY_ISSUES_LIST_CREATE
List error tracking issues with typed filters and compact aggregate counts.
error_tracking
Get compact error tracking issue details
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_QUERY_ISSUE_CREATE
Fetch one error tracking issue with impact counts, top in_app frame, latest release, and optional sparkline.
error_tracking
List sampled exception events for an error tracking issue
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_QUERY_ISSUE_EVENTS_CREATE
Fetch sampled exception events, stack traces, browser/SDK context, URL, and $session_id values for one issue.
error_tracking
Environments Error Tracking Recommendations Dismiss Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RECOMMENDATIONS_DISMISS_CREATE
Environments Error Tracking Recommendations Dismiss Create
error_tracking
Environments Error Tracking Recommendations List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RECOMMENDATIONS_LIST
Environments Error Tracking Recommendations List
error_tracking
Environments Error Tracking Recommendations Refresh Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RECOMMENDATIONS_REFRESH_CREATE
Environments Error Tracking Recommendations Refresh Create
error_tracking
Environments Error Tracking Recommendations Restore Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RECOMMENDATIONS_RESTORE_CREATE
Environments Error Tracking Recommendations Restore Create
error_tracking
Environments Error Tracking Releases Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RELEASES_CREATE
Environments Error Tracking Releases Create
error_tracking
Environments Error Tracking Releases Destroy
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RELEASES_DESTROY
Environments Error Tracking Releases Destroy
error_tracking
Environments Error Tracking Releases Hash Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RELEASES_HASH_RETRIEVE
Environments Error Tracking Releases Hash Retrieve
error_tracking
Environments Error Tracking Releases List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RELEASES_LIST
Environments Error Tracking Releases List
error_tracking
Environments Error Tracking Releases Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RELEASES_PARTIAL_UPDATE
Environments Error Tracking Releases Partial Update
error_tracking
Environments Error Tracking Releases Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RELEASES_RETRIEVE
Environments Error Tracking Releases Retrieve
error_tracking
Environments Error Tracking Releases Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_RELEASES_UPDATE
Environments Error Tracking Releases Update
error_tracking
Environments Error Tracking Settings Retrieve Settings Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SETTINGS_RETRIEVE_SETTINGS_RETRIEVE
Environments Error Tracking Settings Retrieve Settings Retrieve
error_tracking
Environments Error Tracking Settings Update Settings Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SETTINGS_UPDATE_SETTINGS_PARTIAL_UPDATE
Environments Error Tracking Settings Update Settings Partial Update
error_tracking
Environments Error Tracking Spike Detection Config List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SPIKE_DETECTION_CONFIG_LIST
Environments Error Tracking Spike Detection Config List
error_tracking
Environments Error Tracking Spike Detection Config Update Config Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SPIKE_DETECTION_CONFIG_UPDATE_CONFIG_PARTIAL_UPDATE
Environments Error Tracking Spike Detection Config Update Config Partial Update
error_tracking
Environments Error Tracking Spike Events List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SPIKE_EVENTS_LIST
Environments Error Tracking Spike Events List
error_tracking
Environments Error Tracking Stack Frames Batch Get Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_STACK_FRAMES_BATCH_GET_CREATE
Environments Error Tracking Stack Frames Batch Get Create
error_tracking
Environments Error Tracking Stack Frames Destroy
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_STACK_FRAMES_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
error_tracking
Environments Error Tracking Stack Frames List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_STACK_FRAMES_LIST
Environments Error Tracking Stack Frames List
error_tracking
Environments Error Tracking Stack Frames Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_STACK_FRAMES_RETRIEVE
Environments Error Tracking Stack Frames Retrieve
error_tracking
Environments Error Tracking Suppression Rules Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SUPPRESSION_RULES_CREATE
Environments Error Tracking Suppression Rules Create
error_tracking
Environments Error Tracking Suppression Rules Destroy
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SUPPRESSION_RULES_DESTROY
Environments Error Tracking Suppression Rules Destroy
error_tracking
Environments Error Tracking Suppression Rules List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SUPPRESSION_RULES_LIST
Environments Error Tracking Suppression Rules List
error_tracking
Environments Error Tracking Suppression Rules Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SUPPRESSION_RULES_PARTIAL_UPDATE
Environments Error Tracking Suppression Rules Partial Update
error_tracking
Environments Error Tracking Suppression Rules Reorder Partial Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SUPPRESSION_RULES_REORDER_PARTIAL_UPDATE
Environments Error Tracking Suppression Rules Reorder Partial Update
error_tracking
Environments Error Tracking Suppression Rules Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SUPPRESSION_RULES_RETRIEVE
Environments Error Tracking Suppression Rules Retrieve
error_tracking
Environments Error Tracking Suppression Rules Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SUPPRESSION_RULES_UPDATE
Environments Error Tracking Suppression Rules Update
error_tracking
Environments Error Tracking Symbol Sets Bulk Delete Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SYMBOL_SETS_BULK_DELETE_CREATE
Environments Error Tracking Symbol Sets Bulk Delete Create
error_tracking
Environments Error Tracking Symbol Sets Bulk Finish Upload Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SYMBOL_SETS_BULK_FINISH_UPLOAD_CREATE
Environments Error Tracking Symbol Sets Bulk Finish Upload Create
error_tracking
Environments Error Tracking Symbol Sets Bulk Start Upload Create
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SYMBOL_SETS_BULK_START_UPLOAD_CREATE
Environments Error Tracking Symbol Sets Bulk Start Upload Create
error_tracking
Environments Error Tracking Symbol Sets Destroy
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SYMBOL_SETS_DESTROY
Environments Error Tracking Symbol Sets Destroy
error_tracking
Environments Error Tracking Symbol Sets Download Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SYMBOL_SETS_DOWNLOAD_RETRIEVE
Return a presigned URL for downloading the symbol set's source map.
error_tracking
Environments Error Tracking Symbol Sets Finish Upload Update
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SYMBOL_SETS_FINISH_UPLOAD_UPDATE
Environments Error Tracking Symbol Sets Finish Upload Update
error_tracking
Environments Error Tracking Symbol Sets List
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SYMBOL_SETS_LIST
Environments Error Tracking Symbol Sets List
error_tracking
Environments Error Tracking Symbol Sets Retrieve
POSTHOG_ENVIRONMENTS_ERROR_TRACKING_SYMBOL_SETS_RETRIEVE
Environments Error Tracking Symbol Sets Retrieve
error_tracking
Environments Evaluations Create
POSTHOG_ENVIRONMENTS_EVALUATIONS_CREATE
Environments Evaluations Create
evaluations
Environments Evaluations Destroy
POSTHOG_ENVIRONMENTS_EVALUATIONS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
evaluations
Environments Evaluations List
POSTHOG_ENVIRONMENTS_EVALUATIONS_LIST
Environments Evaluations List
evaluations
Environments Evaluations Partial Update
POSTHOG_ENVIRONMENTS_EVALUATIONS_PARTIAL_UPDATE
Environments Evaluations Partial Update
evaluations
Environments Evaluations Retrieve
POSTHOG_ENVIRONMENTS_EVALUATIONS_RETRIEVE
Environments Evaluations Retrieve
evaluations
Environments Evaluations Test Hog Create
POSTHOG_ENVIRONMENTS_EVALUATIONS_TEST_HOG_CREATE
Test Hog evaluation code against sample events without saving.
evaluations
Environments Evaluations Update
POSTHOG_ENVIRONMENTS_EVALUATIONS_UPDATE
Environments Evaluations Update
evaluations
Environments Evaluation Context Suggestions Create
POSTHOG_ENVIRONMENTS_EVALUATION_CONTEXT_SUGGESTIONS_CREATE
Hide an evaluation context name from the flag editor's suggestion list, or restore it. POST hides the name; DELETE restores it. The underlying context row and any flags already using it are never modified — this only controls what gets suggested.
environments
Environments Evaluation Context Suggestions Destroy
POSTHOG_ENVIRONMENTS_EVALUATION_CONTEXT_SUGGESTIONS_DESTROY
Hide an evaluation context name from the flag editor's suggestion list, or restore it. POST hides the name; DELETE restores it. The underlying context row and any flags already using it are never modified — this only controls what gets suggested.
environments
Environments Evaluation Runs Create
POSTHOG_ENVIRONMENTS_EVALUATION_RUNS_CREATE
Create a new evaluation run. This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation.
evaluation_runs
Environments Events List
POSTHOG_ENVIRONMENTS_EVENTS_LIST
This endpoint allows you to list and filter events. It is effectively deprecated and is kept only for backwards compatibility. If you ever ask about it you will be advised to not use it... If you want to ad-hoc list or aggregate events, use the Query endpoint instead. If you want to export all events or many pages of events you should use our CDP/Batch Exports products instead.
events
Environments Events Retrieve
POSTHOG_ENVIRONMENTS_EVENTS_RETRIEVE
Environments Events Retrieve
events
Environments Events Values Retrieve
POSTHOG_ENVIRONMENTS_EVENTS_VALUES_RETRIEVE
Environments Events Values Retrieve
events
Environments Event Filter Create
POSTHOG_ENVIRONMENTS_EVENT_FILTER_CREATE
Create or update the event filter config.
event_filter
Environments Event Filter Metrics Retrieve
POSTHOG_ENVIRONMENTS_EVENT_FILTER_METRICS_RETRIEVE
Single event filter per team. GET /event_filter/ — returns the config (or null if not yet created) POST /event_filter/ — creates or updates the config (upsert) GET /event_filter/metrics/ — time-series metrics GET /event_filter/metrics/totals/ — aggregate totals
event_filter
Environments Event Filter Metrics Totals Retrieve
POSTHOG_ENVIRONMENTS_EVENT_FILTER_METRICS_TOTALS_RETRIEVE
Single event filter per team. GET /event_filter/ — returns the config (or null if not yet created) POST /event_filter/ — creates or updates the config (upsert) GET /event_filter/metrics/ — time-series metrics GET /event_filter/metrics/totals/ — aggregate totals
event_filter
Environments Event Filter Retrieve
POSTHOG_ENVIRONMENTS_EVENT_FILTER_RETRIEVE
Returns the event filter config for the team, or null if not yet created.
event_filter
Environments Event Ingestion Restrictions Retrieve
POSTHOG_ENVIRONMENTS_EVENT_INGESTION_RESTRICTIONS_RETRIEVE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Experiments Config Partial Update
POSTHOG_ENVIRONMENTS_EXPERIMENTS_CONFIG_PARTIAL_UPDATE
Manage experiment configuration for this environment.
environments
Environments Experiments Config Retrieve
POSTHOG_ENVIRONMENTS_EXPERIMENTS_CONFIG_RETRIEVE
Manage experiment configuration for this environment.
environments
Environments Exports Content Retrieve
POSTHOG_ENVIRONMENTS_EXPORTS_CONTENT_RETRIEVE
Environments Exports Content Retrieve
exports
Environments Exports Create
POSTHOG_ENVIRONMENTS_EXPORTS_CREATE
Environments Exports Create
exports
Environments Exports List
POSTHOG_ENVIRONMENTS_EXPORTS_LIST
Environments Exports List
exports
Environments Exports Retrieve
POSTHOG_ENVIRONMENTS_EXPORTS_RETRIEVE
Environments Exports Retrieve
exports
Environments External Data Schemas Cancel Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_CANCEL_CREATE
Environments External Data Schemas Cancel Create
external_data_schemas
Environments External Data Schemas Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_CREATE
Environments External Data Schemas Create
external_data_schemas
Environments External Data Schemas Delete Data Destroy
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_DELETE_DATA_DESTROY
Environments External Data Schemas Delete Data Destroy
external_data_schemas
Environments External Data Schemas Destroy
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_DESTROY
Environments External Data Schemas Destroy
external_data_schemas
Environments External Data Schemas Incremental Fields Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_INCREMENTAL_FIELDS_CREATE
Environments External Data Schemas Incremental Fields Create
external_data_schemas
Environments External Data Schemas List
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_LIST
Environments External Data Schemas List
external_data_schemas
Environments External Data Schemas Logs Retrieve
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_LOGS_RETRIEVE
Environments External Data Schemas Logs Retrieve
external_data_schemas
Environments External Data Schemas Partial Update
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_PARTIAL_UPDATE
Environments External Data Schemas Partial Update
external_data_schemas
Environments External Data Schemas Reload Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_RELOAD_CREATE
Environments External Data Schemas Reload Create
external_data_schemas
Environments External Data Schemas Resync Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_RESYNC_CREATE
Environments External Data Schemas Resync Create
external_data_schemas
Environments External Data Schemas Retrieve
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_RETRIEVE
Environments External Data Schemas Retrieve
external_data_schemas
Environments External Data Schemas Update
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SCHEMAS_UPDATE
Environments External Data Schemas Update
external_data_schemas
Environments External Data Sources Bulk Update Schemas Partial Update
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_BULK_UPDATE_SCHEMAS_PARTIAL_UPDATE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Cdc Status Retrieve
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_CDC_STATUS_RETRIEVE
Live CDC health for an existing source: slot/publication existence and WAL lag. Reads from the source DB via the engine adapter. Returns ``{"enabled": false}`` when CDC is off, or the stored config plus live ``slot_exists`` / ``publication_exists`` / ``lag_bytes`` when on. 400s if the source DB is unreachable so the UI can show a degraded/unreachable state.
external_data_sources
Environments External Data Sources Check Cdc Prerequisites Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_CHECK_CDC_PREREQUISITES_CREATE
Validate CDC prerequisites against a live Postgres connection. Used by the source wizard to surface ✅/❌ checks before source creation, and by the self-managed setup popup to verify user-created publications.
external_data_sources
Environments External Data Sources Check Cdc Prerequisites For Source Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_CHECK_CDC_PREREQUISITES_FOR_SOURCE_CREATE
Validate CDC prerequisites for an existing source using its stored credentials. The detail=False ``check_cdc_prerequisites`` action is for the creation wizard, where the client still holds the raw connection config (incl. password) in the form. On the Configuration page the source already exists and secret fields are stripped from API responses — so the client can't supply them. This reads the stored (encrypted) credentials from the DB via the adapter instead. Body params: ``cdc_management_mode`` (``"posthog"`` | ``"self_managed"``), ``cdc_slot_name`` (optional), ``cdc_publication_name`` (optional).
external_data_sources
Environments External Data Sources Connections List
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_CONNECTIONS_LIST
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Create Webhook Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_CREATE_WEBHOOK_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Database Schema Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_DATABASE_SCHEMA_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Delete Webhook Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_DELETE_WEBHOOK_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Destroy
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_DESTROY
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Disable Cdc Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_DISABLE_CDC_CREATE
Disable CDC on an existing source. Cancels any running CDC extraction workflow, deletes the extraction schedule, delegates engine-side teardown to the source's adapter (drops slot/publication for Postgres; equivalent for other engines), clears ``cdc_*`` keys from ``job_inputs``, soft-deletes companion CDC tables, and sets all CDC schemas to ``sync_type=None``, ``should_sync=False`` so the user must pick a new sync strategy before they resume.
external_data_sources
Environments External Data Sources Draft Custom Manifest Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_DRAFT_CUSTOM_MANIFEST_CREATE
Draft a Custom REST source manifest from API documentation using an LLM. Reads the docs (a URL fetched server-side, or pasted text / OpenAPI spec), asks the model to author a RESTAPIConfig manifest, and validates it against the create-path checks — repairing against validation errors up to a small budget. Returns the manifest for the user to review and tweak in the builder before creating the source; it does NOT create anything. Gated by the `dwh-custom-source-ai-builder` flag, and requires the org to have approved AI data processing, since the docs are sent to the LLM gateway.
external_data_sources
Environments External Data Sources Enable Cdc Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_ENABLE_CDC_CREATE
Enable CDC on an existing source. Provisions engine-side CDC resources via the source's adapter, writes the CDC config into ``source.job_inputs``, and ensures the CDC extraction schedule exists. Re-runs prereq checks server-side so we never trust a stale client-side check. Body params: ``cdc_management_mode`` (``"posthog"`` | ``"self_managed"``), plus engine-specific identifier hints (e.g. ``cdc_slot_name``, ``cdc_publication_name`` for Postgres). Universal tuning fields: ``cdc_auto_drop_slot`` (optional bool), ``cdc_lag_warning_threshold_mb`` (optional int), ``cdc_lag_critical_threshold_mb`` (optional int).
external_data_sources
Environments External Data Sources Jobs Retrieve
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_JOBS_RETRIEVE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources List
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_LIST
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Partial Update
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_PARTIAL_UPDATE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Preview Resource Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_PREVIEW_RESOURCE_CREATE
Read a bounded sample of rows for one resource of a Custom REST source. Lets a manifest author verify `data_selector`, `primary_key`, and the incremental `cursor_path` against live data before creating the source. Only `source_type: "Custom"` is supported — other source types return 400. The read is bounded (single page per resource, capped row count, short timeouts, no redirects). Manifest, validation, and SSRF problems return 400; a live fetch failure returns 200 with `error` set and empty `rows`.
external_data_sources
Environments External Data Sources Refresh Schemas Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_REFRESH_SCHEMAS_CREATE
Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync).
external_data_sources
Environments External Data Sources Reload Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_RELOAD_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Repair Cdc Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_REPAIR_CDC_CREATE
Repair CDC on a source whose replication resources were lost. Only proceeds on evidence of breakage (a persisted broken marker, or a live probe showing the slot/publication missing) — repairing a healthy source would drop its slot and force a full re-sync. Cancels running CDC jobs, recreates the engine-side slot/publication against the stored CDC config, resets every active CDC schema to snapshot mode for a full re-sync (changes since the old slot died are unrecoverable), clears the broken markers, and resumes the paused schedules. Idempotent: safe to retry after a partial failure. Concurrent repairs of the same source are rejected with a 409.
external_data_sources
Environments External Data Sources Retrieve
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_RETRIEVE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Revenue Analytics Config Partial Update
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_REVENUE_ANALYTICS_CONFIG_PARTIAL_UPDATE
Update the revenue analytics configuration and return the full external data source.
external_data_sources
Environments External Data Sources Setup Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_SETUP_CREATE
One-shot data warehouse source setup. Validate credentials, discover available tables, enable them all with sensible sync defaults (incremental where supported, else append, else full refresh), and create the source in a single call — the caller never has to assemble a `schemas` array. For sources that support webhooks (e.g. Stripe), a webhook is auto-registered after creation: on success webhook-capable tables switch to real-time webhook sync (unlocking webhook-only tables); on failure the polling defaults stay in place. For fine-grained table/sync control, use the lower-level `database_schema` + `create` flow instead.
external_data_sources
Environments External Data Sources Source Prefix Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_SOURCE_PREFIX_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Stored Credentials List
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_STORED_CREDENTIALS_LIST
List credentials stored via the source connect page that haven't been consumed yet. Returns metadata only (id, source type, timestamps) — never the secrets themselves. Stored credentials are temporary: they disappear once consumed by `setup` or when they expire. Newest first, so after a user confirms they've finished the connect page, the first entry for the source type is the one to pass to `setup`.
external_data_sources
Environments External Data Sources Store Credentials Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_STORE_CREDENTIALS_CREATE
Validate and store credentials for a data warehouse source without creating the source. Backs the source connect page: the user enters credentials directly in PostHog, they are checked against a live connection, then stashed encrypted in a temporary store. The returned credential id can be passed to `setup` as {'credential_id': <id>} to create the source — so secrets never travel through an agent conversation. The stash is single-use: it is deleted as soon as `setup` consumes it, and expires after 24 hours if never consumed.
external_data_sources
Environments External Data Sources Update
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_UPDATE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Update Cdc Settings Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_UPDATE_CDC_SETTINGS_CREATE
Update CDC tuning fields without enabling/disabling. Lets users edit ``cdc_auto_drop_slot``, ``cdc_lag_warning_threshold_mb``, and ``cdc_lag_critical_threshold_mb`` independently. These fields are universal across engines. Engine-specific identifiers (slot name, management mode, …) are immutable post-enable — switching them requires disable + enable.
external_data_sources
Environments External Data Sources Update Webhook Inputs Create
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_UPDATE_WEBHOOK_INPUTS_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Webhook Info Retrieve
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_WEBHOOK_INFO_RETRIEVE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments External Data Sources Wizard Retrieve
POSTHOG_ENVIRONMENTS_EXTERNAL_DATA_SOURCES_WIZARD_RETRIEVE
Create, Read, Update and Delete External data Sources.
external_data_sources
Environments File Download Batch Exports Cancel Create
POSTHOG_ENVIRONMENTS_FILE_DOWNLOAD_BATCH_EXPORTS_CANCEL_CREATE
Cancel an ongoing file-download batch export.
batch_exportsfile_download_batch_exports
Environments File Download Batch Exports Create
POSTHOG_ENVIRONMENTS_FILE_DOWNLOAD_BATCH_EXPORTS_CREATE
Create and start a batch export on demand run to download a file.
batch_exportsfile_download_batch_exports
Environments File Download Batch Exports Download Retrieve
POSTHOG_ENVIRONMENTS_FILE_DOWNLOAD_BATCH_EXPORTS_DOWNLOAD_RETRIEVE
Download a file (or a part) from this batch export run. Users can provide a part component with an id or index, or no part component at all: * If part id is included: The file download matching the id is downloaded. * If part index is included: The file download matching the index (as ordered by key) is downloaded. * If no part component is present: If there is only one file downloaded, that is downloaded. Otherwise the first one as sorted by key is downloaded.
batch_exportsfile_download_batch_exports
Environments File Download Batch Exports List
POSTHOG_ENVIRONMENTS_FILE_DOWNLOAD_BATCH_EXPORTS_LIST
Environments File Download Batch Exports List
batch_exportsfile_download_batch_exports
Environments File Download Batch Exports Logs Retrieve
POSTHOG_ENVIRONMENTS_FILE_DOWNLOAD_BATCH_EXPORTS_LOGS_RETRIEVE
Environments File Download Batch Exports Logs Retrieve
batch_exportsfile_download_batch_exports
Environments File Download Batch Exports Retrieve
POSTHOG_ENVIRONMENTS_FILE_DOWNLOAD_BATCH_EXPORTS_RETRIEVE
Get a batch export on demand run. If the underlying batch export run has completed, we return keys to the generated file downloads so that users may download them by making a request to /download.
batch_exportsfile_download_batch_exports
Environments File System Count By Path Create
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_COUNT_BY_PATH_CREATE
Get count of all files in a folder.
file_system
Environments File System Count Create
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_COUNT_CREATE
Get count of all files in a folder.
file_system
Environments File System Create
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_CREATE
Environments File System Create
file_system
Environments File System Destroy
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_DESTROY
Environments File System Destroy
file_system
Environments File System List
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_LIST
Environments File System List
file_system
Environments File System Log View Create
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_LOG_VIEW_CREATE
Environments File System Log View Create
file_system
Environments File System Log View Retrieve
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_LOG_VIEW_RETRIEVE
Environments File System Log View Retrieve
file_system
Environments File System Move Create
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_MOVE_CREATE
Environments File System Move Create
file_system
Environments File System Partial Update
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_PARTIAL_UPDATE
Environments File System Partial Update
file_system
Environments File System Retrieve
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_RETRIEVE
Environments File System Retrieve
file_system
Environments File System Shortcut Create
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_SHORTCUT_CREATE
Environments File System Shortcut Create
file_system_shortcut
Environments File System Shortcut Destroy
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_SHORTCUT_DESTROY
Environments File System Shortcut Destroy
file_system_shortcut
Environments File System Shortcut List
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_SHORTCUT_LIST
Environments File System Shortcut List
file_system_shortcut
Environments File System Shortcut Partial Update
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_SHORTCUT_PARTIAL_UPDATE
Environments File System Shortcut Partial Update
file_system_shortcut
Environments File System Shortcut Reorder Create
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_SHORTCUT_REORDER_CREATE
Set the display order of the current user's shortcuts. `ordered_ids` becomes the new top-to-bottom order; any unknown IDs are rejected.
file_system_shortcut
Environments File System Shortcut Retrieve
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_SHORTCUT_RETRIEVE
Environments File System Shortcut Retrieve
file_system_shortcut
Environments File System Shortcut Update
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_SHORTCUT_UPDATE
Environments File System Shortcut Update
file_system_shortcut
Environments File System Undo Delete Create
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_UNDO_DELETE_CREATE
Environments File System Undo Delete Create
file_system
Environments File System Unfiled Retrieve
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_UNFILED_RETRIEVE
Environments File System Unfiled Retrieve
file_system
Environments File System Update
POSTHOG_ENVIRONMENTS_FILE_SYSTEM_UPDATE
Environments File System Update
file_system
Environments Generate Conversations Public Token Create
POSTHOG_ENVIRONMENTS_GENERATE_CONVERSATIONS_PUBLIC_TOKEN_CREATE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Groups Activity Retrieve
POSTHOG_ENVIRONMENTS_GROUPS_ACTIVITY_RETRIEVE
Environments Groups Activity Retrieve
groups
Environments Groups Create
POSTHOG_ENVIRONMENTS_GROUPS_CREATE
Environments Groups Create
groups
Environments Groups Delete Property Create
POSTHOG_ENVIRONMENTS_GROUPS_DELETE_PROPERTY_CREATE
Environments Groups Delete Property Create
groups
Environments Groups Find Retrieve
POSTHOG_ENVIRONMENTS_GROUPS_FIND_RETRIEVE
Environments Groups Find Retrieve
groups
Environments Groups List
POSTHOG_ENVIRONMENTS_GROUPS_LIST
List all groups of a specific group type. You must pass ?group_type_index= in the URL. To get a list of valid group types, call /api/:project_id/groups_types/. Uses forward-only keyset pagination via the `cursor` parameter. The `previous` field in the response envelope is always null.
groups
Environments Groups Property Values Retrieve
POSTHOG_ENVIRONMENTS_GROUPS_PROPERTY_VALUES_RETRIEVE
Environments Groups Property Values Retrieve
groups
Environments Groups Update Property Create
POSTHOG_ENVIRONMENTS_GROUPS_UPDATE_PROPERTY_CREATE
Environments Groups Update Property Create
groups
List health issues
POSTHOG_ENVIRONMENTS_HEALTH_ISSUES_LIST
Lists health issues detected across all of this project's PostHog health checks (outdated SDKs, data warehouse sync failures, missing web analytics events, ingestion warnings, and more). Filter by status, severity, kind, or dismissed state.
health_issues
Environments Health Issues Partial Update
POSTHOG_ENVIRONMENTS_HEALTH_ISSUES_PARTIAL_UPDATE
Environments Health Issues Partial Update
health_issues
Environments Health Issues Refresh Create
POSTHOG_ENVIRONMENTS_HEALTH_ISSUES_REFRESH_CREATE
Environments Health Issues Refresh Create
health_issues
Environments Health Issues Resolve Create
POSTHOG_ENVIRONMENTS_HEALTH_ISSUES_RESOLVE_CREATE
Environments Health Issues Resolve Create
health_issues
Get a health issue
POSTHOG_ENVIRONMENTS_HEALTH_ISSUES_RETRIEVE
Fetches a single health issue, enriched with the owning check's rendered explanation: a title, a one-line summary of what's wrong, a deep link to the relevant page, and remediation guidance for how to fix it.
health_issues
Summarize active health issues
POSTHOG_ENVIRONMENTS_HEALTH_ISSUES_SUMMARY_RETRIEVE
Returns aggregated counts of active, non-dismissed health issues for the project, broken down by severity and by kind. Use for a quick overview of overall project health before drilling in with the list endpoint.
health_issues
Environments Heatmaps Events Retrieve
POSTHOG_ENVIRONMENTS_HEATMAPS_EVENTS_RETRIEVE
Drill into the individual session interactions behind one or more heatmap coordinates. Pass the 'points' you want to inspect (from the heatmaps list response) to get the underlying per-session events, so you can jump to the session recordings that produced a hotspot.
heatmaps
Environments Heatmaps List
POSTHOG_ENVIRONMENTS_HEATMAPS_LIST
Aggregated heatmap interactions for a page. For type 'click'/'rageclick'/'mousemove' each result is a point with relative x, absolute client-y, and a count. For type 'scrolldepth' the response is scroll-depth buckets instead (cumulative reach down the page).
heatmaps
Environments Heatmap Screenshots Content Retrieve
POSTHOG_ENVIRONMENTS_HEATMAP_SCREENSHOTS_CONTENT_RETRIEVE
Fetch the rendered screenshot image (JPEG bytes) for a saved heatmap at a given viewport width. Returns 202 with the saved-heatmap metadata while the screenshot is still being generated.
heatmap_screenshots
Environments Hog Flows Assets Retrieve
POSTHOG_ENVIRONMENTS_HOG_FLOWS_ASSETS_RETRIEVE
Environments Hog Flows Assets Retrieve
hog_flows
Environments Hog Flows Asset Content Retrieve
POSTHOG_ENVIRONMENTS_HOG_FLOWS_ASSET_CONTENT_RETRIEVE
Environments Hog Flows Asset Content Retrieve
hog_flows
Environments Hog Flows Batch Jobs Create
POSTHOG_ENVIRONMENTS_HOG_FLOWS_BATCH_JOBS_CREATE
Environments Hog Flows Batch Jobs Create
hog_flows
Environments Hog Flows Batch Jobs List
POSTHOG_ENVIRONMENTS_HOG_FLOWS_BATCH_JOBS_LIST
Environments Hog Flows Batch Jobs List
hog_flows
Environments Hog Flows Bulk Delete Create
POSTHOG_ENVIRONMENTS_HOG_FLOWS_BULK_DELETE_CREATE
Environments Hog Flows Bulk Delete Create
hog_flows
Environments Hog Flows Create
POSTHOG_ENVIRONMENTS_HOG_FLOWS_CREATE
Environments Hog Flows Create
hog_flows
Environments Hog Flows Destroy
POSTHOG_ENVIRONMENTS_HOG_FLOWS_DESTROY
Environments Hog Flows Destroy
hog_flows
Environments Hog Flows Graph Partial Update
POSTHOG_ENVIRONMENTS_HOG_FLOWS_GRAPH_PARTIAL_UPDATE
Environments Hog Flows Graph Partial Update
hog_flows
Environments Hog Flows Invocations Create
POSTHOG_ENVIRONMENTS_HOG_FLOWS_INVOCATIONS_CREATE
Environments Hog Flows Invocations Create
hog_flows
Environments Hog Flows Invocation Results Retrieve
POSTHOG_ENVIRONMENTS_HOG_FLOWS_INVOCATION_RESULTS_RETRIEVE
Environments Hog Flows Invocation Results Retrieve
hog_flows
Environments Hog Flows Invocation Result Retrieve
POSTHOG_ENVIRONMENTS_HOG_FLOWS_INVOCATION_RESULT_RETRIEVE
Environments Hog Flows Invocation Result Retrieve
hog_flows
Environments Hog Flows List
POSTHOG_ENVIRONMENTS_HOG_FLOWS_LIST
Environments Hog Flows List
hog_flows
Environments Hog Flows Logs Retrieve
POSTHOG_ENVIRONMENTS_HOG_FLOWS_LOGS_RETRIEVE
Environments Hog Flows Logs Retrieve
hog_flows
Environments Hog Flows Metrics Global Retrieve
POSTHOG_ENVIRONMENTS_HOG_FLOWS_METRICS_GLOBAL_RETRIEVE
Environments Hog Flows Metrics Global Retrieve
hog_flows
Environments Hog Flows Metrics Retrieve
POSTHOG_ENVIRONMENTS_HOG_FLOWS_METRICS_RETRIEVE
Environments Hog Flows Metrics Retrieve
hog_flows
Environments Hog Flows Metrics Totals Retrieve
POSTHOG_ENVIRONMENTS_HOG_FLOWS_METRICS_TOTALS_RETRIEVE
Environments Hog Flows Metrics Totals Retrieve
hog_flows
Environments Hog Flows Partial Update
POSTHOG_ENVIRONMENTS_HOG_FLOWS_PARTIAL_UPDATE
Environments Hog Flows Partial Update
hog_flows
Environments Hog Flows Rerun Create
POSTHOG_ENVIRONMENTS_HOG_FLOWS_RERUN_CREATE
Rerun past invocations of this hog flow from their stored payloads. Same shape and semantics as the hog function rerun endpoint — proxies through to the CDP worker, which reads matching rows from ClickHouse, rehydrates from `invocation_globals`, and re-enqueues onto cyclotron with `is_retry=1`. Because rerun replays historical event/person/group data, it requires `person:read` and `group:read` on top of `hog_flow:write`.
hog_flows
Environments Hog Flows Retrieve
POSTHOG_ENVIRONMENTS_HOG_FLOWS_RETRIEVE
Environments Hog Flows Retrieve
hog_flows
Environments Hog Flows Schedules Create
POSTHOG_ENVIRONMENTS_HOG_FLOWS_SCHEDULES_CREATE
Environments Hog Flows Schedules Create
hog_flows
Environments Hog Flows Schedules Destroy
POSTHOG_ENVIRONMENTS_HOG_FLOWS_SCHEDULES_DESTROY
Environments Hog Flows Schedules Destroy
hog_flows
Environments Hog Flows Schedules List
POSTHOG_ENVIRONMENTS_HOG_FLOWS_SCHEDULES_LIST
Environments Hog Flows Schedules List
hog_flows
Environments Hog Flows Schedules Partial Update
POSTHOG_ENVIRONMENTS_HOG_FLOWS_SCHEDULES_PARTIAL_UPDATE
Environments Hog Flows Schedules Partial Update
hog_flows
Environments Hog Flows Update
POSTHOG_ENVIRONMENTS_HOG_FLOWS_UPDATE
Environments Hog Flows Update
hog_flows
Environments Hog Flows User Blast Radius Create
POSTHOG_ENVIRONMENTS_HOG_FLOWS_USER_BLAST_RADIUS_CREATE
Environments Hog Flows User Blast Radius Create
hog_flows
Environments Hog Functions Create
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_CREATE
Environments Hog Functions Create
hog_functionshog_functions
Environments Hog Functions Destroy
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
hog_functionshog_functions
Environments Hog Functions Enable Backfills Create
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_ENABLE_BACKFILLS_CREATE
Environments Hog Functions Enable Backfills Create
hog_functionshog_functions
Environments Hog Functions Icons Retrieve
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_ICONS_RETRIEVE
Environments Hog Functions Icons Retrieve
hog_functionshog_functions
Environments Hog Functions Icon Retrieve
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_ICON_RETRIEVE
Environments Hog Functions Icon Retrieve
hog_functionshog_functions
Environments Hog Functions Invocations Create
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_INVOCATIONS_CREATE
Environments Hog Functions Invocations Create
hog_functionshog_functions
Environments Hog Functions List
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_LIST
Environments Hog Functions List
hog_functionshog_functions
Environments Hog Functions Logs Retrieve
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_LOGS_RETRIEVE
Environments Hog Functions Logs Retrieve
hog_functionshog_functions
Environments Hog Functions Metrics Retrieve
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_METRICS_RETRIEVE
Environments Hog Functions Metrics Retrieve
hog_functionshog_functions
Environments Hog Functions Metrics Totals Retrieve
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_METRICS_TOTALS_RETRIEVE
Environments Hog Functions Metrics Totals Retrieve
hog_functionshog_functions
Environments Hog Functions Partial Update
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_PARTIAL_UPDATE
Environments Hog Functions Partial Update
hog_functionshog_functions
Environments Hog Functions Rearrange Partial Update
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_REARRANGE_PARTIAL_UPDATE
Update the execution order of multiple HogFunctions.
hog_functionshog_functions
Environments Hog Functions Rerun Create
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_RERUN_CREATE
Rerun past invocations of this hog function from their stored payloads. The CDP worker reads matching rows from the `hog_invocation_results` ClickHouse table, rehydrates the invocation from the stored `invocation_globals`, and re-enqueues onto cyclotron. Each rerun run reuses the original `invocation_id` with `is_retry=1` set on the new lifecycle row so the UI can surface that it was a rerun. For source-webhook functions the worker strips `request.headers` from the rehydrated globals before re-enqueuing (see the rerun paginator): those headers carry the inbound sender's credentials, and replaying them through a reconfigured function would let a write-access user exfiltrate stored secrets. Because rerun replays historical event/person/group data, it requires `person:read` and `group:read` on top of `hog_function:write`.
hog_functionshog_functions
Environments Hog Functions Retrieve
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_RETRIEVE
Environments Hog Functions Retrieve
hog_functionshog_functions
Environments Hog Functions Update
POSTHOG_ENVIRONMENTS_HOG_FUNCTIONS_UPDATE
Environments Hog Functions Update
hog_functionshog_functions
Environments Insights Activity Retrieve
POSTHOG_ENVIRONMENTS_INSIGHTS_ACTIVITY_RETRIEVE
Audit trail for a single insight — every change made to it, by whom, and when. Use this when you want the change history of a specific insight; use the project-wide activity endpoint for a broader view.
insights
Environments Insights All Activity Retrieve
POSTHOG_ENVIRONMENTS_INSIGHTS_ALL_ACTIVITY_RETRIEVE
Project-wide audit trail across all insights — who created, edited, deleted, or restored insights, what changed (with before/after diffs), and when. Useful for surfacing what people (or agents) have been working on recently.
insights
Environments Insights Analyze Retrieve
POSTHOG_ENVIRONMENTS_INSIGHTS_ANALYZE_RETRIEVE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Environments Insights Bulk Delete Create
POSTHOG_ENVIRONMENTS_INSIGHTS_BULK_DELETE_CREATE
Soft-delete insights in bulk by ID. Mirrors the single-insight delete: sets deleted=True, soft-deletes the insights' dashboard tiles, and removes their linked alerts. Insights the requester cannot edit are skipped and reported in `skipped`. Reversible via the bulk_restore endpoint.
insights
Environments Insights Bulk Restore Create
POSTHOG_ENVIRONMENTS_INSIGHTS_BULK_RESTORE_CREATE
Restore soft-deleted insights in bulk by ID — the inverse of bulk_delete. Sets deleted=False and re-activates the insights' dashboard tiles on dashboards that still exist. Linked alerts are not restored (they are removed on delete). Insights the requester cannot edit are reported in `skipped`.
insights
Environments Insights Bulk Update Tags Create
POSTHOG_ENVIRONMENTS_INSIGHTS_BULK_UPDATE_TAGS_CREATE
Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``<scope>:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list
insights
Environments Insights Cancel Create
POSTHOG_ENVIRONMENTS_INSIGHTS_CANCEL_CREATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Environments Insights Create
POSTHOG_ENVIRONMENTS_INSIGHTS_CREATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Environments Insights Destroy
POSTHOG_ENVIRONMENTS_INSIGHTS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
insights
Environments Insights Generate Metadata Create
POSTHOG_ENVIRONMENTS_INSIGHTS_GENERATE_METADATA_CREATE
Generate an AI-suggested name and description for an insight based on its query configuration.
insights
Environments Insights List
POSTHOG_ENVIRONMENTS_INSIGHTS_LIST
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Environments Insights My Last Viewed Retrieve
POSTHOG_ENVIRONMENTS_INSIGHTS_MY_LAST_VIEWED_RETRIEVE
Returns basic details about the last 5 insights viewed by this user. Most recently viewed first.
insights
Environments Insights Partial Update
POSTHOG_ENVIRONMENTS_INSIGHTS_PARTIAL_UPDATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Environments Insights Retrieve
POSTHOG_ENVIRONMENTS_INSIGHTS_RETRIEVE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Environments Insights Sharing List
POSTHOG_ENVIRONMENTS_INSIGHTS_SHARING_LIST
Environments Insights Sharing List
insights
Environments Insights Sharing Passwords Create
POSTHOG_ENVIRONMENTS_INSIGHTS_SHARING_PASSWORDS_CREATE
Create a new password for the sharing configuration.
insights
Environments Insights Sharing Passwords Destroy
POSTHOG_ENVIRONMENTS_INSIGHTS_SHARING_PASSWORDS_DESTROY
Delete a password from the sharing configuration.
insights
Environments Insights Sharing Refresh Create
POSTHOG_ENVIRONMENTS_INSIGHTS_SHARING_REFRESH_CREATE
Environments Insights Sharing Refresh Create
insights
Environments Insights Suggestions Create
POSTHOG_ENVIRONMENTS_INSIGHTS_SUGGESTIONS_CREATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Environments Insights Suggestions Retrieve
POSTHOG_ENVIRONMENTS_INSIGHTS_SUGGESTIONS_RETRIEVE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Environments Insights Thresholds List
POSTHOG_ENVIRONMENTS_INSIGHTS_THRESHOLDS_LIST
Environments Insights Thresholds List
insights
Environments Insights Thresholds Retrieve
POSTHOG_ENVIRONMENTS_INSIGHTS_THRESHOLDS_RETRIEVE
Environments Insights Thresholds Retrieve
insights
Environments Insights Update
POSTHOG_ENVIRONMENTS_INSIGHTS_UPDATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Environments Insights Viewed Create
POSTHOG_ENVIRONMENTS_INSIGHTS_VIEWED_CREATE
Record that the current user has just viewed one or more insights. Submitted ids that do not belong to the current project or that point at deleted insights are silently dropped. Returns 201 on success regardless of how many ids were retained.
insights
Environments Insight Variables Create
POSTHOG_ENVIRONMENTS_INSIGHT_VARIABLES_CREATE
Environments Insight Variables Create
insight_variables
Environments Insight Variables Destroy
POSTHOG_ENVIRONMENTS_INSIGHT_VARIABLES_DESTROY
Environments Insight Variables Destroy
insight_variables
Environments Insight Variables List
POSTHOG_ENVIRONMENTS_INSIGHT_VARIABLES_LIST
Environments Insight Variables List
insight_variables
Environments Insight Variables Partial Update
POSTHOG_ENVIRONMENTS_INSIGHT_VARIABLES_PARTIAL_UPDATE
Environments Insight Variables Partial Update
insight_variables
Environments Insight Variables Retrieve
POSTHOG_ENVIRONMENTS_INSIGHT_VARIABLES_RETRIEVE
Environments Insight Variables Retrieve
insight_variables
Environments Insight Variables Update
POSTHOG_ENVIRONMENTS_INSIGHT_VARIABLES_UPDATE
Environments Insight Variables Update
insight_variables
Environments Integrations Anthropic Managed Agents Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_ANTHROPIC_MANAGED_AGENTS_RETRIEVE
Environments Integrations Anthropic Managed Agents Retrieve
integrations
Environments Integrations Anthropic Managed Agent Envs Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_ANTHROPIC_MANAGED_AGENT_ENVS_RETRIEVE
Environments Integrations Anthropic Managed Agent Envs Retrieve
integrations
Environments Integrations Anthropic Managed Agent Vaults Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_ANTHROPIC_MANAGED_AGENT_VAULTS_RETRIEVE
Environments Integrations Anthropic Managed Agent Vaults Retrieve
integrations
Environments Integrations Authorize Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_AUTHORIZE_RETRIEVE
Environments Integrations Authorize Retrieve
integrations
Environments Integrations Channels Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_CHANNELS_RETRIEVE
Environments Integrations Channels Retrieve
integrations
Environments Integrations Clickup Lists Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_CLICKUP_LISTS_RETRIEVE
Environments Integrations Clickup Lists Retrieve
integrations
Environments Integrations Clickup Spaces Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_CLICKUP_SPACES_RETRIEVE
Environments Integrations Clickup Spaces Retrieve
integrations
Environments Integrations Clickup Workspaces Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_CLICKUP_WORKSPACES_RETRIEVE
Environments Integrations Clickup Workspaces Retrieve
integrations
Environments Integrations Create
POSTHOG_ENVIRONMENTS_INTEGRATIONS_CREATE
Environments Integrations Create
integrations
Environments Integrations Destroy
POSTHOG_ENVIRONMENTS_INTEGRATIONS_DESTROY
Environments Integrations Destroy
integrations
Environments Integrations Domain Connect Apply Url Create
POSTHOG_ENVIRONMENTS_INTEGRATIONS_DOMAIN_CONNECT_APPLY_URL_CREATE
Unified endpoint for generating Domain Connect apply URLs. Accepts a context ("email" or "proxy") and the relevant resource ID. The backend resolves the domain, template variables, and service ID based on context, then builds the signed apply URL.
integrations
Environments Integrations Domain Connect Check Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_DOMAIN_CONNECT_CHECK_RETRIEVE
Environments Integrations Domain Connect Check Retrieve
integrations
Environments Integrations Email Partial Update
POSTHOG_ENVIRONMENTS_INTEGRATIONS_EMAIL_PARTIAL_UPDATE
Environments Integrations Email Partial Update
integrations
Environments Integrations Email Verify Create
POSTHOG_ENVIRONMENTS_INTEGRATIONS_EMAIL_VERIFY_CREATE
Environments Integrations Email Verify Create
integrations
Environments Integrations Github Branches Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_GITHUB_BRANCHES_RETRIEVE
Environments Integrations Github Branches Retrieve
integrations
Environments Integrations Github Oauth Authorize Create
POSTHOG_ENVIRONMENTS_INTEGRATIONS_GITHUB_OAUTH_AUTHORIZE_CREATE
Mint a User OAuth URL to bootstrap a fresh `code` when the install flow returns without one.
integrations
Environments Integrations Github Prepare Callback Create
POSTHOG_ENVIRONMENTS_INTEGRATIONS_GITHUB_PREPARE_CALLBACK_CREATE
Seed GitHub setup callback state without redirecting to GitHub. Used when the user opens an existing installation's settings on github.com (e.g. PostHog Code "Update in GitHub") so the subsequent Setup URL redirect can be validated.
integrations
Environments Integrations Github Repos Refresh Create
POSTHOG_ENVIRONMENTS_INTEGRATIONS_GITHUB_REPOS_REFRESH_CREATE
Environments Integrations Github Repos Refresh Create
integrations
Environments Integrations Github Repos Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_GITHUB_REPOS_RETRIEVE
Environments Integrations Github Repos Retrieve
integrations
Environments Integrations Github Teams Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_GITHUB_TEAMS_RETRIEVE
Environments Integrations Github Teams Retrieve
integrations
Environments Integrations Google Accessible Accounts Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_GOOGLE_ACCESSIBLE_ACCOUNTS_RETRIEVE
Environments Integrations Google Accessible Accounts Retrieve
integrations
Environments Integrations Google Conversion Actions Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_GOOGLE_CONVERSION_ACTIONS_RETRIEVE
Environments Integrations Google Conversion Actions Retrieve
integrations
Environments Integrations Google Search Console Sites Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_GOOGLE_SEARCH_CONSOLE_SITES_RETRIEVE
List the Search Console properties the connected Google account has access to.
integrations
Environments Integrations Jira Projects Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_JIRA_PROJECTS_RETRIEVE
Environments Integrations Jira Projects Retrieve
integrations
Environments Integrations Linear Teams Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_LINEAR_TEAMS_RETRIEVE
Environments Integrations Linear Teams Retrieve
integrations
Environments Integrations Linkedin Ads Accounts Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_LINKEDIN_ADS_ACCOUNTS_RETRIEVE
Environments Integrations Linkedin Ads Accounts Retrieve
integrations
Environments Integrations Linkedin Ads Conversion Rules Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_LINKEDIN_ADS_CONVERSION_RULES_RETRIEVE
Environments Integrations Linkedin Ads Conversion Rules Retrieve
integrations
Environments Integrations List
POSTHOG_ENVIRONMENTS_INTEGRATIONS_LIST
Environments Integrations List
integrations
Environments Integrations Request Access Create
POSTHOG_ENVIRONMENTS_INTEGRATIONS_REQUEST_ACCESS_CREATE
Notify project admins that a member is requesting an integration be connected.
integrations
Environments Integrations Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_RETRIEVE
Environments Integrations Retrieve
integrations
Environments Integrations Twilio Phone Numbers Retrieve
POSTHOG_ENVIRONMENTS_INTEGRATIONS_TWILIO_PHONE_NUMBERS_RETRIEVE
Environments Integrations Twilio Phone Numbers Retrieve
integrations
Environments Is Generating Demo Data Retrieve
POSTHOG_ENVIRONMENTS_IS_GENERATING_DEMO_DATA_RETRIEVE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments List
POSTHOG_ENVIRONMENTS_LIST
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Llm Analytics Clustering Config List
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_CLUSTERING_CONFIG_LIST
Team-level clustering configuration (event filters for automated pipelines).
llm_analytics
Environments Llm Analytics Clustering Config Set Event Filters Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_CLUSTERING_CONFIG_SET_EVENT_FILTERS_CREATE
Team-level clustering configuration (event filters for automated pipelines).
llm_analytics
Environments Llm Analytics Clustering Jobs Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_CLUSTERING_JOBS_CREATE
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Environments Llm Analytics Clustering Jobs Destroy
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_CLUSTERING_JOBS_DESTROY
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Environments Llm Analytics Clustering Jobs List
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_CLUSTERING_JOBS_LIST
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Environments Llm Analytics Clustering Jobs Partial Update
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_CLUSTERING_JOBS_PARTIAL_UPDATE
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Environments Llm Analytics Clustering Jobs Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_CLUSTERING_JOBS_RETRIEVE
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Environments Llm Analytics Clustering Jobs Update
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_CLUSTERING_JOBS_UPDATE
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Environments Llm Analytics Evaluation Config Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_CONFIG_RETRIEVE
Get the evaluation config for this team
llm_analytics
Environments Llm Analytics Evaluation Config Set Active Key Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_CONFIG_SET_ACTIVE_KEY_CREATE
Set the active provider key for evaluations
llm_analytics
Environments Llm Analytics Evaluation Reports Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_REPORTS_CREATE
CRUD for evaluation report configurations + report run history.
llm_analytics
Environments Llm Analytics Evaluation Reports Destroy
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_REPORTS_DESTROY
Evaluation report configs are deleted only when their evaluation is deleted. Use PATCH enabled=false to stop delivery.
llm_analytics
Environments Llm Analytics Evaluation Reports Generate Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_REPORTS_GENERATE_CREATE
Trigger immediate report generation.
llm_analytics
Environments Llm Analytics Evaluation Reports List
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_REPORTS_LIST
CRUD for evaluation report configurations + report run history.
llm_analytics
Environments Llm Analytics Evaluation Reports Partial Update
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_REPORTS_PARTIAL_UPDATE
CRUD for evaluation report configurations + report run history.
llm_analytics
Environments Llm Analytics Evaluation Reports Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_REPORTS_RETRIEVE
CRUD for evaluation report configurations + report run history.
llm_analytics
Environments Llm Analytics Evaluation Reports Runs List
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_REPORTS_RUNS_LIST
List report runs (history) for this report.
llm_analytics
Environments Llm Analytics Evaluation Reports Update
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_REPORTS_UPDATE
CRUD for evaluation report configurations + report run history.
llm_analytics
Environments Llm Analytics Evaluation Summary Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_EVALUATION_SUMMARY_CREATE
Generate an AI-powered summary of evaluation results. This endpoint analyzes evaluation runs and identifies patterns in passing and failing evaluations, providing actionable recommendations. Data is fetched server-side by evaluation ID to ensure data integrity. **Use Cases:** - Understand why evaluations are passing or failing - Identify systematic issues in LLM responses - Get recommendations for improving response quality - Review patterns across many evaluation runs at once
AI observabilityllm_analytics
Environments Llm Analytics Models Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_MODELS_RETRIEVE
List available models for a provider.
llm_analytics
Environments Llm Analytics Offline Evaluations Experiment Items Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_OFFLINE_EVALUATIONS_EXPERIMENT_ITEMS_CREATE
Environments Llm Analytics Offline Evaluations Experiment Items Create
AI observabilityllm_analytics
Environments Llm Analytics Provider Keys Assign Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEYS_ASSIGN_CREATE
Assign this key to evaluations and optionally re-enable them.
llm_analytics
Environments Llm Analytics Provider Keys Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEYS_CREATE
Environments Llm Analytics Provider Keys Create
llm_analytics
Environments Llm Analytics Provider Keys Dependent Configs Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEYS_DEPENDENT_CONFIGS_RETRIEVE
Get evaluations using this key and alternative keys for replacement.
llm_analytics
Environments Llm Analytics Provider Keys Destroy
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEYS_DESTROY
Environments Llm Analytics Provider Keys Destroy
llm_analytics
Environments Llm Analytics Provider Keys List
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEYS_LIST
Environments Llm Analytics Provider Keys List
llm_analytics
Environments Llm Analytics Provider Keys Partial Update
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEYS_PARTIAL_UPDATE
Environments Llm Analytics Provider Keys Partial Update
llm_analytics
Environments Llm Analytics Provider Keys Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEYS_RETRIEVE
Environments Llm Analytics Provider Keys Retrieve
llm_analytics
Environments Llm Analytics Provider Keys Trial Evaluations Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEYS_TRIAL_EVALUATIONS_RETRIEVE
List enabled evaluations currently using trial credits for a given provider.
llm_analytics
Environments Llm Analytics Provider Keys Update
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEYS_UPDATE
Environments Llm Analytics Provider Keys Update
llm_analytics
Environments Llm Analytics Provider Keys Validate Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEYS_VALIDATE_CREATE
Environments Llm Analytics Provider Keys Validate Create
llm_analytics
Environments Llm Analytics Provider Key Validations Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_PROVIDER_KEY_VALIDATIONS_CREATE
Validate LLM provider API keys without persisting them
llm_analytics
Environments Llm Analytics Review Queues Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_REVIEW_QUEUES_CREATE
Environments Llm Analytics Review Queues Create
llm_analytics
Environments Llm Analytics Review Queues Destroy
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_REVIEW_QUEUES_DESTROY
Environments Llm Analytics Review Queues Destroy
llm_analytics
Environments Llm Analytics Review Queues List
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_REVIEW_QUEUES_LIST
Environments Llm Analytics Review Queues List
llm_analytics
Environments Llm Analytics Review Queues Partial Update
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_REVIEW_QUEUES_PARTIAL_UPDATE
Environments Llm Analytics Review Queues Partial Update
llm_analytics
Environments Llm Analytics Review Queues Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_REVIEW_QUEUES_RETRIEVE
Environments Llm Analytics Review Queues Retrieve
llm_analytics
Environments Llm Analytics Review Queue Items Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_REVIEW_QUEUE_ITEMS_CREATE
Environments Llm Analytics Review Queue Items Create
llm_analytics
Environments Llm Analytics Review Queue Items Destroy
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_REVIEW_QUEUE_ITEMS_DESTROY
Environments Llm Analytics Review Queue Items Destroy
llm_analytics
Environments Llm Analytics Review Queue Items List
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_REVIEW_QUEUE_ITEMS_LIST
Environments Llm Analytics Review Queue Items List
llm_analytics
Environments Llm Analytics Review Queue Items Partial Update
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_REVIEW_QUEUE_ITEMS_PARTIAL_UPDATE
Environments Llm Analytics Review Queue Items Partial Update
llm_analytics
Environments Llm Analytics Review Queue Items Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_REVIEW_QUEUE_ITEMS_RETRIEVE
Environments Llm Analytics Review Queue Items Retrieve
llm_analytics
Environments Llm Analytics Score Definitions Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_SCORE_DEFINITIONS_CREATE
Environments Llm Analytics Score Definitions Create
llm_analytics
Environments Llm Analytics Score Definitions List
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_SCORE_DEFINITIONS_LIST
Environments Llm Analytics Score Definitions List
llm_analytics
Environments Llm Analytics Score Definitions New Version Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_SCORE_DEFINITIONS_NEW_VERSION_CREATE
Environments Llm Analytics Score Definitions New Version Create
llm_analytics
Environments Llm Analytics Score Definitions Partial Update
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_SCORE_DEFINITIONS_PARTIAL_UPDATE
Environments Llm Analytics Score Definitions Partial Update
llm_analytics
Environments Llm Analytics Score Definitions Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_SCORE_DEFINITIONS_RETRIEVE
Environments Llm Analytics Score Definitions Retrieve
llm_analytics
Environments Llm Analytics Summarization Batch Check Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_SUMMARIZATION_BATCH_CHECK_CREATE
Check which traces have cached summaries available. This endpoint allows batch checking of multiple trace IDs to see which ones have cached summaries. Returns only the traces that have cached summaries with their titles. **Use Cases:** - Load cached summaries on session view load - Avoid unnecessary LLM calls for already-summarized traces - Display summary previews without generating new summaries
AI observabilityllm_analytics
Environments Llm Analytics Summarization Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_SUMMARIZATION_CREATE
Generate an AI-powered summary of an LLM trace or event. This endpoint analyzes the provided trace/event, generates a line-numbered text representation, and uses an LLM to create a concise summary with line references. **Two ways to use this endpoint:** 1. **By ID (recommended):** Pass `trace_id` or `generation_id` with an optional `date_from`/`date_to`. The backend fetches the data automatically. `summarize_type` is inferred. 2. **By data:** Pass the full trace/event data blob in `data` with `summarize_type`. This is how the frontend uses it. **Summary Format:** - Title (concise, max 10 words) - Mermaid flow diagram showing the main flow - 3-10 summary bullets with line references - "Interesting Notes" section for failures, successes, or unusual patterns - Line references in [L45] or [L45-52] format pointing to relevant sections The response includes the structured summary, the text representation, and metadata.
AI observabilityllm_analytics
Environments Llm Analytics Text Repr Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_TEXT_REPR_CREATE
Generate a human-readable text representation of an LLM trace event. This endpoint converts AI observability events ($ai_generation, $ai_span, $ai_embedding, or $ai_trace) into formatted text representations suitable for display, logging, or analysis. **Supported Event Types:** - `$ai_generation`: Individual LLM API calls with input/output messages - `$ai_span`: Logical spans with state transitions - `$ai_embedding`: Embedding generation events (text input → vector) - `$ai_trace`: Full traces with hierarchical structure **Options:** - `max_length`: Maximum character count (default: 2000000) - `truncated`: Enable middle-content truncation within events (default: true) - `truncate_buffer`: Characters at start/end when truncating (default: 1000) - `include_markers`: Use interactive markers vs plain text indicators (default: true) - Frontend: set true for `<<<TRUNCATED|base64|...>>>` markers - Backend/LLM: set false for `... (X chars truncated) ...` text - `collapsed`: Show summary vs full trace tree (default: false) - `include_hierarchy`: Include tree structure for traces (default: true) - `max_depth`: Maximum depth for hierarchical rendering (default: unlimited) - `tools_collapse_threshold`: Number of tools before auto-collapsing list (default: 5) - Tool lists >5 items show `<<<TOOLS_EXPANDABLE|...>>>` marker for frontend - Or `[+] AVAILABLE TOOLS: N` for backend when `include_markers: false` - `include_line_numbers`: Prefix each line with line number like L001:, L010: (default: false) **Use Cases:** - Frontend display: `truncated: true, include_markers: true, include_line_numbers: true` - Backend LLM context (summary): `truncated: true, include_markers: false, collapsed: true` - Backend LLM context (full): `truncated: false` The response includes the formatted text and metadata about the rendering.
AI observabilityllm_analytics
Environments Llm Analytics Trace Reviews Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_TRACE_REVIEWS_CREATE
Environments Llm Analytics Trace Reviews Create
llm_analytics
Environments Llm Analytics Trace Reviews Destroy
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_TRACE_REVIEWS_DESTROY
Environments Llm Analytics Trace Reviews Destroy
llm_analytics
Environments Llm Analytics Trace Reviews List
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_TRACE_REVIEWS_LIST
Environments Llm Analytics Trace Reviews List
llm_analytics
Environments Llm Analytics Trace Reviews Partial Update
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_TRACE_REVIEWS_PARTIAL_UPDATE
Environments Llm Analytics Trace Reviews Partial Update
llm_analytics
Environments Llm Analytics Trace Reviews Retrieve
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_TRACE_REVIEWS_RETRIEVE
Environments Llm Analytics Trace Reviews Retrieve
llm_analytics
Environments Llm Analytics Translate Create
POSTHOG_ENVIRONMENTS_LLM_ANALYTICS_TRANSLATE_CREATE
Translate text to target language.
llm_analytics
Environments Llm Prompts Create
POSTHOG_ENVIRONMENTS_LLM_PROMPTS_CREATE
Environments Llm Prompts Create
llm_prompts
Environments Llm Prompts List
POSTHOG_ENVIRONMENTS_LLM_PROMPTS_LIST
Environments Llm Prompts List
llm_prompts
Environments Llm Prompts Name Archive Create
POSTHOG_ENVIRONMENTS_LLM_PROMPTS_NAME_ARCHIVE_CREATE
Environments Llm Prompts Name Archive Create
llm_prompts
Environments Llm Prompts Name Duplicate Create
POSTHOG_ENVIRONMENTS_LLM_PROMPTS_NAME_DUPLICATE_CREATE
Environments Llm Prompts Name Duplicate Create
llm_prompts
Environments Llm Prompts Name Partial Update
POSTHOG_ENVIRONMENTS_LLM_PROMPTS_NAME_PARTIAL_UPDATE
Environments Llm Prompts Name Partial Update
llm_prompts
Environments Llm Prompts Name Retrieve
POSTHOG_ENVIRONMENTS_LLM_PROMPTS_NAME_RETRIEVE
Environments Llm Prompts Name Retrieve
llm_prompts
Environments Llm Prompts Resolve Name Retrieve
POSTHOG_ENVIRONMENTS_LLM_PROMPTS_RESOLVE_NAME_RETRIEVE
Environments Llm Prompts Resolve Name Retrieve
llm_prompts
Environments Llm Skills Create
POSTHOG_ENVIRONMENTS_LLM_SKILLS_CREATE
Environments Llm Skills Create
llm_skills
Environments Llm Skills Import Create
POSTHOG_ENVIRONMENTS_LLM_SKILLS_IMPORT_CREATE
Environments Llm Skills Import Create
llm_skills
Environments Llm Skills List
POSTHOG_ENVIRONMENTS_LLM_SKILLS_LIST
Environments Llm Skills List
llm_skills
Environments Llm Skills Marketplace Install Command Create
POSTHOG_ENVIRONMENTS_LLM_SKILLS_MARKETPLACE_INSTALL_COMMAND_CREATE
Mint the user's read-only marketplace credential (or rotate it) and return the install command. Per-user: rotating only ever invalidates this user's own credential, never a teammate's.
llm_skills
Environments Llm Skills Marketplace Install Command Retrieve
POSTHOG_ENVIRONMENTS_LLM_SKILLS_MARKETPLACE_INSTALL_COMMAND_RETRIEVE
Report whether the user already has a marketplace credential, without minting one. The token is unrecoverable, so an existing credential returns its mask only — the UI shows "already connected, existing setups keep working" and offers an explicit rotate.
llm_skills
Environments Llm Skills Name Archive Create
POSTHOG_ENVIRONMENTS_LLM_SKILLS_NAME_ARCHIVE_CREATE
Environments Llm Skills Name Archive Create
llm_skills
Environments Llm Skills Name Duplicate Create
POSTHOG_ENVIRONMENTS_LLM_SKILLS_NAME_DUPLICATE_CREATE
Environments Llm Skills Name Duplicate Create
llm_skills
Environments Llm Skills Name Export Retrieve
POSTHOG_ENVIRONMENTS_LLM_SKILLS_NAME_EXPORT_RETRIEVE
Environments Llm Skills Name Export Retrieve
llm_skills
Environments Llm Skills Name Files Create
POSTHOG_ENVIRONMENTS_LLM_SKILLS_NAME_FILES_CREATE
Environments Llm Skills Name Files Create
llm_skills
Environments Llm Skills Name Files Destroy
POSTHOG_ENVIRONMENTS_LLM_SKILLS_NAME_FILES_DESTROY
Environments Llm Skills Name Files Destroy
llm_skills
Environments Llm Skills Name Files Rename Create
POSTHOG_ENVIRONMENTS_LLM_SKILLS_NAME_FILES_RENAME_CREATE
Environments Llm Skills Name Files Rename Create
llm_skills
Environments Llm Skills Name Files Retrieve
POSTHOG_ENVIRONMENTS_LLM_SKILLS_NAME_FILES_RETRIEVE
Environments Llm Skills Name Files Retrieve
llm_skills
Environments Llm Skills Name Partial Update
POSTHOG_ENVIRONMENTS_LLM_SKILLS_NAME_PARTIAL_UPDATE
Environments Llm Skills Name Partial Update
llm_skills
Environments Llm Skills Name Retrieve
POSTHOG_ENVIRONMENTS_LLM_SKILLS_NAME_RETRIEVE
Environments Llm Skills Name Retrieve
llm_skills
Environments Llm Skills Resolve Name Retrieve
POSTHOG_ENVIRONMENTS_LLM_SKILLS_RESOLVE_NAME_RETRIEVE
Environments Llm Skills Resolve Name Retrieve
llm_skills
Environments Logs Alerts Create
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_CREATE
Environments Logs Alerts Create
logs
Environments Logs Alerts Destinations Create
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_DESTINATIONS_CREATE
Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
logs
Environments Logs Alerts Destinations Delete Create
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_DESTINATIONS_DELETE_CREATE
Delete a notification destination by deleting its HogFunction group atomically.
logs
Environments Logs Alerts Destroy
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_DESTROY
Environments Logs Alerts Destroy
logs
Environments Logs Alerts Events List
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_EVENTS_LIST
Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't change and there was no error) are filtered out since only the last 10 are kept and they carry no forensic value. Optional `?kind=...` narrows to a single kind.
logs
Environments Logs Alerts List
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_LIST
Environments Logs Alerts List
logs
Environments Logs Alerts Partial Update
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_PARTIAL_UPDATE
Environments Logs Alerts Partial Update
logs
Environments Logs Alerts Reset Create
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_RESET_CREATE
Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
logs
Environments Logs Alerts Retrieve
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_RETRIEVE
Environments Logs Alerts Retrieve
logs
Environments Logs Alerts Simulate Create
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_SIMULATE_CREATE
Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.
logs
Environments Logs Alerts Update
POSTHOG_ENVIRONMENTS_LOGS_ALERTS_UPDATE
Environments Logs Alerts Update
logs
Environments Logs Attributes Retrieve
POSTHOG_ENVIRONMENTS_LOGS_ATTRIBUTES_RETRIEVE
Environments Logs Attributes Retrieve
logs
Environments Logs Config Partial Update
POSTHOG_ENVIRONMENTS_LOGS_CONFIG_PARTIAL_UPDATE
Manage logs product configuration for this environment.
environments
Environments Logs Config Retrieve
POSTHOG_ENVIRONMENTS_LOGS_CONFIG_RETRIEVE
Manage logs product configuration for this environment.
environments
Environments Logs Count Create
POSTHOG_ENVIRONMENTS_LOGS_COUNT_CREATE
Environments Logs Count Create
logs
Environments Logs Count Ranges Create
POSTHOG_ENVIRONMENTS_LOGS_COUNT_RANGES_CREATE
Environments Logs Count Ranges Create
logs
Environments Logs ExplainLogWithAI Create
POSTHOG_ENVIRONMENTS_LOGS_EXPLAIN_LOG_WITH_AI_CREATE
Explain a log entry using AI. POST /api/environments/:id/logs/explainLogWithAI/
logs
Environments Logs Export Create
POSTHOG_ENVIRONMENTS_LOGS_EXPORT_CREATE
Environments Logs Export Create
logs
Environments Logs Facet Values Create
POSTHOG_ENVIRONMENTS_LOGS_FACET_VALUES_CREATE
Environments Logs Facet Values Create
logs
Environments Logs Group By Create
POSTHOG_ENVIRONMENTS_LOGS_GROUP_BY_CREATE
Environments Logs Group By Create
logs
Environments Logs Has Logs Retrieve
POSTHOG_ENVIRONMENTS_LOGS_HAS_LOGS_RETRIEVE
Environments Logs Has Logs Retrieve
logs
Environments Logs Patterns Create
POSTHOG_ENVIRONMENTS_LOGS_PATTERNS_CREATE
Environments Logs Patterns Create
logs
Environments Logs Query Create
POSTHOG_ENVIRONMENTS_LOGS_QUERY_CREATE
Environments Logs Query Create
logs
Environments Logs Sampling Rules Create
POSTHOG_ENVIRONMENTS_LOGS_SAMPLING_RULES_CREATE
Environments Logs Sampling Rules Create
logs
Environments Logs Sampling Rules Destroy
POSTHOG_ENVIRONMENTS_LOGS_SAMPLING_RULES_DESTROY
Environments Logs Sampling Rules Destroy
logs
Environments Logs Sampling Rules List
POSTHOG_ENVIRONMENTS_LOGS_SAMPLING_RULES_LIST
Environments Logs Sampling Rules List
logs
Environments Logs Sampling Rules Partial Update
POSTHOG_ENVIRONMENTS_LOGS_SAMPLING_RULES_PARTIAL_UPDATE
Environments Logs Sampling Rules Partial Update
logs
Environments Logs Sampling Rules Reorder Create
POSTHOG_ENVIRONMENTS_LOGS_SAMPLING_RULES_REORDER_CREATE
Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
logs
Environments Logs Sampling Rules Retrieve
POSTHOG_ENVIRONMENTS_LOGS_SAMPLING_RULES_RETRIEVE
Environments Logs Sampling Rules Retrieve
logs
Environments Logs Sampling Rules Simulate Create
POSTHOG_ENVIRONMENTS_LOGS_SAMPLING_RULES_SIMULATE_CREATE
Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).
logs
Environments Logs Sampling Rules Update
POSTHOG_ENVIRONMENTS_LOGS_SAMPLING_RULES_UPDATE
Environments Logs Sampling Rules Update
logs
Environments Logs Services Create
POSTHOG_ENVIRONMENTS_LOGS_SERVICES_CREATE
Environments Logs Services Create
logs
Environments Logs Sparkline Create
POSTHOG_ENVIRONMENTS_LOGS_SPARKLINE_CREATE
Environments Logs Sparkline Create
logs
Environments Logs Values Retrieve
POSTHOG_ENVIRONMENTS_LOGS_VALUES_RETRIEVE
Environments Logs Values Retrieve
logs
Environments Logs Views Create
POSTHOG_ENVIRONMENTS_LOGS_VIEWS_CREATE
Environments Logs Views Create
logs
Environments Logs Views Destroy
POSTHOG_ENVIRONMENTS_LOGS_VIEWS_DESTROY
Environments Logs Views Destroy
logs
Environments Logs Views List
POSTHOG_ENVIRONMENTS_LOGS_VIEWS_LIST
Environments Logs Views List
logs
Environments Logs Views Partial Update
POSTHOG_ENVIRONMENTS_LOGS_VIEWS_PARTIAL_UPDATE
Environments Logs Views Partial Update
logs
Environments Logs Views Retrieve
POSTHOG_ENVIRONMENTS_LOGS_VIEWS_RETRIEVE
Environments Logs Views Retrieve
logs
Environments Logs Views Update
POSTHOG_ENVIRONMENTS_LOGS_VIEWS_UPDATE
Environments Logs Views Update
logs
Environments Managed Viewsets Retrieve
POSTHOG_ENVIRONMENTS_MANAGED_VIEWSETS_RETRIEVE
Get all views associated with a specific managed viewset. GET /api/environments/{team_id}/managed_viewsets/{kind}/
managed_viewsets
Environments Managed Viewsets Update
POSTHOG_ENVIRONMENTS_MANAGED_VIEWSETS_UPDATE
Enable or disable a managed viewset by kind. PUT /api/environments/{team_id}/managed_viewsets/{kind}/ with body {"enabled": true/false}
managed_viewsets
List conversion goals
POSTHOG_ENVIRONMENTS_MARKETING_ANALYTICS_CONVERSION_GOALS_RETRIEVE
Read the configured conversion goals for the current project — each with its kind, target, last-30d count, integrated vs non-integrated split, and a misconfiguration flag. Read-only.
marketing_analytics
List marketing data sources
POSTHOG_ENVIRONMENTS_MARKETING_ANALYTICS_DATA_SOURCES_RETRIEVE
Check the platform → data-warehouse side of every native marketing integration: connection state, sync recency, row counts, required-table status, and schema-mapping coverage. Read-only.
marketing_analytics
Diagnose marketing analytics
POSTHOG_ENVIRONMENTS_MARKETING_ANALYTICS_DIAGNOSE_RETRIEVE
Aggregate data-source sync health, UTM attribution health, and conversion-goal config into a single per-integration diagnostic with recommended actions. Read-only.
marketing_analytics
Explain a conversion goal
POSTHOG_ENVIRONMENTS_MARKETING_ANALYTICS_EXPLAIN_CONVERSION_GOAL_RETRIEVE
Break down a single conversion goal's events over a period by event name, utm_source, and matched integration, with a small sample of events. Read-only.
marketing_analytics
Suggest conversion goals
POSTHOG_ENVIRONMENTS_MARKETING_ANALYTICS_SUGGEST_CONVERSION_GOALS_RETRIEVE
Rank existing custom events as conversion-goal candidates by volume, UTM-tag coverage, and unique users, excluding system/autocaptured events. Read-only.
marketing_analytics
Suggest UTM source mappings
POSTHOG_ENVIRONMENTS_MARKETING_ANALYTICS_SUGGEST_UTM_MAPPINGS_RETRIEVE
Detect unmatched utm_source values from recent events and propose custom_source_mappings entries, alongside the full utm_source catalogue and current mappings. Read-only.
marketing_analytics
Environments Marketing Analytics Test Mapping Create
POSTHOG_ENVIRONMENTS_MARKETING_ANALYTICS_TEST_MAPPING_CREATE
Environments Marketing Analytics Test Mapping Create
marketing_analytics
Run UTM audit
POSTHOG_ENVIRONMENTS_MARKETING_ANALYTICS_UTM_AUDIT_RETRIEVE
Cross-reference campaigns with spend from ad platforms against pageview events with UTM parameters to identify tracking issues.
marketing_analytics
Environments Max Tools Create And Query Insight Create
POSTHOG_ENVIRONMENTS_MAX_TOOLS_CREATE_AND_QUERY_INSIGHT_CREATE
Environments Max Tools Create And Query Insight Create
max_tools
Environments Mcp Analytics Feedback Create
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_FEEDBACK_CREATE
Create a new MCP feedback submission for the current project.
mcp_analytics
Environments Mcp Analytics Feedback List
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_FEEDBACK_LIST
List MCP feedback submissions for the current project, newest first.
mcp_analytics
Environments Mcp Analytics Intent Clusters Recompute
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_INTENT_CLUSTERS_RECOMPUTE
Trigger an asynchronous recompute of the intent cluster snapshot. The task runs in the background; poll the GET endpoint for progress (status transitions to 'idle' or 'error').
mcp_analytics
Environments Mcp Analytics Intent Clusters Retrieve
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_INTENT_CLUSTERS_RETRIEVE
Return the most recent intent cluster snapshot for the current project. Returns an empty IDLE snapshot when no clustering run has happened yet.
mcp_analytics
Environments Mcp Analytics Missing Capabilities Create
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_MISSING_CAPABILITIES_CREATE
Create a new missing capability report for the current project.
mcp_analytics
Environments Mcp Analytics Missing Capabilities List
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_MISSING_CAPABILITIES_LIST
List missing capability reports for the current project, newest first.
mcp_analytics
Environments Mcp Analytics Sessions Activity Overview
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_SESSIONS_ACTIVITY_OVERVIEW
Aggregate counters, top tools, agent clients, and the most recent tool calls for the last 30 days, computed in one request. Powers the dashboard's activity view; always computed fresh so polling callers watch data arrive.
mcp_analytics
Environments Mcp Analytics Sessions Generate Intent
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_SESSIONS_GENERATE_INTENT
Generate (or return the cached) LLM summary of the agent's goal for a session, derived from its recorded $mcp_intents. The first call summarises and persists the result; subsequent calls return the stored summary.
mcp_analytics
Environments Mcp Analytics Sessions Intent Digest
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_SESSIONS_INTENT_DIGEST
Generate (or return the cached) LLM digest of what agents are trying to do with this MCP server, derived from the most recent recorded $mcp_intents across all sessions. Content-addressed cache: only regenerates when new intents arrive. Powers the dashboard's low-volume activity stage.
mcp_analytics
Environments Mcp Analytics Sessions List
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_SESSIONS_LIST
List MCP sessions for the current project, derived by grouping $mcp_tool_call events by $mcp_session_id. Ordered by newest session start first by default.
mcp_analytics
Environments Mcp Analytics Sessions Tool Calls
POSTHOG_ENVIRONMENTS_MCP_ANALYTICS_SESSIONS_TOOL_CALLS
List a page of the $mcp_tool_call events that belong to a given $session_id, in chronological order.
mcp_analytics
Environments Mcp Servers List
POSTHOG_ENVIRONMENTS_MCP_SERVERS_LIST
Lists curated MCP server templates that users can install with one click. Templates are seeded by PostHog operators and carry shared, encrypted OAuth client credentials. Inactive templates are hidden from the catalog.
mcp_servers
Environments Mcp Server Installations Authorize Retrieve
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_AUTHORIZE_RETRIEVE
Start (or re-start) an OAuth flow. Pass ``template_id`` to (re)connect a catalog template, or ``installation_id`` to reconnect an existing custom install using its cached metadata and per-user DCR creds.
mcp_server_installations
Environments Mcp Server Installations Create
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_CREATE
Environments Mcp Server Installations Create
mcp_server_installations
Environments Mcp Server Installations Destroy
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_DESTROY
Environments Mcp Server Installations Destroy
mcp_server_installations
Environments Mcp Server Installations Install Custom Create
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_INSTALL_CUSTOM_CREATE
Environments Mcp Server Installations Install Custom Create
mcp_server_installations
Environments Mcp Server Installations Install Template Create
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_INSTALL_TEMPLATE_CREATE
Environments Mcp Server Installations Install Template Create
mcp_server_installations
Environments Mcp Server Installations List
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_LIST
Environments Mcp Server Installations List
mcp_server_installations
Environments Mcp Server Installations Partial Update
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_PARTIAL_UPDATE
Environments Mcp Server Installations Partial Update
mcp_server_installations
Environments Mcp Server Installations Proxy Create
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_PROXY_CREATE
Environments Mcp Server Installations Proxy Create
mcp_server_installations
Environments Mcp Server Installations Retrieve
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_RETRIEVE
Environments Mcp Server Installations Retrieve
mcp_server_installations
Environments Mcp Server Installations Tools Partial Update
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_TOOLS_PARTIAL_UPDATE
Environments Mcp Server Installations Tools Partial Update
mcp_server_installations
Environments Mcp Server Installations Tools Refresh Create
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_TOOLS_REFRESH_CREATE
Environments Mcp Server Installations Tools Refresh Create
mcp_server_installations
Environments Mcp Server Installations Tools Retrieve
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_TOOLS_RETRIEVE
Environments Mcp Server Installations Tools Retrieve
mcp_server_installations
Environments Mcp Server Installations Update
POSTHOG_ENVIRONMENTS_MCP_SERVER_INSTALLATIONS_UPDATE
Environments Mcp Server Installations Update
mcp_server_installations
Environments Mcp Tools Create
POSTHOG_ENVIRONMENTS_MCP_TOOLS_CREATE
Invoke an MCP tool by name. This endpoint allows MCP callers to invoke Max AI tools directly without going through the full LangChain conversation flow. Scopes are resolved dynamically per tool via dangerously_get_required_scopes.
mcp_tools
Environments Messaging Templates Create
POSTHOG_ENVIRONMENTS_MESSAGING_TEMPLATES_CREATE
Environments Messaging Templates Create
messaging_templates
Environments Messaging Templates Design Partial Update
POSTHOG_ENVIRONMENTS_MESSAGING_TEMPLATES_DESIGN_PARTIAL_UPDATE
Environments Messaging Templates Design Partial Update
messaging_templates
Environments Messaging Templates Destroy
POSTHOG_ENVIRONMENTS_MESSAGING_TEMPLATES_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
messaging_templates
Environments Messaging Templates List
POSTHOG_ENVIRONMENTS_MESSAGING_TEMPLATES_LIST
Environments Messaging Templates List
messaging_templates
Environments Messaging Templates Partial Update
POSTHOG_ENVIRONMENTS_MESSAGING_TEMPLATES_PARTIAL_UPDATE
Environments Messaging Templates Partial Update
messaging_templates
Environments Messaging Templates Retrieve
POSTHOG_ENVIRONMENTS_MESSAGING_TEMPLATES_RETRIEVE
Environments Messaging Templates Retrieve
messaging_templates
Environments Messaging Templates Update
POSTHOG_ENVIRONMENTS_MESSAGING_TEMPLATES_UPDATE
Environments Messaging Templates Update
messaging_templates
Environments Metrics Characterize Create
POSTHOG_ENVIRONMENTS_METRICS_CHARACTERIZE_CREATE
Characterize a metric anomaly: compare an anomaly window against a baseline, find the onset, and rank which label values moved.
metricsmetrics
Environments Metrics Has Metrics Retrieve
POSTHOG_ENVIRONMENTS_METRICS_HAS_METRICS_RETRIEVE
Environments Metrics Has Metrics Retrieve
metricsmetrics
Environments Metrics Query Create
POSTHOG_ENVIRONMENTS_METRICS_QUERY_CREATE
Environments Metrics Query Create
metricsmetrics
Environments Metrics Samples Create
POSTHOG_ENVIRONMENTS_METRICS_SAMPLES_CREATE
Raw individual emissions for a metric (the events model), newest first — backs the Samples view and the metric->trace pivot.
metricsmetrics
Environments Metrics Values Retrieve
POSTHOG_ENVIRONMENTS_METRICS_VALUES_RETRIEVE
Distinct metric names for the team. Backs the picker UI.
metricsmetrics
Environments Partial Update
POSTHOG_ENVIRONMENTS_PARTIAL_UPDATE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Persons Activity Retrieve
POSTHOG_ENVIRONMENTS_PERSONS_ACTIVITY_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons All Activity Retrieve
POSTHOG_ENVIRONMENTS_PERSONS_ALL_ACTIVITY_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Batch By Distinct Ids Create
POSTHOG_ENVIRONMENTS_PERSONS_BATCH_BY_DISTINCT_IDS_CREATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Batch By Uuids Create
POSTHOG_ENVIRONMENTS_PERSONS_BATCH_BY_UUIDS_CREATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Bulk Delete Create
POSTHOG_ENVIRONMENTS_PERSONS_BULK_DELETE_CREATE
This endpoint allows you to bulk delete persons, either by the PostHog person IDs or by distinct IDs. You can pass in a maximum of 1000 IDs per call. Only events captured before the request will be deleted.
persons
Environments Persons Cohorts Retrieve
POSTHOG_ENVIRONMENTS_PERSONS_COHORTS_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Delete Property Create
POSTHOG_ENVIRONMENTS_PERSONS_DELETE_PROPERTY_CREATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Deletion Status List
POSTHOG_ENVIRONMENTS_PERSONS_DELETION_STATUS_LIST
List the status of queued event deletions for persons. When you delete a person with `delete_events=true`, an async deletion is queued. Use this endpoint to check whether those deletions are still pending or have been completed.
persons
Environments Persons Emails List
POSTHOG_ENVIRONMENTS_PERSONS_EMAILS_LIST
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Funnel Create
POSTHOG_ENVIRONMENTS_PERSONS_FUNNEL_CREATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Funnel Retrieve
POSTHOG_ENVIRONMENTS_PERSONS_FUNNEL_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Lifecycle Retrieve
POSTHOG_ENVIRONMENTS_PERSONS_LIFECYCLE_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons List
POSTHOG_ENVIRONMENTS_PERSONS_LIST
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Partial Update
POSTHOG_ENVIRONMENTS_PERSONS_PARTIAL_UPDATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Properties At Time Retrieve
POSTHOG_ENVIRONMENTS_PERSONS_PROPERTIES_AT_TIME_RETRIEVE
Get person properties as they existed at a specific point in time. This endpoint reconstructs person properties by querying ClickHouse events for $set and $set_once operations up to the specified timestamp. Query parameters: - distinct_id: The distinct_id of the person - timestamp: ISO datetime string for the point in time (e.g., "2023-06-15T14:30:00Z") - include_set_once: Whether to handle $set_once operations (default: false)
personspersons
Environments Persons Properties Timeline Retrieve
POSTHOG_ENVIRONMENTS_PERSONS_PROPERTIES_TIMELINE_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Reset Person Distinct Id Create
POSTHOG_ENVIRONMENTS_PERSONS_RESET_PERSON_DISTINCT_ID_CREATE
Reset a distinct_id for a deleted person. This allows the distinct_id to be used again.
persons
Environments Persons Retrieve
POSTHOG_ENVIRONMENTS_PERSONS_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Split Create
POSTHOG_ENVIRONMENTS_PERSONS_SPLIT_CREATE
Split distinct_ids off a merged person. Two mutually exclusive modes: - **`distinct_ids_to_split`** (recommended for surgical edits): moves only the listed distinct_ids off this person onto new single-id persons. The original person keeps every other distinct_id and its properties. - **`main_distinct_id`**: keeps only the specified distinct_id on this person; moves every *other* distinct_id off onto its own new person. If omitted, the first distinct_id is kept. The original person always retains its properties. To clear individual properties afterward, use the `delete_property` endpoint. The split runs asynchronously: a 201 response means the task was enqueued. Newly-created split-off persons get a deterministic UUID derived from `(team_id, distinct_id)`, so they can be located client-side without polling. If you need to delete a split-off person after this call, prefer looking it up by that deterministic UUID rather than by distinct_id, since the latter still resolves to the original merged person until the async task completes.
persons
Environments Persons Update
POSTHOG_ENVIRONMENTS_PERSONS_UPDATE
Only for setting properties on the person. "properties" from the request data will be updated via a "$set" event. This means that only the properties listed will be updated, but other properties won't be removed nor updated. If you would like to remove a property use the `delete_property` endpoint.
persons
Environments Persons Update Property Create
POSTHOG_ENVIRONMENTS_PERSONS_UPDATE_PROPERTY_CREATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Persons Values Retrieve
POSTHOG_ENVIRONMENTS_PERSONS_VALUES_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Environments Plugin Configs Logs List
POSTHOG_ENVIRONMENTS_PLUGIN_CONFIGS_LOGS_LIST
Environments Plugin Configs Logs List
plugin_configs
Environments Project Secret Api Keys Create
POSTHOG_ENVIRONMENTS_PROJECT_SECRET_API_KEYS_CREATE
Environments Project Secret Api Keys Create
project_secret_api_keys
Environments Project Secret Api Keys Destroy
POSTHOG_ENVIRONMENTS_PROJECT_SECRET_API_KEYS_DESTROY
Environments Project Secret Api Keys Destroy
project_secret_api_keys
Environments Project Secret Api Keys List
POSTHOG_ENVIRONMENTS_PROJECT_SECRET_API_KEYS_LIST
Environments Project Secret Api Keys List
project_secret_api_keys
Environments Project Secret Api Keys Partial Update
POSTHOG_ENVIRONMENTS_PROJECT_SECRET_API_KEYS_PARTIAL_UPDATE
Environments Project Secret Api Keys Partial Update
project_secret_api_keys
Environments Project Secret Api Keys Retrieve
POSTHOG_ENVIRONMENTS_PROJECT_SECRET_API_KEYS_RETRIEVE
Environments Project Secret Api Keys Retrieve
project_secret_api_keys
Environments Project Secret Api Keys Roll Create
POSTHOG_ENVIRONMENTS_PROJECT_SECRET_API_KEYS_ROLL_CREATE
Roll a project secret API key
project_secret_api_keys
Environments Project Secret Api Keys Update
POSTHOG_ENVIRONMENTS_PROJECT_SECRET_API_KEYS_UPDATE
Environments Project Secret Api Keys Update
project_secret_api_keys
Environments Property Access Controls Create
POSTHOG_ENVIRONMENTS_PROPERTY_ACCESS_CONTROLS_CREATE
Create or update a property access control rule.
property_access_controls
Environments Property Access Controls Destroy
POSTHOG_ENVIRONMENTS_PROPERTY_ACCESS_CONTROLS_DESTROY
Delete a property access control rule. The rule is identified by `property_definition_id` plus an optional `organization_member` or `role` query parameter. Omitting both targets deletes the default rule.
property_access_controls
Environments Property Access Controls Retrieve
POSTHOG_ENVIRONMENTS_PROPERTY_ACCESS_CONTROLS_RETRIEVE
Get all property access control rules for a property definition.
property_access_controls
Environments Query Check Auth For Async Create
POSTHOG_ENVIRONMENTS_QUERY_CHECK_AUTH_FOR_ASYNC_CREATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
query
Environments Query Create
POSTHOG_ENVIRONMENTS_QUERY_CREATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
query
Environments Query Create With Kind
POSTHOG_ENVIRONMENTS_QUERY_CREATE_WITH_KIND
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
query
Environments Query Destroy
POSTHOG_ENVIRONMENTS_QUERY_DESTROY
(Experimental)
query
Environments Query Draft Sql Retrieve
POSTHOG_ENVIRONMENTS_QUERY_DRAFT_SQL_RETRIEVE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
query
Environments Query Log Retrieve
POSTHOG_ENVIRONMENTS_QUERY_LOG_RETRIEVE
Get query log details from query_log_archive table for a specific query_id, the query must have been issued in last 24 hours.
query
Environments Query Retrieve
POSTHOG_ENVIRONMENTS_QUERY_RETRIEVE
(Experimental)
query
Environments Query Upgrade Create
POSTHOG_ENVIRONMENTS_QUERY_UPGRADE_CREATE
Upgrades a query without executing it. Returns a query with all nodes migrated to the latest version.
query
Environments Reset Token Partial Update
POSTHOG_ENVIRONMENTS_RESET_TOKEN_PARTIAL_UPDATE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Retrieve
POSTHOG_ENVIRONMENTS_RETRIEVE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Retrieve Session Summaries Config
POSTHOG_ENVIRONMENTS_RETRIEVE_SESSION_SUMMARIES_CONFIG
Retrieve the team's session summaries configuration (product context used to tailor single-session replay summaries).
session_summaries
Environments Rotate Secret Token Partial Update
POSTHOG_ENVIRONMENTS_ROTATE_SECRET_TOKEN_PARTIAL_UPDATE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Saved Create
POSTHOG_ENVIRONMENTS_SAVED_CREATE
Create a saved heatmap for a page URL. For type 'screenshot' (the default) this enqueues a headless render of the page at each target width; poll the saved heatmap or its content endpoint until status is 'completed'. Provide 'widths' to control which viewport widths are rendered.
saved
Environments Saved Destroy
POSTHOG_ENVIRONMENTS_SAVED_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
saved
Environments Saved List
POSTHOG_ENVIRONMENTS_SAVED_LIST
List saved heatmaps for the project. A saved heatmap pins a page URL and a set of viewport widths, and (for type 'screenshot') renders the page so heatmap data can be overlaid on it.
saved
Environments Saved Partial Update
POSTHOG_ENVIRONMENTS_SAVED_PARTIAL_UPDATE
Update a saved heatmap (e.g. rename, change widths, or soft-delete via 'deleted'). Changing the URL of a 'screenshot' heatmap triggers a re-render.
saved
Environments Saved Regenerate Create
POSTHOG_ENVIRONMENTS_SAVED_REGENERATE_CREATE
Re-run screenshot generation for a saved heatmap of type 'screenshot'. Clears existing renders and re-renders at every target width; status returns to 'processing'.
saved
Environments Saved Retrieve
POSTHOG_ENVIRONMENTS_SAVED_RETRIEVE
Get a single saved heatmap by its short_id, including per-width render status.
saved
Environments Sessions Property Definitions Retrieve
POSTHOG_ENVIRONMENTS_SESSIONS_PROPERTY_DEFINITIONS_RETRIEVE
Environments Sessions Property Definitions Retrieve
sessions
Environments Sessions Values Retrieve
POSTHOG_ENVIRONMENTS_SESSIONS_VALUES_RETRIEVE
Environments Sessions Values Retrieve
sessions
Environments Session Recordings Bulk Delete Create
POSTHOG_ENVIRONMENTS_SESSION_RECORDINGS_BULK_DELETE_CREATE
Delete a batch of session recordings by session ID. Deletion is permanent and cannot be undone. IDs that don't match an existing recording are skipped and counted in `total_requested` but not `deleted_count`.
replaysession_recordings
Environments Session Recordings Destroy
POSTHOG_ENVIRONMENTS_SESSION_RECORDINGS_DESTROY
Environments Session Recordings Destroy
replaysession_recordings
Environments Session Recordings List
POSTHOG_ENVIRONMENTS_SESSION_RECORDINGS_LIST
Environments Session Recordings List
replaysession_recordings
Environments Session Recordings Partial Update
POSTHOG_ENVIRONMENTS_SESSION_RECORDINGS_PARTIAL_UPDATE
Environments Session Recordings Partial Update
replaysession_recordings
Environments Session Recordings Retrieve
POSTHOG_ENVIRONMENTS_SESSION_RECORDINGS_RETRIEVE
Environments Session Recordings Retrieve
replaysession_recordings
Environments Session Recordings Sharing List
POSTHOG_ENVIRONMENTS_SESSION_RECORDINGS_SHARING_LIST
Environments Session Recordings Sharing List
session_recordings
Environments Session Recordings Sharing Passwords Create
POSTHOG_ENVIRONMENTS_SESSION_RECORDINGS_SHARING_PASSWORDS_CREATE
Create a new password for the sharing configuration.
session_recordings
Environments Session Recordings Sharing Passwords Destroy
POSTHOG_ENVIRONMENTS_SESSION_RECORDINGS_SHARING_PASSWORDS_DESTROY
Delete a password from the sharing configuration.
session_recordings
Environments Session Recordings Sharing Refresh Create
POSTHOG_ENVIRONMENTS_SESSION_RECORDINGS_SHARING_REFRESH_CREATE
Environments Session Recordings Sharing Refresh Create
session_recordings
Environments Session Recordings Update
POSTHOG_ENVIRONMENTS_SESSION_RECORDINGS_UPDATE
Environments Session Recordings Update
replaysession_recordings
Environments Session Recording Playlists Create
POSTHOG_ENVIRONMENTS_SESSION_RECORDING_PLAYLISTS_CREATE
Environments Session Recording Playlists Create
replaysession_recording_playlists
Environments Session Recording Playlists Destroy
POSTHOG_ENVIRONMENTS_SESSION_RECORDING_PLAYLISTS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
replaysession_recording_playlists
Environments Session Recording Playlists List
POSTHOG_ENVIRONMENTS_SESSION_RECORDING_PLAYLISTS_LIST
Override list to include synthetic playlists. Synthetics have no DB row, so we compute each one's position in the merged sort and split the requested page between synthetics and a DB queryset slice. The merge/rank/sort is all in-memory, so each phase is wrapped in a span and the input sizes are recorded as span attributes — a slow response on a team with many playlists then shows up as a wide span against a large db_count.
replaysession_recording_playlists
Environments Session Recording Playlists Partial Update
POSTHOG_ENVIRONMENTS_SESSION_RECORDING_PLAYLISTS_PARTIAL_UPDATE
Environments Session Recording Playlists Partial Update
replaysession_recording_playlists
Environments Session Recording Playlists Recordings Create
POSTHOG_ENVIRONMENTS_SESSION_RECORDING_PLAYLISTS_RECORDINGS_CREATE
Environments Session Recording Playlists Recordings Create
replaysession_recording_playlists
Environments Session Recording Playlists Recordings Destroy
POSTHOG_ENVIRONMENTS_SESSION_RECORDING_PLAYLISTS_RECORDINGS_DESTROY
Environments Session Recording Playlists Recordings Destroy
replaysession_recording_playlists
Environments Session Recording Playlists Recordings Retrieve
POSTHOG_ENVIRONMENTS_SESSION_RECORDING_PLAYLISTS_RECORDINGS_RETRIEVE
Environments Session Recording Playlists Recordings Retrieve
replaysession_recording_playlists
Environments Session Recording Playlists Retrieve
POSTHOG_ENVIRONMENTS_SESSION_RECORDING_PLAYLISTS_RETRIEVE
Environments Session Recording Playlists Retrieve
replaysession_recording_playlists
Environments Session Recording Playlists Update
POSTHOG_ENVIRONMENTS_SESSION_RECORDING_PLAYLISTS_UPDATE
Environments Session Recording Playlists Update
replaysession_recording_playlists
Environments Settings As Of Retrieve
POSTHOG_ENVIRONMENTS_SETTINGS_AS_OF_RETRIEVE
Return the team settings as of the provided timestamp. Query params: - at: ISO8601 datetime (required) - scope: optional, one or multiple keys to filter the returned settings
environments
Environments Subscriptions Create
POSTHOG_ENVIRONMENTS_SUBSCRIPTIONS_CREATE
Environments Subscriptions Create
subscriptionssubscriptions
List subscription deliveries
POSTHOG_ENVIRONMENTS_SUBSCRIPTIONS_DELIVERIES_LIST
Paginated delivery history for a subscription. Requires premium subscriptions.
subscriptionssubscriptions
Retrieve subscription delivery
POSTHOG_ENVIRONMENTS_SUBSCRIPTIONS_DELIVERIES_RETRIEVE
Fetch one delivery row by id.
subscriptionssubscriptions
Environments Subscriptions Destroy
POSTHOG_ENVIRONMENTS_SUBSCRIPTIONS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
subscriptionssubscriptions
Environments Subscriptions List
POSTHOG_ENVIRONMENTS_SUBSCRIPTIONS_LIST
Environments Subscriptions List
subscriptionssubscriptions
Environments Subscriptions Partial Update
POSTHOG_ENVIRONMENTS_SUBSCRIPTIONS_PARTIAL_UPDATE
Environments Subscriptions Partial Update
subscriptionssubscriptions
Environments Subscriptions Retrieve
POSTHOG_ENVIRONMENTS_SUBSCRIPTIONS_RETRIEVE
Environments Subscriptions Retrieve
subscriptionssubscriptions
Environments Subscriptions Summary Quota Retrieve
POSTHOG_ENVIRONMENTS_SUBSCRIPTIONS_SUMMARY_QUOTA_RETRIEVE
Environments Subscriptions Summary Quota Retrieve
subscriptionssubscriptions
Environments Subscriptions Test Delivery Create
POSTHOG_ENVIRONMENTS_SUBSCRIPTIONS_TEST_DELIVERY_CREATE
Environments Subscriptions Test Delivery Create
subscriptionssubscriptions
Environments Subscriptions Update
POSTHOG_ENVIRONMENTS_SUBSCRIPTIONS_UPDATE
Environments Subscriptions Update
subscriptionssubscriptions
Environments Taggers Create
POSTHOG_ENVIRONMENTS_TAGGERS_CREATE
Environments Taggers Create
taggers
Environments Taggers Destroy
POSTHOG_ENVIRONMENTS_TAGGERS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
taggers
Environments Taggers List
POSTHOG_ENVIRONMENTS_TAGGERS_LIST
Environments Taggers List
taggers
Environments Taggers Partial Update
POSTHOG_ENVIRONMENTS_TAGGERS_PARTIAL_UPDATE
Environments Taggers Partial Update
taggers
Environments Taggers Retrieve
POSTHOG_ENVIRONMENTS_TAGGERS_RETRIEVE
Environments Taggers Retrieve
taggers
Environments Taggers Test Hog Create
POSTHOG_ENVIRONMENTS_TAGGERS_TEST_HOG_CREATE
Test Hog tagger code against sample events without saving.
taggers
Environments Taggers Update
POSTHOG_ENVIRONMENTS_TAGGERS_UPDATE
Environments Taggers Update
taggers
Environments Tracing Spans Aggregate Create
POSTHOG_ENVIRONMENTS_TRACING_SPANS_AGGREGATE_CREATE
Environments Tracing Spans Aggregate Create
tracing
Environments Tracing Spans Attributes Retrieve
POSTHOG_ENVIRONMENTS_TRACING_SPANS_ATTRIBUTES_RETRIEVE
Environments Tracing Spans Attributes Retrieve
tracing
Environments Tracing Spans Attribute Breakdown Create
POSTHOG_ENVIRONMENTS_TRACING_SPANS_ATTRIBUTE_BREAKDOWN_CREATE
Environments Tracing Spans Attribute Breakdown Create
tracing
Environments Tracing Spans Count Create
POSTHOG_ENVIRONMENTS_TRACING_SPANS_COUNT_CREATE
Environments Tracing Spans Count Create
tracing
Environments Tracing Spans Duration Histogram Create
POSTHOG_ENVIRONMENTS_TRACING_SPANS_DURATION_HISTOGRAM_CREATE
Environments Tracing Spans Duration Histogram Create
tracing
Environments Tracing Spans Has Spans Retrieve
POSTHOG_ENVIRONMENTS_TRACING_SPANS_HAS_SPANS_RETRIEVE
Environments Tracing Spans Has Spans Retrieve
tracing
Environments Tracing Spans Query Create
POSTHOG_ENVIRONMENTS_TRACING_SPANS_QUERY_CREATE
Environments Tracing Spans Query Create
tracing
Environments Tracing Spans Service Names Retrieve
POSTHOG_ENVIRONMENTS_TRACING_SPANS_SERVICE_NAMES_RETRIEVE
Environments Tracing Spans Service Names Retrieve
tracing
Environments Tracing Spans Sparkline Create
POSTHOG_ENVIRONMENTS_TRACING_SPANS_SPARKLINE_CREATE
Environments Tracing Spans Sparkline Create
tracing
Environments Tracing Spans Symbol Stats Create
POSTHOG_ENVIRONMENTS_TRACING_SPANS_SYMBOL_STATS_CREATE
Environments Tracing Spans Symbol Stats Create
tracing
Environments Tracing Spans Trace Create
POSTHOG_ENVIRONMENTS_TRACING_SPANS_TRACE_CREATE
Environments Tracing Spans Trace Create
tracing
Environments Tracing Spans Tree Create
POSTHOG_ENVIRONMENTS_TRACING_SPANS_TREE_CREATE
Environments Tracing Spans Tree Create
tracing
Environments Tracing Spans Values Retrieve
POSTHOG_ENVIRONMENTS_TRACING_SPANS_VALUES_RETRIEVE
Environments Tracing Spans Values Retrieve
tracing
Environments Tracing Views Create
POSTHOG_ENVIRONMENTS_TRACING_VIEWS_CREATE
Environments Tracing Views Create
tracing
Environments Tracing Views Destroy
POSTHOG_ENVIRONMENTS_TRACING_VIEWS_DESTROY
Environments Tracing Views Destroy
tracing
Environments Tracing Views List
POSTHOG_ENVIRONMENTS_TRACING_VIEWS_LIST
Environments Tracing Views List
tracing
Environments Tracing Views Partial Update
POSTHOG_ENVIRONMENTS_TRACING_VIEWS_PARTIAL_UPDATE
Environments Tracing Views Partial Update
tracing
Environments Tracing Views Retrieve
POSTHOG_ENVIRONMENTS_TRACING_VIEWS_RETRIEVE
Environments Tracing Views Retrieve
tracing
Environments Tracing Views Update
POSTHOG_ENVIRONMENTS_TRACING_VIEWS_UPDATE
Environments Tracing Views Update
tracing
Environments Update
POSTHOG_ENVIRONMENTS_UPDATE
Deprecated: use /api/environments/{id}/ instead.
environments
Environments Update Session Summaries Config
POSTHOG_ENVIRONMENTS_UPDATE_SESSION_SUMMARIES_CONFIG
Update the team's session summaries configuration (product context used to tailor single-session replay summaries).
session_summaries
Environments User Interviews Create
POSTHOG_ENVIRONMENTS_USER_INTERVIEWS_CREATE
Environments User Interviews Create
user_interviews
Environments User Interviews Destroy
POSTHOG_ENVIRONMENTS_USER_INTERVIEWS_DESTROY
Environments User Interviews Destroy
user_interviews
Environments User Interviews List
POSTHOG_ENVIRONMENTS_USER_INTERVIEWS_LIST
Environments User Interviews List
user_interviews
Environments User Interviews Partial Update
POSTHOG_ENVIRONMENTS_USER_INTERVIEWS_PARTIAL_UPDATE
Environments User Interviews Partial Update
user_interviews
Environments User Interviews Retrieve
POSTHOG_ENVIRONMENTS_USER_INTERVIEWS_RETRIEVE
Environments User Interviews Retrieve
user_interviews
Search interview responses by semantic similarity
POSTHOG_ENVIRONMENTS_USER_INTERVIEWS_SEARCH_CREATE
Embed `query` with the same model used to index interview transcripts and summaries, then return the top matches by cosine distance. Each match is a single (interview, document_type) pair — an interview can appear up to twice if both its transcript and summary score above other interviews. Useful for surfacing relevant interview snippets in natural language, without exact keyword matches.
user_interviews
Environments User Interviews Update
POSTHOG_ENVIRONMENTS_USER_INTERVIEWS_UPDATE
Environments User Interviews Update
user_interviews
Environments User Interview Topics Add Interviewee Create
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_ADD_INTERVIEWEE_CREATE
Add a single interviewee to this topic. Email-shaped identifiers (including the `Display Name <email@host>` form) are appended to `interviewee_emails`; everything else is appended to `interviewee_distinct_ids`. Idempotent — adding an identifier that's already present leaves the topic unchanged. Returns the updated topic.
user_interview_topics
Environments User Interview Topics Create
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_CREATE
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
Environments User Interview Topics Destroy
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_DESTROY
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
Environments User Interview Topics Interviewees Bulk Create
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_INTERVIEWEES_BULK_CREATE
Create up to 500 interviewee context rows for a topic in a single request. Rows whose (topic, interviewee_identifier) already exists are skipped — the response surfaces an `inserted_count`, a `skipped_count`, and the `skipped_identifiers` so the caller can reconcile. Items must have unique `interviewee_identifier` values within the batch.
user_interview_topics
Environments User Interview Topics Interviewees Create
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_INTERVIEWEES_CREATE
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
Environments User Interview Topics Interviewees Destroy
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_INTERVIEWEES_DESTROY
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
Environments User Interview Topics Interviewees List
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_INTERVIEWEES_LIST
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
Environments User Interview Topics Interviewees Partial Update
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_INTERVIEWEES_PARTIAL_UPDATE
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
Environments User Interview Topics Interviewees Retrieve
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_INTERVIEWEES_RETRIEVE
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
Environments User Interview Topics Interviewees Update
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_INTERVIEWEES_UPDATE
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
Environments User Interview Topics List
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_LIST
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
Environments User Interview Topics Partial Update
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_PARTIAL_UPDATE
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
Environments User Interview Topics Preview Invite Create
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_PREVIEW_INVITE_CREATE
Render the invite email exactly as a specific targeted interviewee would receive it — personalized subject and body — without sending anything and without creating or reading any share links. Pass `interviewee_identifier` to preview for a particular person, or omit it to preview for the first targeted interviewee. The body always shows an illustrative placeholder link (`is_preview_link: true`), never a live interview URL.
user_interview_topics
Environments User Interview Topics Remove Interviewee Create
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_REMOVE_INTERVIEWEE_CREATE
Remove an interviewee from this topic. Drops the identifier from both `interviewee_emails` and `interviewee_distinct_ids`, and disables any active SharingConfiguration linked to an IntervieweeContext for that identifier on this topic so the removed person can no longer open their interview link. Idempotent — removing an identifier that isn't present is a no-op. Returns the updated topic.
user_interview_topics
Environments User Interview Topics Retrieve
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_RETRIEVE
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
Environments User Interview Topics Send Invites Create
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_SEND_INVITES_CREATE
Generate (if needed) and email a personalized public interview link to every targeted interviewee on this topic whose identifier is an email address. Distinct-ID-only interviewees are skipped and surfaced in the response. Each invite is keyed on the underlying SharingConfiguration so re-runs after token rotation produce a fresh send.
user_interview_topics
Environments User Interview Topics Update
POSTHOG_ENVIRONMENTS_USER_INTERVIEW_TOPICS_UPDATE
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
Environments Vision Observations Label Create
POSTHOG_ENVIRONMENTS_VISION_OBSERVATIONS_LABEL_CREATE
Set or update the observation's shared label: whether the scanner scored the session correctly, plus optional feedback on what it got wrong. One label per observation, shared across the team; these labels feed prompt improvement. Requires session recording edit access.
vision
Environments Vision Observations Label Destroy
POSTHOG_ENVIRONMENTS_VISION_OBSERVATIONS_LABEL_DESTROY
Remove the observation's shared label. Requires session recording edit access.
vision
Environments Vision Observations List
POSTHOG_ENVIRONMENTS_VISION_OBSERVATIONS_LIST
Read-only access to a session's observations across every scanner the caller can read, for the replay-page dock.
vision
Environments Vision Observations Retrieve
POSTHOG_ENVIRONMENTS_VISION_OBSERVATIONS_RETRIEVE
Read-only access to a session's observations across every scanner the caller can read, for the replay-page dock.
vision
Environments Vision Observations Retry Create
POSTHOG_ENVIRONMENTS_VISION_OBSERVATIONS_RETRY_CREATE
Delete a failed observation and re-run its scanner on the same recording. Returns 202 with the workflow handle.
vision
Environments Vision Scanners Create
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_CREATE
CRUD for Replay Vision scanners.
vision
Environments Vision Scanners Creators Retrieve
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_CREATORS_RETRIEVE
Distinct creators across the team's scanners — feeds the `Created by` filter dropdown.
vision
Environments Vision Scanners Destroy
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_DESTROY
CRUD for Replay Vision scanners.
vision
Environments Vision Scanners Estimate Create
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_ESTIMATE_CREATE
Estimate the observation volume a proposed scanner would generate, for the pre-save cost preview.
vision
Environments Vision Scanners List
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_LIST
CRUD for Replay Vision scanners.
vision
Environments Vision Scanners Observations Label Create
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_OBSERVATIONS_LABEL_CREATE
Set or update the observation's shared label: whether the scanner scored the session correctly, plus optional feedback on what it got wrong. One label per observation, shared across the team; these labels feed prompt improvement. Requires session recording edit access.
vision
Environments Vision Scanners Observations Label Destroy
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_OBSERVATIONS_LABEL_DESTROY
Remove the observation's shared label. Requires session recording edit access.
vision
Environments Vision Scanners Observations List
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_OBSERVATIONS_LIST
Read-only access to observations produced by a scanner.
vision
Environments Vision Scanners Observations Retrieve
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_OBSERVATIONS_RETRIEVE
Read-only access to observations produced by a scanner.
vision
Environments Vision Scanners Observations Retry Create
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_OBSERVATIONS_RETRY_CREATE
Delete a failed observation and re-run its scanner on the same recording. Returns 202 with the workflow handle.
vision
Environments Vision Scanners Observations Stats Retrieve
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_OBSERVATIONS_STATS_RETRIEVE
Aggregate counts and per-scanner-type distributions over the filtered observation set. Same filters as the list endpoint apply.
vision
Environments Vision Scanners Observe Create
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_OBSERVE_CREATE
Apply this scanner to one specific session, on demand. Returns 202 with the workflow handle.
vision
Environments Vision Scanners Partial Update
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_PARTIAL_UPDATE
CRUD for Replay Vision scanners.
vision
Environments Vision Scanners Prompt Suggestions Apply Create
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_PROMPT_SUGGESTIONS_APPLY_CREATE
Apply this suggestion: write its prompt to the scanner (bumping the scanner version) and mark the suggestion applied. Only the current pending suggestion can be applied. Requires session recording edit access.
vision
Environments Vision Scanners Prompt Suggestions Current Retrieve
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_PROMPT_SUGGESTIONS_CURRENT_RETRIEVE
The scanner's newest prompt suggestion plus whether it is stale (the ratings changed since it was generated) and how many rated observations are available.
vision
Environments Vision Scanners Prompt Suggestions Dismiss Create
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_PROMPT_SUGGESTIONS_DISMISS_CREATE
Dismiss this suggestion without applying it. Only the current pending suggestion can be dismissed. Requires session recording edit access.
vision
Environments Vision Scanners Prompt Suggestions Generate Create
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_PROMPT_SUGGESTIONS_GENERATE_CREATE
Generate a fresh prompt suggestion from the team's current ratings. The previous pending suggestion becomes history (superseded). Requires at least one rated observation and session recording edit access.
vision
Environments Vision Scanners Prompt Suggestions List
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_PROMPT_SUGGESTIONS_LIST
AI prompt-rewrite suggestions for a scanner, generated from the team's thumbs up/down ratings.
vision
Environments Vision Scanners Retrieve
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_RETRIEVE
CRUD for Replay Vision scanners.
vision
Environments Vision Scanners Stats Retrieve
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_STATS_RETRIEVE
Team-wide scanner counts — independent of list filters, so the overview stays stable.
vision
Environments Vision Scanners Suggest Tags Create
POSTHOG_ENVIRONMENTS_VISION_SCANNERS_SUGGEST_TAGS_CREATE
Suggest classifier tags grounded in the scanner's own observations and the org's product data.
vision
Environments Warehouse Saved Queries Activity Retrieve
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_ACTIVITY_RETRIEVE
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Environments Warehouse Saved Queries Ancestors Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_ANCESTORS_CREATE
Return the ancestors of this saved query. By default, we return the immediate parents. The `level` parameter can be used to look further back into the ancestor tree. If `level` overshoots (i.e. points to only ancestors beyond the root), we return an empty list.
warehouse_saved_queries
Environments Warehouse Saved Queries Cancel Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_CANCEL_CREATE
Cancel a running saved query workflow.
warehouse_saved_queries
Environments Warehouse Saved Queries Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_CREATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Environments Warehouse Saved Queries Dependencies Retrieve
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_DEPENDENCIES_RETRIEVE
Return the count of immediate upstream and downstream dependencies for this saved query.
warehouse_saved_queries
Environments Warehouse Saved Queries Descendants Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_DESCENDANTS_CREATE
Return the descendants of this saved query. By default, we return the immediate children. The `level` parameter can be used to look further ahead into the descendants tree. If `level` overshoots (i.e. points to only descendants further than a leaf), we return an empty list.
warehouse_saved_queries
Environments Warehouse Saved Queries Destroy
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_DESTROY
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Environments Warehouse Saved Queries List
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_LIST
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Environments Warehouse Saved Queries Materialize Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_MATERIALIZE_CREATE
Enable materialization for this saved query with a 24-hour sync frequency.
warehouse_saved_queries
Environments Warehouse Saved Queries Partial Update
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_PARTIAL_UPDATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Environments Warehouse Saved Queries Resume Schedules Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_RESUME_SCHEDULES_CREATE
Resume paused materialization schedules for multiple matviews. Accepts a list of view IDs in the request body: {"view_ids": ["id1", "id2", ...]} This endpoint is idempotent - calling it on already running or non-existent schedules is safe.
warehouse_saved_queries
Environments Warehouse Saved Queries Retrieve
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_RETRIEVE
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Environments Warehouse Saved Queries Revert Materialization Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_REVERT_MATERIALIZATION_CREATE
Undo materialization, revert back to the original view. (i.e. delete the materialized table and the schedule)
warehouse_saved_queries
Environments Warehouse Saved Queries Run Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_RUN_CREATE
Run this saved query.
warehouse_saved_queries
Environments Warehouse Saved Queries Run History Retrieve
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_RUN_HISTORY_RETRIEVE
Return the recent run history (up to 5 most recent) for this materialized view.
warehouse_saved_queries
Environments Warehouse Saved Queries Update
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERIES_UPDATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Environments Warehouse Saved Query Folders Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERY_FOLDERS_CREATE
Environments Warehouse Saved Query Folders Create
warehouse_saved_query_folders
Environments Warehouse Saved Query Folders Destroy
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERY_FOLDERS_DESTROY
Environments Warehouse Saved Query Folders Destroy
warehouse_saved_query_folders
Environments Warehouse Saved Query Folders List
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERY_FOLDERS_LIST
Environments Warehouse Saved Query Folders List
warehouse_saved_query_folders
Environments Warehouse Saved Query Folders Partial Update
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERY_FOLDERS_PARTIAL_UPDATE
Environments Warehouse Saved Query Folders Partial Update
warehouse_saved_query_folders
Environments Warehouse Saved Query Folders Retrieve
POSTHOG_ENVIRONMENTS_WAREHOUSE_SAVED_QUERY_FOLDERS_RETRIEVE
Environments Warehouse Saved Query Folders Retrieve
warehouse_saved_query_folders
Environments Warehouse Tables Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_TABLES_CREATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Environments Warehouse Tables Destroy
POSTHOG_ENVIRONMENTS_WAREHOUSE_TABLES_DESTROY
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Environments Warehouse Tables File Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_TABLES_FILE_CREATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Environments Warehouse Tables List
POSTHOG_ENVIRONMENTS_WAREHOUSE_TABLES_LIST
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Environments Warehouse Tables Partial Update
POSTHOG_ENVIRONMENTS_WAREHOUSE_TABLES_PARTIAL_UPDATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Refresh table schema from source
POSTHOG_ENVIRONMENTS_WAREHOUSE_TABLES_REFRESH_SCHEMA_CREATE
Re-introspect a self-managed (manually linked) warehouse table's schema from its underlying source files and overwrite its stored column list. Use when the source schema has evolved (e.g. new columns in the underlying Delta/Parquet/CSV files) but queries still can't see the new columns, because PostHog serves a cached column snapshot until the table is refreshed. Not for tables managed by an external data source sync — those refresh on their own schedule.
warehouse_tables
Environments Warehouse Tables Retrieve
POSTHOG_ENVIRONMENTS_WAREHOUSE_TABLES_RETRIEVE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Environments Warehouse Tables Update
POSTHOG_ENVIRONMENTS_WAREHOUSE_TABLES_UPDATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Environments Warehouse Tables Update Schema Create
POSTHOG_ENVIRONMENTS_WAREHOUSE_TABLES_UPDATE_SCHEMA_CREATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Weekly web analytics recap
POSTHOG_ENVIRONMENTS_WEB_ANALYTICS_RECAP
The 'Wrapped'-style weekly recap: everything in the weekly digest (visitors, pageviews, sessions, bounce rate, average session duration with period-over-period comparisons, top pages, top sources, and goals) plus a single derived weekly persona and a short list of screenshot-worthy highlights for the period.
web_analyticsweb_analytics
Summarize web analytics
POSTHOG_ENVIRONMENTS_WEB_ANALYTICS_WEEKLY_DIGEST
Summarizes a project's web analytics over a lookback window (default 7 days): unique visitors, pageviews, sessions, bounce rate, and average session duration with period-over-period comparisons, plus the top 5 pages, top 5 traffic sources, and goal conversions.
web_analyticsweb_analytics
Environments Web Vitals Retrieve
POSTHOG_ENVIRONMENTS_WEB_VITALS_RETRIEVE
Get web vitals for a specific pathname. Toolbar accesses this via OAuth (handled by TeamAndOrgViewSetMixin.get_authenticators).
web_vitals
Environment Vision Quota Retrieve
POSTHOG_ENVIRONMENT_VISION_QUOTA_RETRIEVE
Environment Vision Quota Retrieve
vision
Error Tracking Assignment Rules Create
POSTHOG_ERROR_TRACKING_ASSIGNMENT_RULES_CREATE
Error Tracking Assignment Rules Create
error_tracking
Error Tracking Assignment Rules Destroy
POSTHOG_ERROR_TRACKING_ASSIGNMENT_RULES_DESTROY
Error Tracking Assignment Rules Destroy
error_tracking
Error Tracking Assignment Rules List
POSTHOG_ERROR_TRACKING_ASSIGNMENT_RULES_LIST
Error Tracking Assignment Rules List
error_tracking
Error Tracking Assignment Rules Partial Update
POSTHOG_ERROR_TRACKING_ASSIGNMENT_RULES_PARTIAL_UPDATE
Error Tracking Assignment Rules Partial Update
error_tracking
Error Tracking Assignment Rules Reorder Partial Update
POSTHOG_ERROR_TRACKING_ASSIGNMENT_RULES_REORDER_PARTIAL_UPDATE
Error Tracking Assignment Rules Reorder Partial Update
error_tracking
Error Tracking Assignment Rules Retrieve
POSTHOG_ERROR_TRACKING_ASSIGNMENT_RULES_RETRIEVE
Error Tracking Assignment Rules Retrieve
error_tracking
Error Tracking Assignment Rules Update
POSTHOG_ERROR_TRACKING_ASSIGNMENT_RULES_UPDATE
Error Tracking Assignment Rules Update
error_tracking
Error Tracking Bypass Rules Create
POSTHOG_ERROR_TRACKING_BYPASS_RULES_CREATE
Error Tracking Bypass Rules Create
error_tracking
Error Tracking Bypass Rules Destroy
POSTHOG_ERROR_TRACKING_BYPASS_RULES_DESTROY
Error Tracking Bypass Rules Destroy
error_tracking
Error Tracking Bypass Rules List
POSTHOG_ERROR_TRACKING_BYPASS_RULES_LIST
Error Tracking Bypass Rules List
error_tracking
Error Tracking Bypass Rules Partial Update
POSTHOG_ERROR_TRACKING_BYPASS_RULES_PARTIAL_UPDATE
Error Tracking Bypass Rules Partial Update
error_tracking
Error Tracking Bypass Rules Reorder Partial Update
POSTHOG_ERROR_TRACKING_BYPASS_RULES_REORDER_PARTIAL_UPDATE
Error Tracking Bypass Rules Reorder Partial Update
error_tracking
Error Tracking Bypass Rules Retrieve
POSTHOG_ERROR_TRACKING_BYPASS_RULES_RETRIEVE
Error Tracking Bypass Rules Retrieve
error_tracking
Error Tracking Bypass Rules Update
POSTHOG_ERROR_TRACKING_BYPASS_RULES_UPDATE
Error Tracking Bypass Rules Update
error_tracking
Error Tracking External References Create
POSTHOG_ERROR_TRACKING_EXTERNAL_REFERENCES_CREATE
Error Tracking External References Create
error_tracking
Error Tracking External References Destroy
POSTHOG_ERROR_TRACKING_EXTERNAL_REFERENCES_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
error_tracking
Error Tracking External References List
POSTHOG_ERROR_TRACKING_EXTERNAL_REFERENCES_LIST
Error Tracking External References List
error_tracking
Error Tracking External References Retrieve
POSTHOG_ERROR_TRACKING_EXTERNAL_REFERENCES_RETRIEVE
Error Tracking External References Retrieve
error_tracking
Error Tracking Fingerprints Destroy
POSTHOG_ERROR_TRACKING_FINGERPRINTS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
error_tracking
Error Tracking Fingerprints List
POSTHOG_ERROR_TRACKING_FINGERPRINTS_LIST
Error Tracking Fingerprints List
error_tracking
Error Tracking Fingerprints Retrieve
POSTHOG_ERROR_TRACKING_FINGERPRINTS_RETRIEVE
Error Tracking Fingerprints Retrieve
error_tracking
Error Tracking Grouping Rules Create
POSTHOG_ERROR_TRACKING_GROUPING_RULES_CREATE
Error Tracking Grouping Rules Create
error_tracking
Error Tracking Grouping Rules Destroy
POSTHOG_ERROR_TRACKING_GROUPING_RULES_DESTROY
Error Tracking Grouping Rules Destroy
error_tracking
Error Tracking Grouping Rules List
POSTHOG_ERROR_TRACKING_GROUPING_RULES_LIST
Error Tracking Grouping Rules List
error_tracking
Error Tracking Grouping Rules Partial Update
POSTHOG_ERROR_TRACKING_GROUPING_RULES_PARTIAL_UPDATE
Error Tracking Grouping Rules Partial Update
error_tracking
Error Tracking Grouping Rules Reorder Partial Update
POSTHOG_ERROR_TRACKING_GROUPING_RULES_REORDER_PARTIAL_UPDATE
Error Tracking Grouping Rules Reorder Partial Update
error_tracking
Error Tracking Grouping Rules Retrieve
POSTHOG_ERROR_TRACKING_GROUPING_RULES_RETRIEVE
Error Tracking Grouping Rules Retrieve
error_tracking
Error Tracking Grouping Rules Update
POSTHOG_ERROR_TRACKING_GROUPING_RULES_UPDATE
Error Tracking Grouping Rules Update
error_tracking
Error Tracking Issues Activity Retrieve
POSTHOG_ERROR_TRACKING_ISSUES_ACTIVITY_RETRIEVE
Error Tracking Issues Activity Retrieve
error_tracking
Error Tracking Issues All Activity Retrieve
POSTHOG_ERROR_TRACKING_ISSUES_ALL_ACTIVITY_RETRIEVE
Error Tracking Issues All Activity Retrieve
error_tracking
Error Tracking Issues Assign Partial Update
POSTHOG_ERROR_TRACKING_ISSUES_ASSIGN_PARTIAL_UPDATE
Error Tracking Issues Assign Partial Update
error_tracking
Error Tracking Issues Bulk Create
POSTHOG_ERROR_TRACKING_ISSUES_BULK_CREATE
Error Tracking Issues Bulk Create
error_tracking
Error Tracking Issues Cohort Update
POSTHOG_ERROR_TRACKING_ISSUES_COHORT_UPDATE
Error Tracking Issues Cohort Update
error_tracking
Error Tracking Issues Destroy
POSTHOG_ERROR_TRACKING_ISSUES_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
error_tracking
Error Tracking Issues Exists Retrieve
POSTHOG_ERROR_TRACKING_ISSUES_EXISTS_RETRIEVE
Error Tracking Issues Exists Retrieve
error_tracking
Error Tracking Issues List
POSTHOG_ERROR_TRACKING_ISSUES_LIST
Error Tracking Issues List
error_tracking
Error Tracking Issues Merge Create
POSTHOG_ERROR_TRACKING_ISSUES_MERGE_CREATE
Error Tracking Issues Merge Create
error_tracking
Error Tracking Issues Partial Update
POSTHOG_ERROR_TRACKING_ISSUES_PARTIAL_UPDATE
Error Tracking Issues Partial Update
error_tracking
Error Tracking Issues Retrieve
POSTHOG_ERROR_TRACKING_ISSUES_RETRIEVE
Error Tracking Issues Retrieve
error_tracking
Error Tracking Issues Split Create
POSTHOG_ERROR_TRACKING_ISSUES_SPLIT_CREATE
Error Tracking Issues Split Create
error_tracking
Error Tracking Issues Update
POSTHOG_ERROR_TRACKING_ISSUES_UPDATE
Error Tracking Issues Update
error_tracking
Error Tracking Issues Values Retrieve
POSTHOG_ERROR_TRACKING_ISSUES_VALUES_RETRIEVE
Error Tracking Issues Values Retrieve
error_tracking
List compact error tracking issues
POSTHOG_ERROR_TRACKING_QUERY_ISSUES_LIST_CREATE
List error tracking issues with typed filters and compact aggregate counts.
error_tracking
Get compact error tracking issue details
POSTHOG_ERROR_TRACKING_QUERY_ISSUE_CREATE
Fetch one error tracking issue with impact counts, top in_app frame, latest release, and optional sparkline.
error_tracking
List sampled exception events for an error tracking issue
POSTHOG_ERROR_TRACKING_QUERY_ISSUE_EVENTS_CREATE
Fetch sampled exception events, stack traces, browser/SDK context, URL, and $session_id values for one issue.
error_tracking
Error Tracking Recommendations Dismiss Create
POSTHOG_ERROR_TRACKING_RECOMMENDATIONS_DISMISS_CREATE
Error Tracking Recommendations Dismiss Create
error_tracking
Error Tracking Recommendations List
POSTHOG_ERROR_TRACKING_RECOMMENDATIONS_LIST
Error Tracking Recommendations List
error_tracking
Error Tracking Recommendations Refresh Create
POSTHOG_ERROR_TRACKING_RECOMMENDATIONS_REFRESH_CREATE
Error Tracking Recommendations Refresh Create
error_tracking
Error Tracking Recommendations Restore Create
POSTHOG_ERROR_TRACKING_RECOMMENDATIONS_RESTORE_CREATE
Error Tracking Recommendations Restore Create
error_tracking
Error Tracking Releases Create
POSTHOG_ERROR_TRACKING_RELEASES_CREATE
Error Tracking Releases Create
error_tracking
Error Tracking Releases Destroy
POSTHOG_ERROR_TRACKING_RELEASES_DESTROY
Error Tracking Releases Destroy
error_tracking
Error Tracking Releases Hash Retrieve
POSTHOG_ERROR_TRACKING_RELEASES_HASH_RETRIEVE
Error Tracking Releases Hash Retrieve
error_tracking
Error Tracking Releases List
POSTHOG_ERROR_TRACKING_RELEASES_LIST
Error Tracking Releases List
error_tracking
Error Tracking Releases Partial Update
POSTHOG_ERROR_TRACKING_RELEASES_PARTIAL_UPDATE
Error Tracking Releases Partial Update
error_tracking
Error Tracking Releases Retrieve
POSTHOG_ERROR_TRACKING_RELEASES_RETRIEVE
Error Tracking Releases Retrieve
error_tracking
Error Tracking Releases Update
POSTHOG_ERROR_TRACKING_RELEASES_UPDATE
Error Tracking Releases Update
error_tracking
Error Tracking Settings Retrieve Settings Retrieve
POSTHOG_ERROR_TRACKING_SETTINGS_RETRIEVE_SETTINGS_RETRIEVE
Error Tracking Settings Retrieve Settings Retrieve
error_tracking
Error Tracking Settings Update Settings Partial Update
POSTHOG_ERROR_TRACKING_SETTINGS_UPDATE_SETTINGS_PARTIAL_UPDATE
Error Tracking Settings Update Settings Partial Update
error_tracking
Error Tracking Spike Detection Config List
POSTHOG_ERROR_TRACKING_SPIKE_DETECTION_CONFIG_LIST
Error Tracking Spike Detection Config List
error_tracking
Error Tracking Spike Detection Config Update Config Partial Update
POSTHOG_ERROR_TRACKING_SPIKE_DETECTION_CONFIG_UPDATE_CONFIG_PARTIAL_UPDATE
Error Tracking Spike Detection Config Update Config Partial Update
error_tracking
Error Tracking Spike Events List
POSTHOG_ERROR_TRACKING_SPIKE_EVENTS_LIST
Error Tracking Spike Events List
error_tracking
Error Tracking Stack Frames Batch Get Create
POSTHOG_ERROR_TRACKING_STACK_FRAMES_BATCH_GET_CREATE
Error Tracking Stack Frames Batch Get Create
error_tracking
Error Tracking Stack Frames Destroy
POSTHOG_ERROR_TRACKING_STACK_FRAMES_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
error_tracking
Error Tracking Stack Frames List
POSTHOG_ERROR_TRACKING_STACK_FRAMES_LIST
Error Tracking Stack Frames List
error_tracking
Error Tracking Stack Frames Retrieve
POSTHOG_ERROR_TRACKING_STACK_FRAMES_RETRIEVE
Error Tracking Stack Frames Retrieve
error_tracking
Error Tracking Suppression Rules Create
POSTHOG_ERROR_TRACKING_SUPPRESSION_RULES_CREATE
Error Tracking Suppression Rules Create
error_tracking
Error Tracking Suppression Rules Destroy
POSTHOG_ERROR_TRACKING_SUPPRESSION_RULES_DESTROY
Error Tracking Suppression Rules Destroy
error_tracking
Error Tracking Suppression Rules List
POSTHOG_ERROR_TRACKING_SUPPRESSION_RULES_LIST
Error Tracking Suppression Rules List
error_tracking
Error Tracking Suppression Rules Partial Update
POSTHOG_ERROR_TRACKING_SUPPRESSION_RULES_PARTIAL_UPDATE
Error Tracking Suppression Rules Partial Update
error_tracking
Error Tracking Suppression Rules Reorder Partial Update
POSTHOG_ERROR_TRACKING_SUPPRESSION_RULES_REORDER_PARTIAL_UPDATE
Error Tracking Suppression Rules Reorder Partial Update
error_tracking
Error Tracking Suppression Rules Retrieve
POSTHOG_ERROR_TRACKING_SUPPRESSION_RULES_RETRIEVE
Error Tracking Suppression Rules Retrieve
error_tracking
Error Tracking Suppression Rules Update
POSTHOG_ERROR_TRACKING_SUPPRESSION_RULES_UPDATE
Error Tracking Suppression Rules Update
error_tracking
Error Tracking Symbol Sets Bulk Delete Create
POSTHOG_ERROR_TRACKING_SYMBOL_SETS_BULK_DELETE_CREATE
Error Tracking Symbol Sets Bulk Delete Create
error_tracking
Error Tracking Symbol Sets Bulk Finish Upload Create
POSTHOG_ERROR_TRACKING_SYMBOL_SETS_BULK_FINISH_UPLOAD_CREATE
Error Tracking Symbol Sets Bulk Finish Upload Create
error_tracking
Error Tracking Symbol Sets Bulk Start Upload Create
POSTHOG_ERROR_TRACKING_SYMBOL_SETS_BULK_START_UPLOAD_CREATE
Error Tracking Symbol Sets Bulk Start Upload Create
error_tracking
Error Tracking Symbol Sets Destroy
POSTHOG_ERROR_TRACKING_SYMBOL_SETS_DESTROY
Error Tracking Symbol Sets Destroy
error_tracking
Error Tracking Symbol Sets Download Retrieve
POSTHOG_ERROR_TRACKING_SYMBOL_SETS_DOWNLOAD_RETRIEVE
Return a presigned URL for downloading the symbol set's source map.
error_tracking
Error Tracking Symbol Sets Finish Upload Update
POSTHOG_ERROR_TRACKING_SYMBOL_SETS_FINISH_UPLOAD_UPDATE
Error Tracking Symbol Sets Finish Upload Update
error_tracking
Error Tracking Symbol Sets List
POSTHOG_ERROR_TRACKING_SYMBOL_SETS_LIST
Error Tracking Symbol Sets List
error_tracking
Error Tracking Symbol Sets Retrieve
POSTHOG_ERROR_TRACKING_SYMBOL_SETS_RETRIEVE
Error Tracking Symbol Sets Retrieve
error_tracking
Evaluations Create
POSTHOG_EVALUATIONS_CREATE
Evaluations Create
evaluations
Evaluations Destroy
POSTHOG_EVALUATIONS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
evaluations
Evaluations List
POSTHOG_EVALUATIONS_LIST
Evaluations List
evaluations
Evaluations Partial Update
POSTHOG_EVALUATIONS_PARTIAL_UPDATE
Evaluations Partial Update
evaluations
Evaluations Retrieve
POSTHOG_EVALUATIONS_RETRIEVE
Evaluations Retrieve
evaluations
Evaluations Test Hog Create
POSTHOG_EVALUATIONS_TEST_HOG_CREATE
Test Hog evaluation code against sample events without saving.
evaluations
Evaluations Update
POSTHOG_EVALUATIONS_UPDATE
Evaluations Update
evaluations
Evaluation Runs Create
POSTHOG_EVALUATION_RUNS_CREATE
Create a new evaluation run. This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation.
evaluation_runs
Events List
POSTHOG_EVENTS_LIST
This endpoint allows you to list and filter events. It is effectively deprecated and is kept only for backwards compatibility. If you ever ask about it you will be advised to not use it... If you want to ad-hoc list or aggregate events, use the Query endpoint instead. If you want to export all events or many pages of events you should use our CDP/Batch Exports products instead.
events
Events Retrieve
POSTHOG_EVENTS_RETRIEVE
Events Retrieve
events
Events Values Retrieve
POSTHOG_EVENTS_VALUES_RETRIEVE
Events Values Retrieve
events
Event Definitions Bulk Update Tags Create
POSTHOG_EVENT_DEFINITIONS_BULK_UPDATE_TAGS_CREATE
Add, remove, or replace tags across multiple event definitions in one request. Overrides ``TaggedItemViewSetMixin.bulk_update_tags``, which assumes integer PKs and runs object-level access-control filtering. Event definitions use UUID PKs and are not an object-level access-controlled resource — project membership (enforced by the viewset) is the only boundary, matching the single-object update path — so this scopes by project and skips the per-object editor check. Tags live on the base ``EventDefinition`` row, so it operates there regardless of the enterprise extension.
event_definitions
Event Definitions By Name Retrieve
POSTHOG_EVENT_DEFINITIONS_BY_NAME_RETRIEVE
Get event definition by exact name
event_definitions
Event Definitions Create
POSTHOG_EVENT_DEFINITIONS_CREATE
Event Definitions Create
event_definitions
Event Definitions Destroy
POSTHOG_EVENT_DEFINITIONS_DESTROY
Event Definitions Destroy
event_definitions
Event Definitions Golang Retrieve
POSTHOG_EVENT_DEFINITIONS_GOLANG_RETRIEVE
Event Definitions Golang Retrieve
event_definitions
Event Definitions List
POSTHOG_EVENT_DEFINITIONS_LIST
Event Definitions List
event_definitions
Event Definitions Metrics Retrieve
POSTHOG_EVENT_DEFINITIONS_METRICS_RETRIEVE
Event Definitions Metrics Retrieve
event_definitions
Event Definitions Partial Update
POSTHOG_EVENT_DEFINITIONS_PARTIAL_UPDATE
Event Definitions Partial Update
event_definitions
Event Definitions Primary Properties Retrieve
POSTHOG_EVENT_DEFINITIONS_PRIMARY_PROPERTIES_RETRIEVE
Resolve team-configured primary properties for event definitions. The response only contains entries where a non-null primary_property is set on the EventDefinition. Callers should fall back to the core taxonomy defaults client-side for names not present in the response.
event_definitions
Event Definitions Python Retrieve
POSTHOG_EVENT_DEFINITIONS_PYTHON_RETRIEVE
Event Definitions Python Retrieve
event_definitions
Event Definitions Retrieve
POSTHOG_EVENT_DEFINITIONS_RETRIEVE
Event Definitions Retrieve
event_definitions
Event Definitions Typescript Retrieve
POSTHOG_EVENT_DEFINITIONS_TYPESCRIPT_RETRIEVE
Event Definitions Typescript Retrieve
event_definitions
Event Definitions Update
POSTHOG_EVENT_DEFINITIONS_UPDATE
Event Definitions Update
event_definitions
Event Filter Create
POSTHOG_EVENT_FILTER_CREATE
Create or update the event filter config.
event_filter
Event Filter Metrics Retrieve
POSTHOG_EVENT_FILTER_METRICS_RETRIEVE
Single event filter per team. GET /event_filter/ — returns the config (or null if not yet created) POST /event_filter/ — creates or updates the config (upsert) GET /event_filter/metrics/ — time-series metrics GET /event_filter/metrics/totals/ — aggregate totals
event_filter
Event Filter Metrics Totals Retrieve
POSTHOG_EVENT_FILTER_METRICS_TOTALS_RETRIEVE
Single event filter per team. GET /event_filter/ — returns the config (or null if not yet created) POST /event_filter/ — creates or updates the config (upsert) GET /event_filter/metrics/ — time-series metrics GET /event_filter/metrics/totals/ — aggregate totals
event_filter
Event Filter Retrieve
POSTHOG_EVENT_FILTER_RETRIEVE
Returns the event filter config for the team, or null if not yet created.
event_filter
Event Schemas Create
POSTHOG_EVENT_SCHEMAS_CREATE
Event Schemas Create
event_schemas
Event Schemas Destroy
POSTHOG_EVENT_SCHEMAS_DESTROY
Event Schemas Destroy
event_schemas
Event Schemas List
POSTHOG_EVENT_SCHEMAS_LIST
Event Schemas List
event_schemas
Event Schemas Partial Update
POSTHOG_EVENT_SCHEMAS_PARTIAL_UPDATE
Event Schemas Partial Update
event_schemas
Event Schemas Update
POSTHOG_EVENT_SCHEMAS_UPDATE
Event Schemas Update
event_schemas
Experiments Archive Create
POSTHOG_EXPERIMENTS_ARCHIVE_CREATE
Archive an ended experiment. Hides the experiment from the default list view. The experiment can be restored at any time by updating archived=false. When the linked feature flag is still enabled, pass disable_feature_flag=true to also disable and archive it. Returns 400 if the experiment is already archived or has not ended yet.
experiments
Experiments Calculate Running Time Create
POSTHOG_EXPERIMENTS_CALCULATE_RUNNING_TIME_CREATE
Estimate the recommended sample size and running time for an experiment. Pure statistical calculation — does not read or write any experiment. Pass the metric type, a minimum detectable effect, and either a baseline value or raw baseline statistics. When `exposure_rate_per_day` is provided, the response also includes the estimated running time in days.
experiments
Experiments Copy To Project Create
POSTHOG_EXPERIMENTS_COPY_TO_PROJECT_CREATE
Copy an experiment into another project in the same organization as a new draft.
experiments
Experiments Create
POSTHOG_EXPERIMENTS_CREATE
Create a new experiment in draft status with optional metrics.
experiments
Experiments Create Exposure Cohort For Experiment Create
POSTHOG_EXPERIMENTS_CREATE_EXPOSURE_COHORT_FOR_EXPERIMENT_CREATE
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers. This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
experiments
Experiments Create From Prompt Create
POSTHOG_EXPERIMENTS_CREATE_FROM_PROMPT_CREATE
Create an experiment that compares N versions of an LLM prompt using a metric template. The user picks 2+ versions of an existing LLMPrompt and 1+ metric templates (cost / latency / eval_pass_rate). The endpoint builds the matching variants (control + test-N, each named after its prompt version) and attaches one metric per selected template, each scoped to the prompt's $ai_prompt_name. Resulting experiment is in draft state.
experiments
Experiments Destroy
POSTHOG_EXPERIMENTS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
experiments
Experiments Duplicate Create
POSTHOG_EXPERIMENTS_DUPLICATE_CREATE
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers. This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
experiments
Experiments Eligible Feature Flags Retrieve
POSTHOG_EXPERIMENTS_ELIGIBLE_FEATURE_FLAGS_RETRIEVE
Returns a paginated list of feature flags eligible for use in experiments. Eligible flags must: - Be multivariate with at least 2 variants - Have "control" as the first variant key Query parameters: - search: Filter by flag key or name (case insensitive) - limit: Number of results per page (default: 20) - offset: Pagination offset (default: 0) - active: Filter by active status ("true" or "false") - created_by_id: Filter by creator user ID - order: Sort order field - evaluation_runtime: Filter by evaluation runtime - has_evaluation_contexts: Filter by presence of evaluation contexts ("true" or "false")
experiments
Experiments End Create
POSTHOG_EXPERIMENTS_END_CREATE
End a running experiment without shipping a variant. Sets end_date to now and marks the experiment as stopped. The feature flag is NOT modified — users continue to see their assigned variants and exposure events ($feature_flag_called) continue to be recorded. However, only data up to end_date is included in experiment results. Use this when: - You want to freeze the results window without changing which variant users see. - A variant was already shipped manually via the feature flag UI and the experiment just needs to be marked complete. The end_date can be adjusted after ending via PATCH if it needs to be backdated (e.g. to match when the flag was actually paused). Other options: - Use ship_variant to end the experiment AND roll out a single variant to 100%% of users. - Use pause to deactivate the flag without ending the experiment (stops variant assignment but does not freeze results). Returns 400 if the experiment is not running.
experiments
Experiments Launch Create
POSTHOG_EXPERIMENTS_LAUNCH_CREATE
Launch a draft experiment. Validates the experiment is in draft state, activates its linked feature flag, sets start_date to the current server time, and transitions the experiment to running. Returns 400 if the experiment has already been launched or if the feature flag configuration is invalid (e.g. missing "control" variant or fewer than 2 variants).
experiments
Experiments List
POSTHOG_EXPERIMENTS_LIST
List experiments for the current project. Supports filtering by status and archival state.
experiments
Experiments Metrics Recalculation Create
POSTHOG_EXPERIMENTS_METRICS_RECALCULATION_CREATE
Trigger a batch recalculation of all metrics for this experiment. Returns 201 with the new pending recalculation, or 200 with the active one if a recalculation is already pending or in progress for this experiment. The response payload intentionally does not include the `results` array — at POST time the workflow has just been queued and no per-metric results exist yet. Clients should poll `GET metrics_recalculation/{id}/` for results as the workflow progresses.
experiments
Experiments Metrics Recalculation Latest Retrieve
POSTHOG_EXPERIMENTS_METRICS_RECALCULATION_LATEST_RETRIEVE
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers. This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
experiments
Experiments Metrics Recalculation Retrieve
POSTHOG_EXPERIMENTS_METRICS_RECALCULATION_RETRIEVE
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers. This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
experiments
Experiments Partial Update
POSTHOG_EXPERIMENTS_PARTIAL_UPDATE
Update an experiment. Use this to modify experiment properties such as name, description, metrics, variants, and configuration. Metrics can be added, changed and removed at any time. Feature-flag config (variants, rollout, payloads) is sent via the feature_flag object.
experiments
Experiments Pause Create
POSTHOG_EXPERIMENTS_PAUSE_CREATE
Pause a running experiment. Deactivates the linked feature flag so it is no longer returned by the /decide endpoint. Users fall back to the application default (typically the control experience), and no new exposure events are recorded (i.e. $feature_flag_called is not fired). Returns 400 if the experiment is not running or is already paused.
experiments
Experiments Prompt Templates Retrieve
POSTHOG_EXPERIMENTS_PROMPT_TEMPLATES_RETRIEVE
List the LLM metric templates that can be passed to `create_from_prompt`.
experiments
Experiments Recalculate Timeseries Create
POSTHOG_EXPERIMENTS_RECALCULATE_TIMESERIES_CREATE
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers. This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
experiments
Experiments Requires Flag Implementation Retrieve
POSTHOG_EXPERIMENTS_REQUIRES_FLAG_IMPLEMENTATION_RETRIEVE
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers. This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
experiments
Experiments Reset Create
POSTHOG_EXPERIMENTS_RESET_CREATE
Reset an experiment back to draft state. Clears start/end dates, conclusion, and archived flag. The feature flag is left unchanged — users continue to see their assigned variants. Previously collected events still exist but won't be included in results unless the start date is manually adjusted after re-launch. Returns 400 if the experiment is already in draft state.
experiments
Experiments Resume Create
POSTHOG_EXPERIMENTS_RESUME_CREATE
Resume a paused experiment. Reactivates the linked feature flag so it is returned by /decide again. Users are re-bucketed deterministically into the same variants they had before the pause, and exposure tracking resumes. Returns 400 if the experiment is not running or is not paused.
experiments
Experiments Retrieve
POSTHOG_EXPERIMENTS_RETRIEVE
Retrieve a single experiment by ID, including its current status, metrics, feature flag, and results metadata.
experiments
Experiments Ship Variant Create
POSTHOG_EXPERIMENTS_SHIP_VARIANT_CREATE
Ship a variant and (optionally) end the experiment. Updates the feature flag so the selected variant gets 100% of the variant distribution. By default, existing release conditions on the flag are preserved untouched — the variant is served only to users who already match them. Pass ``release_to_everyone: true`` to also prepend a catch-all release condition that rolls the variant out to 100% of users (overrides any existing release conditions on the flag). Can be called on both running and stopped experiments. If the experiment is still running, it will also be ended (end_date set and status marked as stopped). If the experiment has already ended, only the flag is rewritten - this supports the "end first, ship later" workflow. If an approval policy requires review before changes on the flag take effect, the API returns 409 with a change_request_id. The experiment is NOT ended until the change request is approved and the user retries. Returns 400 if the experiment is in draft state, the variant_key is not found on the flag, or the experiment has no linked feature flag.
experiments
Experiments Stats Retrieve
POSTHOG_EXPERIMENTS_STATS_RETRIEVE
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers. This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
experiments
Experiments Timeseries Results Retrieve
POSTHOG_EXPERIMENTS_TIMESERIES_RESULTS_RETRIEVE
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers. This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
experiments
Experiments Unarchive Create
POSTHOG_EXPERIMENTS_UNARCHIVE_CREATE
Unarchive an archived experiment. Restores the experiment to the default list view. Returns 400 if the experiment is not currently archived.
experiments
Experiments Update
POSTHOG_EXPERIMENTS_UPDATE
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers. This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
experiments
Experiment Holdouts Create
POSTHOG_EXPERIMENT_HOLDOUTS_CREATE
Experiment Holdouts Create
experiment_holdouts
Experiment Holdouts Destroy
POSTHOG_EXPERIMENT_HOLDOUTS_DESTROY
Experiment Holdouts Destroy
experiment_holdouts
Experiment Holdouts List
POSTHOG_EXPERIMENT_HOLDOUTS_LIST
Experiment Holdouts List
experiment_holdouts
Experiment Holdouts Partial Update
POSTHOG_EXPERIMENT_HOLDOUTS_PARTIAL_UPDATE
Experiment Holdouts Partial Update
experiment_holdouts
Experiment Holdouts Retrieve
POSTHOG_EXPERIMENT_HOLDOUTS_RETRIEVE
Experiment Holdouts Retrieve
experiment_holdouts
Experiment Holdouts Update
POSTHOG_EXPERIMENT_HOLDOUTS_UPDATE
Experiment Holdouts Update
experiment_holdouts
Experiment Saved Metrics Create
POSTHOG_EXPERIMENT_SAVED_METRICS_CREATE
Experiment Saved Metrics Create
experiment_saved_metrics
Experiment Saved Metrics Destroy
POSTHOG_EXPERIMENT_SAVED_METRICS_DESTROY
Experiment Saved Metrics Destroy
experiment_saved_metrics
Experiment Saved Metrics List
POSTHOG_EXPERIMENT_SAVED_METRICS_LIST
Experiment Saved Metrics List
experiment_saved_metrics
Experiment Saved Metrics Partial Update
POSTHOG_EXPERIMENT_SAVED_METRICS_PARTIAL_UPDATE
Experiment Saved Metrics Partial Update
experiment_saved_metrics
Experiment Saved Metrics Retrieve
POSTHOG_EXPERIMENT_SAVED_METRICS_RETRIEVE
Experiment Saved Metrics Retrieve
experiment_saved_metrics
Experiment Saved Metrics Update
POSTHOG_EXPERIMENT_SAVED_METRICS_UPDATE
Experiment Saved Metrics Update
experiment_saved_metrics
Exports Content Retrieve
POSTHOG_EXPORTS_CONTENT_RETRIEVE
Exports Content Retrieve
exports
Exports Create
POSTHOG_EXPORTS_CREATE
Exports Create
exports
Exports List
POSTHOG_EXPORTS_LIST
Exports List
exports
Exports Retrieve
POSTHOG_EXPORTS_RETRIEVE
Exports Retrieve
exports
External Data Schemas Cancel Create
POSTHOG_EXTERNAL_DATA_SCHEMAS_CANCEL_CREATE
External Data Schemas Cancel Create
external_data_schemas
External Data Schemas Create
POSTHOG_EXTERNAL_DATA_SCHEMAS_CREATE
External Data Schemas Create
external_data_schemas
External Data Schemas Delete Data Destroy
POSTHOG_EXTERNAL_DATA_SCHEMAS_DELETE_DATA_DESTROY
External Data Schemas Delete Data Destroy
external_data_schemas
External Data Schemas Destroy
POSTHOG_EXTERNAL_DATA_SCHEMAS_DESTROY
External Data Schemas Destroy
external_data_schemas
External Data Schemas Incremental Fields Create
POSTHOG_EXTERNAL_DATA_SCHEMAS_INCREMENTAL_FIELDS_CREATE
External Data Schemas Incremental Fields Create
external_data_schemas
External Data Schemas List
POSTHOG_EXTERNAL_DATA_SCHEMAS_LIST
External Data Schemas List
external_data_schemas
External Data Schemas Logs Retrieve
POSTHOG_EXTERNAL_DATA_SCHEMAS_LOGS_RETRIEVE
External Data Schemas Logs Retrieve
external_data_schemas
External Data Schemas Partial Update
POSTHOG_EXTERNAL_DATA_SCHEMAS_PARTIAL_UPDATE
External Data Schemas Partial Update
external_data_schemas
External Data Schemas Reload Create
POSTHOG_EXTERNAL_DATA_SCHEMAS_RELOAD_CREATE
External Data Schemas Reload Create
external_data_schemas
External Data Schemas Resync Create
POSTHOG_EXTERNAL_DATA_SCHEMAS_RESYNC_CREATE
External Data Schemas Resync Create
external_data_schemas
External Data Schemas Retrieve
POSTHOG_EXTERNAL_DATA_SCHEMAS_RETRIEVE
External Data Schemas Retrieve
external_data_schemas
External Data Schemas Update
POSTHOG_EXTERNAL_DATA_SCHEMAS_UPDATE
External Data Schemas Update
external_data_schemas
External Data Sources Bulk Update Schemas Partial Update
POSTHOG_EXTERNAL_DATA_SOURCES_BULK_UPDATE_SCHEMAS_PARTIAL_UPDATE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Cdc Status Retrieve
POSTHOG_EXTERNAL_DATA_SOURCES_CDC_STATUS_RETRIEVE
Live CDC health for an existing source: slot/publication existence and WAL lag. Reads from the source DB via the engine adapter. Returns ``{"enabled": false}`` when CDC is off, or the stored config plus live ``slot_exists`` / ``publication_exists`` / ``lag_bytes`` when on. 400s if the source DB is unreachable so the UI can show a degraded/unreachable state.
external_data_sources
External Data Sources Check Cdc Prerequisites Create
POSTHOG_EXTERNAL_DATA_SOURCES_CHECK_CDC_PREREQUISITES_CREATE
Validate CDC prerequisites against a live Postgres connection. Used by the source wizard to surface ✅/❌ checks before source creation, and by the self-managed setup popup to verify user-created publications.
external_data_sources
External Data Sources Check Cdc Prerequisites For Source Create
POSTHOG_EXTERNAL_DATA_SOURCES_CHECK_CDC_PREREQUISITES_FOR_SOURCE_CREATE
Validate CDC prerequisites for an existing source using its stored credentials. The detail=False ``check_cdc_prerequisites`` action is for the creation wizard, where the client still holds the raw connection config (incl. password) in the form. On the Configuration page the source already exists and secret fields are stripped from API responses — so the client can't supply them. This reads the stored (encrypted) credentials from the DB via the adapter instead. Body params: ``cdc_management_mode`` (``"posthog"`` | ``"self_managed"``), ``cdc_slot_name`` (optional), ``cdc_publication_name`` (optional).
external_data_sources
External Data Sources Connections List
POSTHOG_EXTERNAL_DATA_SOURCES_CONNECTIONS_LIST
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Create
POSTHOG_EXTERNAL_DATA_SOURCES_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Create Webhook Create
POSTHOG_EXTERNAL_DATA_SOURCES_CREATE_WEBHOOK_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Database Schema Create
POSTHOG_EXTERNAL_DATA_SOURCES_DATABASE_SCHEMA_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Delete Webhook Create
POSTHOG_EXTERNAL_DATA_SOURCES_DELETE_WEBHOOK_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Destroy
POSTHOG_EXTERNAL_DATA_SOURCES_DESTROY
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Disable Cdc Create
POSTHOG_EXTERNAL_DATA_SOURCES_DISABLE_CDC_CREATE
Disable CDC on an existing source. Cancels any running CDC extraction workflow, deletes the extraction schedule, delegates engine-side teardown to the source's adapter (drops slot/publication for Postgres; equivalent for other engines), clears ``cdc_*`` keys from ``job_inputs``, soft-deletes companion CDC tables, and sets all CDC schemas to ``sync_type=None``, ``should_sync=False`` so the user must pick a new sync strategy before they resume.
external_data_sources
External Data Sources Draft Custom Manifest Create
POSTHOG_EXTERNAL_DATA_SOURCES_DRAFT_CUSTOM_MANIFEST_CREATE
Draft a Custom REST source manifest from API documentation using an LLM. Reads the docs (a URL fetched server-side, or pasted text / OpenAPI spec), asks the model to author a RESTAPIConfig manifest, and validates it against the create-path checks — repairing against validation errors up to a small budget. Returns the manifest for the user to review and tweak in the builder before creating the source; it does NOT create anything. Gated by the `dwh-custom-source-ai-builder` flag, and requires the org to have approved AI data processing, since the docs are sent to the LLM gateway.
external_data_sources
External Data Sources Enable Cdc Create
POSTHOG_EXTERNAL_DATA_SOURCES_ENABLE_CDC_CREATE
Enable CDC on an existing source. Provisions engine-side CDC resources via the source's adapter, writes the CDC config into ``source.job_inputs``, and ensures the CDC extraction schedule exists. Re-runs prereq checks server-side so we never trust a stale client-side check. Body params: ``cdc_management_mode`` (``"posthog"`` | ``"self_managed"``), plus engine-specific identifier hints (e.g. ``cdc_slot_name``, ``cdc_publication_name`` for Postgres). Universal tuning fields: ``cdc_auto_drop_slot`` (optional bool), ``cdc_lag_warning_threshold_mb`` (optional int), ``cdc_lag_critical_threshold_mb`` (optional int).
external_data_sources
External Data Sources Jobs Retrieve
POSTHOG_EXTERNAL_DATA_SOURCES_JOBS_RETRIEVE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources List
POSTHOG_EXTERNAL_DATA_SOURCES_LIST
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Partial Update
POSTHOG_EXTERNAL_DATA_SOURCES_PARTIAL_UPDATE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Preview Resource Create
POSTHOG_EXTERNAL_DATA_SOURCES_PREVIEW_RESOURCE_CREATE
Read a bounded sample of rows for one resource of a Custom REST source. Lets a manifest author verify `data_selector`, `primary_key`, and the incremental `cursor_path` against live data before creating the source. Only `source_type: "Custom"` is supported — other source types return 400. The read is bounded (single page per resource, capped row count, short timeouts, no redirects). Manifest, validation, and SSRF problems return 400; a live fetch failure returns 200 with `error` set and empty `rows`.
external_data_sources
External Data Sources Refresh Schemas Create
POSTHOG_EXTERNAL_DATA_SOURCES_REFRESH_SCHEMAS_CREATE
Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync).
external_data_sources
External Data Sources Reload Create
POSTHOG_EXTERNAL_DATA_SOURCES_RELOAD_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Repair Cdc Create
POSTHOG_EXTERNAL_DATA_SOURCES_REPAIR_CDC_CREATE
Repair CDC on a source whose replication resources were lost. Only proceeds on evidence of breakage (a persisted broken marker, or a live probe showing the slot/publication missing) — repairing a healthy source would drop its slot and force a full re-sync. Cancels running CDC jobs, recreates the engine-side slot/publication against the stored CDC config, resets every active CDC schema to snapshot mode for a full re-sync (changes since the old slot died are unrecoverable), clears the broken markers, and resumes the paused schedules. Idempotent: safe to retry after a partial failure. Concurrent repairs of the same source are rejected with a 409.
external_data_sources
External Data Sources Retrieve
POSTHOG_EXTERNAL_DATA_SOURCES_RETRIEVE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Revenue Analytics Config Partial Update
POSTHOG_EXTERNAL_DATA_SOURCES_REVENUE_ANALYTICS_CONFIG_PARTIAL_UPDATE
Update the revenue analytics configuration and return the full external data source.
external_data_sources
External Data Sources Setup Create
POSTHOG_EXTERNAL_DATA_SOURCES_SETUP_CREATE
One-shot data warehouse source setup. Validate credentials, discover available tables, enable them all with sensible sync defaults (incremental where supported, else append, else full refresh), and create the source in a single call — the caller never has to assemble a `schemas` array. For sources that support webhooks (e.g. Stripe), a webhook is auto-registered after creation: on success webhook-capable tables switch to real-time webhook sync (unlocking webhook-only tables); on failure the polling defaults stay in place. For fine-grained table/sync control, use the lower-level `database_schema` + `create` flow instead.
external_data_sources
External Data Sources Source Prefix Create
POSTHOG_EXTERNAL_DATA_SOURCES_SOURCE_PREFIX_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Stored Credentials List
POSTHOG_EXTERNAL_DATA_SOURCES_STORED_CREDENTIALS_LIST
List credentials stored via the source connect page that haven't been consumed yet. Returns metadata only (id, source type, timestamps) — never the secrets themselves. Stored credentials are temporary: they disappear once consumed by `setup` or when they expire. Newest first, so after a user confirms they've finished the connect page, the first entry for the source type is the one to pass to `setup`.
external_data_sources
External Data Sources Store Credentials Create
POSTHOG_EXTERNAL_DATA_SOURCES_STORE_CREDENTIALS_CREATE
Validate and store credentials for a data warehouse source without creating the source. Backs the source connect page: the user enters credentials directly in PostHog, they are checked against a live connection, then stashed encrypted in a temporary store. The returned credential id can be passed to `setup` as {'credential_id': <id>} to create the source — so secrets never travel through an agent conversation. The stash is single-use: it is deleted as soon as `setup` consumes it, and expires after 24 hours if never consumed.
external_data_sources
External Data Sources Update
POSTHOG_EXTERNAL_DATA_SOURCES_UPDATE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Update Cdc Settings Create
POSTHOG_EXTERNAL_DATA_SOURCES_UPDATE_CDC_SETTINGS_CREATE
Update CDC tuning fields without enabling/disabling. Lets users edit ``cdc_auto_drop_slot``, ``cdc_lag_warning_threshold_mb``, and ``cdc_lag_critical_threshold_mb`` independently. These fields are universal across engines. Engine-specific identifiers (slot name, management mode, …) are immutable post-enable — switching them requires disable + enable.
external_data_sources
External Data Sources Update Webhook Inputs Create
POSTHOG_EXTERNAL_DATA_SOURCES_UPDATE_WEBHOOK_INPUTS_CREATE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Webhook Info Retrieve
POSTHOG_EXTERNAL_DATA_SOURCES_WEBHOOK_INFO_RETRIEVE
Create, Read, Update and Delete External data Sources.
external_data_sources
External Data Sources Wizard Retrieve
POSTHOG_EXTERNAL_DATA_SOURCES_WIZARD_RETRIEVE
Create, Read, Update and Delete External data Sources.
external_data_sources
Feature Flags Activity Retrieve
POSTHOG_FEATURE_FLAGS_ACTIVITY_RETRIEVE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags All Activity Retrieve
POSTHOG_FEATURE_FLAGS_ALL_ACTIVITY_RETRIEVE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Bulk Delete Create
POSTHOG_FEATURE_FLAGS_BULK_DELETE_CREATE
Bulk delete feature flags by filter criteria or explicit IDs. Accepts either: - {"filters": {...}} - Same filter params as list endpoint (search, active, type, etc.) - {"ids": [...]} - Explicit list of flag IDs (no limit) Returns same format as bulk_delete for UI compatibility. Uses bulk operations for efficiency: database updates are batched and cache invalidation happens once at the end rather than per-flag.
feature_flags
Feature Flags Bulk Keys Retrieve
POSTHOG_FEATURE_FLAGS_BULK_KEYS_RETRIEVE
Get feature flag keys by IDs. Accepts a list of feature flag IDs and returns a mapping of ID to key.
feature_flags
Feature Flags Bulk Update Tags Create
POSTHOG_FEATURE_FLAGS_BULK_UPDATE_TAGS_CREATE
Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``<scope>:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list
feature_flags
Feature Flags Create
POSTHOG_FEATURE_FLAGS_CREATE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Create Static Cohort For Flag Create
POSTHOG_FEATURE_FLAGS_CREATE_STATIC_COHORT_FOR_FLAG_CREATE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Dashboard Create
POSTHOG_FEATURE_FLAGS_DASHBOARD_CREATE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Dependent Flags List
POSTHOG_FEATURE_FLAGS_DEPENDENT_FLAGS_LIST
Get other active flags that depend on this flag.
feature_flags
Feature Flags Destroy
POSTHOG_FEATURE_FLAGS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
feature_flags
Feature Flags Enrich Usage Dashboard Create
POSTHOG_FEATURE_FLAGS_ENRICH_USAGE_DASHBOARD_CREATE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Evaluation Reasons Retrieve
POSTHOG_FEATURE_FLAGS_EVALUATION_REASONS_RETRIEVE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags List
POSTHOG_FEATURE_FLAGS_LIST
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Matching Ids Retrieve
POSTHOG_FEATURE_FLAGS_MATCHING_IDS_RETRIEVE
Get IDs of all feature flags matching the current filters. Uses the same filtering logic as the list endpoint. Returns only IDs that the user has permission to edit.
feature_flags
Feature Flags My Flags Retrieve
POSTHOG_FEATURE_FLAGS_MY_FLAGS_RETRIEVE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Partial Update
POSTHOG_FEATURE_FLAGS_PARTIAL_UPDATE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Remote Config Retrieve
POSTHOG_FEATURE_FLAGS_REMOTE_CONFIG_RETRIEVE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Retrieve
POSTHOG_FEATURE_FLAGS_RETRIEVE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Status Retrieve
POSTHOG_FEATURE_FLAGS_STATUS_RETRIEVE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Test Evaluation Create
POSTHOG_FEATURE_FLAGS_TEST_EVALUATION_CREATE
Test feature flag evaluation against a specific user at an optional point in time. This endpoint allows testing how a feature flag would evaluate for a specific user, optionally at a historical timestamp. When a timestamp is provided, both the flag conditions and person properties are evaluated as they existed at that time.
feature_flags
Feature Flags Update
POSTHOG_FEATURE_FLAGS_UPDATE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags User Blast Radius Create
POSTHOG_FEATURE_FLAGS_USER_BLAST_RADIUS_CREATE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Feature Flags Versions Retrieve
POSTHOG_FEATURE_FLAGS_VERSIONS_RETRIEVE
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags. If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
feature_flags
Field Notes Create
POSTHOG_FIELD_NOTES_CREATE
Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP.
field_notes
Field Notes Destroy
POSTHOG_FIELD_NOTES_DESTROY
Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP.
field_notes
Field Notes List
POSTHOG_FIELD_NOTES_LIST
Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP.
field_notes
Field Notes Partial Update
POSTHOG_FIELD_NOTES_PARTIAL_UPDATE
Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP.
field_notes
Field Notes Retrieve
POSTHOG_FIELD_NOTES_RETRIEVE
Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP.
field_notes
Field Notes Update
POSTHOG_FIELD_NOTES_UPDATE
Create, read, update, and resolve toolbar field notes — UI feedback a user points at on their own site, surfaced to coding agents over MCP.
field_notes
File Download Batch Exports Cancel Create
POSTHOG_FILE_DOWNLOAD_BATCH_EXPORTS_CANCEL_CREATE
Cancel an ongoing file-download batch export.
batch_exportsfile_download_batch_exports
File Download Batch Exports Create
POSTHOG_FILE_DOWNLOAD_BATCH_EXPORTS_CREATE
Create and start a batch export on demand run to download a file.
batch_exportsfile_download_batch_exports
File Download Batch Exports Download Retrieve
POSTHOG_FILE_DOWNLOAD_BATCH_EXPORTS_DOWNLOAD_RETRIEVE
Download a file (or a part) from this batch export run. Users can provide a part component with an id or index, or no part component at all: * If part id is included: The file download matching the id is downloaded. * If part index is included: The file download matching the index (as ordered by key) is downloaded. * If no part component is present: If there is only one file downloaded, that is downloaded. Otherwise the first one as sorted by key is downloaded.
batch_exportsfile_download_batch_exports
File Download Batch Exports List
POSTHOG_FILE_DOWNLOAD_BATCH_EXPORTS_LIST
File Download Batch Exports List
batch_exportsfile_download_batch_exports
File Download Batch Exports Logs Retrieve
POSTHOG_FILE_DOWNLOAD_BATCH_EXPORTS_LOGS_RETRIEVE
File Download Batch Exports Logs Retrieve
batch_exportsfile_download_batch_exports
File Download Batch Exports Retrieve
POSTHOG_FILE_DOWNLOAD_BATCH_EXPORTS_RETRIEVE
Get a batch export on demand run. If the underlying batch export run has completed, we return keys to the generated file downloads so that users may download them by making a request to /download.
batch_exportsfile_download_batch_exports
File System Count By Path Create
POSTHOG_FILE_SYSTEM_COUNT_BY_PATH_CREATE
Get count of all files in a folder.
file_system
File System Count Create
POSTHOG_FILE_SYSTEM_COUNT_CREATE
Get count of all files in a folder.
file_system
File System Create
POSTHOG_FILE_SYSTEM_CREATE
File System Create
file_system
File System Destroy
POSTHOG_FILE_SYSTEM_DESTROY
File System Destroy
file_system
File System List
POSTHOG_FILE_SYSTEM_LIST
File System List
file_system
File System Log View Create
POSTHOG_FILE_SYSTEM_LOG_VIEW_CREATE
File System Log View Create
file_system
File System Log View Retrieve
POSTHOG_FILE_SYSTEM_LOG_VIEW_RETRIEVE
File System Log View Retrieve
file_system
File System Move Create
POSTHOG_FILE_SYSTEM_MOVE_CREATE
File System Move Create
file_system
File System Partial Update
POSTHOG_FILE_SYSTEM_PARTIAL_UPDATE
File System Partial Update
file_system
File System Retrieve
POSTHOG_FILE_SYSTEM_RETRIEVE
File System Retrieve
file_system
File System Shortcut Create
POSTHOG_FILE_SYSTEM_SHORTCUT_CREATE
File System Shortcut Create
file_system_shortcut
File System Shortcut Destroy
POSTHOG_FILE_SYSTEM_SHORTCUT_DESTROY
File System Shortcut Destroy
file_system_shortcut
File System Shortcut List
POSTHOG_FILE_SYSTEM_SHORTCUT_LIST
File System Shortcut List
file_system_shortcut
File System Shortcut Partial Update
POSTHOG_FILE_SYSTEM_SHORTCUT_PARTIAL_UPDATE
File System Shortcut Partial Update
file_system_shortcut
File System Shortcut Reorder Create
POSTHOG_FILE_SYSTEM_SHORTCUT_REORDER_CREATE
Set the display order of the current user's shortcuts. `ordered_ids` becomes the new top-to-bottom order; any unknown IDs are rejected.
file_system_shortcut
File System Shortcut Retrieve
POSTHOG_FILE_SYSTEM_SHORTCUT_RETRIEVE
File System Shortcut Retrieve
file_system_shortcut
File System Shortcut Update
POSTHOG_FILE_SYSTEM_SHORTCUT_UPDATE
File System Shortcut Update
file_system_shortcut
File System Undo Delete Create
POSTHOG_FILE_SYSTEM_UNDO_DELETE_CREATE
File System Undo Delete Create
file_system
File System Unfiled Retrieve
POSTHOG_FILE_SYSTEM_UNFILED_RETRIEVE
File System Unfiled Retrieve
file_system
File System Update
POSTHOG_FILE_SYSTEM_UPDATE
File System Update
file_system
Flag Value Values Retrieve
POSTHOG_FLAG_VALUE_VALUES_RETRIEVE
Get possible values for a feature flag. Query parameters: - key: The flag ID (required) Returns: - Array of objects with 'name' field containing possible values
flag_value
Groups Activity Retrieve
POSTHOG_GROUPS_ACTIVITY_RETRIEVE
Groups Activity Retrieve
groups
Groups Create
POSTHOG_GROUPS_CREATE
Groups Create
groups
Groups Delete Property Create
POSTHOG_GROUPS_DELETE_PROPERTY_CREATE
Groups Delete Property Create
groups
Groups Find Retrieve
POSTHOG_GROUPS_FIND_RETRIEVE
Groups Find Retrieve
groups
Groups List
POSTHOG_GROUPS_LIST
List all groups of a specific group type. You must pass ?group_type_index= in the URL. To get a list of valid group types, call /api/:project_id/groups_types/. Uses forward-only keyset pagination via the `cursor` parameter. The `previous` field in the response envelope is always null.
groups
Groups Property Values Retrieve
POSTHOG_GROUPS_PROPERTY_VALUES_RETRIEVE
Groups Property Values Retrieve
groups
Groups Types Create Detail Dashboard Update
POSTHOG_GROUPS_TYPES_CREATE_DETAIL_DASHBOARD_UPDATE
Groups Types Create Detail Dashboard Update
groups_types
Groups Types Destroy
POSTHOG_GROUPS_TYPES_DESTROY
Groups Types Destroy
groups_types
Groups Types List
POSTHOG_GROUPS_TYPES_LIST
Groups Types List
groups_types
Groups Types Metrics Create
POSTHOG_GROUPS_TYPES_METRICS_CREATE
Groups Types Metrics Create
groups_types
Groups Types Metrics Destroy
POSTHOG_GROUPS_TYPES_METRICS_DESTROY
Groups Types Metrics Destroy
groups_types
Groups Types Metrics List
POSTHOG_GROUPS_TYPES_METRICS_LIST
Groups Types Metrics List
groups_types
Groups Types Metrics Partial Update
POSTHOG_GROUPS_TYPES_METRICS_PARTIAL_UPDATE
Groups Types Metrics Partial Update
groups_types
Groups Types Metrics Retrieve
POSTHOG_GROUPS_TYPES_METRICS_RETRIEVE
Groups Types Metrics Retrieve
groups_types
Groups Types Metrics Update
POSTHOG_GROUPS_TYPES_METRICS_UPDATE
Groups Types Metrics Update
groups_types
Groups Types Set Default Columns Update
POSTHOG_GROUPS_TYPES_SET_DEFAULT_COLUMNS_UPDATE
Groups Types Set Default Columns Update
groups_types
Groups Types Update Metadata Partial Update
POSTHOG_GROUPS_TYPES_UPDATE_METADATA_PARTIAL_UPDATE
Groups Types Update Metadata Partial Update
groups_types
Groups Update Property Create
POSTHOG_GROUPS_UPDATE_PROPERTY_CREATE
Groups Update Property Create
groups
List health issues
POSTHOG_HEALTH_ISSUES_LIST
Lists health issues detected across all of this project's PostHog health checks (outdated SDKs, data warehouse sync failures, missing web analytics events, ingestion warnings, and more). Filter by status, severity, kind, or dismissed state.
health_issues
Health Issues Partial Update
POSTHOG_HEALTH_ISSUES_PARTIAL_UPDATE
Health Issues Partial Update
health_issues
Health Issues Refresh Create
POSTHOG_HEALTH_ISSUES_REFRESH_CREATE
Health Issues Refresh Create
health_issues
Health Issues Resolve Create
POSTHOG_HEALTH_ISSUES_RESOLVE_CREATE
Health Issues Resolve Create
health_issues
Get a health issue
POSTHOG_HEALTH_ISSUES_RETRIEVE
Fetches a single health issue, enriched with the owning check's rendered explanation: a title, a one-line summary of what's wrong, a deep link to the relevant page, and remediation guidance for how to fix it.
health_issues
Summarize active health issues
POSTHOG_HEALTH_ISSUES_SUMMARY_RETRIEVE
Returns aggregated counts of active, non-dismissed health issues for the project, broken down by severity and by kind. Use for a quick overview of overall project health before drilling in with the list endpoint.
health_issues
Heatmaps Events Retrieve
POSTHOG_HEATMAPS_EVENTS_RETRIEVE
Drill into the individual session interactions behind one or more heatmap coordinates. Pass the 'points' you want to inspect (from the heatmaps list response) to get the underlying per-session events, so you can jump to the session recordings that produced a hotspot.
heatmaps
Heatmaps List
POSTHOG_HEATMAPS_LIST
Aggregated heatmap interactions for a page. For type 'click'/'rageclick'/'mousemove' each result is a point with relative x, absolute client-y, and a count. For type 'scrolldepth' the response is scroll-depth buckets instead (cumulative reach down the page).
heatmaps
Heatmap Screenshots Content Retrieve
POSTHOG_HEATMAP_SCREENSHOTS_CONTENT_RETRIEVE
Fetch the rendered screenshot image (JPEG bytes) for a saved heatmap at a given viewport width. Returns 202 with the saved-heatmap metadata while the screenshot is still being generated.
heatmap_screenshots
Hog Flows Assets Retrieve
POSTHOG_HOG_FLOWS_ASSETS_RETRIEVE
Hog Flows Assets Retrieve
hog_flows
Hog Flows Asset Content Retrieve
POSTHOG_HOG_FLOWS_ASSET_CONTENT_RETRIEVE
Hog Flows Asset Content Retrieve
hog_flows
Hog Flows Batch Jobs Create
POSTHOG_HOG_FLOWS_BATCH_JOBS_CREATE
Hog Flows Batch Jobs Create
hog_flows
Hog Flows Batch Jobs List
POSTHOG_HOG_FLOWS_BATCH_JOBS_LIST
Hog Flows Batch Jobs List
hog_flows
Hog Flows Bulk Delete Create
POSTHOG_HOG_FLOWS_BULK_DELETE_CREATE
Hog Flows Bulk Delete Create
hog_flows
Hog Flows Create
POSTHOG_HOG_FLOWS_CREATE
Hog Flows Create
hog_flows
Hog Flows Destroy
POSTHOG_HOG_FLOWS_DESTROY
Hog Flows Destroy
hog_flows
Hog Flows Graph Partial Update
POSTHOG_HOG_FLOWS_GRAPH_PARTIAL_UPDATE
Hog Flows Graph Partial Update
hog_flows
Hog Flows Invocations Create
POSTHOG_HOG_FLOWS_INVOCATIONS_CREATE
Hog Flows Invocations Create
hog_flows
Hog Flows Invocation Results Retrieve
POSTHOG_HOG_FLOWS_INVOCATION_RESULTS_RETRIEVE
Hog Flows Invocation Results Retrieve
hog_flows
Hog Flows Invocation Result Retrieve
POSTHOG_HOG_FLOWS_INVOCATION_RESULT_RETRIEVE
Hog Flows Invocation Result Retrieve
hog_flows
Hog Flows List
POSTHOG_HOG_FLOWS_LIST
Hog Flows List
hog_flows
Hog Flows Logs Retrieve
POSTHOG_HOG_FLOWS_LOGS_RETRIEVE
Hog Flows Logs Retrieve
hog_flows
Hog Flows Metrics Global Retrieve
POSTHOG_HOG_FLOWS_METRICS_GLOBAL_RETRIEVE
Hog Flows Metrics Global Retrieve
hog_flows
Hog Flows Metrics Retrieve
POSTHOG_HOG_FLOWS_METRICS_RETRIEVE
Hog Flows Metrics Retrieve
hog_flows
Hog Flows Metrics Totals Retrieve
POSTHOG_HOG_FLOWS_METRICS_TOTALS_RETRIEVE
Hog Flows Metrics Totals Retrieve
hog_flows
Hog Flows Partial Update
POSTHOG_HOG_FLOWS_PARTIAL_UPDATE
Hog Flows Partial Update
hog_flows
Hog Flows Rerun Create
POSTHOG_HOG_FLOWS_RERUN_CREATE
Rerun past invocations of this hog flow from their stored payloads. Same shape and semantics as the hog function rerun endpoint — proxies through to the CDP worker, which reads matching rows from ClickHouse, rehydrates from `invocation_globals`, and re-enqueues onto cyclotron with `is_retry=1`. Because rerun replays historical event/person/group data, it requires `person:read` and `group:read` on top of `hog_flow:write`.
hog_flows
Hog Flows Retrieve
POSTHOG_HOG_FLOWS_RETRIEVE
Hog Flows Retrieve
hog_flows
Hog Flows Schedules Create
POSTHOG_HOG_FLOWS_SCHEDULES_CREATE
Hog Flows Schedules Create
hog_flows
Hog Flows Schedules Destroy
POSTHOG_HOG_FLOWS_SCHEDULES_DESTROY
Hog Flows Schedules Destroy
hog_flows
Hog Flows Schedules List
POSTHOG_HOG_FLOWS_SCHEDULES_LIST
Hog Flows Schedules List
hog_flows
Hog Flows Schedules Partial Update
POSTHOG_HOG_FLOWS_SCHEDULES_PARTIAL_UPDATE
Hog Flows Schedules Partial Update
hog_flows
Hog Flows Update
POSTHOG_HOG_FLOWS_UPDATE
Hog Flows Update
hog_flows
Hog Flows User Blast Radius Create
POSTHOG_HOG_FLOWS_USER_BLAST_RADIUS_CREATE
Hog Flows User Blast Radius Create
hog_flows
Hog Functions Create
POSTHOG_HOG_FUNCTIONS_CREATE
Hog Functions Create
hog_functionshog_functions
Hog Functions Destroy
POSTHOG_HOG_FUNCTIONS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
hog_functionshog_functions
Hog Functions Enable Backfills Create
POSTHOG_HOG_FUNCTIONS_ENABLE_BACKFILLS_CREATE
Hog Functions Enable Backfills Create
hog_functionshog_functions
Hog Functions Icons Retrieve
POSTHOG_HOG_FUNCTIONS_ICONS_RETRIEVE
Hog Functions Icons Retrieve
hog_functionshog_functions
Hog Functions Icon Retrieve
POSTHOG_HOG_FUNCTIONS_ICON_RETRIEVE
Hog Functions Icon Retrieve
hog_functionshog_functions
Hog Functions Invocations Create
POSTHOG_HOG_FUNCTIONS_INVOCATIONS_CREATE
Hog Functions Invocations Create
hog_functionshog_functions
Hog Functions List
POSTHOG_HOG_FUNCTIONS_LIST
Hog Functions List
hog_functionshog_functions
Hog Functions Logs Retrieve
POSTHOG_HOG_FUNCTIONS_LOGS_RETRIEVE
Hog Functions Logs Retrieve
hog_functionshog_functions
Hog Functions Metrics Retrieve
POSTHOG_HOG_FUNCTIONS_METRICS_RETRIEVE
Hog Functions Metrics Retrieve
hog_functionshog_functions
Hog Functions Metrics Totals Retrieve
POSTHOG_HOG_FUNCTIONS_METRICS_TOTALS_RETRIEVE
Hog Functions Metrics Totals Retrieve
hog_functionshog_functions
Hog Functions Partial Update
POSTHOG_HOG_FUNCTIONS_PARTIAL_UPDATE
Hog Functions Partial Update
hog_functionshog_functions
Hog Functions Rearrange Partial Update
POSTHOG_HOG_FUNCTIONS_REARRANGE_PARTIAL_UPDATE
Update the execution order of multiple HogFunctions.
hog_functionshog_functions
Hog Functions Rerun Create
POSTHOG_HOG_FUNCTIONS_RERUN_CREATE
Rerun past invocations of this hog function from their stored payloads. The CDP worker reads matching rows from the `hog_invocation_results` ClickHouse table, rehydrates the invocation from the stored `invocation_globals`, and re-enqueues onto cyclotron. Each rerun run reuses the original `invocation_id` with `is_retry=1` set on the new lifecycle row so the UI can surface that it was a rerun. For source-webhook functions the worker strips `request.headers` from the rehydrated globals before re-enqueuing (see the rerun paginator): those headers carry the inbound sender's credentials, and replaying them through a reconfigured function would let a write-access user exfiltrate stored secrets. Because rerun replays historical event/person/group data, it requires `person:read` and `group:read` on top of `hog_function:write`.
hog_functionshog_functions
Hog Functions Retrieve
POSTHOG_HOG_FUNCTIONS_RETRIEVE
Hog Functions Retrieve
hog_functionshog_functions
Hog Functions Update
POSTHOG_HOG_FUNCTIONS_UPDATE
Hog Functions Update
hog_functionshog_functions
Hog Function Templates List
POSTHOG_HOG_FUNCTION_TEMPLATES_LIST
Hog Function Templates List
hog_function_templateshog_function_templates
Hog Function Templates Retrieve
POSTHOG_HOG_FUNCTION_TEMPLATES_RETRIEVE
Hog Function Templates Retrieve
hog_function_templateshog_function_templates
Identity Provider Configs Create
POSTHOG_IDENTITY_PROVIDER_CONFIGS_CREATE
Identity Provider Configs Create
organizationsidentity_provider_configs
Identity Provider Configs Destroy
POSTHOG_IDENTITY_PROVIDER_CONFIGS_DESTROY
Identity Provider Configs Destroy
organizationsidentity_provider_configs
Identity Provider Configs List
POSTHOG_IDENTITY_PROVIDER_CONFIGS_LIST
Identity Provider Configs List
organizationsidentity_provider_configs
Identity Provider Configs Partial Update
POSTHOG_IDENTITY_PROVIDER_CONFIGS_PARTIAL_UPDATE
Identity Provider Configs Partial Update
organizationsidentity_provider_configs
Identity Provider Configs Retrieve
POSTHOG_IDENTITY_PROVIDER_CONFIGS_RETRIEVE
Identity Provider Configs Retrieve
organizationsidentity_provider_configs
Identity Provider Configs Scim Token Create
POSTHOG_IDENTITY_PROVIDER_CONFIGS_SCIM_TOKEN_CREATE
Regenerate the SCIM bearer token for this IdP config.
organizationsidentity_provider_configs
Identity Provider Configs Update
POSTHOG_IDENTITY_PROVIDER_CONFIGS_UPDATE
Identity Provider Configs Update
organizationsidentity_provider_configs
List ingestion warnings
POSTHOG_INGESTION_WARNINGS_V2_LIST
Lists this project's ingestion warnings — events or person/group updates that were ingested with problems (oversized messages, rejected person merges, invalid data) — grouped by warning type. Each entry carries the warning's category and severity, the total count and a sparkline over the requested time range, and the most recent sample warnings with the affected event/person/group. Filter by category, type, severity or time range to drill into a specific problem.
ingestion_warnings_v2
Insights Activity Retrieve
POSTHOG_INSIGHTS_ACTIVITY_RETRIEVE
Audit trail for a single insight — every change made to it, by whom, and when. Use this when you want the change history of a specific insight; use the project-wide activity endpoint for a broader view.
insights
Insights All Activity Retrieve
POSTHOG_INSIGHTS_ALL_ACTIVITY_RETRIEVE
Project-wide audit trail across all insights — who created, edited, deleted, or restored insights, what changed (with before/after diffs), and when. Useful for surfacing what people (or agents) have been working on recently.
insights
Insights Analyze Retrieve
POSTHOG_INSIGHTS_ANALYZE_RETRIEVE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Insights Bulk Delete Create
POSTHOG_INSIGHTS_BULK_DELETE_CREATE
Soft-delete insights in bulk by ID. Mirrors the single-insight delete: sets deleted=True, soft-deletes the insights' dashboard tiles, and removes their linked alerts. Insights the requester cannot edit are skipped and reported in `skipped`. Reversible via the bulk_restore endpoint.
insights
Insights Bulk Restore Create
POSTHOG_INSIGHTS_BULK_RESTORE_CREATE
Restore soft-deleted insights in bulk by ID — the inverse of bulk_delete. Sets deleted=False and re-activates the insights' dashboard tiles on dashboards that still exist. Linked alerts are not restored (they are removed on delete). Insights the requester cannot edit are reported in `skipped`.
insights
Insights Bulk Update Tags Create
POSTHOG_INSIGHTS_BULK_UPDATE_TAGS_CREATE
Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``<scope>:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list
insights
Insights Cancel Create
POSTHOG_INSIGHTS_CANCEL_CREATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Insights Create
POSTHOG_INSIGHTS_CREATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Insights Destroy
POSTHOG_INSIGHTS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
insights
Insights Generate Metadata Create
POSTHOG_INSIGHTS_GENERATE_METADATA_CREATE
Generate an AI-suggested name and description for an insight based on its query configuration.
insights
Insights List
POSTHOG_INSIGHTS_LIST
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Insights My Last Viewed Retrieve
POSTHOG_INSIGHTS_MY_LAST_VIEWED_RETRIEVE
Returns basic details about the last 5 insights viewed by this user. Most recently viewed first.
insights
Insights Partial Update
POSTHOG_INSIGHTS_PARTIAL_UPDATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Insights Retrieve
POSTHOG_INSIGHTS_RETRIEVE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Insights Sharing List
POSTHOG_INSIGHTS_SHARING_LIST
Insights Sharing List
insights
Insights Sharing Passwords Create
POSTHOG_INSIGHTS_SHARING_PASSWORDS_CREATE
Create a new password for the sharing configuration.
insights
Insights Sharing Passwords Destroy
POSTHOG_INSIGHTS_SHARING_PASSWORDS_DESTROY
Delete a password from the sharing configuration.
insights
Insights Sharing Refresh Create
POSTHOG_INSIGHTS_SHARING_REFRESH_CREATE
Insights Sharing Refresh Create
insights
Insights Suggestions Create
POSTHOG_INSIGHTS_SUGGESTIONS_CREATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Insights Suggestions Retrieve
POSTHOG_INSIGHTS_SUGGESTIONS_RETRIEVE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Insights Thresholds List
POSTHOG_INSIGHTS_THRESHOLDS_LIST
Insights Thresholds List
insights
Insights Thresholds Retrieve
POSTHOG_INSIGHTS_THRESHOLDS_RETRIEVE
Insights Thresholds Retrieve
insights
Insights Update
POSTHOG_INSIGHTS_UPDATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
insights
Insights Viewed Create
POSTHOG_INSIGHTS_VIEWED_CREATE
Record that the current user has just viewed one or more insights. Submitted ids that do not belong to the current project or that point at deleted insights are silently dropped. Returns 201 on success regardless of how many ids were retained.
insights
Insight Variables Create
POSTHOG_INSIGHT_VARIABLES_CREATE
Insight Variables Create
insight_variables
Insight Variables Destroy
POSTHOG_INSIGHT_VARIABLES_DESTROY
Insight Variables Destroy
insight_variables
Insight Variables List
POSTHOG_INSIGHT_VARIABLES_LIST
Insight Variables List
insight_variables
Insight Variables Partial Update
POSTHOG_INSIGHT_VARIABLES_PARTIAL_UPDATE
Insight Variables Partial Update
insight_variables
Insight Variables Retrieve
POSTHOG_INSIGHT_VARIABLES_RETRIEVE
Insight Variables Retrieve
insight_variables
Insight Variables Update
POSTHOG_INSIGHT_VARIABLES_UPDATE
Insight Variables Update
insight_variables
Integrations Anthropic Managed Agents Retrieve
POSTHOG_INTEGRATIONS_ANTHROPIC_MANAGED_AGENTS_RETRIEVE
Integrations Anthropic Managed Agents Retrieve
integrations
Integrations Anthropic Managed Agent Envs Retrieve
POSTHOG_INTEGRATIONS_ANTHROPIC_MANAGED_AGENT_ENVS_RETRIEVE
Integrations Anthropic Managed Agent Envs Retrieve
integrations
Integrations Anthropic Managed Agent Vaults Retrieve
POSTHOG_INTEGRATIONS_ANTHROPIC_MANAGED_AGENT_VAULTS_RETRIEVE
Integrations Anthropic Managed Agent Vaults Retrieve
integrations
Integrations Authorize Retrieve
POSTHOG_INTEGRATIONS_AUTHORIZE_RETRIEVE
Integrations Authorize Retrieve
integrations
Integrations Channels Retrieve
POSTHOG_INTEGRATIONS_CHANNELS_RETRIEVE
Integrations Channels Retrieve
integrations
Integrations Clickup Lists Retrieve
POSTHOG_INTEGRATIONS_CLICKUP_LISTS_RETRIEVE
Integrations Clickup Lists Retrieve
integrations
Integrations Clickup Spaces Retrieve
POSTHOG_INTEGRATIONS_CLICKUP_SPACES_RETRIEVE
Integrations Clickup Spaces Retrieve
integrations
Integrations Clickup Workspaces Retrieve
POSTHOG_INTEGRATIONS_CLICKUP_WORKSPACES_RETRIEVE
Integrations Clickup Workspaces Retrieve
integrations
Integrations Create
POSTHOG_INTEGRATIONS_CREATE
Integrations Create
integrations
Integrations Destroy
POSTHOG_INTEGRATIONS_DESTROY
Integrations Destroy
integrations
Integrations Domain Connect Apply Url Create
POSTHOG_INTEGRATIONS_DOMAIN_CONNECT_APPLY_URL_CREATE
Unified endpoint for generating Domain Connect apply URLs. Accepts a context ("email" or "proxy") and the relevant resource ID. The backend resolves the domain, template variables, and service ID based on context, then builds the signed apply URL.
integrations
Integrations Domain Connect Check Retrieve
POSTHOG_INTEGRATIONS_DOMAIN_CONNECT_CHECK_RETRIEVE
Integrations Domain Connect Check Retrieve
integrations
Integrations Email Partial Update
POSTHOG_INTEGRATIONS_EMAIL_PARTIAL_UPDATE
Integrations Email Partial Update
integrations
Integrations Email Verify Create
POSTHOG_INTEGRATIONS_EMAIL_VERIFY_CREATE
Integrations Email Verify Create
integrations
Integrations Environment Mapping Partial Update
POSTHOG_INTEGRATIONS_ENVIRONMENT_MAPPING_PARTIAL_UPDATE
ViewSet for organization-level integrations. Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc. Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint.
organizationsintegrations
Integrations Github Branches Retrieve
POSTHOG_INTEGRATIONS_GITHUB_BRANCHES_RETRIEVE
Integrations Github Branches Retrieve
integrations
Integrations Github Oauth Authorize Create
POSTHOG_INTEGRATIONS_GITHUB_OAUTH_AUTHORIZE_CREATE
Mint a User OAuth URL to bootstrap a fresh `code` when the install flow returns without one.
integrations
Integrations Github Prepare Callback Create
POSTHOG_INTEGRATIONS_GITHUB_PREPARE_CALLBACK_CREATE
Seed GitHub setup callback state without redirecting to GitHub. Used when the user opens an existing installation's settings on github.com (e.g. PostHog Code "Update in GitHub") so the subsequent Setup URL redirect can be validated.
integrations
Integrations Github Repos Refresh Create
POSTHOG_INTEGRATIONS_GITHUB_REPOS_REFRESH_CREATE
Integrations Github Repos Refresh Create
integrations
Integrations Github Repos Retrieve
POSTHOG_INTEGRATIONS_GITHUB_REPOS_RETRIEVE
Integrations Github Repos Retrieve
integrations
Integrations Github Teams Retrieve
POSTHOG_INTEGRATIONS_GITHUB_TEAMS_RETRIEVE
Integrations Github Teams Retrieve
integrations
Integrations Google Accessible Accounts Retrieve
POSTHOG_INTEGRATIONS_GOOGLE_ACCESSIBLE_ACCOUNTS_RETRIEVE
Integrations Google Accessible Accounts Retrieve
integrations
Integrations Google Conversion Actions Retrieve
POSTHOG_INTEGRATIONS_GOOGLE_CONVERSION_ACTIONS_RETRIEVE
Integrations Google Conversion Actions Retrieve
integrations
Integrations Google Search Console Sites Retrieve
POSTHOG_INTEGRATIONS_GOOGLE_SEARCH_CONSOLE_SITES_RETRIEVE
List the Search Console properties the connected Google account has access to.
integrations
Integrations Jira Projects Retrieve
POSTHOG_INTEGRATIONS_JIRA_PROJECTS_RETRIEVE
Integrations Jira Projects Retrieve
integrations
Integrations Linear Teams Retrieve
POSTHOG_INTEGRATIONS_LINEAR_TEAMS_RETRIEVE
Integrations Linear Teams Retrieve
integrations
Integrations Linkedin Ads Accounts Retrieve
POSTHOG_INTEGRATIONS_LINKEDIN_ADS_ACCOUNTS_RETRIEVE
Integrations Linkedin Ads Accounts Retrieve
integrations
Integrations Linkedin Ads Conversion Rules Retrieve
POSTHOG_INTEGRATIONS_LINKEDIN_ADS_CONVERSION_RULES_RETRIEVE
Integrations Linkedin Ads Conversion Rules Retrieve
integrations
Integrations List
POSTHOG_INTEGRATIONS_LIST
Integrations List
integrations
Integrations Request Access Create
POSTHOG_INTEGRATIONS_REQUEST_ACCESS_CREATE
Notify project admins that a member is requesting an integration be connected.
integrations
Integrations Retrieve
POSTHOG_INTEGRATIONS_RETRIEVE
Integrations Retrieve
integrations
Integrations Twilio Phone Numbers Retrieve
POSTHOG_INTEGRATIONS_TWILIO_PHONE_NUMBERS_RETRIEVE
Integrations Twilio Phone Numbers Retrieve
integrations
Invites Bulk Create
POSTHOG_INVITES_BULK_CREATE
Invites Bulk Create
organizationsinvites
Invites Create
POSTHOG_INVITES_CREATE
Invites Create
organizationsinvites
Invites Delegate Create
POSTHOG_INVITES_DELEGATE_CREATE
Create an onboarding delegation invite: an admin-level invite flagged as a setup delegation. Sends a single dedicated delegation email and records the inviting user as having delegated.
organizationsinvites
Invites Destroy
POSTHOG_INVITES_DESTROY
Invites Destroy
organizationsinvites
Invites List
POSTHOG_INVITES_LIST
Invites List
organizationsinvites
Js Snippet Resolve Retrieve
POSTHOG_JS_SNIPPET_RESOLVE_RETRIEVE
Preview what a given pin would resolve to, without saving it.
js-snippet
Js Snippet Version Partial Update
POSTHOG_JS_SNIPPET_VERSION_PARTIAL_UPDATE
Update the team's version pin.
js-snippet
Js Snippet Version Retrieve
POSTHOG_JS_SNIPPET_VERSION_RETRIEVE
Return the team's current version pin and resolved version.
js-snippet
List
POSTHOG_LIST
List
organizationsorganizations
Get active breakpoints (External API)
POSTHOG_LIVE_DEBUGGER_BREAKPOINTS_ACTIVE_RETRIEVE
External API endpoint for client applications to fetch active breakpoints using Project API key. This endpoint allows external client applications (like Python scripts, Node.js apps, etc.) to fetch the list of active breakpoints so they can instrument their code accordingly. Authentication: Requires a Project API Key in the Authorization header: `Authorization: Bearer phs_<your-project-api-key>`. You can find your Project API Key in PostHog at: Settings → Project → Project API Key
live_debugger_breakpoints
Get breakpoint hits
POSTHOG_LIVE_DEBUGGER_BREAKPOINTS_BREAKPOINT_HITS_RETRIEVE
Retrieve breakpoint hit events from ClickHouse with optional filtering and pagination. Returns hit events containing stack traces, local variables, and execution context from your application's runtime. Security: Breakpoint IDs are filtered to only include those belonging to the current team.
live_debugger_breakpoints
Live Debugger Breakpoints Create
POSTHOG_LIVE_DEBUGGER_BREAKPOINTS_CREATE
Create, Read, Update and Delete breakpoints for live debugging.
live_debugger_breakpoints
Live Debugger Breakpoints Destroy
POSTHOG_LIVE_DEBUGGER_BREAKPOINTS_DESTROY
Create, Read, Update and Delete breakpoints for live debugging.
live_debugger_breakpoints
Live Debugger Breakpoints List
POSTHOG_LIVE_DEBUGGER_BREAKPOINTS_LIST
Create, Read, Update and Delete breakpoints for live debugging.
live_debugger_breakpoints
Live Debugger Breakpoints Partial Update
POSTHOG_LIVE_DEBUGGER_BREAKPOINTS_PARTIAL_UPDATE
Create, Read, Update and Delete breakpoints for live debugging.
live_debugger_breakpoints
Live Debugger Breakpoints Retrieve
POSTHOG_LIVE_DEBUGGER_BREAKPOINTS_RETRIEVE
Create, Read, Update and Delete breakpoints for live debugging.
live_debugger_breakpoints
Live Debugger Breakpoints Update
POSTHOG_LIVE_DEBUGGER_BREAKPOINTS_UPDATE
Create, Read, Update and Delete breakpoints for live debugging.
live_debugger_breakpoints
Llm Analytics Clustering Config List
POSTHOG_LLM_ANALYTICS_CLUSTERING_CONFIG_LIST
Team-level clustering configuration (event filters for automated pipelines).
llm_analytics
Llm Analytics Clustering Config Set Event Filters Create
POSTHOG_LLM_ANALYTICS_CLUSTERING_CONFIG_SET_EVENT_FILTERS_CREATE
Team-level clustering configuration (event filters for automated pipelines).
llm_analytics
Llm Analytics Clustering Jobs Create
POSTHOG_LLM_ANALYTICS_CLUSTERING_JOBS_CREATE
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Llm Analytics Clustering Jobs Destroy
POSTHOG_LLM_ANALYTICS_CLUSTERING_JOBS_DESTROY
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Llm Analytics Clustering Jobs List
POSTHOG_LLM_ANALYTICS_CLUSTERING_JOBS_LIST
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Llm Analytics Clustering Jobs Partial Update
POSTHOG_LLM_ANALYTICS_CLUSTERING_JOBS_PARTIAL_UPDATE
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Llm Analytics Clustering Jobs Retrieve
POSTHOG_LLM_ANALYTICS_CLUSTERING_JOBS_RETRIEVE
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Llm Analytics Clustering Jobs Update
POSTHOG_LLM_ANALYTICS_CLUSTERING_JOBS_UPDATE
CRUD for clustering job configurations (max 10 per team).
llm_analytics
Llm Analytics Evaluation Config Retrieve
POSTHOG_LLM_ANALYTICS_EVALUATION_CONFIG_RETRIEVE
Get the evaluation config for this team
llm_analytics
Llm Analytics Evaluation Config Set Active Key Create
POSTHOG_LLM_ANALYTICS_EVALUATION_CONFIG_SET_ACTIVE_KEY_CREATE
Set the active provider key for evaluations
llm_analytics
Llm Analytics Evaluation Reports Create
POSTHOG_LLM_ANALYTICS_EVALUATION_REPORTS_CREATE
CRUD for evaluation report configurations + report run history.
llm_analytics
Llm Analytics Evaluation Reports Destroy
POSTHOG_LLM_ANALYTICS_EVALUATION_REPORTS_DESTROY
Evaluation report configs are deleted only when their evaluation is deleted. Use PATCH enabled=false to stop delivery.
llm_analytics
Llm Analytics Evaluation Reports Generate Create
POSTHOG_LLM_ANALYTICS_EVALUATION_REPORTS_GENERATE_CREATE
Trigger immediate report generation.
llm_analytics
Llm Analytics Evaluation Reports List
POSTHOG_LLM_ANALYTICS_EVALUATION_REPORTS_LIST
CRUD for evaluation report configurations + report run history.
llm_analytics
Llm Analytics Evaluation Reports Partial Update
POSTHOG_LLM_ANALYTICS_EVALUATION_REPORTS_PARTIAL_UPDATE
CRUD for evaluation report configurations + report run history.
llm_analytics
Llm Analytics Evaluation Reports Retrieve
POSTHOG_LLM_ANALYTICS_EVALUATION_REPORTS_RETRIEVE
CRUD for evaluation report configurations + report run history.
llm_analytics
Llm Analytics Evaluation Reports Runs List
POSTHOG_LLM_ANALYTICS_EVALUATION_REPORTS_RUNS_LIST
List report runs (history) for this report.
llm_analytics
Llm Analytics Evaluation Reports Update
POSTHOG_LLM_ANALYTICS_EVALUATION_REPORTS_UPDATE
CRUD for evaluation report configurations + report run history.
llm_analytics
Llm Analytics Evaluation Summary Create
POSTHOG_LLM_ANALYTICS_EVALUATION_SUMMARY_CREATE
Generate an AI-powered summary of evaluation results. This endpoint analyzes evaluation runs and identifies patterns in passing and failing evaluations, providing actionable recommendations. Data is fetched server-side by evaluation ID to ensure data integrity. **Use Cases:** - Understand why evaluations are passing or failing - Identify systematic issues in LLM responses - Get recommendations for improving response quality - Review patterns across many evaluation runs at once
AI observabilityllm_analytics
Llm Analytics Models Retrieve
POSTHOG_LLM_ANALYTICS_MODELS_RETRIEVE
List available models for a provider.
llm_analytics
Llm Analytics Offline Evaluations Experiment Items Create
POSTHOG_LLM_ANALYTICS_OFFLINE_EVALUATIONS_EXPERIMENT_ITEMS_CREATE
Llm Analytics Offline Evaluations Experiment Items Create
AI observabilityllm_analytics
Llm Analytics Parser Recipes Create
POSTHOG_LLM_ANALYTICS_PARSER_RECIPES_CREATE
Llm Analytics Parser Recipes Create
llm_analytics
Llm Analytics Parser Recipes Destroy
POSTHOG_LLM_ANALYTICS_PARSER_RECIPES_DESTROY
Llm Analytics Parser Recipes Destroy
llm_analytics
Llm Analytics Parser Recipes List
POSTHOG_LLM_ANALYTICS_PARSER_RECIPES_LIST
Llm Analytics Parser Recipes List
llm_analytics
Llm Analytics Parser Recipes Partial Update
POSTHOG_LLM_ANALYTICS_PARSER_RECIPES_PARTIAL_UPDATE
Llm Analytics Parser Recipes Partial Update
llm_analytics
Llm Analytics Parser Recipes Retrieve
POSTHOG_LLM_ANALYTICS_PARSER_RECIPES_RETRIEVE
Llm Analytics Parser Recipes Retrieve
llm_analytics
Llm Analytics Personal Spend List
POSTHOG_LLM_ANALYTICS_PERSONAL_SPEND_LIST
Return a structured personal LLM spend analysis for the requesting user. Pass `date_from` / `date_to` (absolute like `2026-04-23` or relative like `-7d`) to bound the window — defaults to the last 30 days, max 90 days. The `product=<ai_product>` query param is required and scopes the tool / model / day / trace breakdowns to a single product; supported values: posthog_code. `by_product` is always returned for cross-product visibility. `by_day` returns a day-ascending spend series for the scoped product. Use `refresh=true` to bypass the 5-minute response cache.
AI observabilityllm_analytics
Llm Analytics Provider Keys Assign Create
POSTHOG_LLM_ANALYTICS_PROVIDER_KEYS_ASSIGN_CREATE
Assign this key to evaluations and optionally re-enable them.
llm_analytics
Llm Analytics Provider Keys Create
POSTHOG_LLM_ANALYTICS_PROVIDER_KEYS_CREATE
Llm Analytics Provider Keys Create
llm_analytics
Llm Analytics Provider Keys Dependent Configs Retrieve
POSTHOG_LLM_ANALYTICS_PROVIDER_KEYS_DEPENDENT_CONFIGS_RETRIEVE
Get evaluations using this key and alternative keys for replacement.
llm_analytics
Llm Analytics Provider Keys Destroy
POSTHOG_LLM_ANALYTICS_PROVIDER_KEYS_DESTROY
Llm Analytics Provider Keys Destroy
llm_analytics
Llm Analytics Provider Keys List
POSTHOG_LLM_ANALYTICS_PROVIDER_KEYS_LIST
Llm Analytics Provider Keys List
llm_analytics
Llm Analytics Provider Keys Partial Update
POSTHOG_LLM_ANALYTICS_PROVIDER_KEYS_PARTIAL_UPDATE
Llm Analytics Provider Keys Partial Update
llm_analytics
Llm Analytics Provider Keys Retrieve
POSTHOG_LLM_ANALYTICS_PROVIDER_KEYS_RETRIEVE
Llm Analytics Provider Keys Retrieve
llm_analytics
Llm Analytics Provider Keys Trial Evaluations Retrieve
POSTHOG_LLM_ANALYTICS_PROVIDER_KEYS_TRIAL_EVALUATIONS_RETRIEVE
List enabled evaluations currently using trial credits for a given provider.
llm_analytics
Llm Analytics Provider Keys Update
POSTHOG_LLM_ANALYTICS_PROVIDER_KEYS_UPDATE
Llm Analytics Provider Keys Update
llm_analytics
Llm Analytics Provider Keys Validate Create
POSTHOG_LLM_ANALYTICS_PROVIDER_KEYS_VALIDATE_CREATE
Llm Analytics Provider Keys Validate Create
llm_analytics
Llm Analytics Provider Key Validations Create
POSTHOG_LLM_ANALYTICS_PROVIDER_KEY_VALIDATIONS_CREATE
Validate LLM provider API keys without persisting them
llm_analytics
Llm Analytics Review Queues Create
POSTHOG_LLM_ANALYTICS_REVIEW_QUEUES_CREATE
Llm Analytics Review Queues Create
llm_analytics
Llm Analytics Review Queues Destroy
POSTHOG_LLM_ANALYTICS_REVIEW_QUEUES_DESTROY
Llm Analytics Review Queues Destroy
llm_analytics
Llm Analytics Review Queues List
POSTHOG_LLM_ANALYTICS_REVIEW_QUEUES_LIST
Llm Analytics Review Queues List
llm_analytics
Llm Analytics Review Queues Partial Update
POSTHOG_LLM_ANALYTICS_REVIEW_QUEUES_PARTIAL_UPDATE
Llm Analytics Review Queues Partial Update
llm_analytics
Llm Analytics Review Queues Retrieve
POSTHOG_LLM_ANALYTICS_REVIEW_QUEUES_RETRIEVE
Llm Analytics Review Queues Retrieve
llm_analytics
Llm Analytics Review Queue Items Create
POSTHOG_LLM_ANALYTICS_REVIEW_QUEUE_ITEMS_CREATE
Llm Analytics Review Queue Items Create
llm_analytics
Llm Analytics Review Queue Items Destroy
POSTHOG_LLM_ANALYTICS_REVIEW_QUEUE_ITEMS_DESTROY
Llm Analytics Review Queue Items Destroy
llm_analytics
Llm Analytics Review Queue Items List
POSTHOG_LLM_ANALYTICS_REVIEW_QUEUE_ITEMS_LIST
Llm Analytics Review Queue Items List
llm_analytics
Llm Analytics Review Queue Items Partial Update
POSTHOG_LLM_ANALYTICS_REVIEW_QUEUE_ITEMS_PARTIAL_UPDATE
Llm Analytics Review Queue Items Partial Update
llm_analytics
Llm Analytics Review Queue Items Retrieve
POSTHOG_LLM_ANALYTICS_REVIEW_QUEUE_ITEMS_RETRIEVE
Llm Analytics Review Queue Items Retrieve
llm_analytics
Llm Analytics Score Definitions Create
POSTHOG_LLM_ANALYTICS_SCORE_DEFINITIONS_CREATE
Llm Analytics Score Definitions Create
llm_analytics
Llm Analytics Score Definitions List
POSTHOG_LLM_ANALYTICS_SCORE_DEFINITIONS_LIST
Llm Analytics Score Definitions List
llm_analytics
Llm Analytics Score Definitions New Version Create
POSTHOG_LLM_ANALYTICS_SCORE_DEFINITIONS_NEW_VERSION_CREATE
Llm Analytics Score Definitions New Version Create
llm_analytics
Llm Analytics Score Definitions Partial Update
POSTHOG_LLM_ANALYTICS_SCORE_DEFINITIONS_PARTIAL_UPDATE
Llm Analytics Score Definitions Partial Update
llm_analytics
Llm Analytics Score Definitions Retrieve
POSTHOG_LLM_ANALYTICS_SCORE_DEFINITIONS_RETRIEVE
Llm Analytics Score Definitions Retrieve
llm_analytics
Llm Analytics Summarization Batch Check Create
POSTHOG_LLM_ANALYTICS_SUMMARIZATION_BATCH_CHECK_CREATE
Check which traces have cached summaries available. This endpoint allows batch checking of multiple trace IDs to see which ones have cached summaries. Returns only the traces that have cached summaries with their titles. **Use Cases:** - Load cached summaries on session view load - Avoid unnecessary LLM calls for already-summarized traces - Display summary previews without generating new summaries
AI observabilityllm_analytics
Llm Analytics Summarization Create
POSTHOG_LLM_ANALYTICS_SUMMARIZATION_CREATE
Generate an AI-powered summary of an LLM trace or event. This endpoint analyzes the provided trace/event, generates a line-numbered text representation, and uses an LLM to create a concise summary with line references. **Two ways to use this endpoint:** 1. **By ID (recommended):** Pass `trace_id` or `generation_id` with an optional `date_from`/`date_to`. The backend fetches the data automatically. `summarize_type` is inferred. 2. **By data:** Pass the full trace/event data blob in `data` with `summarize_type`. This is how the frontend uses it. **Summary Format:** - Title (concise, max 10 words) - Mermaid flow diagram showing the main flow - 3-10 summary bullets with line references - "Interesting Notes" section for failures, successes, or unusual patterns - Line references in [L45] or [L45-52] format pointing to relevant sections The response includes the structured summary, the text representation, and metadata.
AI observabilityllm_analytics
Llm Analytics Text Repr Create
POSTHOG_LLM_ANALYTICS_TEXT_REPR_CREATE
Generate a human-readable text representation of an LLM trace event. This endpoint converts AI observability events ($ai_generation, $ai_span, $ai_embedding, or $ai_trace) into formatted text representations suitable for display, logging, or analysis. **Supported Event Types:** - `$ai_generation`: Individual LLM API calls with input/output messages - `$ai_span`: Logical spans with state transitions - `$ai_embedding`: Embedding generation events (text input → vector) - `$ai_trace`: Full traces with hierarchical structure **Options:** - `max_length`: Maximum character count (default: 2000000) - `truncated`: Enable middle-content truncation within events (default: true) - `truncate_buffer`: Characters at start/end when truncating (default: 1000) - `include_markers`: Use interactive markers vs plain text indicators (default: true) - Frontend: set true for `<<<TRUNCATED|base64|...>>>` markers - Backend/LLM: set false for `... (X chars truncated) ...` text - `collapsed`: Show summary vs full trace tree (default: false) - `include_hierarchy`: Include tree structure for traces (default: true) - `max_depth`: Maximum depth for hierarchical rendering (default: unlimited) - `tools_collapse_threshold`: Number of tools before auto-collapsing list (default: 5) - Tool lists >5 items show `<<<TOOLS_EXPANDABLE|...>>>` marker for frontend - Or `[+] AVAILABLE TOOLS: N` for backend when `include_markers: false` - `include_line_numbers`: Prefix each line with line number like L001:, L010: (default: false) **Use Cases:** - Frontend display: `truncated: true, include_markers: true, include_line_numbers: true` - Backend LLM context (summary): `truncated: true, include_markers: false, collapsed: true` - Backend LLM context (full): `truncated: false` The response includes the formatted text and metadata about the rendering.
AI observabilityllm_analytics
Llm Analytics Trace Reviews Create
POSTHOG_LLM_ANALYTICS_TRACE_REVIEWS_CREATE
Llm Analytics Trace Reviews Create
llm_analytics
Llm Analytics Trace Reviews Destroy
POSTHOG_LLM_ANALYTICS_TRACE_REVIEWS_DESTROY
Llm Analytics Trace Reviews Destroy
llm_analytics
Llm Analytics Trace Reviews List
POSTHOG_LLM_ANALYTICS_TRACE_REVIEWS_LIST
Llm Analytics Trace Reviews List
llm_analytics
Llm Analytics Trace Reviews Partial Update
POSTHOG_LLM_ANALYTICS_TRACE_REVIEWS_PARTIAL_UPDATE
Llm Analytics Trace Reviews Partial Update
llm_analytics
Llm Analytics Trace Reviews Retrieve
POSTHOG_LLM_ANALYTICS_TRACE_REVIEWS_RETRIEVE
Llm Analytics Trace Reviews Retrieve
llm_analytics
Llm Analytics Translate Create
POSTHOG_LLM_ANALYTICS_TRANSLATE_CREATE
Translate text to target language.
llm_analytics
Llm Prompts Create
POSTHOG_LLM_PROMPTS_CREATE
Llm Prompts Create
llm_prompts
Llm Prompts List
POSTHOG_LLM_PROMPTS_LIST
Llm Prompts List
llm_prompts
Llm Prompts Name Archive Create
POSTHOG_LLM_PROMPTS_NAME_ARCHIVE_CREATE
Llm Prompts Name Archive Create
llm_prompts
Llm Prompts Name Duplicate Create
POSTHOG_LLM_PROMPTS_NAME_DUPLICATE_CREATE
Llm Prompts Name Duplicate Create
llm_prompts
Llm Prompts Name Partial Update
POSTHOG_LLM_PROMPTS_NAME_PARTIAL_UPDATE
Llm Prompts Name Partial Update
llm_prompts
Llm Prompts Name Retrieve
POSTHOG_LLM_PROMPTS_NAME_RETRIEVE
Llm Prompts Name Retrieve
llm_prompts
Llm Prompts Resolve Name Retrieve
POSTHOG_LLM_PROMPTS_RESOLVE_NAME_RETRIEVE
Llm Prompts Resolve Name Retrieve
llm_prompts
Llm Skills Create
POSTHOG_LLM_SKILLS_CREATE
Llm Skills Create
llm_skills
Llm Skills Import Create
POSTHOG_LLM_SKILLS_IMPORT_CREATE
Llm Skills Import Create
llm_skills
Llm Skills List
POSTHOG_LLM_SKILLS_LIST
Llm Skills List
llm_skills
Llm Skills Marketplace Install Command Create
POSTHOG_LLM_SKILLS_MARKETPLACE_INSTALL_COMMAND_CREATE
Mint the user's read-only marketplace credential (or rotate it) and return the install command. Per-user: rotating only ever invalidates this user's own credential, never a teammate's.
llm_skills
Llm Skills Marketplace Install Command Retrieve
POSTHOG_LLM_SKILLS_MARKETPLACE_INSTALL_COMMAND_RETRIEVE
Report whether the user already has a marketplace credential, without minting one. The token is unrecoverable, so an existing credential returns its mask only — the UI shows "already connected, existing setups keep working" and offers an explicit rotate.
llm_skills
Llm Skills Name Archive Create
POSTHOG_LLM_SKILLS_NAME_ARCHIVE_CREATE
Llm Skills Name Archive Create
llm_skills
Llm Skills Name Duplicate Create
POSTHOG_LLM_SKILLS_NAME_DUPLICATE_CREATE
Llm Skills Name Duplicate Create
llm_skills
Llm Skills Name Export Retrieve
POSTHOG_LLM_SKILLS_NAME_EXPORT_RETRIEVE
Llm Skills Name Export Retrieve
llm_skills
Llm Skills Name Files Create
POSTHOG_LLM_SKILLS_NAME_FILES_CREATE
Llm Skills Name Files Create
llm_skills
Llm Skills Name Files Destroy
POSTHOG_LLM_SKILLS_NAME_FILES_DESTROY
Llm Skills Name Files Destroy
llm_skills
Llm Skills Name Files Rename Create
POSTHOG_LLM_SKILLS_NAME_FILES_RENAME_CREATE
Llm Skills Name Files Rename Create
llm_skills
Llm Skills Name Files Retrieve
POSTHOG_LLM_SKILLS_NAME_FILES_RETRIEVE
Llm Skills Name Files Retrieve
llm_skills
Llm Skills Name Partial Update
POSTHOG_LLM_SKILLS_NAME_PARTIAL_UPDATE
Llm Skills Name Partial Update
llm_skills
Llm Skills Name Retrieve
POSTHOG_LLM_SKILLS_NAME_RETRIEVE
Llm Skills Name Retrieve
llm_skills
Llm Skills Resolve Name Retrieve
POSTHOG_LLM_SKILLS_RESOLVE_NAME_RETRIEVE
Llm Skills Resolve Name Retrieve
llm_skills
Logs Alerts Create
POSTHOG_LOGS_ALERTS_CREATE
Logs Alerts Create
logs
Logs Alerts Destinations Create
POSTHOG_LOGS_ALERTS_DESTINATIONS_CREATE
Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
logs
Logs Alerts Destinations Delete Create
POSTHOG_LOGS_ALERTS_DESTINATIONS_DELETE_CREATE
Delete a notification destination by deleting its HogFunction group atomically.
logs
Logs Alerts Destroy
POSTHOG_LOGS_ALERTS_DESTROY
Logs Alerts Destroy
logs
Logs Alerts Events List
POSTHOG_LOGS_ALERTS_EVENTS_LIST
Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't change and there was no error) are filtered out since only the last 10 are kept and they carry no forensic value. Optional `?kind=...` narrows to a single kind.
logs
Logs Alerts List
POSTHOG_LOGS_ALERTS_LIST
Logs Alerts List
logs
Logs Alerts Partial Update
POSTHOG_LOGS_ALERTS_PARTIAL_UPDATE
Logs Alerts Partial Update
logs
Logs Alerts Reset Create
POSTHOG_LOGS_ALERTS_RESET_CREATE
Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
logs
Logs Alerts Retrieve
POSTHOG_LOGS_ALERTS_RETRIEVE
Logs Alerts Retrieve
logs
Logs Alerts Simulate Create
POSTHOG_LOGS_ALERTS_SIMULATE_CREATE
Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.
logs
Logs Alerts Update
POSTHOG_LOGS_ALERTS_UPDATE
Logs Alerts Update
logs
Logs Attributes Retrieve
POSTHOG_LOGS_ATTRIBUTES_RETRIEVE
Logs Attributes Retrieve
logs
Logs Count Create
POSTHOG_LOGS_COUNT_CREATE
Logs Count Create
logs
Logs Count Ranges Create
POSTHOG_LOGS_COUNT_RANGES_CREATE
Logs Count Ranges Create
logs
Logs ExplainLogWithAI Create
POSTHOG_LOGS_EXPLAIN_LOG_WITH_AI_CREATE
Explain a log entry using AI. POST /api/environments/:id/logs/explainLogWithAI/
logs
Logs Export Create
POSTHOG_LOGS_EXPORT_CREATE
Logs Export Create
logs
Logs Facet Values Create
POSTHOG_LOGS_FACET_VALUES_CREATE
Logs Facet Values Create
logs
Logs Group By Create
POSTHOG_LOGS_GROUP_BY_CREATE
Logs Group By Create
logs
Logs Has Logs Retrieve
POSTHOG_LOGS_HAS_LOGS_RETRIEVE
Logs Has Logs Retrieve
logs
Logs Patterns Create
POSTHOG_LOGS_PATTERNS_CREATE
Logs Patterns Create
logs
Logs Query Create
POSTHOG_LOGS_QUERY_CREATE
Logs Query Create
logs
Logs Sampling Rules Create
POSTHOG_LOGS_SAMPLING_RULES_CREATE
Logs Sampling Rules Create
logs
Logs Sampling Rules Destroy
POSTHOG_LOGS_SAMPLING_RULES_DESTROY
Logs Sampling Rules Destroy
logs
Logs Sampling Rules List
POSTHOG_LOGS_SAMPLING_RULES_LIST
Logs Sampling Rules List
logs
Logs Sampling Rules Partial Update
POSTHOG_LOGS_SAMPLING_RULES_PARTIAL_UPDATE
Logs Sampling Rules Partial Update
logs
Logs Sampling Rules Reorder Create
POSTHOG_LOGS_SAMPLING_RULES_REORDER_CREATE
Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
logs
Logs Sampling Rules Retrieve
POSTHOG_LOGS_SAMPLING_RULES_RETRIEVE
Logs Sampling Rules Retrieve
logs
Logs Sampling Rules Simulate Create
POSTHOG_LOGS_SAMPLING_RULES_SIMULATE_CREATE
Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).
logs
Logs Sampling Rules Update
POSTHOG_LOGS_SAMPLING_RULES_UPDATE
Logs Sampling Rules Update
logs
Logs Services Create
POSTHOG_LOGS_SERVICES_CREATE
Logs Services Create
logs
Logs Sparkline Create
POSTHOG_LOGS_SPARKLINE_CREATE
Logs Sparkline Create
logs
Logs Values Retrieve
POSTHOG_LOGS_VALUES_RETRIEVE
Logs Values Retrieve
logs
Logs Views Create
POSTHOG_LOGS_VIEWS_CREATE
Logs Views Create
logs
Logs Views Destroy
POSTHOG_LOGS_VIEWS_DESTROY
Logs Views Destroy
logs
Logs Views List
POSTHOG_LOGS_VIEWS_LIST
Logs Views List
logs
Logs Views Partial Update
POSTHOG_LOGS_VIEWS_PARTIAL_UPDATE
Logs Views Partial Update
logs
Logs Views Retrieve
POSTHOG_LOGS_VIEWS_RETRIEVE
Logs Views Retrieve
logs
Logs Views Update
POSTHOG_LOGS_VIEWS_UPDATE
Logs Views Update
logs
Managed Viewsets Retrieve
POSTHOG_MANAGED_VIEWSETS_RETRIEVE
Get all views associated with a specific managed viewset. GET /api/environments/{team_id}/managed_viewsets/{kind}/
managed_viewsets
Managed Viewsets Update
POSTHOG_MANAGED_VIEWSETS_UPDATE
Enable or disable a managed viewset by kind. PUT /api/environments/{team_id}/managed_viewsets/{kind}/ with body {"enabled": true/false}
managed_viewsets
List conversion goals
POSTHOG_MARKETING_ANALYTICS_CONVERSION_GOALS_RETRIEVE
Read the configured conversion goals for the current project — each with its kind, target, last-30d count, integrated vs non-integrated split, and a misconfiguration flag. Read-only.
marketing_analytics
List marketing data sources
POSTHOG_MARKETING_ANALYTICS_DATA_SOURCES_RETRIEVE
Check the platform → data-warehouse side of every native marketing integration: connection state, sync recency, row counts, required-table status, and schema-mapping coverage. Read-only.
marketing_analytics
Diagnose marketing analytics
POSTHOG_MARKETING_ANALYTICS_DIAGNOSE_RETRIEVE
Aggregate data-source sync health, UTM attribution health, and conversion-goal config into a single per-integration diagnostic with recommended actions. Read-only.
marketing_analytics
Explain a conversion goal
POSTHOG_MARKETING_ANALYTICS_EXPLAIN_CONVERSION_GOAL_RETRIEVE
Break down a single conversion goal's events over a period by event name, utm_source, and matched integration, with a small sample of events. Read-only.
marketing_analytics
Suggest conversion goals
POSTHOG_MARKETING_ANALYTICS_SUGGEST_CONVERSION_GOALS_RETRIEVE
Rank existing custom events as conversion-goal candidates by volume, UTM-tag coverage, and unique users, excluding system/autocaptured events. Read-only.
marketing_analytics
Suggest UTM source mappings
POSTHOG_MARKETING_ANALYTICS_SUGGEST_UTM_MAPPINGS_RETRIEVE
Detect unmatched utm_source values from recent events and propose custom_source_mappings entries, alongside the full utm_source catalogue and current mappings. Read-only.
marketing_analytics
Marketing Analytics Test Mapping Create
POSTHOG_MARKETING_ANALYTICS_TEST_MAPPING_CREATE
Marketing Analytics Test Mapping Create
marketing_analytics
Run UTM audit
POSTHOG_MARKETING_ANALYTICS_UTM_AUDIT_RETRIEVE
Cross-reference campaigns with spend from ad platforms against pageview events with UTM parameters to identify tracking issues.
marketing_analytics
Max Tools Create And Query Insight Create
POSTHOG_MAX_TOOLS_CREATE_AND_QUERY_INSIGHT_CREATE
Max Tools Create And Query Insight Create
max_tools
Mcp Analytics Feedback Create
POSTHOG_MCP_ANALYTICS_FEEDBACK_CREATE
Create a new MCP feedback submission for the current project.
mcp_analytics
Mcp Analytics Feedback List
POSTHOG_MCP_ANALYTICS_FEEDBACK_LIST
List MCP feedback submissions for the current project, newest first.
mcp_analytics
Mcp Analytics Intent Clusters Recompute
POSTHOG_MCP_ANALYTICS_INTENT_CLUSTERS_RECOMPUTE
Trigger an asynchronous recompute of the intent cluster snapshot. The task runs in the background; poll the GET endpoint for progress (status transitions to 'idle' or 'error').
mcp_analytics
Mcp Analytics Intent Clusters Retrieve
POSTHOG_MCP_ANALYTICS_INTENT_CLUSTERS_RETRIEVE
Return the most recent intent cluster snapshot for the current project. Returns an empty IDLE snapshot when no clustering run has happened yet.
mcp_analytics
Mcp Analytics Missing Capabilities Create
POSTHOG_MCP_ANALYTICS_MISSING_CAPABILITIES_CREATE
Create a new missing capability report for the current project.
mcp_analytics
Mcp Analytics Missing Capabilities List
POSTHOG_MCP_ANALYTICS_MISSING_CAPABILITIES_LIST
List missing capability reports for the current project, newest first.
mcp_analytics
Mcp Analytics Sessions Activity Overview
POSTHOG_MCP_ANALYTICS_SESSIONS_ACTIVITY_OVERVIEW
Aggregate counters, top tools, agent clients, and the most recent tool calls for the last 30 days, computed in one request. Powers the dashboard's activity view; always computed fresh so polling callers watch data arrive.
mcp_analytics
Mcp Analytics Sessions Generate Intent
POSTHOG_MCP_ANALYTICS_SESSIONS_GENERATE_INTENT
Generate (or return the cached) LLM summary of the agent's goal for a session, derived from its recorded $mcp_intents. The first call summarises and persists the result; subsequent calls return the stored summary.
mcp_analytics
Mcp Analytics Sessions Intent Digest
POSTHOG_MCP_ANALYTICS_SESSIONS_INTENT_DIGEST
Generate (or return the cached) LLM digest of what agents are trying to do with this MCP server, derived from the most recent recorded $mcp_intents across all sessions. Content-addressed cache: only regenerates when new intents arrive. Powers the dashboard's low-volume activity stage.
mcp_analytics
Mcp Analytics Sessions List
POSTHOG_MCP_ANALYTICS_SESSIONS_LIST
List MCP sessions for the current project, derived by grouping $mcp_tool_call events by $mcp_session_id. Ordered by newest session start first by default.
mcp_analytics
Mcp Analytics Sessions Tool Calls
POSTHOG_MCP_ANALYTICS_SESSIONS_TOOL_CALLS
List a page of the $mcp_tool_call events that belong to a given $session_id, in chronological order.
mcp_analytics
Mcp Servers List
POSTHOG_MCP_SERVERS_LIST
Lists curated MCP server templates that users can install with one click. Templates are seeded by PostHog operators and carry shared, encrypted OAuth client credentials. Inactive templates are hidden from the catalog.
mcp_servers
Mcp Server Installations Authorize Retrieve
POSTHOG_MCP_SERVER_INSTALLATIONS_AUTHORIZE_RETRIEVE
Start (or re-start) an OAuth flow. Pass ``template_id`` to (re)connect a catalog template, or ``installation_id`` to reconnect an existing custom install using its cached metadata and per-user DCR creds.
mcp_server_installations
Mcp Server Installations Create
POSTHOG_MCP_SERVER_INSTALLATIONS_CREATE
Mcp Server Installations Create
mcp_server_installations
Mcp Server Installations Destroy
POSTHOG_MCP_SERVER_INSTALLATIONS_DESTROY
Mcp Server Installations Destroy
mcp_server_installations
Mcp Server Installations Install Custom Create
POSTHOG_MCP_SERVER_INSTALLATIONS_INSTALL_CUSTOM_CREATE
Mcp Server Installations Install Custom Create
mcp_server_installations
Mcp Server Installations Install Template Create
POSTHOG_MCP_SERVER_INSTALLATIONS_INSTALL_TEMPLATE_CREATE
Mcp Server Installations Install Template Create
mcp_server_installations
Mcp Server Installations List
POSTHOG_MCP_SERVER_INSTALLATIONS_LIST
Mcp Server Installations List
mcp_server_installations
Mcp Server Installations Partial Update
POSTHOG_MCP_SERVER_INSTALLATIONS_PARTIAL_UPDATE
Mcp Server Installations Partial Update
mcp_server_installations
Mcp Server Installations Proxy Create
POSTHOG_MCP_SERVER_INSTALLATIONS_PROXY_CREATE
Mcp Server Installations Proxy Create
mcp_server_installations
Mcp Server Installations Retrieve
POSTHOG_MCP_SERVER_INSTALLATIONS_RETRIEVE
Mcp Server Installations Retrieve
mcp_server_installations
Mcp Server Installations Tools Partial Update
POSTHOG_MCP_SERVER_INSTALLATIONS_TOOLS_PARTIAL_UPDATE
Mcp Server Installations Tools Partial Update
mcp_server_installations
Mcp Server Installations Tools Refresh Create
POSTHOG_MCP_SERVER_INSTALLATIONS_TOOLS_REFRESH_CREATE
Mcp Server Installations Tools Refresh Create
mcp_server_installations
Mcp Server Installations Tools Retrieve
POSTHOG_MCP_SERVER_INSTALLATIONS_TOOLS_RETRIEVE
Mcp Server Installations Tools Retrieve
mcp_server_installations
Mcp Server Installations Update
POSTHOG_MCP_SERVER_INSTALLATIONS_UPDATE
Mcp Server Installations Update
mcp_server_installations
Mcp Tools Create
POSTHOG_MCP_TOOLS_CREATE
Invoke an MCP tool by name. This endpoint allows MCP callers to invoke Max AI tools directly without going through the full LangChain conversation flow. Scopes are resolved dynamically per tool via dangerously_get_required_scopes.
mcp_tools
Members Destroy
POSTHOG_MEMBERS_DESTROY
Members Destroy
organizationsmembers
Members Github Login Retrieve
POSTHOG_MEMBERS_GITHUB_LOGIN_RETRIEVE
Members Github Login Retrieve
organizationsmembers
Members List
POSTHOG_MEMBERS_LIST
Members List
organizationsmembers
Members Partial Update
POSTHOG_MEMBERS_PARTIAL_UPDATE
Members Partial Update
organizationsmembers
Members Scoped Api Keys Retrieve
POSTHOG_MEMBERS_SCOPED_API_KEYS_RETRIEVE
Members Scoped Api Keys Retrieve
organizationsmembers
Members Update
POSTHOG_MEMBERS_UPDATE
Members Update
organizationsmembers
Messaging Templates Create
POSTHOG_MESSAGING_TEMPLATES_CREATE
Messaging Templates Create
messaging_templates
Messaging Templates Design Partial Update
POSTHOG_MESSAGING_TEMPLATES_DESIGN_PARTIAL_UPDATE
Messaging Templates Design Partial Update
messaging_templates
Messaging Templates Destroy
POSTHOG_MESSAGING_TEMPLATES_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
messaging_templates
Messaging Templates List
POSTHOG_MESSAGING_TEMPLATES_LIST
Messaging Templates List
messaging_templates
Messaging Templates Partial Update
POSTHOG_MESSAGING_TEMPLATES_PARTIAL_UPDATE
Messaging Templates Partial Update
messaging_templates
Messaging Templates Retrieve
POSTHOG_MESSAGING_TEMPLATES_RETRIEVE
Messaging Templates Retrieve
messaging_templates
Messaging Templates Update
POSTHOG_MESSAGING_TEMPLATES_UPDATE
Messaging Templates Update
messaging_templates
Metrics Characterize Create
POSTHOG_METRICS_CHARACTERIZE_CREATE
Characterize a metric anomaly: compare an anomaly window against a baseline, find the onset, and rank which label values moved.
metricsmetrics
Metrics Has Metrics Retrieve
POSTHOG_METRICS_HAS_METRICS_RETRIEVE
Metrics Has Metrics Retrieve
metricsmetrics
Metrics Query Create
POSTHOG_METRICS_QUERY_CREATE
Metrics Query Create
metricsmetrics
Metrics Samples Create
POSTHOG_METRICS_SAMPLES_CREATE
Raw individual emissions for a metric (the events model), newest first — backs the Samples view and the metric->trace pivot.
metricsmetrics
Metrics Values Retrieve
POSTHOG_METRICS_VALUES_RETRIEVE
Distinct metric names for the team. Backs the picker UI.
metricsmetrics
Notebooks Activity Retrieve
POSTHOG_NOTEBOOKS_ACTIVITY_RETRIEVE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks All Activity Retrieve
POSTHOG_NOTEBOOKS_ALL_ACTIVITY_RETRIEVE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Collab Markdown Save Create
POSTHOG_NOTEBOOKS_COLLAB_MARKDOWN_SAVE_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Collab Presence Create
POSTHOG_NOTEBOOKS_COLLAB_PRESENCE_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Collab Save Create
POSTHOG_NOTEBOOKS_COLLAB_SAVE_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Collab Stream Retrieve
POSTHOG_NOTEBOOKS_COLLAB_STREAM_RETRIEVE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Create
POSTHOG_NOTEBOOKS_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Destroy
POSTHOG_NOTEBOOKS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
notebooks
Notebooks Hogql Execute Create
POSTHOG_NOTEBOOKS_HOGQL_EXECUTE_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Kernel Config Create
POSTHOG_NOTEBOOKS_KERNEL_CONFIG_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Kernel Dataframe Retrieve
POSTHOG_NOTEBOOKS_KERNEL_DATAFRAME_RETRIEVE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Kernel Execute Create
POSTHOG_NOTEBOOKS_KERNEL_EXECUTE_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Kernel Execute Stream Create
POSTHOG_NOTEBOOKS_KERNEL_EXECUTE_STREAM_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Kernel Restart Create
POSTHOG_NOTEBOOKS_KERNEL_RESTART_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Kernel Start Create
POSTHOG_NOTEBOOKS_KERNEL_START_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Kernel Status Retrieve
POSTHOG_NOTEBOOKS_KERNEL_STATUS_RETRIEVE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Kernel Stop Create
POSTHOG_NOTEBOOKS_KERNEL_STOP_CREATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks List
POSTHOG_NOTEBOOKS_LIST
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Partial Update
POSTHOG_NOTEBOOKS_PARTIAL_UPDATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Recording Comments Retrieve
POSTHOG_NOTEBOOKS_RECORDING_COMMENTS_RETRIEVE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Retrieve
POSTHOG_NOTEBOOKS_RETRIEVE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Notebooks Sharing List
POSTHOG_NOTEBOOKS_SHARING_LIST
Notebooks Sharing List
notebooks
Notebooks Sharing Passwords Create
POSTHOG_NOTEBOOKS_SHARING_PASSWORDS_CREATE
Create a new password for the sharing configuration.
notebooks
Notebooks Sharing Passwords Destroy
POSTHOG_NOTEBOOKS_SHARING_PASSWORDS_DESTROY
Delete a password from the sharing configuration.
notebooks
Notebooks Sharing Refresh Create
POSTHOG_NOTEBOOKS_SHARING_REFRESH_CREATE
Notebooks Sharing Refresh Create
notebooks
Notebooks Update
POSTHOG_NOTEBOOKS_UPDATE
The API for interacting with Notebooks. This feature is in early access and the API can have breaking changes without announcement.
notebooks
Oauth Applications List
POSTHOG_OAUTH_APPLICATIONS_LIST
ViewSet for listing OAuth applications at the organization level (read-only).
organizationsoauth_applications
Object Media Previews Create
POSTHOG_OBJECT_MEDIA_PREVIEWS_CREATE
Object Media Previews Create
object_media_previews
Object Media Previews Destroy
POSTHOG_OBJECT_MEDIA_PREVIEWS_DESTROY
Object Media Previews Destroy
object_media_previews
Object Media Previews List
POSTHOG_OBJECT_MEDIA_PREVIEWS_LIST
Object Media Previews List
object_media_previews
Object Media Previews Partial Update
POSTHOG_OBJECT_MEDIA_PREVIEWS_PARTIAL_UPDATE
Object Media Previews Partial Update
object_media_previews
Object Media Previews Preferred For Event Retrieve
POSTHOG_OBJECT_MEDIA_PREVIEWS_PREFERRED_FOR_EVENT_RETRIEVE
Get the preferred media preview for an event definition. Most recent user-uploaded, then most recent exported asset. Requires event_definition (query param).
object_media_previews
Object Media Previews Retrieve
POSTHOG_OBJECT_MEDIA_PREVIEWS_RETRIEVE
Object Media Previews Retrieve
object_media_previews
Object Media Previews Update
POSTHOG_OBJECT_MEDIA_PREVIEWS_UPDATE
Object Media Previews Update
object_media_previews
Organizations Projects Activity Retrieve
POSTHOG_ORGANIZATIONS_PROJECTS_ACTIVITY_RETRIEVE
Projects for the current organization.
organizationsprojects
Organizations Projects Add Product Intent Partial Update
POSTHOG_ORGANIZATIONS_PROJECTS_ADD_PRODUCT_INTENT_PARTIAL_UPDATE
Projects for the current organization.
organizationsprojects
Organizations Projects Change Organization Create
POSTHOG_ORGANIZATIONS_PROJECTS_CHANGE_ORGANIZATION_CREATE
Projects for the current organization.
organizationsprojects
Organizations Projects Complete Product Onboarding Partial Update
POSTHOG_ORGANIZATIONS_PROJECTS_COMPLETE_PRODUCT_ONBOARDING_PARTIAL_UPDATE
Projects for the current organization.
organizationsprojects
Organizations Projects Create
POSTHOG_ORGANIZATIONS_PROJECTS_CREATE
Projects for the current organization.
organizationsprojects
Organizations Projects Default Evaluation Contexts Create
POSTHOG_ORGANIZATIONS_PROJECTS_DEFAULT_EVALUATION_CONTEXTS_CREATE
Manage default evaluation contexts for a project.
organizationsprojects
Organizations Projects Default Evaluation Contexts Destroy
POSTHOG_ORGANIZATIONS_PROJECTS_DEFAULT_EVALUATION_CONTEXTS_DESTROY
Manage default evaluation contexts for a project.
organizationsprojects
Organizations Projects Default Evaluation Contexts Retrieve
POSTHOG_ORGANIZATIONS_PROJECTS_DEFAULT_EVALUATION_CONTEXTS_RETRIEVE
Manage default evaluation contexts for a project.
organizationsprojects
Organizations Projects Default Release Conditions Retrieve
POSTHOG_ORGANIZATIONS_PROJECTS_DEFAULT_RELEASE_CONDITIONS_RETRIEVE
Manage default release conditions for new feature flags in this project.
organizationsprojects
Organizations Projects Default Release Conditions Update
POSTHOG_ORGANIZATIONS_PROJECTS_DEFAULT_RELEASE_CONDITIONS_UPDATE
Manage default release conditions for new feature flags in this project.
organizationsprojects
Organizations Projects Delete Secret Token Backup Partial Update
POSTHOG_ORGANIZATIONS_PROJECTS_DELETE_SECRET_TOKEN_BACKUP_PARTIAL_UPDATE
Projects for the current organization.
organizationsprojects
Organizations Projects Destroy
POSTHOG_ORGANIZATIONS_PROJECTS_DESTROY
Projects for the current organization.
organizationsprojects
Organizations Projects Evaluation Context Suggestions Create
POSTHOG_ORGANIZATIONS_PROJECTS_EVALUATION_CONTEXT_SUGGESTIONS_CREATE
Hide an evaluation context name from the flag editor's suggestion list, or restore it. POST hides the name; DELETE restores it. The underlying context row and any flags already using it are never modified — this only controls what gets suggested.
organizationsprojects
Organizations Projects Evaluation Context Suggestions Destroy
POSTHOG_ORGANIZATIONS_PROJECTS_EVALUATION_CONTEXT_SUGGESTIONS_DESTROY
Hide an evaluation context name from the flag editor's suggestion list, or restore it. POST hides the name; DELETE restores it. The underlying context row and any flags already using it are never modified — this only controls what gets suggested.
organizationsprojects
Organizations Projects Event Ingestion Restrictions Retrieve
POSTHOG_ORGANIZATIONS_PROJECTS_EVENT_INGESTION_RESTRICTIONS_RETRIEVE
Projects for the current organization.
organizationsprojects
Organizations Projects Experiments Config Partial Update
POSTHOG_ORGANIZATIONS_PROJECTS_EXPERIMENTS_CONFIG_PARTIAL_UPDATE
Manage experiment configuration for this project.
organizationsprojects
Organizations Projects Experiments Config Retrieve
POSTHOG_ORGANIZATIONS_PROJECTS_EXPERIMENTS_CONFIG_RETRIEVE
Manage experiment configuration for this project.
organizationsprojects
Organizations Projects Generate Conversations Public Token Create
POSTHOG_ORGANIZATIONS_PROJECTS_GENERATE_CONVERSATIONS_PUBLIC_TOKEN_CREATE
Projects for the current organization.
organizationsprojects
Organizations Projects Is Generating Demo Data Retrieve
POSTHOG_ORGANIZATIONS_PROJECTS_IS_GENERATING_DEMO_DATA_RETRIEVE
Projects for the current organization.
organizationsprojects
Organizations Projects List
POSTHOG_ORGANIZATIONS_PROJECTS_LIST
Projects for the current organization.
organizationsprojects
Organizations Projects Logs Config Partial Update
POSTHOG_ORGANIZATIONS_PROJECTS_LOGS_CONFIG_PARTIAL_UPDATE
Manage logs product configuration for this project's canonical environment. Mirrors the env-router action so /api/projects/:id/logs_config/ resolves alongside the legacy /api/environments/:id/logs_config/ alias.
organizationsprojects
Organizations Projects Logs Config Retrieve
POSTHOG_ORGANIZATIONS_PROJECTS_LOGS_CONFIG_RETRIEVE
Manage logs product configuration for this project's canonical environment. Mirrors the env-router action so /api/projects/:id/logs_config/ resolves alongside the legacy /api/environments/:id/logs_config/ alias.
organizationsprojects
Organizations Projects Partial Update
POSTHOG_ORGANIZATIONS_PROJECTS_PARTIAL_UPDATE
Update one or more of a project's settings. Only the fields included in the request body are changed.
organizationsprojects
Organizations Projects Reset Token Partial Update
POSTHOG_ORGANIZATIONS_PROJECTS_RESET_TOKEN_PARTIAL_UPDATE
Projects for the current organization.
organizationsprojects
Organizations Projects Retrieve
POSTHOG_ORGANIZATIONS_PROJECTS_RETRIEVE
Retrieve a project and its settings.
organizationsprojects
Organizations Projects Rotate Secret Token Partial Update
POSTHOG_ORGANIZATIONS_PROJECTS_ROTATE_SECRET_TOKEN_PARTIAL_UPDATE
Projects for the current organization.
organizationsprojects
Organizations Projects Settings As Of Retrieve
POSTHOG_ORGANIZATIONS_PROJECTS_SETTINGS_AS_OF_RETRIEVE
Return the project settings as of the provided timestamp. Query params: - at: ISO8601 datetime (required) - scope: optional, one or multiple keys to filter the returned settings
organizationsprojects
Organizations Projects Update
POSTHOG_ORGANIZATIONS_PROJECTS_UPDATE
Replace a project and its settings. Prefer the PATCH endpoint for partial updates — PUT requires every writable field to be provided.
organizationsprojects
Org Organizations Advanced Activity Logs Available Filters Retrieve
POSTHOG_ORG_ORGANIZATIONS_ADVANCED_ACTIVITY_LOGS_AVAILABLE_FILTERS_RETRIEVE
Organization-wide view of activity logs across every project in the organization. Mounted at /api/organizations/<organization_id>/advanced_activity_logs/. Restricted to organization admins and owners.
activity_logsadvanced_activity_logs
Org Organizations Advanced Activity Logs Export Create
POSTHOG_ORG_ORGANIZATIONS_ADVANCED_ACTIVITY_LOGS_EXPORT_CREATE
Organization-wide view of activity logs across every project in the organization. Mounted at /api/organizations/<organization_id>/advanced_activity_logs/. Restricted to organization admins and owners.
activity_logsadvanced_activity_logs
Org Organizations Advanced Activity Logs List
POSTHOG_ORG_ORGANIZATIONS_ADVANCED_ACTIVITY_LOGS_LIST
Organization-wide view of activity logs across every project in the organization. Mounted at /api/organizations/<organization_id>/advanced_activity_logs/. Restricted to organization admins and owners.
activity_logsadvanced_activity_logs
Org Organizations Batch Exports Create
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_CREATE
Org Organizations Batch Exports Create
batch_exportsbatch_exports
Org Organizations Batch Exports Destroy
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_DESTROY
Org Organizations Batch Exports Destroy
batch_exportsbatch_exports
Org Organizations Batch Exports List
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_LIST
Org Organizations Batch Exports List
batch_exportsbatch_exports
Org Organizations Batch Exports Logs Retrieve
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_LOGS_RETRIEVE
Org Organizations Batch Exports Logs Retrieve
batch_exportsbatch_exports
Org Organizations Batch Exports Partial Update
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_PARTIAL_UPDATE
Org Organizations Batch Exports Partial Update
batch_exportsbatch_exports
Org Organizations Batch Exports Pause Create
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_PAUSE_CREATE
Pause a BatchExport.
batch_exportsbatch_exports
Org Organizations Batch Exports Retrieve
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_RETRIEVE
Org Organizations Batch Exports Retrieve
batch_exportsbatch_exports
Org Organizations Batch Exports Run Test Step Create
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_RUN_TEST_STEP_CREATE
Org Organizations Batch Exports Run Test Step Create
batch_exportsbatch_exports
Org Organizations Batch Exports Run Test Step New Create
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_RUN_TEST_STEP_NEW_CREATE
Org Organizations Batch Exports Run Test Step New Create
batch_exportsbatch_exports
Org Organizations Batch Exports Test Retrieve
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_TEST_RETRIEVE
Org Organizations Batch Exports Test Retrieve
batch_exportsbatch_exports
Org Organizations Batch Exports Unpause Create
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_UNPAUSE_CREATE
Unpause a BatchExport.
batch_exportsbatch_exports
Org Organizations Batch Exports Update
POSTHOG_ORG_ORGANIZATIONS_BATCH_EXPORTS_UPDATE
Org Organizations Batch Exports Update
batch_exportsbatch_exports
Org Organizations Integrations List
POSTHOG_ORG_ORGANIZATIONS_INTEGRATIONS_LIST
ViewSet for organization-level integrations. Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc. Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint.
organizationsintegrations
Org Organizations Integrations Retrieve
POSTHOG_ORG_ORGANIZATIONS_INTEGRATIONS_RETRIEVE
ViewSet for organization-level integrations. Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc. Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint.
organizationsintegrations
Org Organization Integrations Destroy
POSTHOG_ORG_ORGANIZATION_INTEGRATIONS_DESTROY
ViewSet for organization-level integrations. Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc. Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint.
organizationsintegrations
Partial Update
POSTHOG_PARTIAL_UPDATE
Partial Update
organizationsorganizations
Persons Activity Retrieve
POSTHOG_PERSONS_ACTIVITY_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons All Activity Retrieve
POSTHOG_PERSONS_ALL_ACTIVITY_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Batch By Distinct Ids Create
POSTHOG_PERSONS_BATCH_BY_DISTINCT_IDS_CREATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Batch By Uuids Create
POSTHOG_PERSONS_BATCH_BY_UUIDS_CREATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Bulk Delete Create
POSTHOG_PERSONS_BULK_DELETE_CREATE
This endpoint allows you to bulk delete persons, either by the PostHog person IDs or by distinct IDs. You can pass in a maximum of 1000 IDs per call. Only events captured before the request will be deleted.
persons
Persons Cohorts Retrieve
POSTHOG_PERSONS_COHORTS_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Delete Property Create
POSTHOG_PERSONS_DELETE_PROPERTY_CREATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Deletion Status List
POSTHOG_PERSONS_DELETION_STATUS_LIST
List the status of queued event deletions for persons. When you delete a person with `delete_events=true`, an async deletion is queued. Use this endpoint to check whether those deletions are still pending or have been completed.
persons
Persons Emails List
POSTHOG_PERSONS_EMAILS_LIST
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Funnel Create
POSTHOG_PERSONS_FUNNEL_CREATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Funnel Retrieve
POSTHOG_PERSONS_FUNNEL_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Lifecycle Retrieve
POSTHOG_PERSONS_LIFECYCLE_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons List
POSTHOG_PERSONS_LIST
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Partial Update
POSTHOG_PERSONS_PARTIAL_UPDATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Properties At Time Retrieve
POSTHOG_PERSONS_PROPERTIES_AT_TIME_RETRIEVE
Get person properties as they existed at a specific point in time. This endpoint reconstructs person properties by querying ClickHouse events for $set and $set_once operations up to the specified timestamp. Query parameters: - distinct_id: The distinct_id of the person - timestamp: ISO datetime string for the point in time (e.g., "2023-06-15T14:30:00Z") - include_set_once: Whether to handle $set_once operations (default: false)
personspersons
Persons Properties Timeline Retrieve
POSTHOG_PERSONS_PROPERTIES_TIMELINE_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Reset Person Distinct Id Create
POSTHOG_PERSONS_RESET_PERSON_DISTINCT_ID_CREATE
Reset a distinct_id for a deleted person. This allows the distinct_id to be used again.
persons
Persons Retrieve
POSTHOG_PERSONS_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Split Create
POSTHOG_PERSONS_SPLIT_CREATE
Split distinct_ids off a merged person. Two mutually exclusive modes: - **`distinct_ids_to_split`** (recommended for surgical edits): moves only the listed distinct_ids off this person onto new single-id persons. The original person keeps every other distinct_id and its properties. - **`main_distinct_id`**: keeps only the specified distinct_id on this person; moves every *other* distinct_id off onto its own new person. If omitted, the first distinct_id is kept. The original person always retains its properties. To clear individual properties afterward, use the `delete_property` endpoint. The split runs asynchronously: a 201 response means the task was enqueued. Newly-created split-off persons get a deterministic UUID derived from `(team_id, distinct_id)`, so they can be located client-side without polling. If you need to delete a split-off person after this call, prefer looking it up by that deterministic UUID rather than by distinct_id, since the latter still resolves to the original merged person until the async task completes.
persons
Persons Update
POSTHOG_PERSONS_UPDATE
Only for setting properties on the person. "properties" from the request data will be updated via a "$set" event. This means that only the properties listed will be updated, but other properties won't be removed nor updated. If you would like to remove a property use the `delete_property` endpoint.
persons
Persons Update Property Create
POSTHOG_PERSONS_UPDATE_PROPERTY_CREATE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Persons Values Retrieve
POSTHOG_PERSONS_VALUES_RETRIEVE
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the [capture API](https://posthog.com/docs/api/capture), the `$set` and `$unset` [properties](https://posthog.com/docs/product-analytics/user-properties), or one of our SDKs.
persons
Plugin Configs Logs List
POSTHOG_PLUGIN_CONFIGS_LOGS_LIST
Plugin Configs Logs List
plugin_configs
Product Enablement Create
POSTHOG_PRODUCT_ENABLEMENT_CREATE
Product Enablement Create
product_enablement
Product Tours Create
POSTHOG_PRODUCT_TOURS_CREATE
Product Tours Create
product_tours
Product Tours Destroy
POSTHOG_PRODUCT_TOURS_DESTROY
Product Tours Destroy
product_tours
Product Tours Discard Draft Destroy
POSTHOG_PRODUCT_TOURS_DISCARD_DRAFT_DESTROY
Discard draft content.
product_tours
Product Tours Draft Partial Update
POSTHOG_PRODUCT_TOURS_DRAFT_PARTIAL_UPDATE
Save draft content (server-side merge). No side effects triggered.
product_tours
Product Tours Draft Status Retrieve
POSTHOG_PRODUCT_TOURS_DRAFT_STATUS_RETRIEVE
Lightweight polling endpoint for draft change detection.
product_tours
Product Tours Generate Create
POSTHOG_PRODUCT_TOURS_GENERATE_CREATE
Generate tour step content using AI.
product_tours
Product Tours List
POSTHOG_PRODUCT_TOURS_LIST
Product Tours List
product_tours
Product Tours Partial Update
POSTHOG_PRODUCT_TOURS_PARTIAL_UPDATE
Product Tours Partial Update
product_tours
Product Tours Publish Draft Create
POSTHOG_PRODUCT_TOURS_PUBLISH_DRAFT_CREATE
Commit draft to live tour. Runs full validation and triggers side effects. Accepts an optional body payload. If provided, merges it into the draft before publishing so the caller can save + publish in a single request.
product_tours
Product Tours Retrieve
POSTHOG_PRODUCT_TOURS_RETRIEVE
Product Tours Retrieve
product_tours
Product Tours Update
POSTHOG_PRODUCT_TOURS_UPDATE
Product Tours Update
product_tours
Project Secret Api Keys Create
POSTHOG_PROJECT_SECRET_API_KEYS_CREATE
Project Secret Api Keys Create
project_secret_api_keys
Project Secret Api Keys Destroy
POSTHOG_PROJECT_SECRET_API_KEYS_DESTROY
Project Secret Api Keys Destroy
project_secret_api_keys
Project Secret Api Keys List
POSTHOG_PROJECT_SECRET_API_KEYS_LIST
Project Secret Api Keys List
project_secret_api_keys
Project Secret Api Keys Partial Update
POSTHOG_PROJECT_SECRET_API_KEYS_PARTIAL_UPDATE
Project Secret Api Keys Partial Update
project_secret_api_keys
Project Secret Api Keys Retrieve
POSTHOG_PROJECT_SECRET_API_KEYS_RETRIEVE
Project Secret Api Keys Retrieve
project_secret_api_keys
Project Secret Api Keys Roll Create
POSTHOG_PROJECT_SECRET_API_KEYS_ROLL_CREATE
Roll a project secret API key
project_secret_api_keys
Project Secret Api Keys Update
POSTHOG_PROJECT_SECRET_API_KEYS_UPDATE
Project Secret Api Keys Update
project_secret_api_keys
Property Access Controls Create
POSTHOG_PROPERTY_ACCESS_CONTROLS_CREATE
Create or update a property access control rule.
property_access_controls
Property Access Controls Destroy
POSTHOG_PROPERTY_ACCESS_CONTROLS_DESTROY
Delete a property access control rule. The rule is identified by `property_definition_id` plus an optional `organization_member` or `role` query parameter. Omitting both targets deletes the default rule.
property_access_controls
Property Access Controls Retrieve
POSTHOG_PROPERTY_ACCESS_CONTROLS_RETRIEVE
Get all property access control rules for a property definition.
property_access_controls
Property Definitions Bulk Update Tags Create
POSTHOG_PROPERTY_DEFINITIONS_BULK_UPDATE_TAGS_CREATE
Bulk update tags on multiple objects. PAT access: this action has no ``required_scopes=`` on the decorator — inheriting viewsets must add ``"bulk_update_tags"`` to their ``scope_object_write_actions`` list to accept personal API keys. Without that opt-in, ``APIScopePermission`` rejects PAT requests with "This action does not support personal API key access". Done per-viewset so granting ``<scope>:write`` for one resource doesn't leak access to sibling resources that share this mixin. Accepts: - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]} Actions: - "add": Add tags to existing tags on each object - "remove": Remove specific tags from each object - "set": Replace all tags on each object with the provided list
property_definitions
Property Definitions Destroy
POSTHOG_PROPERTY_DEFINITIONS_DESTROY
Property Definitions Destroy
property_definitions
Property Definitions List
POSTHOG_PROPERTY_DEFINITIONS_LIST
Property Definitions List
property_definitions
Property Definitions Partial Update
POSTHOG_PROPERTY_DEFINITIONS_PARTIAL_UPDATE
Property Definitions Partial Update
property_definitions
Property Definitions Retrieve
POSTHOG_PROPERTY_DEFINITIONS_RETRIEVE
Property Definitions Retrieve
property_definitions
Property Definitions Seen Together Retrieve
POSTHOG_PROPERTY_DEFINITIONS_SEEN_TOGETHER_RETRIEVE
Allows a caller to provide a list of event names and a single property name Returns a map of the event names to a boolean representing whether that property has ever been seen with that event_name
property_definitions
Property Definitions Update
POSTHOG_PROPERTY_DEFINITIONS_UPDATE
Property Definitions Update
property_definitions
Proxy Records Create
POSTHOG_PROXY_RECORDS_CREATE
Create a new managed reverse proxy. Provide the domain you want to proxy through. The response includes the CNAME target you need to add as a DNS record. Once the CNAME is configured, the proxy will be automatically verified and provisioned.
reverse_proxyproxy_records
Proxy Records Destroy
POSTHOG_PROXY_RECORDS_DESTROY
Delete a reverse proxy. For proxies in 'waiting', 'erroring', or 'timed_out' status, the record is deleted immediately. For active proxies, a deletion workflow is started to clean up the provisioned infrastructure.
reverse_proxyproxy_records
Proxy Records Diagnose Create
POSTHOG_PROXY_RECORDS_DIAGNOSE_CREATE
Run a deep diagnostic on a reverse proxy. Inspects DNS CNAME alignment, the certificate provider's hostname state, CAA records walked up the customer's DNS tree, HTTP-01 challenge reachability, a live event probe, and certificate expiry. Returns a structured report with each check's status and concrete remediation steps (e.g. exact DNS records to add). Use this to debug why a proxy is stuck or erroring.
reverse_proxyproxy_records
Proxy Records List
POSTHOG_PROXY_RECORDS_LIST
List all reverse proxies configured for the organization. Returns proxy records along with the maximum number allowed by the current plan.
reverse_proxyproxy_records
Proxy Records Retrieve
POSTHOG_PROXY_RECORDS_RETRIEVE
Get details of a specific reverse proxy by ID. Returns the full configuration including domain, CNAME target, and current provisioning status.
reverse_proxyproxy_records
Proxy Records Retry Create
POSTHOG_PROXY_RECORDS_RETRY_CREATE
Retry provisioning a failed reverse proxy. Only available for proxies in 'erroring' or 'timed_out' status. Resets the proxy to 'waiting' status and restarts the provisioning workflow.
reverse_proxyproxy_records
Public Hog Function Templates List
POSTHOG_PUBLIC_HOG_FUNCTION_TEMPLATES_LIST
Public Hog Function Templates List
hog_function_templatespublic_hog_function_templates
Query Check Auth For Async Create
POSTHOG_QUERY_CHECK_AUTH_FOR_ASYNC_CREATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
query
Query Create
POSTHOG_QUERY_CREATE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
query
Query Create With Kind
POSTHOG_QUERY_CREATE_WITH_KIND
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
query
Query Destroy
POSTHOG_QUERY_DESTROY
(Experimental)
query
Query Draft Sql Retrieve
POSTHOG_QUERY_DRAFT_SQL_RETRIEVE
DRF ViewSet mixin that gates coalesced responses behind permission checks. The QueryCoalescingMiddleware attaches cached response data to request.META["_coalesced_response"] for followers. This mixin runs DRF's initial() (auth + permissions + throttling) before returning the cached response, ensuring the request is authorized.
query
Query Log Retrieve
POSTHOG_QUERY_LOG_RETRIEVE
Get query log details from query_log_archive table for a specific query_id, the query must have been issued in last 24 hours.
query
Query Retrieve
POSTHOG_QUERY_RETRIEVE
(Experimental)
query
Query Upgrade Create
POSTHOG_QUERY_UPGRADE_CREATE
Upgrades a query without executing it. Returns a query with all nodes migrated to the latest version.
query
Get a team's quota-limit state
POSTHOG_QUOTA_LIMITS_LIST
Return the current quota-limit state for the team identified in the URL, keyed by `QuotaResource` value. Used by the LLM gateway to gate billable products on AI credits exhaustion.
quota_limitsquota_limits
Reminders Create
POSTHOG_REMINDERS_CREATE
Reminders Create
remindersreminders
Reminders Destroy
POSTHOG_REMINDERS_DESTROY
Reminders Destroy
remindersreminders
Reminders List
POSTHOG_REMINDERS_LIST
Reminders List
remindersreminders
Reminders Partial Update
POSTHOG_REMINDERS_PARTIAL_UPDATE
Reminders Partial Update
remindersreminders
Reminders Retrieve
POSTHOG_REMINDERS_RETRIEVE
Reminders Retrieve
remindersreminders
Reminders Update
POSTHOG_REMINDERS_UPDATE
Reminders Update
remindersreminders
Request Ai Access Create
POSTHOG_REQUEST_AI_ACCESS_CREATE
Notify organization admins that a member is requesting PostHog AI be enabled.
organizationsrequest_ai_access
Retrieve
POSTHOG_RETRIEVE
Retrieve
organizationsorganizations
Retrieve Session Summaries Config
POSTHOG_RETRIEVE_SESSION_SUMMARIES_CONFIG
Retrieve the team's session summaries configuration (product context used to tailor single-session replay summaries).
session_summaries
Roles Create
POSTHOG_ROLES_CREATE
Roles Create
organizationsroles
Roles Destroy
POSTHOG_ROLES_DESTROY
Roles Destroy
organizationsroles
Roles List
POSTHOG_ROLES_LIST
Roles List
organizationsroles
Roles Partial Update
POSTHOG_ROLES_PARTIAL_UPDATE
Roles Partial Update
organizationsroles
Roles Retrieve
POSTHOG_ROLES_RETRIEVE
Roles Retrieve
organizationsroles
Roles Role Memberships Create
POSTHOG_ROLES_ROLE_MEMBERSHIPS_CREATE
Roles Role Memberships Create
organizationsroles
Roles Role Memberships Destroy
POSTHOG_ROLES_ROLE_MEMBERSHIPS_DESTROY
Roles Role Memberships Destroy
organizationsroles
Roles Role Memberships List
POSTHOG_ROLES_ROLE_MEMBERSHIPS_LIST
Roles Role Memberships List
organizationsroles
Roles Role Memberships Retrieve
POSTHOG_ROLES_ROLE_MEMBERSHIPS_RETRIEVE
Roles Role Memberships Retrieve
organizationsroles
Roles Update
POSTHOG_ROLES_UPDATE
Roles Update
organizationsroles
Role External References Create
POSTHOG_ROLE_EXTERNAL_REFERENCES_CREATE
Role External References Create
organizationsrole_external_references
Role External References Destroy
POSTHOG_ROLE_EXTERNAL_REFERENCES_DESTROY
Role External References Destroy
organizationsrole_external_references
Role External References List
POSTHOG_ROLE_EXTERNAL_REFERENCES_LIST
Role External References List
organizationsrole_external_references
Role External References Lookup Retrieve
POSTHOG_ROLE_EXTERNAL_REFERENCES_LOOKUP_RETRIEVE
Role External References Lookup Retrieve
organizationsrole_external_references
Sandbox Create
POSTHOG_SANDBOX_CREATE
API for managing sandbox environments that control network access for task runs.
sandbox-environmentssandbox_environments
Sandbox Custom Images Builder Task Create
POSTHOG_SANDBOX_CUSTOM_IMAGES_BUILDER_TASK_CREATE
Revive (or reuse) the image's builder agent session. When the previous session has ended, a fresh one is started seeded with the stored spec — use this to update an existing image.
sandbox-custom-imagessandbox_custom_images
Sandbox Custom Images Build Create
POSTHOG_SANDBOX_CUSTOM_IMAGES_BUILD_CREATE
Persist the image spec (from the request body or the builder agent's sandbox), run the security scan, and on pass build and publish the image.
sandbox-custom-imagessandbox_custom_images
Sandbox Custom Images Create
POSTHOG_SANDBOX_CUSTOM_IMAGES_CREATE
Create a draft custom image and start its interactive image-builder agent task. The returned builder_task_id points at the conversation.
sandbox-custom-imagessandbox_custom_images
Sandbox Custom Images Destroy
POSTHOG_SANDBOX_CUSTOM_IMAGES_DESTROY
API for custom sandbox base images, built on top of the VM sandbox base via an image-builder agent. Custom images only run on the Modal VM runtime, so every action is gated on the `tasks-modal-vm-sandbox` flag (org-enabled with `user_created` in its origin_products payload).
sandbox-custom-imagessandbox_custom_images
Sandbox Custom Images List
POSTHOG_SANDBOX_CUSTOM_IMAGES_LIST
API for custom sandbox base images, built on top of the VM sandbox base via an image-builder agent. Custom images only run on the Modal VM runtime, so every action is gated on the `tasks-modal-vm-sandbox` flag (org-enabled with `user_created` in its origin_products payload).
sandbox-custom-imagessandbox_custom_images
Sandbox Custom Images Retrieve
POSTHOG_SANDBOX_CUSTOM_IMAGES_RETRIEVE
API for custom sandbox base images, built on top of the VM sandbox base via an image-builder agent. Custom images only run on the Modal VM runtime, so every action is gated on the `tasks-modal-vm-sandbox` flag (org-enabled with `user_created` in its origin_products payload).
sandbox-custom-imagessandbox_custom_images
Sandbox Destroy
POSTHOG_SANDBOX_DESTROY
API for managing sandbox environments that control network access for task runs.
sandbox-environmentssandbox_environments
Sandbox List
POSTHOG_SANDBOX_LIST
API for managing sandbox environments that control network access for task runs.
sandbox-environmentssandbox_environments
Sandbox Partial Update
POSTHOG_SANDBOX_PARTIAL_UPDATE
API for managing sandbox environments that control network access for task runs.
sandbox-environmentssandbox_environments
Sandbox Retrieve
POSTHOG_SANDBOX_RETRIEVE
API for managing sandbox environments that control network access for task runs.
sandbox-environmentssandbox_environments
Saved Create
POSTHOG_SAVED_CREATE
Create a saved heatmap for a page URL. For type 'screenshot' (the default) this enqueues a headless render of the page at each target width; poll the saved heatmap or its content endpoint until status is 'completed'. Provide 'widths' to control which viewport widths are rendered.
saved
Saved Destroy
POSTHOG_SAVED_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
saved
Saved List
POSTHOG_SAVED_LIST
List saved heatmaps for the project. A saved heatmap pins a page URL and a set of viewport widths, and (for type 'screenshot') renders the page so heatmap data can be overlaid on it.
saved
Saved Partial Update
POSTHOG_SAVED_PARTIAL_UPDATE
Update a saved heatmap (e.g. rename, change widths, or soft-delete via 'deleted'). Changing the URL of a 'screenshot' heatmap triggers a re-render.
saved
Saved Query Column Annotations Create
POSTHOG_SAVED_QUERY_COLUMN_ANNOTATIONS_CREATE
Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation.
saved_query_column_annotations
Saved Query Column Annotations Destroy
POSTHOG_SAVED_QUERY_COLUMN_ANNOTATIONS_DESTROY
Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation.
saved_query_column_annotations
Saved Query Column Annotations List
POSTHOG_SAVED_QUERY_COLUMN_ANNOTATIONS_LIST
Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation.
saved_query_column_annotations
Saved Query Column Annotations Partial Update
POSTHOG_SAVED_QUERY_COLUMN_ANNOTATIONS_PARTIAL_UPDATE
Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation.
saved_query_column_annotations
Saved Query Column Annotations Retrieve
POSTHOG_SAVED_QUERY_COLUMN_ANNOTATIONS_RETRIEVE
Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation.
saved_query_column_annotations
Saved Query Column Annotations Update
POSTHOG_SAVED_QUERY_COLUMN_ANNOTATIONS_UPDATE
Read and edit semantic descriptions of data-modelling views and columns surfaced to the AI agent. List can be filtered to one view with `?saved_query_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(saved_query, column_name)`; the view cannot be changed after creation.
saved_query_column_annotations
Saved Regenerate Create
POSTHOG_SAVED_REGENERATE_CREATE
Re-run screenshot generation for a saved heatmap of type 'screenshot'. Clears existing renders and re-renders at every target width; status returns to 'processing'.
saved
Saved Retrieve
POSTHOG_SAVED_RETRIEVE
Get a single saved heatmap by its short_id, including per-width render status.
saved
Scheduled Changes Create
POSTHOG_SCHEDULED_CHANGES_CREATE
Create, read, update and delete scheduled changes.
scheduled_changes
Scheduled Changes Destroy
POSTHOG_SCHEDULED_CHANGES_DESTROY
Create, read, update and delete scheduled changes.
scheduled_changes
Scheduled Changes List
POSTHOG_SCHEDULED_CHANGES_LIST
Create, read, update and delete scheduled changes.
scheduled_changes
Scheduled Changes Partial Update
POSTHOG_SCHEDULED_CHANGES_PARTIAL_UPDATE
Create, read, update and delete scheduled changes.
scheduled_changes
Scheduled Changes Retrieve
POSTHOG_SCHEDULED_CHANGES_RETRIEVE
Create, read, update and delete scheduled changes.
scheduled_changes
Scheduled Changes Update
POSTHOG_SCHEDULED_CHANGES_UPDATE
Create, read, update and delete scheduled changes.
scheduled_changes
Schema Property Groups Create
POSTHOG_SCHEMA_PROPERTY_GROUPS_CREATE
Schema Property Groups Create
schema_property_groups
Schema Property Groups Destroy
POSTHOG_SCHEMA_PROPERTY_GROUPS_DESTROY
Schema Property Groups Destroy
schema_property_groups
Schema Property Groups List
POSTHOG_SCHEMA_PROPERTY_GROUPS_LIST
Schema Property Groups List
schema_property_groups
Schema Property Groups Partial Update
POSTHOG_SCHEMA_PROPERTY_GROUPS_PARTIAL_UPDATE
Schema Property Groups Partial Update
schema_property_groups
Schema Property Groups Retrieve
POSTHOG_SCHEMA_PROPERTY_GROUPS_RETRIEVE
Schema Property Groups Retrieve
schema_property_groups
Schema Property Groups Update
POSTHOG_SCHEMA_PROPERTY_GROUPS_UPDATE
Schema Property Groups Update
schema_property_groups
Get SDK health report for a project
POSTHOG_SDK_HEALTH_REPORT_RETRIEVE
Returns a pre-digested health assessment of the PostHog SDKs the project is using. Covers which SDKs are current vs outdated (smart-semver rules with grace periods and traffic-percentage thresholds), per-version breakdown, and a human-readable reason for each assessment. Use this to diagnose SDK version issues, surface upgrade recommendations, or check overall SDK health.
sdk_healthsdk_health
Sessions Property Definitions Retrieve
POSTHOG_SESSIONS_PROPERTY_DEFINITIONS_RETRIEVE
Sessions Property Definitions Retrieve
sessions
Sessions Values Retrieve
POSTHOG_SESSIONS_VALUES_RETRIEVE
Sessions Values Retrieve
sessions
Session Group Summaries Create
POSTHOG_SESSION_GROUP_SUMMARIES_CREATE
API for retrieving and managing stored group session summaries.
session_group_summaries
Session Group Summaries Destroy
POSTHOG_SESSION_GROUP_SUMMARIES_DESTROY
API for retrieving and managing stored group session summaries.
session_group_summaries
Session Group Summaries List
POSTHOG_SESSION_GROUP_SUMMARIES_LIST
API for retrieving and managing stored group session summaries.
session_group_summaries
Session Group Summaries Partial Update
POSTHOG_SESSION_GROUP_SUMMARIES_PARTIAL_UPDATE
API for retrieving and managing stored group session summaries.
session_group_summaries
Session Group Summaries Retrieve
POSTHOG_SESSION_GROUP_SUMMARIES_RETRIEVE
API for retrieving and managing stored group session summaries.
session_group_summaries
Session Group Summaries Update
POSTHOG_SESSION_GROUP_SUMMARIES_UPDATE
API for retrieving and managing stored group session summaries.
session_group_summaries
Session Recordings Bulk Delete Create
POSTHOG_SESSION_RECORDINGS_BULK_DELETE_CREATE
Delete a batch of session recordings by session ID. Deletion is permanent and cannot be undone. IDs that don't match an existing recording are skipped and counted in `total_requested` but not `deleted_count`.
replaysession_recordings
Session Recordings Destroy
POSTHOG_SESSION_RECORDINGS_DESTROY
Session Recordings Destroy
replaysession_recordings
Session Recordings List
POSTHOG_SESSION_RECORDINGS_LIST
Session Recordings List
replaysession_recordings
Session Recordings Partial Update
POSTHOG_SESSION_RECORDINGS_PARTIAL_UPDATE
Session Recordings Partial Update
replaysession_recordings
Session Recordings Retrieve
POSTHOG_SESSION_RECORDINGS_RETRIEVE
Session Recordings Retrieve
replaysession_recordings
Session Recordings Sharing List
POSTHOG_SESSION_RECORDINGS_SHARING_LIST
Session Recordings Sharing List
session_recordings
Session Recordings Sharing Passwords Create
POSTHOG_SESSION_RECORDINGS_SHARING_PASSWORDS_CREATE
Create a new password for the sharing configuration.
session_recordings
Session Recordings Sharing Passwords Destroy
POSTHOG_SESSION_RECORDINGS_SHARING_PASSWORDS_DESTROY
Delete a password from the sharing configuration.
session_recordings
Session Recordings Sharing Refresh Create
POSTHOG_SESSION_RECORDINGS_SHARING_REFRESH_CREATE
Session Recordings Sharing Refresh Create
session_recordings
Session Recordings Update
POSTHOG_SESSION_RECORDINGS_UPDATE
Session Recordings Update
replaysession_recordings
Session Recording Playlists Create
POSTHOG_SESSION_RECORDING_PLAYLISTS_CREATE
Session Recording Playlists Create
replaysession_recording_playlists
Session Recording Playlists Destroy
POSTHOG_SESSION_RECORDING_PLAYLISTS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
replaysession_recording_playlists
Session Recording Playlists List
POSTHOG_SESSION_RECORDING_PLAYLISTS_LIST
Override list to include synthetic playlists. Synthetics have no DB row, so we compute each one's position in the merged sort and split the requested page between synthetics and a DB queryset slice. The merge/rank/sort is all in-memory, so each phase is wrapped in a span and the input sizes are recorded as span attributes — a slow response on a team with many playlists then shows up as a wide span against a large db_count.
replaysession_recording_playlists
Session Recording Playlists Partial Update
POSTHOG_SESSION_RECORDING_PLAYLISTS_PARTIAL_UPDATE
Session Recording Playlists Partial Update
replaysession_recording_playlists
Session Recording Playlists Recordings Create
POSTHOG_SESSION_RECORDING_PLAYLISTS_RECORDINGS_CREATE
Session Recording Playlists Recordings Create
replaysession_recording_playlists
Session Recording Playlists Recordings Destroy
POSTHOG_SESSION_RECORDING_PLAYLISTS_RECORDINGS_DESTROY
Session Recording Playlists Recordings Destroy
replaysession_recording_playlists
Session Recording Playlists Recordings Retrieve
POSTHOG_SESSION_RECORDING_PLAYLISTS_RECORDINGS_RETRIEVE
Session Recording Playlists Recordings Retrieve
replaysession_recording_playlists
Session Recording Playlists Retrieve
POSTHOG_SESSION_RECORDING_PLAYLISTS_RETRIEVE
Session Recording Playlists Retrieve
replaysession_recording_playlists
Session Recording Playlists Update
POSTHOG_SESSION_RECORDING_PLAYLISTS_UPDATE
Session Recording Playlists Update
replaysession_recording_playlists
Signals Processing List
POSTHOG_SIGNALS_PROCESSING_LIST
Return current processing state including pause status.
signals
Signals Processing Pause Destroy
POSTHOG_SIGNALS_PROCESSING_PAUSE_DESTROY
View and control signal processing pipeline state for a team.
signals
Signals Processing Pause Update
POSTHOG_SIGNALS_PROCESSING_PAUSE_UPDATE
View and control signal processing pipeline state for a team.
signals
Signals Reports Bulk State Create
POSTHOG_SIGNALS_REPORTS_BULK_STATE_CREATE
Transition many reports to a new state in one call. Each id is processed independently: a report whose transition isn't allowed from its current status is reported as `skipped` (a 409 on the single-report endpoint) and the rest still go through. Returns one result per requested id (in request order, after de-duplication) plus per-outcome counts. The whole call is 200 even on partial failure — inspect `results` / the counts to see what happened.
signals
Signals Reports List
POSTHOG_SIGNALS_REPORTS_LIST
Signals Reports List
signals
Edit a report's title or summary
POSTHOG_SIGNALS_REPORTS_PARTIAL_UPDATE
Edit the human-facing title and/or summary (description) of a signal report, addressed by id. Both fields are optional — supply only the ones you want to change; at least one is required. Every other report field (status, weights, judgments) is managed by the signals pipeline and cannot be set here. Returns the full updated report.
signals
Signals Reports Retrieve
POSTHOG_SIGNALS_REPORTS_RETRIEVE
Signals Reports Retrieve
signals
List a report's signals
POSTHOG_SIGNALS_REPORTS_SIGNALS_RETRIEVE
Fetch all signals for a report from ClickHouse, including full metadata.
signals
Signals Reports State Create
POSTHOG_SIGNALS_REPORTS_STATE_CREATE
Transition a report to a new state. The model validates allowed transitions. The request body is validated by SignalReportStateRequestSerializer — only the fields it declares (state, dismissal_reason, dismissal_note, snooze_for) are read, and only snooze_for is ever forwarded to transition_to. Any other key is ignored, so internal transition_to kwargs (reset_weight, error, ...) can't be injected. Body: { "state": "suppressed" | "potential", # Optional dismissal feedback (honored when state == "suppressed" or "potential"): "dismissal_reason": "<canonical reason code, see SIGNAL_REPORT_DISMISSAL_REASON_CHOICES>", "dismissal_note": "free-form text", # Optional, only honored for state == "potential": "snooze_for": <number of additional signals before re-promotion>, }
signals
Append an artefact to a report
POSTHOG_SIGNALS_REPORT_ARTEFACTS_CREATE
Append an artefact to a report (see artefact_type for the writable types). Everything is append-only: log entries (code reference, commit, task run, note) accumulate, while status types (safety / actionability / priority judgments, repo selection, suggested reviewers) are latest-wins — appending a new version supersedes the previous one as the report's canonical status. Content is validated against the type's schema.
signals
Delete an artefact
POSTHOG_SIGNALS_REPORT_ARTEFACTS_DESTROY
Delete an artefact, addressed by id. Deleting the latest row of a status type reverts the report's canonical status to the previous version (latest-wins over what remains).
signals
Fetch the diff for a commit artefact
POSTHOG_SIGNALS_REPORT_ARTEFACTS_DIFF
Fetch the unified diff of a `commit` artefact's branch against the repository default branch via the team's GitHub integration — using the branch's current tip so the diff reflects the latest state of the work, not just the single recorded commit.
signals
List a report's artefacts
POSTHOG_SIGNALS_REPORT_ARTEFACTS_LIST
List every artefact on a report — the full work log: signal findings (the evidence behind the report), status judgments (safety / actionability / priority, repo selection, suggested reviewers — the newest row of each status type is canonical), and log entries (code references, commits, task runs, notes). `suggested_reviewers` content is enriched with PostHog user info at read time.
signals
Replace an artefact's content
POSTHOG_SIGNALS_REPORT_ARTEFACTS_PARTIAL_UPDATE
Replace the content of an existing artefact, addressed by id. The new content is validated against the artefact's type schema. Editing the latest row of a status type changes the report's canonical status (latest-wins); to re-assess while keeping history, append a new artefact instead. Attribution is creation-time only — edits don't reassign it.
signals
Get a single artefact
POSTHOG_SIGNALS_REPORT_ARTEFACTS_RETRIEVE
Get one artefact by id, content parsed (and reviewers enriched) the same way as the list.
signals
Create a scout config
POSTHOG_SIGNALS_SCOUT_CONFIG_CREATE
Register the config for a `signals-scout-*` skill immediately, without waiting for the coordinator to auto-register it — optionally setting `run_interval_minutes`, `enabled`, and `emit` in the same call. The skill must already exist on this project. Upsert: if a config already exists for the skill, the provided fields are applied to it.
signals
Delete a scout config
POSTHOG_SIGNALS_SCOUT_CONFIG_DESTROY
Delete one scout config by its `id`, removing the per-(team, skill) schedule/emit row outright. The point is cleaning up an orphaned config whose `signals-scout-*` skill was archived or deleted — it lingers in `list` with an empty `description`, never runs (the coordinator skips it and the skill can't load), but can't otherwise be removed over the API. Deletion is activity-logged. Note: if the skill still exists, the coordinator re-creates a default-schedule config on its next tick — to retire a live scout, archive its skill (or set `enabled=false` to make it inert) rather than deleting the config.
signals
List scout configs
POSTHOG_SIGNALS_SCOUT_CONFIG_LIST
List the per-(team, skill) scout configs for this project — schedule (`run_interval_minutes`), `enabled`, and `emit` posture per scout. A freshly authored scout skill appears here once its config is registered, either explicitly via create or by the coordinator's next tick.
signals
Run a scout now
POSTHOG_SIGNALS_SCOUT_CONFIG_RUN
Dispatch one on-demand run of this scout immediately, regardless of its schedule. Useful to test a scout right after authoring it, or to refresh its findings on demand. The run executes asynchronously on the worker and inherits every guard the scheduled path has: it is forbidden if scouts are not enabled for the project (403), and skipped if the project is over its Signals credits quota or daily run budget (429) or a run for this scout is already in progress (409). A manual run counts against the same daily run budget as scheduled runs, so repeated manual runs of the same scout can exhaust the project's daily allowance. A manual run does not change the scout's schedule or `last_run_at`. A disabled scout can still be run this way (to test before enabling). Returns immediately with the workflow id — poll the scout's runs for the result.
signals
Sync scout configs
POSTHOG_SIGNALS_SCOUT_CONFIG_SYNC
Materialize the scout fleet for this project on demand (idempotent): seed the canonical `signals-scout-*` skills, create a default-schedule config for any scout lacking one, and return all scout configs. Normally the Temporal coordinator does this on its next tick; this action exists so setup flows (e.g. the wizard's self-driving program) can hand the user a tunable fleet immediately.
signals
Update a scout config
POSTHOG_SIGNALS_SCOUT_CONFIG_UPDATE
Tune one scout: change its schedule (`run_interval_minutes`), `enabled`, or `emit` (dry-run) posture. `skill_name` is fixed. Enabling records `enabled_by` and is activity-logged since it drives spend.
signals
Edit an existing report for a run
POSTHOG_SIGNALS_SCOUT_EDIT_REPORT
Rewrite a report's title/summary, append a note, and/or set its suggested reviewers. Can target ANY of the project's inbox reports, not just scout-authored ones — so the edit is attributed to this scout. Setting reviewers is how you rescue a report that surfaced routed to no one: it replaces the reviewer list and re-runs autostart, so a report missing a qualifying reviewer can open a draft PR. Title/summary edits are best-effort: the pipeline may later re-research them.
signals
Author a full report for a run
POSTHOG_SIGNALS_SCOUT_EMIT_REPORT
The second emit channel: author a complete `SignalReport` directly instead of emitting a weak signal. The report passes the safety judge, then surfaces at the status the scout's `actionability` call implies (or is suppressed). Backing `evidence` is written as bound signals so the report behaves like a pipeline report. NOT idempotent — a retry authors a second report; use `reports` to find a prior report and `edit-report` to update it instead.
signals
Emit a finding for a run
POSTHOG_SIGNALS_SCOUT_EMIT_SIGNAL
Fire `emit_signal` with `source_product = signals_scout`. The `finding_id` is baked into the deterministic `Signal.source_id = run:<id>:finding:<id>` for traceability, but this is NOT idempotent — a second call with the same `finding_id` emits a second signal, so do not retry an emit that may have already succeeded.
signals
List project members for reviewer routing
POSTHOG_SIGNALS_SCOUT_MEMBERS_LIST
Return the people who can review work on this project — one row per member with access to it, each with their `user_uuid`, `email`, `first_name`/`last_name`, and resolved GitHub `login` (null when they have no linked GitHub identity). The cold-start reviewer-routing path: when a finding's owner can't be read off a fetched entity's `created_by` and there's no cached `reviewer:<area>` memory or inbox precedent, list members, match the owner by email/name, then put their resolved `github_login` in `suggested_reviewers` on `emit-report` / `edit-report`. Pass `search` to narrow a large roster; the result is capped at 200. Strictly team-scoped.
signals
Get scout metadata
POSTHOG_SIGNALS_SCOUT_METADATA_GET
Return the project's scout metadata: whether it is enrolled, the current announcement banner (e.g. an alpha run-limit notice, or null when unset), and the enforced run limits with current usage. Limits reflect what the coordinator actually applies at dispatch, so a user can see the real throttle rather than what they assume they set. All values come from the `signals-scout` flag payload, so the banner and caps can change with no deploy.
signals
Get the current project profile
POSTHOG_SIGNALS_SCOUT_PROJECT_PROFILE_GET
Return the team's deterministic project profile. For the internal scout token the response reflects the newest non-expired cached row or a freshly-built one (lazy compute on cache miss); `force_refresh=true` skips the cache and rebuilds from authoritative sources. Public read callers (session auth or a `signal_scout:read` PAK) get the newest cached profile, or 404 if none has been built yet — they never trigger a rebuild. Read this at the start of a run to orient on the team's product mix, integrations, warehouse sources, signal coverage, and existing inbox surface.
signals
List a run's emitted findings
POSTHOG_SIGNALS_SCOUT_RUNS_EMISSIONS
Return the findings a `SignalScoutRun` emitted to the inbox, newest first — one row per emit with its `description` (the finding text as surfaced), `weight`, `confidence`, `severity`, and the deterministic `source_id` that joins back to the underlying signal. Lets a team and its agents see *what* a run surfaced without parsing `emitted_finding_ids` or scanning the signal store. Strictly team-scoped — a run UUID belonging to another team returns 404.
signals
List emitted findings for many runs at once
POSTHOG_SIGNALS_SCOUT_RUNS_EMISSIONS_BATCH
Batched form of the per-run emissions endpoint: return the findings every requested `SignalScoutRun` emitted, flattened newest-first, in a single request. Each row carries its `run_id`, so the caller can regroup by run. The findings UI uses this to load the whole recent window in one round-trip instead of one request per run. Strictly team-scoped — run ids belonging to another team contribute no rows (no per-run 404; one stale id never fails the batch).
signals
List the inbox reports a run's findings linked to
POSTHOG_SIGNALS_SCOUT_RUNS_EMISSION_REPORTS
Best-effort reverse of the report -> signals link. For each finding the run emitted, resolve the inbox `SignalReport` (if any) its underlying signal grouped into by walking the deterministic `source_id` back through the signal store. `report` is null when the finding hasn't grouped into a report yet, was de-duplicated away, or its signal was deleted. Lets the scout UI surface which inbox report a finding contributed to — the reverse of the report's evidence list. Strictly team-scoped — a run UUID belonging to another team returns 404.
signals
List the inbox reports many runs' findings linked to
POSTHOG_SIGNALS_SCOUT_RUNS_EMISSION_REPORTS_BATCH
Batched form of the per-run emission-reports endpoint. For every finding the requested runs emitted, resolve the inbox `SignalReport` (if any) its signal grouped into — all in a single ClickHouse round-trip rather than one query per run, which is what made the findings page slow to open. `report` is null when a finding hasn't grouped yet, was de-duplicated, or its signal was deleted. Strictly team-scoped — run ids belonging to another team contribute no rows.
signals
Summarise recently emitted findings across the fleet
POSTHOG_SIGNALS_SCOUT_RUNS_FINDINGS_SUMMARY
Return a cheap fleet-wide tally of the findings the scout troop emitted in the recent window — the total count, the number of distinct scouts behind them, and the latest emission time. Backs the 'Scout findings' callout so it renders from one query instead of the client paging through the whole runs window. Counts only runs that emitted at least one finding (`emitted_count > 0`) within the last `window_hours` (default 72), capped to the most recent 120 emitted runs so the count matches what the findings list renders. Strictly team-scoped.
signals
Search recent agent runs
POSTHOG_SIGNALS_SCOUT_RUNS_LIST
Return the most recent `SignalScoutRun` summaries for this project, newest first. Used by the headless scout to dedupe against work other runs already covered. ILIKE matches on `summary`. `date_from` / `date_to` are a half-open window on `created_at` (`>= date_from`, `< date_to`); pass `date_to` on subsequent calls to walk past the 100-row cap. Pass `emitted=true` to see only runs that surfaced at least one finding. Pass `skill_name` (optionally with `skill_version`) to scope to a single scout. Results capped at 100.
signals
List recent emitted findings across all runs
POSTHOG_SIGNALS_SCOUT_RUNS_RECENT_EMISSIONS
Return the team's recently emitted scout findings across *every* run, newest first — the cross-run counterpart to the per-run `emissions` action. Each row carries its `run_id`, so you can regroup by run without first listing runs and fanning out one `emissions` call each. Pass `skill_name` to scope to a single scout, and `date_from` / `date_to` (a half-open window on `emitted_at`) to bound or paginate — set `date_to` to the oldest emission's `emitted_at` to walk back past the limit. Pure Postgres, no ClickHouse round-trip. Capped at 200 rows (default 50).
signals
Get a run by ID
POSTHOG_SIGNALS_SCOUT_RUNS_RETRIEVE
Return the full `SignalScoutRun` row. Status, timing, and error flow from the linked `tasks.TaskRun`. Strictly team-scoped — a UUID belonging to another team returns 404.
signals
Forget a scratchpad entry by key
POSTHOG_SIGNALS_SCOUT_SCRATCHPAD_FORGET
Delete an entry by key. Returns `deleted=false` if no row matched.
signals
Remember a scratchpad entry
POSTHOG_SIGNALS_SCOUT_SCRATCHPAD_REMEMBER
Upsert a memory keyed on `(team, key)`. Re-using a key updates the existing entry in place.
signals
Signals Source Configs Create
POSTHOG_SIGNALS_SOURCE_CONFIGS_CREATE
Signals Source Configs Create
signals
Signals Source Configs Destroy
POSTHOG_SIGNALS_SOURCE_CONFIGS_DESTROY
Signals Source Configs Destroy
signals
Signals Source Configs List
POSTHOG_SIGNALS_SOURCE_CONFIGS_LIST
Signals Source Configs List
signals
Signals Source Configs Partial Update
POSTHOG_SIGNALS_SOURCE_CONFIGS_PARTIAL_UPDATE
Signals Source Configs Partial Update
signals
Signals Source Configs Retrieve
POSTHOG_SIGNALS_SOURCE_CONFIGS_RETRIEVE
Signals Source Configs Retrieve
signals
Signals Source Configs Update
POSTHOG_SIGNALS_SOURCE_CONFIGS_UPDATE
Signals Source Configs Update
signals
Single Session Summaries List
POSTHOG_SINGLE_SESSION_SUMMARIES_LIST
List stored AI-generated session summaries for the team, one row per session (latest summary kept). Use to discover which sessions have been summarized and to filter for sessions with specific problems — `has_exceptions=true`, `outcome=failure`, or a custom `session_ids` narrowing. Returns lightweight rows without the full summary JSON; use the retrieve endpoint for the per-segment / per-action detail.
single_session_summaries
Single Session Summaries Retrieve
POSTHOG_SINGLE_SESSION_SUMMARIES_RETRIEVE
Get the latest stored AI summary for a single session by `session_id`. Returns the full `summary` JSON (segments with named timeline, per-action `abandonment` / `confusion` / `exception` flags, segment outcomes, headline `session_outcome`, optional `sentiment`), the `exception_event_ids` array, the `extra_summary_context` (e.g. `focus_area`) used at generation time, and the `run_metadata` (LLM model used, whether visual confirmation was applied). 404 if no summary has been generated for this session yet — to trigger generation, use the existing `session-recording-summarize` flow rather than this endpoint.
single_session_summaries
Subscriptions Create
POSTHOG_SUBSCRIPTIONS_CREATE
Subscriptions Create
subscriptionssubscriptions
List subscription deliveries
POSTHOG_SUBSCRIPTIONS_DELIVERIES_LIST
Paginated delivery history for a subscription. Requires premium subscriptions.
subscriptionssubscriptions
Retrieve subscription delivery
POSTHOG_SUBSCRIPTIONS_DELIVERIES_RETRIEVE
Fetch one delivery row by id.
subscriptionssubscriptions
Subscriptions Destroy
POSTHOG_SUBSCRIPTIONS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
subscriptionssubscriptions
Subscriptions List
POSTHOG_SUBSCRIPTIONS_LIST
Subscriptions List
subscriptionssubscriptions
Subscriptions Partial Update
POSTHOG_SUBSCRIPTIONS_PARTIAL_UPDATE
Subscriptions Partial Update
subscriptionssubscriptions
Subscriptions Retrieve
POSTHOG_SUBSCRIPTIONS_RETRIEVE
Subscriptions Retrieve
subscriptionssubscriptions
Subscriptions Summary Quota Retrieve
POSTHOG_SUBSCRIPTIONS_SUMMARY_QUOTA_RETRIEVE
Subscriptions Summary Quota Retrieve
subscriptionssubscriptions
Subscriptions Test Delivery Create
POSTHOG_SUBSCRIPTIONS_TEST_DELIVERY_CREATE
Subscriptions Test Delivery Create
subscriptionssubscriptions
Subscriptions Update
POSTHOG_SUBSCRIPTIONS_UPDATE
Subscriptions Update
subscriptionssubscriptions
Surveys Activity Retrieve
POSTHOG_SURVEYS_ACTIVITY_RETRIEVE
Surveys Activity Retrieve
surveys
Surveys All Activity Retrieve
POSTHOG_SURVEYS_ALL_ACTIVITY_RETRIEVE
Surveys All Activity Retrieve
surveys
Surveys Archived Response Uuids Retrieve
POSTHOG_SURVEYS_ARCHIVED_RESPONSE_UUIDS_RETRIEVE
Get list of archived response UUIDs for HogQL filtering. Returns list of UUIDs that the frontend can use to filter out archived responses in HogQL queries.
surveys
Surveys Create
POSTHOG_SURVEYS_CREATE
Surveys Create
surveys
Surveys Destroy
POSTHOG_SURVEYS_DESTROY
Surveys Destroy
surveys
Surveys Duplicate To Projects Create
POSTHOG_SURVEYS_DUPLICATE_TO_PROJECTS_CREATE
Duplicate a survey to multiple projects in a single transaction. Accepts a list of target team IDs and creates a copy of the survey in each project. Uses an all-or-nothing approach - if any duplication fails, all changes are rolled back.
surveys
Surveys Generate Translations Create
POSTHOG_SURVEYS_GENERATE_TRANSLATIONS_CREATE
Surveys Generate Translations Create
surveys
Surveys Global Stats Retrieve
POSTHOG_SURVEYS_GLOBAL_STATS_RETRIEVE
Get aggregated response statistics across all surveys. Args: date_from: Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z) date_to: Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z) Returns: Aggregated statistics across all surveys including total counts and rates
surveys
Surveys Launch
POSTHOG_SURVEYS_LAUNCH
Launch a survey by setting `start_date` to the current time. No-op if the survey is already launched (start_date set in the past) — returns the existing state unchanged. Does not affect archived surveys or surveys with an end_date in the past; unarchive or extend the end_date first.
surveys
Surveys List
POSTHOG_SURVEYS_LIST
Surveys List
surveys
Surveys Partial Update
POSTHOG_SURVEYS_PARTIAL_UPDATE
Surveys Partial Update
surveys
Surveys Question Labels
POSTHOG_SURVEYS_QUESTION_LABELS
Return a slim list of question labels for the team's surveys. Used by the frontend to resolve `$survey_response_<question_id>` property keys into human-readable question text without loading the full survey payload.
surveys
Surveys Responses Archive Create
POSTHOG_SURVEYS_RESPONSES_ARCHIVE_CREATE
Archive a single survey response.
surveys
Surveys Responses Count Retrieve
POSTHOG_SURVEYS_RESPONSES_COUNT_RETRIEVE
Get response counts for all surveys. Args: exclude_archived: Optional boolean to exclude archived responses (default: false, includes archived) survey_ids: Optional comma-separated list of survey IDs to filter by Returns: Dictionary mapping survey IDs to response counts
surveys
Surveys Responses List
POSTHOG_SURVEYS_RESPONSES_LIST
List survey responses for a specific survey, with question text resolved server-side so callers do not have to map opaque `$survey_response_<id>` keys. Each row carries `distinct_id`, `session_id`, `submitted_at`, and an `extra` block (device, browser, OS, geoip, current_url, iteration) so agents can cross-pivot to recordings, persons, or paths in a single follow-up call. For person properties at event time, follow up with `persons-get` using the returned `distinct_id` — keeps scopes scoped. Use `question_id` + `score_lte` to fetch NPS detractors and similar score-filtered cohorts.
surveys
Surveys Responses Unarchive Create
POSTHOG_SURVEYS_RESPONSES_UNARCHIVE_CREATE
Unarchive a single survey response.
surveys
Surveys Retrieve
POSTHOG_SURVEYS_RETRIEVE
Surveys Retrieve
surveys
Surveys Stats Retrieve
POSTHOG_SURVEYS_STATS_RETRIEVE
Get survey response statistics for a specific survey. Args: date_from: Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z) date_to: Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z) exclude_archived: Optional boolean to exclude archived responses (default: false, includes archived) include_per_question_stats: Optional boolean to include per-question response counts and distributions Returns: Survey statistics including event counts, unique respondents, and conversion rates
surveys
Surveys Stop
POSTHOG_SURVEYS_STOP
Stop a survey by setting `end_date` to the current time. No new responses are accepted after this; existing responses remain available. No-op if the survey already has an end_date in the past.
surveys
Surveys Summarize Responses Create
POSTHOG_SURVEYS_SUMMARIZE_RESPONSES_CREATE
Summarize survey responses. When `question_index` or `question_id` is provided, returns a per-question theme summary using cached `survey.question_summaries` when fresh. When neither is provided, returns the survey-wide headline summary (delegates to summary_headline). Pass `force_refresh=true` in the body to bypass caches.
surveys
Surveys Summary Headline Create
POSTHOG_SURVEYS_SUMMARY_HEADLINE_CREATE
Surveys Summary Headline Create
surveys
Surveys Update
POSTHOG_SURVEYS_UPDATE
Surveys Update
surveys
Taggers Create
POSTHOG_TAGGERS_CREATE
Taggers Create
taggers
Taggers Destroy
POSTHOG_TAGGERS_DESTROY
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
taggers
Taggers List
POSTHOG_TAGGERS_LIST
Taggers List
taggers
Taggers Partial Update
POSTHOG_TAGGERS_PARTIAL_UPDATE
Taggers Partial Update
taggers
Taggers Retrieve
POSTHOG_TAGGERS_RETRIEVE
Taggers Retrieve
taggers
Taggers Test Hog Create
POSTHOG_TAGGERS_TEST_HOG_CREATE
Test Hog tagger code against sample events without saving.
taggers
Taggers Update
POSTHOG_TAGGERS_UPDATE
Taggers Update
taggers
Tasks Create
POSTHOG_TASKS_CREATE
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
taskstasks
Tasks Destroy
POSTHOG_TASKS_DESTROY
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
taskstasks
List tasks
POSTHOG_TASKS_LIST
Get a list of tasks for the current project, with optional filtering by origin product, stage, organization, repository, and created_by.
taskstasks
Tasks Partial Update
POSTHOG_TASKS_PARTIAL_UPDATE
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
taskstasks
Beacon presence for a device watching this task
POSTHOG_TASKS_PRESENCE_CREATE
Idempotent upsert: marks the calling user + `device_id` as actively watching this task for the next ~60 seconds. While at least one device for the user has a non-expired presence row for this task, the push fanout will skip ALL of that user's other registered devices for task notifications — the contract is 'if any device is demonstrably watching, suppress the others'. Clients call this every ~30s while the task screen is foregrounded. `device_id` is the UUID of the caller's UserPushToken row.
taskstasks
Beacon presence for a device watching this task
POSTHOG_TASKS_PRESENCE_DESTROY
Idempotent upsert: marks the calling user + `device_id` as actively watching this task for the next ~60 seconds. While at least one device for the user has a non-expired presence row for this task, the push fanout will skip ALL of that user's other registered devices for task notifications — the contract is 'if any device is demonstrably watching, suppress the others'. Clients call this every ~30s while the task screen is foregrounded. `device_id` is the UUID of the caller's UserPushToken row.
taskstasks
List distinct task repositories
POSTHOG_TASKS_REPOSITORIES_RETRIEVE
Return the set of repositories referenced by non-deleted, non-internal tasks in the current project. Used to populate repository filter pickers without being constrained by task list pagination.
taskstasks
Get repository readiness
POSTHOG_TASKS_REPOSITORY_READINESS_RETRIEVE
Get autonomy readiness details for a specific repository in the current project.
taskstasks
Get task
POSTHOG_TASKS_RETRIEVE
Retrieve a single task by ID.
taskstasks
Append log entries
POSTHOG_TASKS_RUNS_APPEND_LOG_CREATE
Append one or more log entries to the task run log array
task-runstaskstasks
Upload artifacts for a task run
POSTHOG_TASKS_RUNS_ARTIFACTS_CREATE
Persist task artifacts to S3 and attach them to the run manifest.
task-runstaskstasks
Download an artifact through the backend
POSTHOG_TASKS_RUNS_ARTIFACTS_DOWNLOAD_CREATE
Streams artifact content for a task run artifact after validating that it belongs to the run.
task-runstaskstasks
Finalize direct uploads for task run artifacts
POSTHOG_TASKS_RUNS_ARTIFACTS_FINALIZE_UPLOAD_CREATE
Verify directly uploaded S3 objects and attach them to the run artifact manifest.
task-runstaskstasks
Prepare direct uploads for task run artifacts
POSTHOG_TASKS_RUNS_ARTIFACTS_PREPARE_UPLOAD_CREATE
Reserve S3 object keys for task artifacts and return presigned POST forms for direct uploads.
task-runstaskstasks
Generate presigned URL for an artifact
POSTHOG_TASKS_RUNS_ARTIFACTS_PRESIGN_CREATE
Returns a temporary, signed URL that can be used to download a specific artifact.
task-runstaskstasks
Send command to task run
POSTHOG_TASKS_RUNS_COMMAND_CREATE
Queue user_message JSON-RPC commands through the task workflow and forward sandbox control commands to the agent server. Supports user_message, cancel, close, permission_response, and set_config_option commands.
task-runstaskstasks
Get sandbox connection token
POSTHOG_TASKS_RUNS_CONNECTION_TOKEN_RETRIEVE
Generate a JWT token for direct connection to the sandbox. Valid for 24 hours.
task-runstaskstasks
Create task run
POSTHOG_TASKS_RUNS_CREATE
Create a new run for a specific task without starting execution.
task-runstaskstasks
List task runs
POSTHOG_TASKS_RUNS_LIST
Get a list of runs for a specific task.
task-runstaskstasks
Get task run logs
POSTHOG_TASKS_RUNS_LOGS_RETRIEVE
Fetch the logs for a task run as JSONL. If the run resumes from another (state.resume_from_run_id), each ancestor's log is concatenated first (oldest ancestor → ... → this run) so resume consumers see a single continuous history and can find the most recent git_checkpoint event regardless of which run emitted it.
task-runstaskstasks
Update task run
POSTHOG_TASKS_RUNS_PARTIAL_UPDATE
API for managing task runs. Each run represents an execution of a task.
task-runstaskstasks
Relay run message to Slack
POSTHOG_TASKS_RUNS_RELAY_MESSAGE_CREATE
Queue a Slack relay workflow to post a run message into the mapped Slack thread.
task-runstaskstasks
Resume task run in cloud
POSTHOG_TASKS_RUNS_RESUME_IN_CLOUD_CREATE
Resume an existing task run in a cloud sandbox. Terminates any existing workflow and starts a new one.
task-runstaskstasks
Get task run
POSTHOG_TASKS_RUNS_RETRIEVE
Retrieve a single run for a specific task.
task-runstaskstasks
Get filtered task run session logs
POSTHOG_TASKS_RUNS_SESSION_LOGS_RETRIEVE
Fetch session log entries for a task run with optional filtering by timestamp, event type, and limit.
task-runstaskstasks
Set run output
POSTHOG_TASKS_RUNS_SET_OUTPUT_PARTIAL_UPDATE
Update the output field for a task run (e.g., PR URL, commit SHA, etc.)
task-runstaskstasks
Start task run
POSTHOG_TASKS_RUNS_START_CREATE
Start an existing cloud run after any initial run-scoped attachments have been uploaded.
task-runstaskstasks
Tasks Runs Stream Retrieve
POSTHOG_TASKS_RUNS_STREAM_RETRIEVE
Server-Sent Events stream of task run events. Events carry an `id:` line (a Redis stream id) usable as a resume cursor. The server caps each connection at 900 seconds: it emits `event: end` with `data: {"type": "rotated"}` and closes. This does NOT mean the run finished — reconnect with the `Last-Event-ID` header set to the last received event id to resume without gaps or duplicates. Only treat the stream as complete when the run itself reaches a terminal status. `?start=latest` consumers must also carry `Last-Event-ID` across reconnects: reconnecting without it re-resolves to the then-current latest event, silently skipping anything published while disconnected. **SDK consumers**: do not call the generated fetch wrapper for this path — it will buffer the entire stream. Use the URL builder (`getTasksRunsStreamRetrieveUrl`) with a streaming `fetch`/`EventSource`-style consumer and the `Last-Event-ID` header instead.
task-runstaskstasks
Get task run stream read token
POSTHOG_TASKS_RUNS_STREAM_TOKEN_RETRIEVE
Generate a run-scoped JWT that authorizes reading this task run's live event stream via the agent-proxy.
task-runstaskstasks
Run task
POSTHOG_TASKS_RUN_CREATE
Create a new task run and kick off the workflow.
taskstasks
Resolve a Slack thread to its task, runs, and Temporal workflows
POSTHOG_TASKS_SLACK_THREAD_CONTEXT_RETRIEVE
PostHog-internal debug tool. Resolves a Slack permalink to the linked task, its runs, the task-processing and mention-dispatch Temporal workflow ids/URLs, and presigned log URLs.
taskstasks
Finalize staged direct uploads for task attachments
POSTHOG_TASKS_STAGED_ARTIFACTS_FINALIZE_UPLOAD_CREATE
Verify staged S3 uploads and cache their metadata so they can be attached to the next run created for this task.
taskstasks
Prepare staged direct uploads for task attachments
POSTHOG_TASKS_STAGED_ARTIFACTS_PREPARE_UPLOAD_CREATE
Reserve S3 object keys for task attachments before creating a new run and return presigned POST forms for direct uploads.
taskstasks
Fetch task summaries by ID
POSTHOG_TASKS_SUMMARIES_CREATE
Returns summary for the requested tasks: `id`, `title`, `repository`, `created_at`, `updated_at`, and the latest run's `status` and `environment`.
taskstasks
Post a thread message
POSTHOG_TASKS_THREAD_MESSAGES_CREATE
API for a task's thread — the human-only side conversation around a task. Messages reach the agent only via the explicit send_to_agent action, gated to the task author.
tasks
Delete own thread message
POSTHOG_TASKS_THREAD_MESSAGES_DESTROY
API for a task's thread — the human-only side conversation around a task. Messages reach the agent only via the explicit send_to_agent action, gated to the task author.
tasks
List thread messages
POSTHOG_TASKS_THREAD_MESSAGES_LIST
The task's thread in chronological order.
tasks
Send a thread message to the agent
POSTHOG_TASKS_THREAD_MESSAGES_SEND_TO_AGENT_CREATE
Task author only: forwards the message into the task's latest live run.
tasks
Tasks Update
POSTHOG_TASKS_UPDATE
API for managing tasks within a project. Tasks represent units of work to be performed by an agent.
taskstasks
Warm a task sandbox
POSTHOG_TASKS_WARM_CREATE
Warm a full idling Run for a Code-app cloud task while the user composes: boot a sandbox, clone the repo, check out the branch, and start the agent, then idle awaiting the first message. On submit the normal create+run path transparently reuses and activates this Run; abandoned warms are reaped by the Run's inactivity timeout. Best-effort: returns an empty body when the feature flag is off, the warm pool is full, or the GitHub integration doesn't belong to the team.
taskstasks
Task Automations Create
POSTHOG_TASK_AUTOMATIONS_CREATE
API for managing scheduled task automations.
task-automationstask_automations
Task Automations Destroy
POSTHOG_TASK_AUTOMATIONS_DESTROY
API for managing scheduled task automations.
task-automationstask_automations
Task Automations List
POSTHOG_TASK_AUTOMATIONS_LIST
API for managing scheduled task automations.
task-automationstask_automations
Task Automations Partial Update
POSTHOG_TASK_AUTOMATIONS_PARTIAL_UPDATE
API for managing scheduled task automations.
task-automationstask_automations
Task Automations Retrieve
POSTHOG_TASK_AUTOMATIONS_RETRIEVE
API for managing scheduled task automations.
task-automationstask_automations
Task Automations Run Create
POSTHOG_TASK_AUTOMATIONS_RUN_CREATE
API for managing scheduled task automations.
task-automationstask_automations
Resolve or create a public channel
POSTHOG_TASK_CHANNELS_CREATE
Returns the existing public channel with the (normalized) name, creating it if needed.
task_channels
Delete a public channel
POSTHOG_TASK_CHANNELS_DESTROY
API for task channels — the shared feeds tasks are kicked off in. Listing lazily provisions the requester's personal "#me" channel; creation is resolve-or-create by normalized name so clients can map channel-like surfaces onto backend channels.
task_channels
List channels
POSTHOG_TASK_CHANNELS_LIST
All live public channels plus the requester's personal #me channel (created on first list).
task_channels
Rename a public channel
POSTHOG_TASK_CHANNELS_PARTIAL_UPDATE
API for task channels — the shared feeds tasks are kicked off in. Listing lazily provisions the requester's personal "#me" channel; creation is resolve-or-create by normalized name so clients can map channel-like surfaces onto backend channels.
task_channels
List mentions of the requester
POSTHOG_TASK_MENTIONS_LIST
Thread messages that @-mention the requester, newest first, restricted to tasks they can see.
task_mentions
Tracing Spans Aggregate Create
POSTHOG_TRACING_SPANS_AGGREGATE_CREATE
Tracing Spans Aggregate Create
tracing
Tracing Spans Attributes Retrieve
POSTHOG_TRACING_SPANS_ATTRIBUTES_RETRIEVE
Tracing Spans Attributes Retrieve
tracing
Tracing Spans Attribute Breakdown Create
POSTHOG_TRACING_SPANS_ATTRIBUTE_BREAKDOWN_CREATE
Tracing Spans Attribute Breakdown Create
tracing
Tracing Spans Count Create
POSTHOG_TRACING_SPANS_COUNT_CREATE
Tracing Spans Count Create
tracing
Tracing Spans Duration Histogram Create
POSTHOG_TRACING_SPANS_DURATION_HISTOGRAM_CREATE
Tracing Spans Duration Histogram Create
tracing
Tracing Spans Has Spans Retrieve
POSTHOG_TRACING_SPANS_HAS_SPANS_RETRIEVE
Tracing Spans Has Spans Retrieve
tracing
Tracing Spans Query Create
POSTHOG_TRACING_SPANS_QUERY_CREATE
Tracing Spans Query Create
tracing
Tracing Spans Service Names Retrieve
POSTHOG_TRACING_SPANS_SERVICE_NAMES_RETRIEVE
Tracing Spans Service Names Retrieve
tracing
Tracing Spans Sparkline Create
POSTHOG_TRACING_SPANS_SPARKLINE_CREATE
Tracing Spans Sparkline Create
tracing
Tracing Spans Symbol Stats Create
POSTHOG_TRACING_SPANS_SYMBOL_STATS_CREATE
Tracing Spans Symbol Stats Create
tracing
Tracing Spans Trace Create
POSTHOG_TRACING_SPANS_TRACE_CREATE
Tracing Spans Trace Create
tracing
Tracing Spans Tree Create
POSTHOG_TRACING_SPANS_TREE_CREATE
Tracing Spans Tree Create
tracing
Tracing Spans Values Retrieve
POSTHOG_TRACING_SPANS_VALUES_RETRIEVE
Tracing Spans Values Retrieve
tracing
Tracing Views Create
POSTHOG_TRACING_VIEWS_CREATE
Tracing Views Create
tracing
Tracing Views Destroy
POSTHOG_TRACING_VIEWS_DESTROY
Tracing Views Destroy
tracing
Tracing Views List
POSTHOG_TRACING_VIEWS_LIST
Tracing Views List
tracing
Tracing Views Partial Update
POSTHOG_TRACING_VIEWS_PARTIAL_UPDATE
Tracing Views Partial Update
tracing
Tracing Views Retrieve
POSTHOG_TRACING_VIEWS_RETRIEVE
Tracing Views Retrieve
tracing
Tracing Views Update
POSTHOG_TRACING_VIEWS_UPDATE
Tracing Views Update
tracing
Update
POSTHOG_UPDATE
Update
organizationsorganizations
Update Session Summaries Config
POSTHOG_UPDATE_SESSION_SUMMARIES_CONFIG
Update the team's session summaries configuration (product context used to tailor single-session replay summaries).
session_summaries
Uploaded Media Create
POSTHOG_UPLOADED_MEDIA_CREATE
When object storage is available this API allows upload of media which can be used, for example, in text cards on dashboards. Uploaded media must have a content type beginning with 'image/' and be less than 4MB.
uploaded_media
Users Cancel Email Change Request Partial Update
POSTHOG_USERS_CANCEL_EMAIL_CHANGE_REQUEST_PARTIAL_UPDATE
Users Cancel Email Change Request Partial Update
usersusers
Users Credentials Review Complete Create
POSTHOG_USERS_CREDENTIALS_REVIEW_COMPLETE_CREATE
Mark the user as having reviewed their existing credentials. Idempotent. Flips `requires_credential_review` to False so the post-login interstitial isn't shown again. Does not modify any credentials; the user revokes individual Personal API Keys and passkeys via their existing endpoints from the same screen.
usersusers
Users Destroy
POSTHOG_USERS_DESTROY
Users Destroy
usersusers
Users Github Login Retrieve
POSTHOG_USERS_GITHUB_LOGIN_RETRIEVE
Users Github Login Retrieve
usersusers
Users Hedgehog Config Partial Update
POSTHOG_USERS_HEDGEHOG_CONFIG_PARTIAL_UPDATE
Users Hedgehog Config Partial Update
usersusers
Users Hedgehog Config Retrieve
POSTHOG_USERS_HEDGEHOG_CONFIG_RETRIEVE
Users Hedgehog Config Retrieve
usersusers
List branches for a personal GitHub installation repository
POSTHOG_USERS_INTEGRATIONS_GITHUB_BRANCHES_RETRIEVE
List branches for a repository accessible to a personal GitHub installation.
usersusers
Disconnect a personal GitHub integration
POSTHOG_USERS_INTEGRATIONS_GITHUB_DESTROY
Remove a specific GitHub installation by its installation_id.
usersusers
Users Integrations Github Prepare Callback Create
POSTHOG_USERS_INTEGRATIONS_GITHUB_PREPARE_CALLBACK_CREATE
Seed personal GitHub manage callback state before opening installation settings on GitHub.
usersusers
Refresh repositories for a personal GitHub installation
POSTHOG_USERS_INTEGRATIONS_GITHUB_REPOS_REFRESH_CREATE
Refresh repositories accessible to a specific GitHub installation.
usersusers
List repositories for a personal GitHub installation
POSTHOG_USERS_INTEGRATIONS_GITHUB_REPOS_RETRIEVE
List repositories accessible to a specific GitHub installation (paginated, cached).
usersusers
Start GitHub personal integration linking
POSTHOG_USERS_INTEGRATIONS_GITHUB_START_CREATE
Start GitHub linking: either full App install or OAuth-only (user-to-server). ``**_kwargs`` absorbs ``parent_lookup_uuid`` from the nested ``/api/users/{uuid}/integrations/`` router (same pattern as ``local_evaluation`` under projects). Usually returns ``install_url`` pointing at ``/installations/new`` so the user can pick any GitHub org (new or already connected). GitHub's install page handles both cases: orgs where the app is installed show "Configure" (no admin needed), orgs where it isn't show "Install" (needs admin). **OAuth fast path:** when the current project already has a team-level GitHub installation, and the user has no ``UserIntegration`` for that installation yet, we skip the org picker and redirect straight to ``/login/oauth/authorize`` so the user only authorizes themselves. ``connect_from`` is preserved for first-party clients so they return to the originating client immediately. In both cases the response key is ``install_url`` for compatibility with callers.
usersusers
List the user's personal integrations of a given kind
POSTHOG_USERS_INTEGRATIONS_LIST
Return the authenticated user's personal integrations of a given ``kind`` (``github`` or ``slack``). The response shape varies per kind because the underlying ``UserIntegration`` rows carry different identity fields — GitHub rows expose ``installation_id`` / ``account`` / ``uses_shared_installation``; Slack rows expose ``slack_user_id`` / ``slack_team_id`` / ``slack_team_name``. Kind-specific destroy and start actions remain split so their distinct semantics (e.g. Slack's lack of "uninstall on last reference") stay explicit at the URL layer. Default of ``kind=github`` is load-bearing: mobile (``apps/mobile/...``) and the Code SDK (``packages/api-client/...``) both call this endpoint without a query param today and rely on receiving GitHub rows.
usersusers
Unlink a Slack identity
POSTHOG_USERS_INTEGRATIONS_SLACK_DESTROY
Remove a Slack identity link by Slack user id. Idempotent and flag-agnostic — users must always be able to unlink even after the feature flag is turned off.
usersusers
List Slack workspaces this user could link to
POSTHOG_USERS_INTEGRATIONS_SLACK_LINKABLE_WORKSPACES_RETRIEVE
Return Slack workspaces in the user's organizations that they have not yet linked. The settings UI uses this list to decide whether to show a "Link my Slack account" button (non-empty list) and what to offer in the picker when several are connectable.
usersusers
Start Slack identity link from settings
POSTHOG_USERS_INTEGRATIONS_SLACK_START_CREATE
Mint a Sign-in-with-Slack invite URL initiated from settings, without Slack-DM context. The returned URL takes the user through PostHog login (already satisfied here), then to Slack OAuth, then back to our callback which writes the ``UserIntegration`` row. Without body params, falls back to the user's ``current_team`` and that team's first Slack ``Integration`` — works when there's exactly one linkable workspace. With ``team_id`` + ``slack_team_id``, links against the exact pair (what the frontend uses when a picker is shown). Refuses if the target team has no matching Slack workspace, if the feature flag is off for the workspace, or if the user is already linked to it.
usersusers
Users List
POSTHOG_USERS_LIST
Users List
usersusers
Users Login Sessions Destroy
POSTHOG_USERS_LOGIN_SESSIONS_DESTROY
Revoke a single login session belonging to the current user. Self-only. Requires recent auth (TimeSensitiveActionPermission) so a stolen cookie can't weaponize revocation, and is blocked while impersonating via ImpersonationBlockedPathsMiddleware.
usersusers
Users Login Sessions List
POSTHOG_USERS_LOGIN_SESSIONS_LIST
List the cookie-auth login sessions for the current user. Self-only — never another user.
usersusers
Users Login Sessions Revoke Others Create
POSTHOG_USERS_LOGIN_SESSIONS_REVOKE_OTHERS_CREATE
Revoke every login session for the current user except the one making this request. Self-only. Requires recent auth (TimeSensitiveActionPermission) so a stolen cookie can't weaponize the "log out everywhere else" lock-out, and is blocked while impersonating.
usersusers
Users Onboarding Skip Create
POSTHOG_USERS_ONBOARDING_SKIP_CREATE
Mark the current user as having exited onboarding with a non-delegated reason. Idempotent: the skip timestamp is only set on the first successful call. Callers wanting to delegate setup to a teammate must use the dedicated /organizations/{id}/invites/delegate/ endpoint, which atomically creates the invite and sets reason="delegated". This endpoint rejects that reason so state can't be faked without a real invite.
usersusers
Users Partial Update
POSTHOG_USERS_PARTIAL_UPDATE
Update one or more of the authenticated user's profile fields or settings.
usersusers
Register a push notification token
POSTHOG_USERS_PUSH_TOKENS_CREATE
Idempotent upsert: if the (user, token) pair already exists, `platform` and `last_seen_at` are refreshed. Otherwise a new row is created.
usersusers
Unregister a push notification token
POSTHOG_USERS_PUSH_TOKENS_UNREGISTER_CREATE
Delete the row matching `(user, token)`. Returns 204 even if no row matches so the mobile client can call this unconditionally when the user opts out.
usersusers
Users Request Email Verification Create
POSTHOG_USERS_REQUEST_EMAIL_VERIFICATION_CREATE
Users Request Email Verification Create
usersusers
Users Retrieve
POSTHOG_USERS_RETRIEVE
Retrieve a user's profile and settings. Pass `@me` as the UUID to fetch the authenticated user; non-staff callers may only access their own account.
usersusers
Users Scene Personalisation Create
POSTHOG_USERS_SCENE_PERSONALISATION_CREATE
Users Scene Personalisation Create
usersusers
Users Signal Autonomy Create
POSTHOG_USERS_SIGNAL_AUTONOMY_CREATE
Per-user signal autonomy config (singleton keyed by user). GET /api/users/<id>/signal_autonomy/ → current config (or 404) POST /api/users/<id>/signal_autonomy/ → create or update DELETE /api/users/<id>/signal_autonomy/ → remove (opt out)
usersusers
Users Signal Autonomy Destroy
POSTHOG_USERS_SIGNAL_AUTONOMY_DESTROY
Per-user signal autonomy config (singleton keyed by user). GET /api/users/<id>/signal_autonomy/ → current config (or 404) POST /api/users/<id>/signal_autonomy/ → create or update DELETE /api/users/<id>/signal_autonomy/ → remove (opt out)
usersusers
Users Signal Autonomy Retrieve
POSTHOG_USERS_SIGNAL_AUTONOMY_RETRIEVE
Per-user signal autonomy config (singleton keyed by user). GET /api/users/<id>/signal_autonomy/ → current config (or 404) POST /api/users/<id>/signal_autonomy/ → create or update DELETE /api/users/<id>/signal_autonomy/ → remove (opt out)
usersusers
Users Start 2fa Setup Retrieve
POSTHOG_USERS_START_2FA_SETUP_RETRIEVE
Users Start 2fa Setup Retrieve
usersusers
Users Two Factor Backup Codes Create
POSTHOG_USERS_TWO_FACTOR_BACKUP_CODES_CREATE
Generate new backup codes, invalidating any existing ones
usersusers
Users Two Factor Disable Create
POSTHOG_USERS_TWO_FACTOR_DISABLE_CREATE
Disable 2FA and remove all related devices
usersusers
Users Two Factor Start Setup Retrieve
POSTHOG_USERS_TWO_FACTOR_START_SETUP_RETRIEVE
Users Two Factor Start Setup Retrieve
usersusers
Users Two Factor Status Retrieve
POSTHOG_USERS_TWO_FACTOR_STATUS_RETRIEVE
Get current 2FA status including backup codes if enabled
usersusers
Users Two Factor Validate Create
POSTHOG_USERS_TWO_FACTOR_VALIDATE_CREATE
Users Two Factor Validate Create
usersusers
Users Update
POSTHOG_USERS_UPDATE
Replace the authenticated user's profile and settings. Pass `@me` as the UUID to update the authenticated user. Prefer the PATCH endpoint for partial updates — PUT requires every writable field to be provided.
usersusers
Users Validate 2fa Create
POSTHOG_USERS_VALIDATE_2FA_CREATE
Users Validate 2fa Create
usersusers
Users Verify Email Create
POSTHOG_USERS_VERIFY_EMAIL_CREATE
Users Verify Email Create
usersusers
User Home Settings Partial Update
POSTHOG_USER_HOME_SETTINGS_PARTIAL_UPDATE
Update the authenticated user's pinned sidebar tabs and/or homepage for the current team. Pass `@me` as the UUID. Send `tabs` to replace the pinned tab list, `homepage` to set the home destination (any PostHog URL — dashboard, insight, search results, scene). Either field may be omitted to leave it unchanged; sending `homepage: null` or `{}` clears the homepage.
user_home_settingsuser_home_settings
User Home Settings Retrieve
POSTHOG_USER_HOME_SETTINGS_RETRIEVE
Get the authenticated user's pinned sidebar tabs and configured homepage for the current team. Pass `@me` as the UUID.
user_home_settingsuser_home_settings
User Interviews Create
POSTHOG_USER_INTERVIEWS_CREATE
User Interviews Create
user_interviews
User Interviews Destroy
POSTHOG_USER_INTERVIEWS_DESTROY
User Interviews Destroy
user_interviews
User Interviews List
POSTHOG_USER_INTERVIEWS_LIST
User Interviews List
user_interviews
User Interviews Partial Update
POSTHOG_USER_INTERVIEWS_PARTIAL_UPDATE
User Interviews Partial Update
user_interviews
User Interviews Retrieve
POSTHOG_USER_INTERVIEWS_RETRIEVE
User Interviews Retrieve
user_interviews
Search interview responses by semantic similarity
POSTHOG_USER_INTERVIEWS_SEARCH_CREATE
Embed `query` with the same model used to index interview transcripts and summaries, then return the top matches by cosine distance. Each match is a single (interview, document_type) pair — an interview can appear up to twice if both its transcript and summary score above other interviews. Useful for surfacing relevant interview snippets in natural language, without exact keyword matches.
user_interviews
User Interviews Update
POSTHOG_USER_INTERVIEWS_UPDATE
User Interviews Update
user_interviews
User Interview Topics Add Interviewee Create
POSTHOG_USER_INTERVIEW_TOPICS_ADD_INTERVIEWEE_CREATE
Add a single interviewee to this topic. Email-shaped identifiers (including the `Display Name <email@host>` form) are appended to `interviewee_emails`; everything else is appended to `interviewee_distinct_ids`. Idempotent — adding an identifier that's already present leaves the topic unchanged. Returns the updated topic.
user_interview_topics
User Interview Topics Create
POSTHOG_USER_INTERVIEW_TOPICS_CREATE
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
User Interview Topics Destroy
POSTHOG_USER_INTERVIEW_TOPICS_DESTROY
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
User Interview Topics Interviewees Bulk Create
POSTHOG_USER_INTERVIEW_TOPICS_INTERVIEWEES_BULK_CREATE
Create up to 500 interviewee context rows for a topic in a single request. Rows whose (topic, interviewee_identifier) already exists are skipped — the response surfaces an `inserted_count`, a `skipped_count`, and the `skipped_identifiers` so the caller can reconcile. Items must have unique `interviewee_identifier` values within the batch.
user_interview_topics
User Interview Topics Interviewees Create
POSTHOG_USER_INTERVIEW_TOPICS_INTERVIEWEES_CREATE
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
User Interview Topics Interviewees Destroy
POSTHOG_USER_INTERVIEW_TOPICS_INTERVIEWEES_DESTROY
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
User Interview Topics Interviewees List
POSTHOG_USER_INTERVIEW_TOPICS_INTERVIEWEES_LIST
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
User Interview Topics Interviewees Partial Update
POSTHOG_USER_INTERVIEW_TOPICS_INTERVIEWEES_PARTIAL_UPDATE
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
User Interview Topics Interviewees Retrieve
POSTHOG_USER_INTERVIEW_TOPICS_INTERVIEWEES_RETRIEVE
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
User Interview Topics Interviewees Update
POSTHOG_USER_INTERVIEW_TOPICS_INTERVIEWEES_UPDATE
Per-interviewee extra context for a user interview topic. At most one row per (topic, interviewee_identifier).
user_interview_topics
User Interview Topics List
POSTHOG_USER_INTERVIEW_TOPICS_LIST
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
User Interview Topics Partial Update
POSTHOG_USER_INTERVIEW_TOPICS_PARTIAL_UPDATE
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
User Interview Topics Preview Invite Create
POSTHOG_USER_INTERVIEW_TOPICS_PREVIEW_INVITE_CREATE
Render the invite email exactly as a specific targeted interviewee would receive it — personalized subject and body — without sending anything and without creating or reading any share links. Pass `interviewee_identifier` to preview for a particular person, or omit it to preview for the first targeted interviewee. The body always shows an illustrative placeholder link (`is_preview_link: true`), never a live interview URL.
user_interview_topics
User Interview Topics Remove Interviewee Create
POSTHOG_USER_INTERVIEW_TOPICS_REMOVE_INTERVIEWEE_CREATE
Remove an interviewee from this topic. Drops the identifier from both `interviewee_emails` and `interviewee_distinct_ids`, and disables any active SharingConfiguration linked to an IntervieweeContext for that identifier on this topic so the removed person can no longer open their interview link. Idempotent — removing an identifier that isn't present is a no-op. Returns the updated topic.
user_interview_topics
User Interview Topics Retrieve
POSTHOG_USER_INTERVIEW_TOPICS_RETRIEVE
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
User Interview Topics Send Invites Create
POSTHOG_USER_INTERVIEW_TOPICS_SEND_INVITES_CREATE
Generate (if needed) and email a personalized public interview link to every targeted interviewee on this topic whose identifier is an email address. Distinct-ID-only interviewees are skipped and surfaced in the response. Each invite is keyed on the underlying SharingConfiguration so re-runs after token rotation produce a fresh send.
user_interview_topics
User Interview Topics Update
POSTHOG_USER_INTERVIEW_TOPICS_UPDATE
Planned user interview topics: who we want to target and what we want to ask about.
user_interview_topics
Vision Actions Create
POSTHOG_VISION_ACTIONS_CREATE
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
vision
Vision Actions Destroy
POSTHOG_VISION_ACTIONS_DESTROY
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
vision
Vision Actions List
POSTHOG_VISION_ACTIONS_LIST
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
vision
Vision Actions Partial Update
POSTHOG_VISION_ACTIONS_PARTIAL_UPDATE
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
vision
Vision Actions Retrieve
POSTHOG_VISION_ACTIONS_RETRIEVE
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
vision
Vision Actions Runs List
POSTHOG_VISION_ACTIONS_RUNS_LIST
Read-only run history for a single vision action (nested under /vision/actions/{action_id}/runs/).
vision
Vision Actions Runs Retrieve
POSTHOG_VISION_ACTIONS_RUNS_RETRIEVE
Read-only run history for a single vision action (nested under /vision/actions/{action_id}/runs/).
vision
Vision Observations Label Create
POSTHOG_VISION_OBSERVATIONS_LABEL_CREATE
Set or update the observation's shared label: whether the scanner scored the session correctly, plus optional feedback on what it got wrong. One label per observation, shared across the team; these labels feed prompt improvement. Requires session recording edit access.
vision
Vision Observations Label Destroy
POSTHOG_VISION_OBSERVATIONS_LABEL_DESTROY
Remove the observation's shared label. Requires session recording edit access.
vision
Vision Observations List
POSTHOG_VISION_OBSERVATIONS_LIST
Read-only access to a session's observations across every scanner the caller can read, for the replay-page dock.
vision
Vision Observations Retrieve
POSTHOG_VISION_OBSERVATIONS_RETRIEVE
Read-only access to a session's observations across every scanner the caller can read, for the replay-page dock.
vision
Vision Observations Retry Create
POSTHOG_VISION_OBSERVATIONS_RETRY_CREATE
Delete a failed observation and re-run its scanner on the same recording. Returns 202 with the workflow handle.
vision
Vision Scanners Create
POSTHOG_VISION_SCANNERS_CREATE
CRUD for Replay Vision scanners.
vision
Vision Scanners Creators Retrieve
POSTHOG_VISION_SCANNERS_CREATORS_RETRIEVE
Distinct creators across the team's scanners — feeds the `Created by` filter dropdown.
vision
Vision Scanners Destroy
POSTHOG_VISION_SCANNERS_DESTROY
CRUD for Replay Vision scanners.
vision
Vision Scanners Estimate Create
POSTHOG_VISION_SCANNERS_ESTIMATE_CREATE
Estimate the observation volume a proposed scanner would generate, for the pre-save cost preview.
vision
Vision Scanners List
POSTHOG_VISION_SCANNERS_LIST
CRUD for Replay Vision scanners.
vision
Vision Scanners Observations Label Create
POSTHOG_VISION_SCANNERS_OBSERVATIONS_LABEL_CREATE
Set or update the observation's shared label: whether the scanner scored the session correctly, plus optional feedback on what it got wrong. One label per observation, shared across the team; these labels feed prompt improvement. Requires session recording edit access.
vision
Vision Scanners Observations Label Destroy
POSTHOG_VISION_SCANNERS_OBSERVATIONS_LABEL_DESTROY
Remove the observation's shared label. Requires session recording edit access.
vision
Vision Scanners Observations List
POSTHOG_VISION_SCANNERS_OBSERVATIONS_LIST
Read-only access to observations produced by a scanner.
vision
Vision Scanners Observations Retrieve
POSTHOG_VISION_SCANNERS_OBSERVATIONS_RETRIEVE
Read-only access to observations produced by a scanner.
vision
Vision Scanners Observations Retry Create
POSTHOG_VISION_SCANNERS_OBSERVATIONS_RETRY_CREATE
Delete a failed observation and re-run its scanner on the same recording. Returns 202 with the workflow handle.
vision
Vision Scanners Observations Stats Retrieve
POSTHOG_VISION_SCANNERS_OBSERVATIONS_STATS_RETRIEVE
Aggregate counts and per-scanner-type distributions over the filtered observation set. Same filters as the list endpoint apply.
vision
Vision Scanners Observe Create
POSTHOG_VISION_SCANNERS_OBSERVE_CREATE
Apply this scanner to one specific session, on demand. Returns 202 with the workflow handle.
vision
Vision Scanners Partial Update
POSTHOG_VISION_SCANNERS_PARTIAL_UPDATE
CRUD for Replay Vision scanners.
vision
Vision Scanners Prompt Suggestions Apply Create
POSTHOG_VISION_SCANNERS_PROMPT_SUGGESTIONS_APPLY_CREATE
Apply this suggestion: write its prompt to the scanner (bumping the scanner version) and mark the suggestion applied. Only the current pending suggestion can be applied. Requires session recording edit access.
vision
Vision Scanners Prompt Suggestions Current Retrieve
POSTHOG_VISION_SCANNERS_PROMPT_SUGGESTIONS_CURRENT_RETRIEVE
The scanner's newest prompt suggestion plus whether it is stale (the ratings changed since it was generated) and how many rated observations are available.
vision
Vision Scanners Prompt Suggestions Dismiss Create
POSTHOG_VISION_SCANNERS_PROMPT_SUGGESTIONS_DISMISS_CREATE
Dismiss this suggestion without applying it. Only the current pending suggestion can be dismissed. Requires session recording edit access.
vision
Vision Scanners Prompt Suggestions Generate Create
POSTHOG_VISION_SCANNERS_PROMPT_SUGGESTIONS_GENERATE_CREATE
Generate a fresh prompt suggestion from the team's current ratings. The previous pending suggestion becomes history (superseded). Requires at least one rated observation and session recording edit access.
vision
Vision Scanners Prompt Suggestions List
POSTHOG_VISION_SCANNERS_PROMPT_SUGGESTIONS_LIST
AI prompt-rewrite suggestions for a scanner, generated from the team's thumbs up/down ratings.
vision
Vision Scanners Retrieve
POSTHOG_VISION_SCANNERS_RETRIEVE
CRUD for Replay Vision scanners.
vision
Vision Scanners Stats Retrieve
POSTHOG_VISION_SCANNERS_STATS_RETRIEVE
Team-wide scanner counts — independent of list filters, so the overview stays stable.
vision
Vision Scanners Suggest Tags Create
POSTHOG_VISION_SCANNERS_SUGGEST_TAGS_CREATE
Suggest classifier tags grounded in the scanner's own observations and the org's product data.
vision
Visual Review Repos Baselines Retrieve
POSTHOG_VISUAL_REVIEW_REPOS_BASELINES_RETRIEVE
Snapshots overview for a repo: every identifier with a current baseline (latest non-superseded master/main run per run_type), plus tolerate counts, active quarantine state, and a 30-day stability sparkline. Capped at 5000 entries — sets `truncated` and returns the most recently active when exceeded. Filtering / faceting / search are all done client-side; this endpoint takes no filter query params.
visual_review
Visual Review Repos Create
POSTHOG_VISUAL_REVIEW_REPOS_CREATE
Create a new repo.
visual_review
Visual Review Repos List
POSTHOG_VISUAL_REVIEW_REPOS_LIST
List all projects for the team.
visual_review
Visual Review Repos Partial Update
POSTHOG_VISUAL_REVIEW_REPOS_PARTIAL_UPDATE
Update a repo's settings.
visual_review
Visual Review Repos Quarantine Create
POSTHOG_VISUAL_REVIEW_REPOS_QUARANTINE_CREATE
Quarantine a snapshot identifier for a specific run type.
visual_review
Visual Review Repos Quarantine Expire Create
POSTHOG_VISUAL_REVIEW_REPOS_QUARANTINE_EXPIRE_CREATE
Expire all active quarantine entries for an identifier.
visual_review
Visual Review Repos Quarantine List
POSTHOG_VISUAL_REVIEW_REPOS_QUARANTINE_LIST
List quarantined identifiers. Without filter: active only. With identifier: full history.
visual_review
Visual Review Repos Retrieve
POSTHOG_VISUAL_REVIEW_REPOS_RETRIEVE
Get a repo by ID.
visual_review
Visual Review Repos Runs Counts Retrieve
POSTHOG_VISUAL_REVIEW_REPOS_RUNS_COUNTS_RETRIEVE
Review state counts for runs in this repo.
visual_review
Visual Review Repos Runs List
POSTHOG_VISUAL_REVIEW_REPOS_RUNS_LIST
List runs in this repo, optionally filtered by review state and free-text search.
visual_review
Visual Review Repos Snapshots List
POSTHOG_VISUAL_REVIEW_REPOS_SNAPSHOTS_LIST
Deduped baseline timeline for a snapshot identity. Newest first.
visual_review
Visual Review Repos Thumbnails Retrieve
POSTHOG_VISUAL_REVIEW_REPOS_THUMBNAILS_RETRIEVE
Serve a snapshot thumbnail by identifier. Returns WebP with ETag caching.
visual_review
Visual Review Runs Add Snapshots Create
POSTHOG_VISUAL_REVIEW_RUNS_ADD_SNAPSHOTS_CREATE
Add a batch of snapshots to a pending run (shard-based flow).
visual_review
Visual Review Runs Approve Create
POSTHOG_VISUAL_REVIEW_RUNS_APPROVE_CREATE
Mark snapshots reviewed (DB only). Records the per-snapshot "Accept change" decision. Does not commit the baseline or change the GitHub gate — call finalize to ship the run.
visual_review
Visual Review Runs Complete Create
POSTHOG_VISUAL_REVIEW_RUNS_COMPLETE_CREATE
Complete a run: detect removals, verify uploads, trigger diff processing.
visual_review
Visual Review Runs Counts Retrieve
POSTHOG_VISUAL_REVIEW_RUNS_COUNTS_RETRIEVE
Review state counts for the runs list.
visual_review
Visual Review Runs Create
POSTHOG_VISUAL_REVIEW_RUNS_CREATE
Create a new run from a CI manifest.
visual_review
Visual Review Runs Finalize Create
POSTHOG_VISUAL_REVIEW_RUNS_FINALIZE_CREATE
Finalize a fully-reviewed run: commit the approved baseline and green the gate. Commits exactly the snapshots approved in the DB (tolerated ones keep their baseline) and only succeeds once every changed/new snapshot is resolved. With approve_all=true, any still-pending changed/new snapshot is approved first. With commit_to_github=false the server returns the signed baseline YAML instead of committing it.
visual_review
Visual Review Runs List
POSTHOG_VISUAL_REVIEW_RUNS_LIST
List runs for the team, optionally filtered by review state, PR number, commit SHA, branch, or free-text search.
visual_review
Visual Review Runs Recompute Create
POSTHOG_VISUAL_REVIEW_RUNS_RECOMPUTE_CREATE
Re-evaluate quarantine and counts, update commit status, and optionally rerun the CI job.
visual_review
Visual Review Runs Retrieve
POSTHOG_VISUAL_REVIEW_RUNS_RETRIEVE
Get run status and summary.
visual_review
Visual Review Runs Snapshots List
POSTHOG_VISUAL_REVIEW_RUNS_SNAPSHOTS_LIST
Get a run's snapshots with diff results, excluding quarantined ones by default.
visual_review
Visual Review Runs Snapshot History List
POSTHOG_VISUAL_REVIEW_RUNS_SNAPSHOT_HISTORY_LIST
Recent change history for a snapshot identifier across runs.
visual_review
Visual Review Runs Tolerated Hashes List
POSTHOG_VISUAL_REVIEW_RUNS_TOLERATED_HASHES_LIST
List known tolerated hashes for a snapshot identifier.
visual_review
Visual Review Runs Tolerate Create
POSTHOG_VISUAL_REVIEW_RUNS_TOLERATE_CREATE
Mark a changed snapshot as a known tolerated alternate.
visual_review
Warehouse Column Annotations Create
POSTHOG_WAREHOUSE_COLUMN_ANNOTATIONS_CREATE
Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation.
warehouse_column_annotations
Warehouse Column Annotations Destroy
POSTHOG_WAREHOUSE_COLUMN_ANNOTATIONS_DESTROY
Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation.
warehouse_column_annotations
Warehouse Column Annotations List
POSTHOG_WAREHOUSE_COLUMN_ANNOTATIONS_LIST
Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation.
warehouse_column_annotations
Warehouse Column Annotations Partial Update
POSTHOG_WAREHOUSE_COLUMN_ANNOTATIONS_PARTIAL_UPDATE
Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation.
warehouse_column_annotations
Warehouse Column Annotations Retrieve
POSTHOG_WAREHOUSE_COLUMN_ANNOTATIONS_RETRIEVE
Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation.
warehouse_column_annotations
Warehouse Column Annotations Update
POSTHOG_WAREHOUSE_COLUMN_ANNOTATIONS_UPDATE
Read and edit semantic descriptions of warehouse tables and columns surfaced to the AI agent. List can be filtered to one table with `?table_id=<uuid>`. Any create or update is treated as a user edit (`is_user_edited=True`), which protects the row from being overwritten by automatic enrichment. Create upserts on `(table, column_name)`; the table cannot be changed after creation.
warehouse_column_annotations
Warehouse Column Statistics List
POSTHOG_WAREHOUSE_COLUMN_STATISTICS_LIST
Read per-column data statistics (null fraction, min/max, row count) for warehouse tables. Statistics are computed automatically after a sync and surfaced to the AI agent so it can write better queries. They are system-owned and read-only here. List can be filtered to one table with `?table_id=<uuid>`.
warehouse_column_statistics
Warehouse Column Statistics Retrieve
POSTHOG_WAREHOUSE_COLUMN_STATISTICS_RETRIEVE
Read per-column data statistics (null fraction, min/max, row count) for warehouse tables. Statistics are computed automatically after a sync and surfaced to the AI agent so it can write better queries. They are system-owned and read-only here. List can be filtered to one table with `?table_id=<uuid>`.
warehouse_column_statistics
Warehouse Dag List
POSTHOG_WAREHOUSE_DAG_LIST
Return this team's DAG as a set of edges and nodes
warehouse_dag
Warehouse Model Paths List
POSTHOG_WAREHOUSE_MODEL_PATHS_LIST
Warehouse Model Paths List
warehouse_model_paths
Warehouse Model Paths Retrieve
POSTHOG_WAREHOUSE_MODEL_PATHS_RETRIEVE
Warehouse Model Paths Retrieve
warehouse_model_paths
Warehouse Saved Queries Activity Retrieve
POSTHOG_WAREHOUSE_SAVED_QUERIES_ACTIVITY_RETRIEVE
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Warehouse Saved Queries Ancestors Create
POSTHOG_WAREHOUSE_SAVED_QUERIES_ANCESTORS_CREATE
Return the ancestors of this saved query. By default, we return the immediate parents. The `level` parameter can be used to look further back into the ancestor tree. If `level` overshoots (i.e. points to only ancestors beyond the root), we return an empty list.
warehouse_saved_queries
Warehouse Saved Queries Cancel Create
POSTHOG_WAREHOUSE_SAVED_QUERIES_CANCEL_CREATE
Cancel a running saved query workflow.
warehouse_saved_queries
Warehouse Saved Queries Create
POSTHOG_WAREHOUSE_SAVED_QUERIES_CREATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Warehouse Saved Queries Dependencies Retrieve
POSTHOG_WAREHOUSE_SAVED_QUERIES_DEPENDENCIES_RETRIEVE
Return the count of immediate upstream and downstream dependencies for this saved query.
warehouse_saved_queries
Warehouse Saved Queries Descendants Create
POSTHOG_WAREHOUSE_SAVED_QUERIES_DESCENDANTS_CREATE
Return the descendants of this saved query. By default, we return the immediate children. The `level` parameter can be used to look further ahead into the descendants tree. If `level` overshoots (i.e. points to only descendants further than a leaf), we return an empty list.
warehouse_saved_queries
Warehouse Saved Queries Destroy
POSTHOG_WAREHOUSE_SAVED_QUERIES_DESTROY
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Warehouse Saved Queries List
POSTHOG_WAREHOUSE_SAVED_QUERIES_LIST
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Warehouse Saved Queries Materialize Create
POSTHOG_WAREHOUSE_SAVED_QUERIES_MATERIALIZE_CREATE
Enable materialization for this saved query with a 24-hour sync frequency.
warehouse_saved_queries
Warehouse Saved Queries Partial Update
POSTHOG_WAREHOUSE_SAVED_QUERIES_PARTIAL_UPDATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Warehouse Saved Queries Resume Schedules Create
POSTHOG_WAREHOUSE_SAVED_QUERIES_RESUME_SCHEDULES_CREATE
Resume paused materialization schedules for multiple matviews. Accepts a list of view IDs in the request body: {"view_ids": ["id1", "id2", ...]} This endpoint is idempotent - calling it on already running or non-existent schedules is safe.
warehouse_saved_queries
Warehouse Saved Queries Retrieve
POSTHOG_WAREHOUSE_SAVED_QUERIES_RETRIEVE
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Warehouse Saved Queries Revert Materialization Create
POSTHOG_WAREHOUSE_SAVED_QUERIES_REVERT_MATERIALIZATION_CREATE
Undo materialization, revert back to the original view. (i.e. delete the materialized table and the schedule)
warehouse_saved_queries
Warehouse Saved Queries Run Create
POSTHOG_WAREHOUSE_SAVED_QUERIES_RUN_CREATE
Run this saved query.
warehouse_saved_queries
Warehouse Saved Queries Run History Retrieve
POSTHOG_WAREHOUSE_SAVED_QUERIES_RUN_HISTORY_RETRIEVE
Return the recent run history (up to 5 most recent) for this materialized view.
warehouse_saved_queries
Warehouse Saved Queries Update
POSTHOG_WAREHOUSE_SAVED_QUERIES_UPDATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_saved_queries
Warehouse Saved Query Folders Create
POSTHOG_WAREHOUSE_SAVED_QUERY_FOLDERS_CREATE
Warehouse Saved Query Folders Create
warehouse_saved_query_folders
Warehouse Saved Query Folders Destroy
POSTHOG_WAREHOUSE_SAVED_QUERY_FOLDERS_DESTROY
Warehouse Saved Query Folders Destroy
warehouse_saved_query_folders
Warehouse Saved Query Folders List
POSTHOG_WAREHOUSE_SAVED_QUERY_FOLDERS_LIST
Warehouse Saved Query Folders List
warehouse_saved_query_folders
Warehouse Saved Query Folders Partial Update
POSTHOG_WAREHOUSE_SAVED_QUERY_FOLDERS_PARTIAL_UPDATE
Warehouse Saved Query Folders Partial Update
warehouse_saved_query_folders
Warehouse Saved Query Folders Retrieve
POSTHOG_WAREHOUSE_SAVED_QUERY_FOLDERS_RETRIEVE
Warehouse Saved Query Folders Retrieve
warehouse_saved_query_folders
Warehouse Tables Create
POSTHOG_WAREHOUSE_TABLES_CREATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Warehouse Tables Destroy
POSTHOG_WAREHOUSE_TABLES_DESTROY
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Warehouse Tables File Create
POSTHOG_WAREHOUSE_TABLES_FILE_CREATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Warehouse Tables List
POSTHOG_WAREHOUSE_TABLES_LIST
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Warehouse Tables Partial Update
POSTHOG_WAREHOUSE_TABLES_PARTIAL_UPDATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Refresh table schema from source
POSTHOG_WAREHOUSE_TABLES_REFRESH_SCHEMA_CREATE
Re-introspect a self-managed (manually linked) warehouse table's schema from its underlying source files and overwrite its stored column list. Use when the source schema has evolved (e.g. new columns in the underlying Delta/Parquet/CSV files) but queries still can't see the new columns, because PostHog serves a cached column snapshot until the table is refreshed. Not for tables managed by an external data source sync — those refresh on their own schedule.
warehouse_tables
Warehouse Tables Retrieve
POSTHOG_WAREHOUSE_TABLES_RETRIEVE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Warehouse Tables Update
POSTHOG_WAREHOUSE_TABLES_UPDATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Warehouse Tables Update Schema Create
POSTHOG_WAREHOUSE_TABLES_UPDATE_SCHEMA_CREATE
Create, Read, Update and Delete Warehouse Tables.
warehouse_tables
Acknowledge an achievement celebration
POSTHOG_WEB_ANALYTICS_ACHIEVEMENTS_ACKNOWLEDGE_CELEBRATION
Clears a pending celebration for the given track and stage once the client has shown it, so it isn't celebrated again. Idempotent.
web_analytics_achievements
Get Web analytics achievements overview
POSTHOG_WEB_ANALYTICS_ACHIEVEMENTS_OVERVIEW
Returns the achievement track definitions (thresholds resolved for the requesting user's streak-cadence arm), the user's and team's progress, and any newly unlocked stages awaiting an in-session celebration.
web_analytics_achievements
Get Web analytics achievements preferences
POSTHOG_WEB_ANALYTICS_ACHIEVEMENTS_PREFERENCES
Returns the requesting user's per-project Web analytics achievements preferences.
web_analytics_achievements
Record a Web analytics interaction
POSTHOG_WEB_ANALYTICS_ACHIEVEMENTS_RECORD_INTERACTION
Idempotently increments the requesting user's first-party counter for an in-product Web analytics interaction (slicing data, or opening a session recording), which drives the Explorer and Detective achievement tracks.
web_analytics_achievements
Record a Web analytics visit
POSTHOG_WEB_ANALYTICS_ACHIEVEMENTS_RECORD_VISIT
Idempotently records that the requesting user opened Web analytics today (team-local date) and schedules a debounced achievement recompute. Intended to be called once per session.
web_analytics_achievements
Update Web analytics achievements preferences
POSTHOG_WEB_ANALYTICS_ACHIEVEMENTS_UPDATE_PREFERENCES
Sets the requesting user's per-project Web analytics achievements preferences.
web_analytics_achievements
Weekly web analytics recap
POSTHOG_WEB_ANALYTICS_RECAP
The 'Wrapped'-style weekly recap: everything in the weekly digest (visitors, pageviews, sessions, bounce rate, average session duration with period-over-period comparisons, top pages, top sources, and goals) plus a single derived weekly persona and a short list of screenshot-worthy highlights for the period.
web_analyticsweb_analytics
Summarize web analytics
POSTHOG_WEB_ANALYTICS_WEEKLY_DIGEST
Summarizes a project's web analytics over a lookback window (default 7 days): unique visitors, pageviews, sessions, bounce rate, and average session duration with period-over-period comparisons, plus the top 5 pages, top 5 traffic sources, and goal conversions.
web_analyticsweb_analytics
Web Experiments Create
POSTHOG_WEB_EXPERIMENTS_CREATE
Web Experiments Create
web_experiments
Web Experiments Destroy
POSTHOG_WEB_EXPERIMENTS_DESTROY
Web Experiments Destroy
web_experiments
Web Experiments List
POSTHOG_WEB_EXPERIMENTS_LIST
Web Experiments List
web_experiments
Web Experiments Partial Update
POSTHOG_WEB_EXPERIMENTS_PARTIAL_UPDATE
Web Experiments Partial Update
web_experiments
Web Experiments Retrieve
POSTHOG_WEB_EXPERIMENTS_RETRIEVE
Web Experiments Retrieve
web_experiments
Web Experiments Update
POSTHOG_WEB_EXPERIMENTS_UPDATE
Web Experiments Update
web_experiments
Web Vitals Retrieve
POSTHOG_WEB_VITALS_RETRIEVE
Get web vitals for a specific pathname. Toolbar accesses this via OAuth (handled by TeamAndOrgViewSetMixin.get_authenticators).
web_vitals
Welcome Current Retrieve
POSTHOG_WELCOME_CURRENT_RETRIEVE
Aggregated payload for the invited-user welcome screen.
organizationswelcome
Wizard Sessions Create
POSTHOG_WIZARD_SESSIONS_CREATE
Upsert a wizard session. The `session_id` key is the idempotency anchor — reposting the same `session_id` replaces the existing row. Returns 201 on create, 200 on update.
wizard
Wizard Sessions Latest Retrieve
POSTHOG_WIZARD_SESSIONS_LATEST_RETRIEVE
Return the single most-recent wizard session for a workflow (and optional skill), or 204 if none exists. Unlike `list`, this is a point lookup the app shell uses to decide whether to open the live SSE stream — it never returns a collection, and 'no run' is a 204 rather than a 404 so clients don't conflate it with a missing endpoint.
wizard
Wizard Sessions List
POSTHOG_WIZARD_SESSIONS_LIST
List wizard sessions for the project, ordered by started_at desc. This should only be called by the PostHog Wizard. Optional filters: ?workflow_id=<id> and ?skill_id=<id>.
wizard
Wizard Sessions Retrieve
POSTHOG_WIZARD_SESSIONS_RETRIEVE
Retrieve a single wizard session by its session_id.
wizard
Wizard Sessions Stream Retrieve
POSTHOG_WIZARD_SESSIONS_STREAM_RETRIEVE
Server-Sent Events stream of wizard session updates for a (workflow_id, skill_id) pair. On connect, the current latest session (if any) is emitted as the first event; subsequent upserts are streamed in real time. The server closes the connection after 900 seconds with an `event: end` line so the client (EventSource) can reconnect. **SDK consumers**: do not call the generated fetch wrapper for this path — it will buffer the entire infinite stream. Use the URL builder (`getWizardSessionsStreamRetrieveUrl`) with the browser's `EventSource` API instead.
wizard
FAQ

PostHog integration, answered

How do AI agents use PostHog through Open Connector?
Your user connects PostHog once with one of its cataloged authentication methods. Open Connector stores the credential in an encrypted vault and exposes PostHog tools to your agent over MCP or a typed API, with credentials injected server-side on each call.
Is this a PostHog MCP server?
Yes. Open Connector can serve PostHog as a named MCP server with a scoped allowlist and a per-user connection URL, so any MCP client can call PostHog actions with credentials injected server-side.
Where do PostHog credentials live?
In your own infrastructure. Open Connector keeps credentials in its own vault and injects them at call time, so they never leave your environment.

Give your agents PostHog — keep the keys.

Open source, self-hostable, with PostHog credentials that never leave your infrastructure. Run it from source today.