The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Create route.ts
Kiran Kcd1c61894d6e
diff --git a/apps/web/app/(ee)/api/singular/webhook/route.ts b/apps/web/app/(ee)/api/singular/webhook/route.tsnew file mode 100644index 0000000000..964f85096a--- /dev/null+++ b/apps/web/app/(ee)/api/singular/webhook/route.ts@@ -0,0 +1,7 @@+// GET /api/singular/webhook – listen to Postback events from Singular+export const GET = async (req: Request) => {+ // Find the click event+ // Find the link info+ // Find the Singular event (lead, sale)+ // Track the valid events+};