Docs

Embeds, widget and MCP

Show partners their link and earnings inside your product, add a refer-a-friend button, and connect AI assistants over MCP.

Embedded partner page

From your server, with a secret key from Integrations, mint a page for the signed-in user. They are enrolled as an approved partner the first time.

POST https://app.affiligato.com/api/v1/embed/tokens
Authorization: Bearer afk_…
{ "email": "user@example.com", "name": "Ada" }

Add "customer_id": "cus_…", the user’s Stripe customer, when your program pays rewards as account credit: their rewards are then credited to that customer.

The answer has a url that works for one hour. Put it in an iframe on any https page of yours; it shows their link, clicks, customers and earnings in your program’s colour.

Refer-a-friend widget

<script src="https://app.affiligato.com/w.js" data-token="TOKEN" defer></script>

Adds a “Refer & earn” button in the corner that opens the same page. Mint a fresh token on each page load.

MCP for AI assistants

Add https://app.affiligato.com/mcp to Claude or another MCP client and approve it once in your browser. The tools, including the ones that install and test the program, are listed under AI assistants.