API & SDKs

A clean REST API — and SDKs in every language you ship.

Fully documented REST API v1, official Python and TypeScript SDKs, plus an MCP server for AI agents. Build your own affiliate flows and plug them into anything.

No-code affiliate tools hit a wall the moment your workflow gets specific.

You want to attribute offline conversions from your sales team, reward signups in your internal admin, or build a custom partner matching engine. At that point you need an API — not a Zapier integration with 4 triggers.

Without Traaaction
  • No way to trigger custom attribution events
  • Can’t sync partner data with your own CRM
  • Dashboard-only — automation locked out
  • Custom flows blocked, innovation stalled
With Traaaction
  • REST API v1 with full read/write on every resource
  • Official Python and TypeScript SDKs
  • Webhooks for every important event
  • MCP server for Claude, ChatGPT and AI agents
See it live

Read, write, attribute, reward — all via API.

Every resource in the dashboard has an API endpoint. Create links programmatically, attribute conversions server-side, fetch analytics, and push partner rewards — all with a Bearer token.

How it works

Three ways to talk to Traaaction.

Step 1

Generate an API key

Two scopes: pk_xxx for public tracking, trac_live_xxx for management.

Step 2

Install the SDK

pip install traaaction or npm install traaaction. Zero-config, typed responses.

Step 3

Ship custom flows

Automate link creation, offline attribution, custom rewards — anything you can imagine.

Why it matters

Built for developers, hated by no one.

Clean REST

Predictable URLs, JSON in/out, standard HTTP codes. No bespoke envelope formats.

Official SDKs

Python (PyPI) and TypeScript (npm) — fully typed, auto-retried, framework-friendly.

Versioned docs

v1 frozen — no breaking changes. New features via opt-in versions.

MCP server

Connect Claude or other AI agents directly to your workspace. Read and write tools included.

Technical spec

The technical details.

API version
Stable, no breaking changes
v1
Rate limit
Sliding window, per workspace
100 req/sec
Auth
pk_ for tracking, trac_live_ for management
Bearer token
SDKs
Python · TypeScript
Webhooks
12+ event types
Supported
MCP server
Streamable HTTP, OAuth 2.1 + Bearer
Supported

Frequently asked questions

What’s in the API?+

Everything the dashboard does: links (CRUD), missions, sellers, customers, commissions, payouts, analytics, and two tracking endpoints (lead, sale). Full reference at /docs.

Do the SDKs work with async frameworks?+

Yes. Python SDK supports Django, Flask and FastAPI via dedicated middlewares/dependencies. TypeScript SDK runs in Next.js, Express, Hono and any Node / Bun / Edge runtime.

Can I create affiliate links via API?+

Yes — POST /api/v1/links with the target URL and optional seller_id. The response gives you the short slug and full tracking URL.

What about rate limits?+

Default 100 requests per second per workspace, sliding window. Burst-friendly for event tracking. Enterprise tiers can raise this.

Is the MCP server production-ready?+

Yes. Remote HTTP MCP server at /api/mcp with both Bearer and OAuth 2.1 DCR. 12 read tools and 6 write tools, all audit-logged.

How do I handle webhook retries?+

We retry failed webhook deliveries with exponential backoff for 24 hours. Every delivery includes a signature header for HMAC verification.

Build on top of Traaaction.

REST API, typed SDKs, MCP server. Everything documented, nothing hidden.

Affiliate API & SDKs — Python, TypeScript, REST | Traaaction | Traaaction