> ## Documentation Index
> Fetch the complete documentation index at: https://developers.tapfiliate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tapfiliate API documentation

> Track affiliate referrals, automate your partner program and build on the Tapfiliate API.

Tapfiliate tracks clicks, customers and conversions that your affiliates bring in, and turns them into commissions and payouts. This portal covers everything you need to connect your product to it.

> [card] [Quickstart](https://developers.tapfiliate.com/quickstart.md)
>
> Make your first API request and track your first conversion.

> [card] [API reference](https://developers.tapfiliate.com/api-reference/introduction.md)
>
> Every endpoint of the REST API, with a playground for read requests.

> [card] [JavaScript tracking](https://developers.tapfiliate.com/tracking/javascript.md)
>
> Track clicks, customers and conversions from your website.

> [card] [Server-to-server](https://developers.tapfiliate.com/tracking/server-to-server.md)
>
> Track conversions from your backend with a single request.

> [card] [Webhooks](https://developers.tapfiliate.com/automation/webhooks.md)
>
> Get notified when affiliates, conversions or commissions change.

> [card] [MCP server](https://developers.tapfiliate.com/ai/mcp.md)
>
> Connect Claude, Cursor or another AI assistant to your account.

> [card] [Build with AI](https://developers.tapfiliate.com/ai/build-with-ai.md)
>
> Give your coding assistant these docs, so it writes integration code that works.

> [card] [Status](https://status.tapfiliate.com)
>
> Current status of Tapfiliate services and past incidents.

## How tracking works

**1. A visitor clicks an affiliate link**

The link carries the affiliate's referral code, for example `?ref=janejameson`. Tapfiliate records a click and remembers the affiliate in a first-party cookie.

**2. The visitor signs up or buys**

You report it to Tapfiliate from the browser with [tapfiliate.js](https://developers.tapfiliate.com/tracking/javascript.md) or from your server with the [REST API](https://developers.tapfiliate.com/api-reference/introduction.md) or a [postback](https://developers.tapfiliate.com/tracking/server-to-server.md).

**3. Tapfiliate creates a conversion and commissions**

Commissions follow the rules of your program. You approve them, and they are paid out to the affiliate.

## Need help?

For questions about your account and program settings, see the [help center](https://support.tapfiliate.com) or contact support from your dashboard.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.