: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
from posthog.api.routing import RouterRegistry
from products.conversations.backend.api import (
AIContextAccountPropertiesViewSet,
AIReplyPlaybookViewSet,
SigningSecretViewSet,
TicketMacroViewSet,
TicketViewSet,
TicketViewViewSet,
ZendeskImportViewSet,
)
def register_routes(routers: RouterRegistry) -> None:
routers.projects.register(
r"conversations/tickets",
TicketViewSet,
"project_conversations_tickets",
["team_id"],
)
routers.projects.register(
r"conversations/zendesk_imports",
ZendeskImportViewSet,
"project_conversations_zendesk_imports",
["team_id"],
)
# Dual-route surface preserved for existing clients (project + environment).
routers.projects.register(
r"conversations/views",
TicketViewViewSet,
"project_conversations_views",
["team_id"],
)
routers.projects.register(
r"conversations/macros",
TicketMacroViewSet,
"project_conversations_macros",
["team_id"],
)
routers.projects.register(
r"conversations/ai_reply_playbook",
AIReplyPlaybookViewSet,
"project_conversations_ai_reply_playbook",
["team_id"],
)
routers.projects.register(
r"conversations/ai_context_account_properties",
AIContextAccountPropertiesViewSet,
"project_conversations_ai_context_account_properties",
["team_id"],
)
routers.projects.register(
r"conversations/signing_secret",
SigningSecretViewSet,
"project_conversations_signing_secret",
["team_id"],
)