RebusAI Affiliate Marketing API

Professional REST API for affiliate program management and tracking

Quick Start Guide

The RebusAI Affiliate Marketing API provides a comprehensive REST interface for managing affiliate programs, tracking commissions, and analyzing performance. This API enables seamless integration with external systems, mobile applications, and third-party platforms while maintaining enterprise-grade security.

Current Version: 1.0 | Protocol: REST | Data Format: JSON | Authentication: API Keys & JWT Tokens

Base URL

https://rebusai.com/api/v1/affiliate/

Authentication Required

All requests require authentication via API key or JWT token:

Authorization: Bearer sk_live_1234567890abcdef
Content-Type: application/json

Health Check

Test API connectivity:

curl -X GET "https://rebusai.com/api/v1/affiliate/status/" \
  -H "Authorization: Bearer YOUR_API_KEY"

Expected Response:

{
  "success": true,
  "data": {
    "status": "healthy",
    "version": "1.0",
    "services": {
      "database": "healthy",
      "authentication": "healthy"
    }
  }
}

API Capabilities

Affiliate Management

Complete CRUD operations, approval workflows, performance tracking, and tier management for affiliate programs.

Link Generation

Dynamic link creation, UTM parameter support, QR code generation, and comprehensive click tracking.

Commission Tracking

Real-time commission calculation, approval workflows, tier-based rates, and bulk operations.

Payout Processing

Automated payout generation, multiple payment methods, batch processing, and payment tracking.

Analytics & Reporting

Real-time performance metrics, conversion tracking, revenue analytics, and custom reporting.

Enterprise Security

API key & JWT authentication, rate limiting, request logging, and role-based permissions.

Response Format

All API responses follow a consistent JSON structure:

Success Response
{
  "success": true,
  "data": {
    // Response data object or array
  },
  "message": "Operation completed successfully",
  "timestamp": 1640995200,
  "api_version": "1.0"
}
Error Response
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid input data provided",
    "status": 400,
    "details": {
      "field_errors": {
        "email": ["This field is required"]
      }
    }
  },
  "timestamp": 1640995200,
  "api_version": "1.0"
}