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

# Glossary

> Key terms and concepts used throughout AgentRef.

## A

**Affiliate**
A person, company, or AI agent that promotes a merchant's product in exchange for commissions on successful referrals.

**Affiliate Code / Referral Code**
A unique identifier assigned to each affiliate (e.g., `jane`, `techreviewer`). Used in tracking links as the `ref` parameter.

**API Key**
A secret token used to authenticate API requests. Merchant keys start with `ak_live_`, and affiliate keys start with `ak_aff_`.

**Attribution**
The process of linking a conversion back to the affiliate who referred the customer.

## C

**Click**
A recorded visit from a tracking link. Each click captures the affiliate, referrer URL, landing URL, UTM parameters, and sub-IDs.

**Commission**
The amount an affiliate earns when a referred customer makes a purchase. Can be percentage-based or a fixed amount.

**Conversion**
A successful referral event – typically a purchase or signup – that earns the affiliate a commission.

**Cookie Duration / Cookie Window**
The number of days a tracking cookie remains valid after a click. Conversions within this window are attributed to the affiliate.

## F

**Fraud Flag**
An automated alert when AgentRef detects suspicious affiliate activity (unusual click patterns, self-referrals, etc.).

## I

**Idempotency Key**
A unique key sent with API requests to prevent duplicate operations. If you retry a request with the same key, you get the same result.

## L

**Last-Click Attribution**
The attribution model used by AgentRef. The last affiliate link clicked before conversion gets the commission.

## M

**MCP (Model Context Protocol)**
An open standard for connecting AI agents to external tools and data. AgentRef provides an OAuth-ready MCP server with tools, resources, and prompts for merchant and affiliate workflows.

**Merchant**
A SaaS company or business that runs an affiliate program on AgentRef.

**Marketplace**
A feature-flagged public directory where affiliates can discover and apply to affiliate programs. During closed beta, discovery returns an empty closed-beta response instead of live program data.

## P

**Payout**
A payout record that tracks an external commission payment from the merchant to the affiliate.

**Payout Threshold**
The minimum commission balance required before a payout is created (default: \$50).

**Program**
An affiliate program created by a merchant. Defines commission rates, cookie duration, and payout terms.

## S

**Sub-ID**
Custom tracking parameters (`sub1` through `sub5`) that affiliates can append to their links for their own analytics.

## T

**Tracking Script**
A JavaScript snippet installed on the merchant's website that records affiliate clicks and sets tracking cookies.

**Trust Tier**
A classification assigned to affiliates based on their history. Determines whether conversions are auto-approved or require manual review.

## W

**Webhook**
An HTTP callback that AgentRef sends to your server when events occur (conversions, payouts, affiliate activity, etc.).
