Skip to content

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

Agents sign up smart fixes.

Eric Ciarla0b3db5ad2ddf
diff --git a/apps/api/src/controllers/v2/agent-signup.ts b/apps/api/src/controllers/v2/agent-signup.ts
index 87049278a..ffbc1bba7 100644
--- a/apps/api/src/controllers/v2/agent-signup.ts
+++ b/apps/api/src/controllers/v2/agent-signup.ts
@@ -73,9 +73,24 @@ const domainRateLimiterSideguide = new RateLimiterRedis({
});
const agentSignupSchema = z.object({
- email: z.string().email(),
+ email: z
+ .string()
+ .email()
+ .refine(
+ (e) =>
+ !e.includes("+") ||
+ (e.endsWith("@sideguide.dev") && e.includes("+test")),
+ {
+ message: "Email addresses with '+' are not allowed for agent signup.",
+ },
+ ),
agent_name: z.string().min(1).max(100),
- accept_terms: z.literal(true),
+ accept_terms: z.literal(true, {
+ errorMap: () => ({
+ message:
+ "You must accept the terms here. https://www.firecrawl.dev/terms-of-service",
+ }),
+ }),
});
/** Insert payload for agent_sponsors (nullable cols in DB are optional here). */
diff --git a/requests.http b/requests.http
new file mode 100644
index 000000000..e69de29bb