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.
Createendpoint-create
Listendpoints-get-all
Testendpoint-run
Debugendpoint-logs
Materializeendpoint-materialization-suggestion
Versionsendpoint-versions
OpenAPIendpoint-openapi-spec
Feature comparison
Questions?
Answers
There are a few ways you can get answers to specific questions about Endpoints.
- Check the docs
We have an entire docs-wizard dedicated to docs gardening.
- Search the community forums
20 discussions about Endpoints, there's a good chance your answer is already answered!
- Ask PostHog AI
It's an incredibly useful AI chat that understands the product, docs, community questions, our codebase, GitHub issues, and industry knowledge.
- Talk to a human
Dedicated humans are standing by and ready to assist. Best for questions about volume pricing, terms, and sexy legal stuff.
Works with other PostHog tools
Use Endpoints with these other PostHog apps to maximize shareholder value.
Works with...
Product Analytics
Create insights in PostHog and expose their results through endpoints. Use trends, funnels, or retention analyses to power dashboards, feeds, or summaries in your application, without rebuilding the query elsewhere.
Managed warehouse
Combine product analytics data with other datasets using SQL in PostHog's data warehouse. Expose the results through endpoints when you need more control over how data is shaped or joined.