:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(api): declare servers in the OpenAPI schema (#90398)
Rafael Audibert41896476c7ba
diff --git a/posthog/settings/web.py b/posthog/settings/web.pyindex 3c07d45213dc..44c8de01bef1 100644--- a/posthog/settings/web.py+++ b/posthog/settings/web.py@@ -516,6 +516,10 @@ if DEBUG:SPECTACULAR_SETTINGS = {"OAS_VERSION": "3.1.0",+ "SERVERS": [+ {"url": "https://us.posthog.com", "description": "PostHog Cloud US"},+ {"url": "https://eu.posthog.com", "description": "PostHog Cloud EU"},+ ],"AUTHENTICATION_WHITELIST": ["posthog.auth.PersonalAPIKeyAuthentication"],"GET_MOCK_REQUEST": "posthog.api.documentation.build_openapi_mock_request","PREPROCESSING_HOOKS": ["posthog.api.documentation.preprocess_exclude_path_format"],