Skip to content

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

feat(api): a/d

Gergő Móricze6e24bab92c4
diff --git a/apps/api/src/controllers/v2/agent.ts b/apps/api/src/controllers/v2/agent.ts
index a0398b9e1..0b8ca65cf 100644
--- a/apps/api/src/controllers/v2/agent.ts
+++ b/apps/api/src/controllers/v2/agent.ts
@@ -104,6 +104,8 @@ export async function agentController(
schema: req.body.schema,
prompt: req.body.prompt,
apiKey: req.acuc!.api_key,
+ apiKeyId: req.acuc!.api_key_id ?? undefined,
+ teamId: req.auth.team_id,
isFreeRequest,
}),
},