Custom API endpoints powered by your PostHog data
Use them to build embedded analytics, data feeds, and more – no backend required. Endpoints are how your product's context flows out to the agents and tools that make it self-driving.
Install with AI in a single prompt
Paste into your terminal or code editor and make AI do the work.
What does it do?
Endpoints turns any saved insight or SQL query into a stable, authenticated HTTP URL. You define the query once in PostHog – filters, breakdowns, variables, and all – and your app, agent, or internal tool fetches the results over HTTP. No custom analytics backend, no CSV exports on Monday, no Query API spaghetti. Versioning, caching, materialization, and an OpenAPI spec come with it.
Who is it for?
Endpoints is used across teams depending on your role.
How do I use it?
There are a few ways to explore Endpoints.
Manage endpoints from your editor
Create, run, version, and debug endpoints from Claude Code, Cursor, or any MCP-compatible agent.
Top features
Build your own dashboards
Use your PostHog data to power dashboards outside the PostHog UI.
AI prompts
Ask PostHog AI to create, run, debug, and materialize endpoints. Works in PostHog AI (in-app chat), PostHog Desktop (our AI code editor), and in your product editor (using the MCP). Already signed in? Click a prompt to try it.