Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(api): pass the team id to the browser service on interact create (#4518)

tomsideguide6b78c354349e
diff --git a/apps/api/src/controllers/v2/browser.ts b/apps/api/src/controllers/v2/browser.ts
index 8bf501225..cd5d533f8 100644
--- a/apps/api/src/controllers/v2/browser.ts
+++ b/apps/api/src/controllers/v2/browser.ts
@@ -331,6 +331,7 @@ export async function browserCreateController(
{
ttl,
record: recordSession,
+ customerId: req.auth.team_id,
...(activityTtl !== undefined ? { activityTtl } : {}),
...(persistentStorage !== undefined ? { persistentStorage } : {}),
},
diff --git a/apps/api/src/controllers/v2/scrape-browser.ts b/apps/api/src/controllers/v2/scrape-browser.ts
index 404d57757..6a2ff843d 100644
--- a/apps/api/src/controllers/v2/scrape-browser.ts
+++ b/apps/api/src/controllers/v2/scrape-browser.ts
@@ -656,6 +656,7 @@ async function createSessionForScrape(
// relying on the browser service's implicit default, matching the
// standalone browser create path.
record: true,
+ customerId: req.auth.team_id,
...(activityTtl !== undefined ? { activityTtl } : {}),
...(persistentStorage !== undefined ? { persistentStorage } : {}),
},