Troubleshooting
Contents
Endpoint not found
If you get a 404 error:
- Verify the endpoint name is correct
- Check that the endpoint exists in your team and is active
- Ensure you're using the correct team ID
Authentication errors
If you get authentication errors:
- Verify your personal API key is correct
- Check that your API key has the necessary
endpoint:readscope - Ensure you're including the
Authorizationheader in your requests
Slow responses
If endpoints are slow:
- Look at the endpoints usage tab with the filter for the slow endpoint
- Check if the underlying query is optimized
- Consider materializing your endpoint
- Review the query performance in the query log
Further reading
- Endpoints overview - Learn what endpoints are and when to use them
- Getting started - Create your first endpoint
- API reference - Complete API documentation
- API queries - Learn about standard API queries
- SQL documentation - Write SQL queries for your endpoints
- Insights - Create insights to use as endpoints
PostHog is an all-in-one developer platform for building successful products. We provide product analytics, web analytics, session replay, error tracking, feature flags, experiments, surveys, LLM analytics, data warehouse, CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.