Skip to content

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

fix(api/batch-scrape): correct agentinterop logic

Gergő Móricz248dc2cb77dc
diff --git a/apps/api/src/controllers/v2/batch-scrape.ts b/apps/api/src/controllers/v2/batch-scrape.ts
index e755fba5b..e2e8a48f8 100644
--- a/apps/api/src/controllers/v2/batch-scrape.ts
+++ b/apps/api/src/controllers/v2/batch-scrape.ts
@@ -154,6 +154,7 @@ export async function batchScrapeController(
? true
: false,
zeroDataRetention,
+ bypassBilling: !(req.body.__agentInterop?.shouldBill ?? true),
}, // NOTE: smart wait disabled for batch scrapes to ensure contentful scrape, speed does not matter
team_id: req.auth.team_id,
createdAt: Date.now(),