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

# Affiliate API Introduction

> This is the Affiliates public API documentation for FirstPromoter V2.

The Affiliate API gives you, as an affiliate, programmatic access to your own data in a FirstPromoter affiliate program: referrals, commissions, payouts, referral links, promo codes, campaigns and reports. It exposes the same data you see in your affiliate dashboard.

Every affiliate can use it. Create a personal API key in your affiliate dashboard under **Profile** → **API & AI tools**; see [Authentication](https://docs.firstpromoter.com/api-reference-v2/api-affiliate/authentication.md).

* **Base URL:** `https://api.firstpromoter.com/api/v2/affiliate`
* **Scope:** each key reads and changes only your own data, in the one program it was created in.

> [!TIP]
>
> Want to ask an AI assistant about your earnings instead of writing code? Use the same API key with the [Affiliate MCP server](https://docs.firstpromoter.com/mcp/affiliate.md).


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