Skip to content

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

feat(exchange): more routes (#4604)

Developers Digesta54a9526b570
diff --git a/apps/api/src/routes/exchange.ts b/apps/api/src/routes/exchange.ts
index 0dbc4ab03..31b31e988 100644
--- a/apps/api/src/routes/exchange.ts
+++ b/apps/api/src/routes/exchange.ts
@@ -121,6 +121,19 @@ exchangeRouter.get(
wrap(exchangeProxy(DISCOVER_TIMEOUT_MS)),
);
+// Both skills routes intentionally require the exchangeRetrieve flag during preview.
+exchangeRouter.post(
+ "/skills/resolve",
+ authMiddleware(RateLimiterMode.Labs),
+ wrap(exchangeProxy(DISCOVER_TIMEOUT_MS)),
+);
+
+exchangeRouter.get(
+ "/skills/:id/SKILL.md",
+ authMiddleware(RateLimiterMode.Labs),
+ wrap(exchangeProxy(DISCOVER_TIMEOUT_MS)),
+);
+
exchangeRouter.post(
"/retrieve",
authMiddleware(RateLimiterMode.Labs),