Skip to content
Sendora Cloud
Create account
Developers · Examples

Copy-paste recipes.

Common integrations, ready to lift.

Identify + track on sign-up

s.identify(user.id, { email: user.email, plan: "free" });
s.track("user.signed_up", { source: "web" });

Trigger an automation journey

await fetch("https://api.sendoracloud.com/v1/events", {
  method: "POST",
  headers: { Authorization: "Bearer $SENDORA_KEY" },
  body: JSON.stringify({
    actor: { id: "u_123" },
    verb:  "cart.abandoned",
    object:{ id: "cart_81", items: 3 }
  })
});

Verify an inbound webhook

import crypto from "crypto";

function verify(req) {
  const sig = req.headers["x-sendora-signature"];
  const raw = req.rawBody;
  const mac = crypto
    .createHmac("sha256", process.env.WEBHOOK_SECRET)
    .update(raw)
    .digest("hex");
  return crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(sig));
}