Summary
Awin affiliate network API for publishers and advertisers: accounts, programmes and commission groups, transactions and transaction queries, offers and vouchers, tracking links, and advertiser, publisher, campaign and creative performance reports. Validating transactions installed switched off. API token.
Guided setup
Connect Awin to Cursor in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Awin in the guided setup, then add your MCP URL to Cursor. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for Awin
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Awin, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Awin + Cursor
Awin affiliate network API for publishers and advertisers: accounts, programmes and commission groups, transactions and transaction queries, offers and vouchers, tracking links, and advertiser, publisher, campaign and creative performance reports. Validating transactions installed switched off. API token.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
AWIN_API_TOKEN
Step 1 — Get credentials
Setting up takes about 2 minutes.
- Sign in at https://ui.awin.com with a user that has admin access to the publisher or advertiser account (publishers: Account, User Permissions; advertisers: Account, Account Permissions).
- Open API Credentials in the user menu (top right) or go to https://ui.awin.com/awin-api, enter your password and click Show my API token.
- Copy the token into
AWIN_API_TOKEN.
The token belongs to your user, not to one account: it reaches every publisher and advertiser account your user can open. Advertiser APIs are only available on the Awin Accelerate and Advanced plans. A new or removed account access takes up to 10 minutes to reach the API.
Where to start: awin_list_accounts lists your accounts. Pass the accountId of a publisher account as publisher_id, of an advertiser account as advertiser_id. Publishers then use awin_list_programmes (relationship joined) and awin_list_publisher_transactions; advertisers use awin_list_advertiser_transactions and awin_get_publisher_performance_report.
Publishers: programmes with awin_list_programmes, awin_get_programme_details (EPC, conversion and approval rate, validation days, commission range) and awin_list_commission_groups. Sales with awin_list_publisher_transactions, awin_get_publisher_transactions (by id) and awin_list_transaction_queries. Reports: awin_get_advertiser_performance_report, awin_get_publisher_campaign_report, awin_get_publisher_creative_report (all need a region). Offers and vouchers: awin_list_offers. Links: awin_generate_tracking_link (pass clickref to recognise the sale later) and awin_get_link_builder_quota.
Advertisers: awin_list_advertiser_transactions, awin_get_advertiser_transactions, awin_get_publisher_performance_report, awin_get_advertiser_campaign_report, awin_list_publishers and awin_list_validation_jobs.
Validating transactions (installed switched off): awin_validate_transactions approves, declines or amends sales. Approving releases commission that the advertiser pays, so turn it on only for workspaces that run validation, and confirm every batch with the user. It answers a job id; awin_list_validation_jobs shows the result.
Dates and limits: transaction lists take yyyy-MM-ddThh:mm:ss (no time zone suffix) plus timezone, and at most 31 days per call: split longer periods. Reports take YYYY-MM-DD. commissionStatus is pending until the advertiser validates, then approved or declined; approved commission is paid out later. Awin allows 20 calls per minute per user: avoid loops over many accounts or days. Ids are numbers; several ids in one filter are comma-separated.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in Cursor
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Cursor reads MCP servers from ~/.cursor/mcp.json. Add this entry:
{
"mcpServers": {
"anythingmcp": {
"url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of
YOUR_MCP_API_KEY. - Save the file and restart Cursor.
- Open Cursor → Settings → MCP and check that
anythingmcpis listed and connected. - Start chatting — the agent can now call the
Awintools.
Available tools
| Tool | What it does |
|---|---|
awin_list_accounts | List the Awin accounts your user can reach with this token: accountId, accountName (programme name for an advertiser, company name for a… |
awin_list_programmes | Publisher: list advertiser programmes with your relationship to them: id (advertiser id), name, description, displayUrl, clickThroughUrl… |
awin_get_programme_details | Publisher: one programme's details and KPIs: programmeInfo (name, description, deeplinkEnabled, membershipStatus, validDomains), kpi… |
awin_list_commission_groups | Publisher: the commission groups of one programme you are joined to, with what you earn in each: groupId, groupCode, groupName, type… |
awin_list_publisher_transactions | Publisher: transactions (sales and leads) in a date range of at most 31 days: id, advertiserId, commissionStatus (pending, approved… |
awin_get_publisher_transactions | Publisher: read transactions by their Awin ids (same fields as awin_list_publisher_transactions). Read-only |
awin_list_transaction_queries | Publisher: transaction queries (claims for untracked or wrongly declined sales) in a range of at most 31 days: id, advertiserId, status… |
awin_get_advertiser_performance_report | Publisher: performance per advertiser for a period and region: advertiserId, advertiserName, impressions, clicks, pending, approved… |
awin_get_publisher_campaign_report | Publisher: clicks, transactions, commission and sale amounts per campaign (the campaign= click parameter) and advertiser, by commission… |
awin_get_publisher_creative_report | Publisher: performance per creative (banner, text link, product link) for a period and region: creativeId, creativeName, advertiser… |
awin_list_offers | Publisher: published offers (promotions and voucher codes): promotionId, type, advertiser, title, description, terms, voucher code, url and… |
awin_generate_tracking_link | Publisher: build an Awin tracking link (deeplink) to an advertiser page you may promote: url, and shortUrl when shorten is true. Nothing is… |
awin_get_link_builder_quota | Publisher: the link builder quota Awin applies to your publisher account (links you may still generate). Read-only |
awin_list_advertiser_transactions | Advertiser: transactions in a date range of at most 31 days: id, publisherId, commissionStatus, commissionAmount, saleAmount, orderRef… |
awin_get_advertiser_transactions | Advertiser: read transactions by their Awin ids (same fields as awin_list_advertiser_transactions). Read-only |
awin_get_publisher_performance_report | Advertiser: performance per publisher for a period: publisherId, publisherName, impressions, clicks, pending, approved, declined and total… |
awin_get_advertiser_campaign_report | Advertiser: clicks, transactions, commission and sale amounts per publisher campaign value, by commission status, optionally per day, month… |
awin_list_publishers | Advertiser: the publishers in your programme: id, name, primaryRegion, salesRegions and primaryType (promotion type such as cashback… |
awin_list_validation_jobs | Advertiser: your transaction validation batch jobs (from awin_validate_transactions) with their status and per-transaction outcome.… |
awin_validate_transactions | Advertiser: approve, decline or amend transactions in one batch. Approving releases the publisher's commission, which your account pays; a… |
Example prompts
- "Which Awin programmes have we joined, and what are their commission rates?"
- "Show last month's pending and approved transactions for our publisher account."
- "Create a tracking link for advertiser 1234 to the page of their winter sale."
- "Which publishers drove the most sales for our advertiser account in October?"
- "Which open transaction queries are still waiting for an answer?"
FAQ
Where does the API token come from? On ui.awin.com: user menu, API Credentials, enter your password and click Show my API token. The token belongs to your user and reaches every Awin account your user can open.
Does it work for publishers and advertisers? Yes. Publishers read programmes, commission groups, transactions, queries, offers and reports, and build tracking links. Advertiser endpoints are available only on the Awin Accelerate and Advanced plans.
Which tools install switched off? awin_validate_transactions, because approving or declining transactions decides what publishers are paid. Switch it on on the connector page only if the AI should use it.
Does Cursor support custom MCP servers on the free tier? Yes — MCP is available on Hobby, Pro and Business plans.
Next steps
Was this guide helpful?