Documentation section
API reference documentation
Reference authentication, endpoints, OpenAPI details, and tracking script behavior.
Choose a reference
7 pages
REST API Authentication and Account Scoping
Authenticate AffiliateBase REST API requests with an API key, select the account scope, and handle authentication errors.
AffiliateBase REST API Overview
Learn AffiliateBase REST API authentication, account scoping, permissions, pagination, and response contracts under /api/v1.
REST API Endpoint Reference
Reference AffiliateBase REST API endpoints, account-scoped query parameters, request fields, response shapes, and error codes.
Affiliate Tracking JavaScript Reference
Configure the AffiliateBase tracking script, read generated referral IDs, and connect browser attribution to Stripe Checkout.
AffiliateBase OpenAPI Specification
Download the machine-readable AffiliateBase REST API contract for client generation, agent tooling, and endpoint validation.
Affiliate Webhook API Reference
Build an AffiliateBase webhook receiver with signature verification, event payloads, delivery retries, and idempotent processing.
Manage Affiliate Promo Codes with MCP
Search Stripe codes, preview assignments, create affiliate promo codes, and retry safely with the AffiliateBase MCP tool.