Guides / Signups & Auth

Get Notified When a New User Signs Up

2 min read·Signups & Auth

Why This Matters

Every signup is a signal. Did they come from your Product Hunt launch? Your blog post? A referral? If you're not notified immediately, you miss the chance to reach out while motivation is high.

The Simplest Setup (REST API)

No SDK required. Works from any language.

bash
curl -X POST https://api.logit.now/api/ingest \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "channel": "signups",
    "event": "New user signed up",
    "description": "alex@example.com just created an account",
    "icon": "👤",
    "notify": true,
    "tags": { "plan": "free", "source": "organic" },
    "metadata": { "email": "alex@example.com" }
  }'

With the JavaScript SDK

ts
import { init } from "logit";

const logit = init({ token: process.env.LOGIT_API_KEY! });

// Call this right after you persist the user to your DB
await logit.now("signups", {
  event: "New user signed up",
  description: `${user.email} joined`,
  icon: "👤",
  notify: true,
  tags: {
    plan: user.plan ?? "free",
    source: user.signupSource ?? "direct",
  },
  metadata: {
    userId: user.id,
    email: user.email,
  },
});

Python

python
import httpx

httpx.post(
    "https://api.logit.now/api/ingest",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "channel": "signups",
        "event": "New user signed up",
        "description": user["email"],
        "icon": "👤",
        "notify": True,
        "tags": {"plan": user.get("plan", "free")},
        "metadata": {"email": user["email"], "userId": str(user["id"])},
    },
)

What You'll See

Within seconds, a notification appears on your phone with the user's email, plan, and source. Check your LogIt inbox to see the full timeline.

Try LogIt free

7-day trial. No credit card required.

Start free