Skip to content

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

fix(agent-signup): return error response for failed agent account creation

Erik Engervall021141ca9875
diff --git a/apps/api/src/controllers/v2/agent-signup.ts b/apps/api/src/controllers/v2/agent-signup.ts
index 794a2f043..2399a70a5 100644
--- a/apps/api/src/controllers/v2/agent-signup.ts
+++ b/apps/api/src/controllers/v2/agent-signup.ts
@@ -228,6 +228,9 @@ export async function agentSignupController(req: Request, res: Response) {
logger.error("Failed to mark API key as agent_provisioned", {
error: updateKeyError,
});
+ return res
+ .status(500)
+ .json({ success: false, error: "Failed to create agent account." });
}
// Generate verification token