Custom API endpoints powered by your PostHog data
"Create an endpoint from this SQL query"
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?
How do I use it?
Manage endpoints from your editor
Create, run, version, and debug endpoints from Claude Code, Codex, Grok Build, or any MCP-compatible agent.
Key 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
Wizard & Docs Team
Wizard & Docs Team dedicated to docs gardening.
- Search the community forums
22 discussions about Endpoints, there's a good chance your question 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.
Recent discussions
Works with other PostHog tools
Use Endpoints with these other PostHog apps to maximize shareholder value.
- Product AnalyticsCreate 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.
- WarehouseCombine 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.






