Troubleshooting

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:read scope
  • Ensure you're including the Authorization header 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

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.

Community questions

Was this page useful?

Questions about this page? or post a community question.