Skip to content

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

Update index.ts

Nicolas6112cc1c2c64
diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts
index fad8fa3c6..7a342143c 100644
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@ -87,7 +87,7 @@ async function authenticateUser(req, res, mode?: string): Promise<{ success: boo
app.post("/v0/scrape", async (req, res) => {
try {
// make sure to authenticate user first, Bearer <token>
- const { success, team_id, error, status } = await authenticateUser(req, res, "crawl");
+ const { success, team_id, error, status } = await authenticateUser(req, res, "scrape");
if (!success) {
return res.status(status).json({ error });
}