Developers

Developer Tools

Build Network Loyalty Into Anything

REST API, Web SDK, and webhooks. Full control over rewards, events, and user balances.

Same network benefits. Users earn in your app and spend across the entire network.

Integration Options

Choose the integration method that works for your stack.

Event Handler API

POST events to trigger rewards. Any system that can make HTTP requests can integrate.

Track user actionsAuto account creationInstant rewardsHMAC auth

HMAC Authentication

Secure server-to-server requests with your Security Key. No API keys exposed.

SHA256 signingTimestamp validationReplay protectionKey rotation

Shared Services

Platform-agnostic services for streaks, leaderboards, achievements, and perks.

Streak trackingLeaderboardsAchievementsPerk redemption

Quick Start

Get up and running in minutes.

01

Get Credentials

Get your Brand ID and Security Key from Partner Portal → Settings.

02

Create Events

Define event types and reward amounts in the Partner Portal.

03

Implement HMAC

Sign requests with your Security Key using HMAC-SHA256.

04

POST Events

Call the API when users complete actions. We handle the rest.

example.ts
const crypto = require('crypto');

async function trackEvent(eventType, userEmail, metadata = {}) {
  const brandId = process.env.LOYALTEEZ_BRAND_ID;
  const securityKey = process.env.LOYALTEEZ_SECURITY_KEY;
  const timestamp = Date.now();
  
  const body = JSON.stringify({
    brandId,
    eventType,
    userEmail,
    metadata
  });
  
  // Create HMAC-SHA256 signature
  const signingString = `${timestamp}:${brandId}:${body}`;
  const signature = crypto
    .createHmac('sha256', securityKey)
    .update(signingString)
    .digest('hex');
  
  const response = await fetch(
    'https://api.loyalteez.app/loyalteez-api/manual-event',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
        'X-Loyalteez-Brand-Id': brandId,
        'X-Loyalteez-Signature': signature,
        'X-Loyalteez-Timestamp': timestamp.toString()
      },
      body
    }
  );
  
  return response.json();
}

// Usage: reward a user for completing a quest
const result = await trackEvent(
  'quest_completed',
  '[email protected]',
  { quest_name: 'First Blood', difficulty: 'hard' }
);

Because your developer's time is worth more than a loyalty integration.

Why Developers Choose Loyalteez

Platform Agnostic

Any system that can make HTTP POST requests can integrate.

HMAC Security

Signed requests prevent tampering and replay attacks.

Great Documentation

Complete guides, API reference, and code examples.

No Keys Exposed

Security Key stays on your server. Never in client code.

Auto Wallets

Wallets created automatically on first reward.

Network Effects

Users spend rewards across the entire ecosystem.

No-Code Options

Prefer not to code? These integrations are ready to use.

Ready to Build?

Get your Brand ID and Security Key from the Partner Portal to start integrating.

How It Works · Pricing · All Platforms