{
  "services": [
    {
      "id": "svc-formbricks-app",
      "name": "Formbricks Web/API App",
      "kind": "web",
      "framework": "next",
      "entrypoint": "app/page.tsx",
      "evidence": [
        {
          "file": "app/page.tsx",
          "note": "Next.js app root"
        },
        {
          "file": "app/health/route.ts",
          "note": "Next.js API route in same app"
        },
        {
          "file": "app/(app)/workspaces/page.tsx",
          "note": "app-shell page"
        }
      ]
    }
  ],
  "routes": [
    {
      "id": "route-redirect-environments-path",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/environments/[environmentId]/[...path]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(redirects)/environments/[environmentId]/[...path]/route.ts",
          "lines": "1-24",
          "note": "session check, workspace lookup, redirect"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-redirect-environments",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/environments/[environmentId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(redirects)/environments/[environmentId]/route.ts",
          "note": "sibling redirect route, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-legacy-org-settings",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/legacy-organization-settings/[workspaceId]/[[...path]]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/(redirects)/legacy-organization-settings/[workspaceId]/[[...path]]/route.ts",
          "note": "back-compat redirect shim"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-redirect-organizations",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/organizations/[organizationId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(redirects)/organizations/[organizationId]/route.ts",
          "note": "membership+workspaces lookup then redirect"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-oauth-authz-server-metadata",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/.well-known/oauth-authorization-server/[[...issuer]]",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/.well-known/oauth-authorization-server/[[...issuer]]/route.ts",
          "note": "static metadata via better-auth oauth-provider"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-oauth-protected-resource-metadata",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/.well-known/oauth-protected-resource/[[...resource]]",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/.well-known/oauth-protected-resource/[[...resource]]/route.ts",
          "note": "static JSON metadata"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-openid-configuration",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/.well-known/openid-configuration/[[...issuer]]",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/.well-known/openid-configuration/[[...issuer]]/route.ts",
          "note": "static metadata via better-auth"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-envoy-auth",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/envoy-auth/[...path]",
      "kind": "middleware",
      "auth": "unknown",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/(internal)/envoy-auth/[...path]/route.ts",
          "note": "delegates to authorizeEnvoyRequest, internals not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-traefik-auth",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/traefik-auth/[...path]",
      "kind": "middleware",
      "auth": "unknown",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/(internal)/traefik-auth/[...path]/route.ts",
          "note": "internal auth-gateway route, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-unify-feedback-csv-import",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/unify-feedback/sources/csv/import",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-hub-api"
      ],
      "work": "long-running",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "lib/feedback-source/csv-file-import.ts",
          "note": "parses up to 15MB CSV, batches to Hub API"
        }
      ],
      "confidence": "medium"
    },
    {
      "id": "route-auth-catchall",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/auth/[...all]",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/auth/[...all]/route.ts",
          "note": "Better Auth handler, DB-backed sessions"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-saml-authorize",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/auth/saml/authorize",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [
        "ext-saml-jackson"
      ],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/auth/saml/authorize/route.ts",
          "note": "SAML bridge, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-saml-callback",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/auth/saml/callback",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-saml-jackson"
      ],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/auth/saml/callback/route.ts",
          "note": "IdP callback, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-saml-token",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/auth/saml/token",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [
        "ext-saml-jackson"
      ],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/auth/saml/token/route.ts",
          "note": "SAML token exchange, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-saml-userinfo",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/auth/saml/userinfo",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [
        "ext-saml-jackson"
      ],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/auth/saml/userinfo/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-sso-recovery-complete",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/auth/sso/recovery/complete",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/auth/sso/recovery/complete/route.ts",
          "note": "content not shown; related to SSO recovery JWT flow"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-stripe-webhook",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/billing/stripe-webhook",
      "kind": "webhook",
      "auth": "unknown",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-stripe"
      ],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/billing/stripe-webhook/route.ts",
          "note": "re-exports POST from modules/ee/billing/api/route.ts (not shown)"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-google-sheet-callback",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/google-sheet/callback",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-google-sheets"
      ],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/google-sheet/callback/route.ts",
          "lines": "1-150",
          "note": "OAuth token exchange, integration upsert"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-google-sheet-init",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/google-sheet",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/google-sheet/route.ts",
          "note": "OAuth init redirect, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-mcp",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/mcp",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "cpu",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/mcp/route.ts",
          "note": "body-size guard, delegates to handleAuthenticatedMcpRequest"
        }
      ],
      "confidence": "medium"
    },
    {
      "id": "route-v1-client-display-response",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/client/[workspaceId]/displays/[displayId]/response",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/v1/client/[workspaceId]/displays/[displayId]/response/route.ts",
          "note": "public survey-widget point lookup"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-v1-client-displays",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v1/client/[workspaceId]/displays",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/v1/client/[workspaceId]/displays/route.ts",
          "note": "widget display create, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-client-environment",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/client/[workspaceId]/environment",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/v1/client/[workspaceId]/environment/route.ts",
          "note": "SDK bootstrap, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-client-response-update",
      "serviceId": "svc-formbricks-app",
      "method": "PUT",
      "path": "/api/v1/client/[workspaceId]/responses/[responseId]",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/v1/client/[workspaceId]/responses/[responseId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-client-responses",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v1/client/[workspaceId]/responses",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-hub-api"
      ],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/v1/client/[workspaceId]/responses/route.ts",
          "note": "content not shown"
        },
        {
          "file": "lib/feedback-source/pipeline-handler.ts",
          "note": "triggered pipeline sends to Hub on response create, per doc comment"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-client-storage",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v1/client/[workspaceId]/storage",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-object-storage"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/client/[workspaceId]/storage/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-client-user",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/client/[workspaceId]/user",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/client/[workspaceId]/user/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-integrations-airtable-callback",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/integrations/airtable/callback",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v1/integrations/airtable/callback/route.ts",
          "note": "OAuth callback, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-integrations-airtable",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/integrations/airtable",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v1/integrations/airtable/route.ts",
          "note": "OAuth init, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-integrations-airtable-tables",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/integrations/airtable/tables",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v1/integrations/airtable/tables/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-integrations-notion-callback",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/integrations/notion/callback",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v1/integrations/notion/callback/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-integrations-notion",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/integrations/notion",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v1/integrations/notion/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-integrations-slack-callback",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/integrations/slack/callback",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v1/integrations/slack/callback/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-integrations-slack",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/integrations/slack",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v1/integrations/slack/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-action-class-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/action-classes/[actionClassId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "lib/actionClass/service.ts",
          "lines": "68-95",
          "note": "getActionClass/deleteActionClass used by API"
        }
      ],
      "confidence": "medium"
    },
    {
      "id": "route-v1-mgmt-action-classes",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/action-classes",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "lib/actionClass/service.ts",
          "lines": "26-45",
          "note": "getActionClasses list, paginated"
        }
      ],
      "confidence": "medium"
    },
    {
      "id": "route-v1-mgmt-contact-attr-key-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/contact-attribute-keys/[contactAttributeKeyId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/contact-attribute-keys/[contactAttributeKeyId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-contact-attr-keys",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/contact-attribute-keys",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/contact-attribute-keys/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-contact-attrs",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/contact-attributes",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/contact-attributes/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-contact-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/contacts/[contactId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/contacts/[contactId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-contacts",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/contacts",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/contacts/route.ts",
          "note": "content not shown; watch for unbounded list"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-me",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/management/me",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/me/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-response-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/responses/[responseId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/responses/[responseId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-responses",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/responses",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/responses/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-storage",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v1/management/storage",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-object-storage"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/storage/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-survey-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/surveys/[surveyId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/surveys/[surveyId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-survey-single-use-ids",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v1/management/surveys/[surveyId]/singleUseIds",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v1/management/surveys/[surveyId]/singleUseIds/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-mgmt-surveys",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/management/surveys",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v1/management/surveys/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-webhooks-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/webhooks/[webhookId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v1/webhooks/[webhookId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v1-webhooks",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v1/webhooks",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v1/webhooks/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-client-displays",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v2/client/[workspaceId]/displays",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/v2/client/[workspaceId]/displays/route.ts",
          "lines": "1-95",
          "note": "resolves workspace/env id, creates display"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-v2-client-environment",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/client/[workspaceId]/environment",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/v2/client/[workspaceId]/environment/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-client-response-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/client/[workspaceId]/responses/[responseId]",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/v2/client/[workspaceId]/responses/[responseId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-client-responses",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v2/client/[workspaceId]/responses",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-hub-api"
      ],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/api/v2/client/[workspaceId]/responses/route.ts",
          "note": "content not shown"
        },
        {
          "file": "lib/feedback-source/pipeline-handler.ts",
          "note": "feedbackSource pipeline fires on response create"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-client-storage",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/client/[workspaceId]/storage",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-object-storage"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v2/client/[workspaceId]/storage/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-client-user",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/client/[workspaceId]/user",
      "kind": "api",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v2/client/[workspaceId]/user/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-health",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/health",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v2/health/route.ts",
          "note": "content not shown, mirrors /health"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-mgmt-contact-attr-key-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/management/contact-attribute-keys/[contactAttributeKeyId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v2/management/contact-attribute-keys/[contactAttributeKeyId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-mgmt-contact-attr-keys",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/management/contact-attribute-keys",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v2/management/contact-attribute-keys/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-mgmt-contacts-bulk",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/management/contacts/bulk",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "cpu",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v2/management/contacts/bulk/route.ts",
          "note": "bulk write, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-mgmt-contacts",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/management/contacts",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v2/management/contacts/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-mgmt-response-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/management/responses/[responseId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v2/management/responses/[responseId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-mgmt-responses",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/management/responses",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v2/management/responses/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-mgmt-contact-links-contacts",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/management/surveys/[surveyId]/contact-links/contacts/[contactId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v2/management/surveys/[surveyId]/contact-links/contacts/[contactId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-mgmt-contact-links-segments",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/management/surveys/[surveyId]/contact-links/segments/[segmentId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v2/management/surveys/[surveyId]/contact-links/segments/[segmentId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-mgmt-webhook-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/management/webhooks/[webhookId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v2/management/webhooks/[webhookId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-mgmt-webhooks",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/management/webhooks",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v2/management/webhooks/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-me",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/me",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v2/me/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-org-team-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/organizations/[organizationId]/teams/[teamId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v2/organizations/[organizationId]/teams/[teamId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-org-teams",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/organizations/[organizationId]/teams",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v2/organizations/[organizationId]/teams/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-org-users",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/organizations/[organizationId]/users",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v2/organizations/[organizationId]/users/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-org-workspace-teams",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/organizations/[organizationId]/workspace-teams",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v2/organizations/[organizationId]/workspace-teams/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v2-roles",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v2/roles",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v2/roles/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v3-action-classes",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v3/action-classes",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v3/action-classes/route.ts",
          "note": "withV3ApiWrapper, session or api-key auth"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-v3-contact-attr-keys",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/api/v3/contact-attribute-keys",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v3/contact-attribute-keys/route.ts",
          "note": "content not shown, mirrors v3 action-classes pattern"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v3-feedback-records-token",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v3/feedbackRecords/token",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v3/feedbackRecords/token/route.ts",
          "note": "likely mints Hub access token, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v3-gateway-token",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v3/gateway/token",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v3/gateway/token/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v3-survey-item",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v3/surveys/[surveyId]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v3/surveys/[surveyId]/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v3-surveys-generate",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v3/surveys/generate",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-llm-provider"
      ],
      "work": "llm",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v3/surveys/generate/route.ts",
          "note": "AI survey generation inferred from naming; content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v3-surveys",
      "serviceId": "svc-formbricks-app",
      "method": "ALL",
      "path": "/api/v3/surveys",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v3/surveys/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v3-surveys-templates",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v3/surveys/templates",
      "kind": "api",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/api/v3/surveys/templates/route.ts",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-v3-surveys-validate",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "/api/v3/surveys/validate",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "cpu",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/api/v3/surveys/validate/route.ts",
          "note": "schema validation, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "route-health",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/health",
      "kind": "api",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/health/route.ts",
          "note": "static OK JSON"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-storage-file",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/storage/[workspaceId]/[accessType]/[...filePath]",
      "kind": "api",
      "auth": "unknown",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/storage/[workspaceId]/[accessType]/[...filePath]/route.ts",
          "lines": "1-70",
          "note": "public assets unauth, private assets require auth"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "route-storage-file-delete",
      "serviceId": "svc-formbricks-app",
      "method": "DELETE",
      "path": "/storage/[workspaceId]/[accessType]/[...filePath]",
      "kind": "api",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-object-storage"
        }
      ],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/storage/[workspaceId]/[accessType]/[...filePath]/route.ts",
          "lines": "72-165",
          "note": "rate-limited delete + audit log"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "page-p-slug",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/p/[slug]",
      "kind": "page",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/p/[slug]/page.tsx",
          "note": "pretty-url survey lookup then redirect"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "page-s-surveyid",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/s/[surveyId]",
      "kind": "page",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/s/[surveyId]/page.tsx",
          "note": "delegates to modules/survey/link/page (not shown)"
        }
      ],
      "confidence": "medium"
    },
    {
      "id": "page-home",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/",
      "kind": "page",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/page.tsx",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-c-jwt",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/c/[jwt]",
      "kind": "page",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/c/[jwt]/page.tsx",
          "note": "contact/personal survey link, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-auth-login",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/auth/login",
      "kind": "page",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/(auth)/auth/login/page.tsx",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-auth-signup",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/auth/signup",
      "kind": "page",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "app/(auth)/auth/signup/page.tsx",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-invite",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/invite",
      "kind": "page",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(auth)/invite/page.tsx",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-setup",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/setup",
      "kind": "page",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/setup/page.tsx",
          "note": "fresh-instance wizard, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-workspaces",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/workspaces",
      "kind": "page",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(app)/workspaces/page.tsx",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-workspace-home",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/workspaces/[workspaceId]",
      "kind": "page",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "aggregate"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(app)/workspaces/[workspaceId]/page.tsx",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-survey-editor",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/workspaces/[workspaceId]/surveys/[surveyId]/edit",
      "kind": "page",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(app)/(survey-editor)/workspaces/[workspaceId]/surveys/[surveyId]/edit/page.tsx",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-survey-responses",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/workspaces/[workspaceId]/surveys/[surveyId]/responses",
      "kind": "page",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "list"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(app)/workspaces/[workspaceId]/surveys/[surveyId]/(analysis)/responses/page.tsx",
          "note": "content not shown; watch for unbounded response list"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-workspace-new-ai",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/organizations/[organizationId]/workspaces/new/ai",
      "kind": "page",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [
        "ext-llm-provider"
      ],
      "work": "llm",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(app)/(onboarding)/organizations/[organizationId]/workspaces/new/ai/page.tsx",
          "note": "AI-assisted onboarding, content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-org-settings-billing",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/organizations/[organizationId]/settings/billing",
      "kind": "page",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [
        "ext-stripe"
      ],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/(app)/organizations/[organizationId]/settings/billing/page.tsx",
          "note": "content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "page-unify-feedback-records",
      "serviceId": "svc-formbricks-app",
      "method": "GET",
      "path": "/workspaces/[workspaceId]/unify/feedback-records",
      "kind": "page",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "search"
        }
      ],
      "writes": [],
      "externalCallIds": [
        "ext-hub-api"
      ],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(app)/workspaces/[workspaceId]/unify/feedback-records/page.tsx",
          "note": "feeds from Hub via lib/hub service; content not shown"
        }
      ],
      "confidence": "low"
    },
    {
      "id": "action-revoke-oauth-consent",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "app/(app)/account/settings/authorized-apps/actions.ts#revokeOAuthConsentAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/(app)/account/settings/authorized-apps/actions.ts",
          "note": "Better Auth deleteOAuthConsent"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-create-workspace",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "app/(app)/workspaces/[workspaceId]/actions.ts#createWorkspaceAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "aggregate"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-posthog"
      ],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "app/(app)/workspaces/[workspaceId]/actions.ts",
          "lines": "27-93",
          "note": "org/workspace limit checks then create"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-create-organization",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "app/setup/organization/create/actions.ts#createOrganizationAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-stripe",
        "ext-posthog"
      ],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "app/setup/organization/create/actions.ts",
          "lines": "20-72",
          "note": "creates org+membership+workspace, fires stripe setup unawaited"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-signup-createuser",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/auth/signup/actions.ts#createUserAction",
      "kind": "server-action",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-email-smtp",
        "ext-posthog",
        "ext-stripe",
        "ext-ee-mailing"
      ],
      "work": "db-bound",
      "trafficHint": "hot",
      "evidence": [
        {
          "file": "modules/auth/signup/actions.ts",
          "lines": "1-200",
          "note": "signup, invite acceptance, org creation, mailing subscribe"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-forgot-password",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/auth/forgot-password/actions.ts#forgotPasswordAction",
      "kind": "server-action",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [
        "ext-email-smtp"
      ],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "modules/auth/forgot-password/actions.ts",
          "note": "IP rate-limited, Better Auth reset request"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-resend-verification-email",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/auth/verification-requested/actions.ts#resendVerificationEmailAction",
      "kind": "server-action",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [
        "ext-email-smtp"
      ],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "modules/auth/verification-requested/actions.ts",
          "note": "sso-recovery vs standard verification branching"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-verify-email-change",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/auth/verify-email-change/actions.ts#verifyEmailChangeAction",
      "kind": "server-action",
      "auth": "public",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "modules/auth/verify-email-change/actions.ts",
          "note": "verifies JWT, updates email, syncs Brevo"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-request-sso-account-deletion-email",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/account/components/DeleteAccountModal/actions.ts#requestSsoAccountDeletionEmailAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [
        "ext-email-smtp"
      ],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "modules/account/components/DeleteAccountModal/actions.ts",
          "note": "rate-limited, mints deletion token email"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-manage-subscription",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/ee/billing/actions.ts#manageSubscriptionAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [
        "ext-stripe"
      ],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "modules/ee/billing/actions.ts",
          "lines": "31-63",
          "note": "creates Stripe customer portal session"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-create-plan-checkout",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/ee/billing/actions.ts#createPlanCheckoutAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [
        "ext-stripe"
      ],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "modules/ee/billing/actions.ts",
          "lines": "69-105",
          "note": "creates Stripe checkout session"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-retry-stripe-setup",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/ee/billing/actions.ts#retryStripeSetupAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-stripe"
      ],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "modules/ee/billing/actions.ts",
          "note": "ensureCloudStripeSetupForOrganization"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-create-feedbacksource-with-mappings",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "lib/feedback-source/actions.ts#createFeedbackSourceWithMappingsAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "lib/feedback-source/actions.ts",
          "lines": "155-205",
          "note": "creates feedbackSource + mappings"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-delete-feedbacksource",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "lib/feedback-source/actions.ts#deleteFeedbackSourceAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "lib/feedback-source/actions.ts",
          "lines": "48-75",
          "note": "org/team authz then delete"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-checkai-translation-available",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/ee/ai-translation/lib/actions.ts#checkAITranslationAvailableAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "modules/ee/ai-translation/lib/actions.ts",
          "lines": "15-51",
          "note": "checks org AI entitlement/config"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-translate-survey-fields",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/ee/ai-translation/lib/actions.ts#translateSurveyFieldsAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [
        "ext-llm-provider"
      ],
      "work": "llm",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "modules/ee/ai-translation/lib/actions.ts",
          "lines": "56-88",
          "note": "calls translateFields (AI)"
        }
      ],
      "confidence": "medium"
    },
    {
      "id": "action-create-chart",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/ee/analysis/charts/actions.ts#createChartAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [
        "ext-posthog"
      ],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "modules/ee/analysis/charts/actions.ts",
          "lines": "38-80",
          "note": "workspace access + license check then create"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-does-saml-connection-exist",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/ee/sso/actions.ts#doesSamlConnectionExistAction",
      "kind": "server-action",
      "auth": "public",
      "reads": [],
      "writes": [],
      "externalCallIds": [
        "ext-saml-jackson"
      ],
      "work": "light",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "modules/ee/sso/actions.ts",
          "note": "queries jackson connectionController"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-recheck-license",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/ee/license-check/actions.ts#recheckLicenseAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [
        {
          "dataStoreId": "ds-postgres",
          "pattern": "point"
        }
      ],
      "writes": [],
      "externalCallIds": [],
      "work": "cpu",
      "trafficHint": "rare",
      "evidence": [
        {
          "file": "modules/ee/license-check/actions.ts",
          "lines": "30-100",
          "note": "fetches license from external license server (not modeled), caches result"
        }
      ],
      "confidence": "medium"
    },
    {
      "id": "action-convert-heic-to-jpeg",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/ui/components/file-input/lib/actions.ts#convertHeicToJpegAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [],
      "writes": [],
      "externalCallIds": [],
      "work": "cpu",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "modules/ui/components/file-input/lib/actions.ts",
          "note": "in-process HEIC->JPEG conversion"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "action-delete-response",
      "serviceId": "svc-formbricks-app",
      "method": "POST",
      "path": "modules/analysis/components/SingleResponseCard/actions.ts#deleteResponseAction",
      "kind": "server-action",
      "auth": "authenticated",
      "reads": [],
      "writes": [
        {
          "dataStoreId": "ds-postgres"
        }
      ],
      "externalCallIds": [],
      "work": "db-bound",
      "trafficHint": "normal",
      "evidence": [
        {
          "file": "modules/analysis/components/SingleResponseCard/actions.ts",
          "lines": "146-168",
          "note": "delete + revalidatePath"
        }
      ],
      "confidence": "high"
    }
  ],
  "dataStores": [
    {
      "id": "ds-postgres",
      "kind": "postgres",
      "provider": "postgresql",
      "orm": "prisma",
      "tableCount": 49,
      "connection": "pool",
      "evidence": [
        {
          "file": "lib/auth.ts",
          "note": "prisma.membership.findUnique calls"
        },
        {
          "file": "lib/actionClass/service.ts",
          "note": "prisma.actionClass CRUD"
        },
        {
          "file": "lib/feedback-source/service.ts",
          "note": "prisma.feedbackSource CRUD"
        },
        {
          "file": "lib/utils/services.ts",
          "note": "cross-entity lookups via prisma"
        }
      ]
    },
    {
      "id": "ds-object-storage",
      "kind": "object-storage",
      "provider": "unknown (S3-compatible, via modules/storage/service)",
      "connection": "http-api",
      "evidence": [
        {
          "file": "app/storage/[workspaceId]/[accessType]/[...filePath]/route.ts",
          "note": "getFileStreamForDownload/deleteFile calls"
        }
      ]
    },
    {
      "id": "ds-redis",
      "kind": "redis",
      "provider": "unknown",
      "connection": "unknown",
      "evidence": [
        {
          "file": "modules/account/components/DeleteAccountModal/actions.ts",
          "note": "applyRateLimit call implies shared rate-limit store; client not shown"
        }
      ]
    }
  ],
  "jobs": [
    {
      "id": "job-stripe-setup-signup",
      "trigger": "inline",
      "description": "Stripe setup fired without awaiting after new-org signup",
      "evidence": [
        {
          "file": "modules/auth/signup/actions.ts",
          "note": "ensureCloudStripeSetupForOrganization(...).catch(...) unawaited"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "job-stripe-setup-orgcreate",
      "trigger": "inline",
      "description": "Stripe setup fired without awaiting after createOrganizationAction",
      "evidence": [
        {
          "file": "app/setup/organization/create/actions.ts",
          "lines": "40-48",
          "note": "same unawaited .catch pattern"
        }
      ],
      "confidence": "high"
    },
    {
      "id": "job-feedback-source-pipeline",
      "trigger": "inline",
      "description": "Sends response data to Hub API feedbackSources when a survey response is created/finished",
      "evidence": [
        {
          "file": "lib/feedback-source/pipeline-handler.ts",
          "note": "\"called from the pipeline when a response is created/finished\""
        }
      ],
      "confidence": "low"
    }
  ],
  "externals": [
    {
      "id": "ext-stripe",
      "category": "payments",
      "provider": "stripe",
      "blocking": true,
      "evidence": [
        {
          "file": "modules/ee/billing/actions.ts",
          "lines": "31-105",
          "note": "checkout/portal session creation, awaited"
        },
        {
          "file": "app/api/billing/stripe-webhook/route.ts",
          "note": "inbound webhook"
        }
      ]
    },
    {
      "id": "ext-google-sheets",
      "category": "other",
      "provider": "Google Sheets / OAuth2 API (googleapis)",
      "blocking": true,
      "evidence": [
        {
          "file": "app/api/google-sheet/callback/route.ts",
          "lines": "80-150",
          "note": "OAuth token exchange + userinfo awaited"
        }
      ]
    },
    {
      "id": "ext-hub-api",
      "category": "other",
      "provider": "Formbricks Hub (internal feedback-records API)",
      "blocking": true,
      "evidence": [
        {
          "file": "lib/feedback-source/csv-import.ts",
          "note": "createFeedbackRecordsBatch awaited in batch loop"
        },
        {
          "file": "lib/feedback-source/import.ts",
          "note": "createFeedbackRecordsBatch awaited"
        },
        {
          "file": "lib/feedback-source/pipeline-handler.ts",
          "note": "createFeedbackRecordsBatch awaited"
        }
      ]
    },
    {
      "id": "ext-posthog",
      "category": "analytics",
      "provider": "posthog-node",
      "blocking": false,
      "evidence": [
        {
          "file": "app/(app)/workspaces/[workspaceId]/actions.ts",
          "note": "capturePostHogEvent/groupIdentifyPostHog, not awaited"
        },
        {
          "file": "app/setup/organization/create/actions.ts",
          "note": "capturePostHogEvent calls"
        }
      ]
    },
    {
      "id": "ext-email-smtp",
      "category": "email",
      "provider": "nodemailer/smtp",
      "blocking": true,
      "evidence": [
        {
          "file": "modules/auth/signup/actions.ts",
          "note": "sendInviteAcceptedEmail awaited"
        },
        {
          "file": "modules/auth/verification-requested/actions.ts",
          "note": "sendVerificationEmail awaited"
        }
      ]
    },
    {
      "id": "ext-saml-jackson",
      "category": "auth",
      "provider": "BoxyHQ SAML Jackson",
      "blocking": true,
      "evidence": [
        {
          "file": "modules/ee/auth/saml/lib/jackson.ts",
          "note": "jackson controllers init"
        },
        {
          "file": "modules/ee/sso/actions.ts",
          "note": "connectionController.getConnections awaited"
        }
      ]
    },
    {
      "id": "ext-ee-mailing",
      "category": "email",
      "provider": "Formbricks EE mailing-list server",
      "blocking": true,
      "evidence": [
        {
          "file": "modules/ee/mailing/lib/mailing-subscription.ts",
          "note": "fetch to ee.formbricks.com mailing endpoints, awaited"
        }
      ]
    },
    {
      "id": "ext-llm-provider",
      "category": "llm",
      "provider": "org-configurable AI provider (lib/ai/service)",
      "blocking": true,
      "evidence": [
        {
          "file": "modules/ee/ai-translation/lib/actions.ts",
          "lines": "56-88",
          "note": "translateFields call; underlying LLM SDK not directly observed"
        }
      ]
    }
  ],
  "realtime": [],
  "warnings": [
    "Repo has ~2283 files; only a subset of route/handler source was shown. Many API/page routes below deterministic confidence are classified heuristically from path naming and are marked low confidence.",
    "Airtable/Notion/Slack integration routes exist but their actual outbound API-call code was not shown; not modeled as externals to avoid guessing SDK/provider.",
    "Sentry SDK (@sentry/nextjs) is installed but no explicit call sites were shown; excluded from externals per rule against declaring unused SDKs.",
    "Stripe webhook signature verification logic lives in modules/ee/billing/api/route.ts, which was not shown — auth marked 'unknown'.",
    "Redis usage is inferred only from rate-limit helper calls (modules/core/rate-limit/helpers); no direct client/connection code was shown.",
    "LLM provider/model for AI translation and survey-generation features is organization-configurable per lib/ai/service; concrete SDK/vendor call not observed in shown files.",
    "packages/database/schema.prisma (49 models) is outside the app root per instructions and was not cited as evidence; Prisma usage evidenced instead via lib/ and modules/ service files.",
    "feedback-source pipeline trigger point (whether inline in the response-create handler or otherwise) was not directly observed — inferred from pipeline-handler.ts doc comments only.",
    "No websocket/SSE/polling realtime code was observed in the shown files; realtime array left empty rather than guessed."
  ],
  "schemaVersion": 0,
  "meta": {
    "source": "github",
    "repo": "https://github.com/formbricks/formbricks",
    "analyzedAt": "2026-07-07T18:53:53.476Z",
    "fileCount": 2283,
    "extractorModel": "anthropic/claude-sonnet-5",
    "skeramVersion": "0.0.1",
    "commit": "5a9dc8c26090",
    "framework": "next",
    "deployHint": "docker"
  }
}