Cloudflare Worker backend for authentication, licensing, subscriptions, and community features
Returns service health status and version.
{ "status": "ok", "version": "1.0.0" }
Returns community statistics for the HUB dashboard including user count and giveaway progress.
{
"totalUsers": 42,
"giveawayProgress": 4.2,
"giveawayTarget": 1000,
"capacity": 1200,
"warningThreshold": 1000
}
Track a Google OAuth sign-in. Creates or updates user record with geodata (IP, country, city, timezone).
{
"ok": true,
"email": "user@example.com",
"isNewUser": false,
"loginCount": 5
}
Sign in to HUB (creates account if not exists).
Activate a ProEQ8 license on a device. Maximum 3 devices per license.
{
"ok": true,
"activationId": "act_uuid",
"product": "ProEQ8",
"expiresAt": "2027-05-28T00:00:00.000Z"
}
Deactivate a license from a device.
Verify a license is valid (called periodically by plugin).
Recover license key by email (sends email with license).
Master Key is a subscription allowing 1-3 seats at $3 CAD/seat/month. The subscription owner can link team member emails to seats.
Get Master Key subscription status. Response differs for owners vs linked users.
{
"hasMasterKey": true,
"isOwner": true,
"canManageSeats": true,
"seats": 2,
"seatsUsed": 1,
"linkedEmails": ["teammate@example.com"],
"licenses": { "teammate@example.com": "license-key" },
"status": "active"
}
{
"hasMasterKey": true,
"isOwner": false,
"canManageSeats": false,
"ownerEmail": "owner@example.com",
"license": "your-license-key"
}
Link an email to a Master Key subscription (owner only). Generates a license for the linked user.
{
"ok": true,
"linkedEmail": "teammate@example.com",
"license": "generated-license-key",
"seatsUsed": 1,
"seatsTotal": 2,
"linkedEmails": ["teammate@example.com"]
}
Unlink an email from a Master Key subscription (owner only).
Clear all linked seats (owner only).
Get full account status including licenses and Master Key subscription.
{
"email": "user@example.com",
"hubAccount": {
"name": "User Name",
"provider": "google",
"verified": true,
"created": "2026-05-28T14:00:00.000Z"
},
"licenses": [{
"product": "ProEQ8",
"licenseKey": "key-here",
"purchaseDate": "2026-05-28T14:00:00.000Z",
"activations": 1,
"maxActivations": 3
}],
"masterKey": {
"isOwner": true,
"canManageSeats": true,
"seats": 2,
"seatsUsed": 1,
"linkedEmails": ["teammate@example.com"],
"status": "active"
}
}
Create a Stripe checkout session for ProEQ8 one-time purchase ($29.99 CAD).
{ "checkoutUrl": "https://checkout.stripe.com/..." }
Create a Stripe checkout session for Master Key subscription (1-3 seats at $3 CAD/seat/month).
Authorization: Bearer {first-16-chars-of-RESEND_API_KEY}Get list of all HUB subscribers with geodata.
Manually trigger the weekly newsletter send.
All endpoints return errors in a consistent format:
{ "error": "Error message here" }
400Bad request (invalid input, missing fields)
401Unauthorized (invalid signature/auth)
403Forbidden (no permission, seats full)
404Not found
429Rate limit exceeded (60 req/min/IP)
500Internal server error