Platform administration: conversions, revenue, outreach, and monitoring.
Admin authentication is separate from the OTP system. All admin endpoints require the X-Admin-Key header.
ADMIN_API_KEY environment variable401 UnauthorizedManually process a conversion (e.g. from a manual sale or reconciliation):
Required body:
ZARconversions, commissions, platform_revenueView platform-wide revenue analytics:
Returns:
Use this for financial reporting, reconciliation with Whop, and business metrics.
View all campaigns across all clients:
Each campaign record includes:
Use this to monitor marketplace health and identify top-performing campaigns.
Generate industry-specific pitches for potential clients:
Required body:
outreach table for trackingWhop sends webhooks to ClipDesk on successful payments:
payment.succeeded eventclipper_campaign_id, affiliate_codeprocessConversion() to split and record commissions{ received: true }400 (not 5xx) to prevent Whop retries that could cause double-processingWHOP_CONVERSION_PROCESSED tagReturns:
The platform uses structured JSON logging for all events: