API

Build anything with our API

Full programmatic access to your affiliate program. Manage affiliates, track events, and automate workflows.

RESTful API

Clean, well-documented REST API with JSON responses. Manage affiliates, track conversions, retrieve analytics, and automate your entire affiliate workflow programmatically.

Webhooks

Real-time event notifications for conversions, signups, payouts, and more. Configure webhook endpoints to keep your systems in sync.

Authentication

Secure API key authentication with scoped permissions. Create read-only keys for analytics or full-access keys for automation.

Rate Limits

Generous rate limits designed for production use. Free: 100 req/min, Growth: 1,000 req/min, Pro: 10,000 req/min, Enterprise: Custom.

Security

All API requests encrypted with TLS 1.3. Webhook signatures for payload verification. IP allowlisting available on Enterprise plans.

SDKs & Libraries

Official SDKs for JavaScript, Python, Ruby, PHP, and Go. Quickstart packages to integrate in minutes, not days.

Quick Start

// Install the SDK
npm install @affilify/sdk

// Track a conversion
import { Affilify } from '@affilify/sdk';

const client = new Affilify('your_api_key');

await client.conversions.track({
  affiliateId: 'aff_12345',
  amount: 99.00,
  currency: 'USD',
  orderId: 'order_67890',
  type: 'purchase'
});

API Endpoints

GET/api/v1/affiliatesList all affiliates
POST/api/v1/affiliatesCreate a new affiliate
GET/api/v1/conversionsList conversions
POST/api/v1/conversionsTrack a conversion
GET/api/v1/analyticsRetrieve analytics
GET/api/v1/payoutsList payouts
POST/api/v1/payouts/triggerTrigger a payout
GET/api/v1/programsList programs

Official SDKs

JavaScript
Python
Ruby
PHP
Go
Java

Start Building Today

Everything you need to integrate affiliate tracking into your product.