Affilyflow for affiliates
Your links.
Your numbers.
Your AI assistant.
Connect ChatGPT or Claude to your account. Create trackable links and fetch your results right in the conversation – with one login to Affilyflow.
MCP connects the assistant to Affilyflow’s tools. The REST API is for your own scripts and integrations.
Illustration of the connection · no account data
Get started
One login. Then the tools are in the conversation.
You need an affiliate account. Join the programs you want to create links for in the dashboard. Then choose your assistant below.
- 1
Open Customize → Connectors in Claude, and choose Add custom connector.
- 2
Name the connection Affilyflow, and paste in the MCP address below.
- 3
Choose Connect. Log in to your Affilyflow account, and approve the connection.
- 4
Turn on Affilyflow under Connectors in the conversation. Ask the assistant to show the programs you have joined.
https://app.affilyflow.com/api/mcpOn a team account, an owner may first need to add the connection to the organisation. See the official guide ↗
Cursor, Windsurf and other MCP clients
Clients that cannot log in with OAuth use an API key. Create it under "AI og API" (AI and API) in the dashboard – there you also get the file with the key filled in.
{
"mcpServers": {
"affilyflow": {
"url": "https://app.affilyflow.com/api/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}23 tools
From choosing a program to results.
Programs and rules
Find programs across the whole catalogue, read the store’s description and guidelines, and check an idea against the rules before you spend time on it.
search_programsSearch all open programs – including the ones you have not joined yetlist_programsThe programs you have joinedget_programCommission, cookie, approval, guidelines, today’s rules and upcoming changes, discount codes and materialscheck_complianceChannel, placement, paid search, coupon sites and ad disclosure – ok, warning or not allowed
Products and links
Find the products, create links to them one at a time or up to 50 at once, and keep your links in order afterwards.
search_productsProducts across stores with price, stock and estimated commissioncreate_linkLanding page, sub-ID, campaign, channel, UTM, HTML code and QR codecreate_links_batchUp to 50 links in one call with a result per linklist_links · get_linkYour links with numbers and the pages they work onupdate_link · archive_link · restore_linkRename, change the landing page or archive – the link still works
Your sites
Sites are measured on the clicks. The assistant can find the sites that send you clicks and add them – the history is there straight away. Deleting only happens in the dashboard.
get_sites · get_pagesMeasured sites and pages with earnings, page-tracking coverage and suggestions for sites you can addadd_siteAdd a site – the numbers from the clicks that have already arrived come with itupdate_siteCorrect the domain, name, niche or traffic, for example a domain without .dklist_websitesYour registered sites
Results
Numbers for a period with a comparison, the individual sale and the individual click – the same numbers as in the dashboard.
get_statsClicks, sales and commission per program, link, sub-ID, day, site, page, source, device or countrylist_salesStatus, rejection reason, approval date and refundslist_clicksEvery click with page, source, device, country and the sales it led to
Account and payouts
Read only. Bank, CPR (Danish personal ID) and tax details are never handed out.
get_accountAccount, quota for new links and shortcuts to the dashboardget_balanceBalance, next payout and what is missinglist_payoutsPayouts and settlement statements
The assistant also gets a short guide: how Affilyflow works, that amounts are in Danish kroner excluding VAT, that the store’s rules and guidelines must be followed, and that advertising must be disclosed under the Danish Marketing Practices Act. In Claude and Claude Code there are also four ready-made workflows (prompts): monthly report, find programs for your niche, optimise your links and create product links.
Try it in your conversation
Give the assistant a concrete task.
Find the 10 sofas I earn the most on at Nordlys Bolig, and create links to them with the sub-ID article-sofas-oct. Check the program’s rules first, and give me the HTML code for my site.I want to make a TikTok video and run Google Ads on generic keywords for one of my programs. Am I allowed to? Show the store’s guidelines, and tell me if the rules are about to change.Make a report for last month compared with the month before: best programs, pages and sources, rejected sales with the reason, and when I get my next payout.Find programs that suit my site about home and interiors, including the ones I have not joined. Compare commission, cookie and the network’s EPC, and give me the sign-up link.Add the sites that send me clicks, and correct the domain on Sportportalen.Want to go further with research and content? Read the in-depth AI guide →
You control the connection
Access with a clear limit.
Links and results from your account
The assistant can read programs, rules, products, your links, results and your balance, and it can create, rename and archive links and add and correct your sites. It cannot see or change your profile or your bank, CPR or tax details, cannot request a payout and cannot join programs for you.
Manage connectionsOAuth sends you to Affilyflow’s login and approval. The assistant gets access to the MCP server; it does not get your password.
The data you fetch through the assistant becomes part of the chosen AI service. So choose the account and the workspace you want to use for your affiliate results.
The limit is 120 calls per minute per API key or OAuth connection, of which 60 may create or change links and sites, and 500 new links in the last 24 hours per affiliate. An existing identical link is reused and does not count.
You can disconnect a connected app and revoke API keys under "AI og API" (AI and API) in the dashboard’s menu.
For those who build their own
The same options via the REST API.
Create an API key in your settings, and send it as a Bearer token. Store the key on the server as an environment variable. The OAuth connection to MCP cannot be used for the REST API.
curl https://app.affilyflow.com/api/v1/programs \
-H "Authorization: Bearer $AFFILYFLOW_API_KEY"curl -X POST https://app.affilyflow.com/api/v1/links \
-H "Authorization: Bearer $AFFILYFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"program_id":"PROGRAM_ID_FROM_PROGRAMS","landing_page":"/product-page","sub_id":"article-test"}'Examples for your terminal. Set the environment variable, and replace the program ID and product path with your own program’s values.
| Method | Under /api/v1 | Used for |
|---|---|---|
GET | /account | Your account and quota |
GET | /catalog | Search all open programs |
GET | /programs | Programs you have joined |
GET | /programs/{id} | A program with rules and guidelines |
GET / POST | /programs/{id}/compliance | Check a promotion against the rules |
GET | /products | Search the stores’ products |
GET / POST | /websites | Your sites: read or add |
PATCH | /websites/{id} | Correct a site’s domain, name, niche or traffic |
GET / POST | /links | Read or create links |
POST | /links/batch | Up to 50 links in one call |
GET / PATCH | /links/{id} | One link: details, or correct the name and landing page |
POST / DELETE | /links/{id}/archive | Archive or restore |
GET | /stats | Numbers by period, sub-ID, program, link, day, site, page, source, device or country |
GET | /sales | Individual sales and status |
GET | /clicks | Individual clicks with page and source |
GET | /sites · /pages | Measured sites and pages |
GET | /balance · /payouts | Balance and payouts (read only) |
If something plays up
Find the cause. Move on.
401 · Access missing
Connect the assistant again. If you use REST, check that the API key is correct and has not been revoked.
not_joined · The program is missing
Join the program in the dashboard. Joining is an action the assistant cannot carry out.
429 · Too many calls
Wait and try again. With an HTTP 429, Retry-After may state the waiting time. Avoid repeating many calls at the same time.
A link cannot be created
Check the program’s channels, that the landing page belongs to the store’s domain, and that you have not reached the limit for new links (daily_link_limit).
immutable_field · The sub-ID cannot be changed
The sub-ID, campaign and channel are stored on the link’s clicks. Create a new link, or add ?sid=<sub-id> to the existing link.
Can I use it as a store?
The MCP server and the REST API are for affiliates. Stores use the store dashboard.
Why do I get not_joined?
You have not joined the program. Join it in the affiliate dashboard, and then try again. The assistant cannot join for you.
Why does the MCP address give an error in the browser?
The MCP address is for a client that sends POST requests. An ordinary browser visit sends GET and can therefore give 405 Method Not Allowed. Paste the address as a connector in your assistant.
Does the assistant follow the store’s rules?
It gets the store’s guidelines verbatim and the program’s rules – channels, paid search and coupon sites – with the date of upcoming changes. A rule check answers ok, warning or not allowed for the measurable rules. The assistant judges the store’s free text itself, and the responsibility for the content is yours.
Can the assistant see my bank details?
No. It can see your balance, next payout and what is missing, but never bank, CPR, tax or address details, and it cannot request a payout.
Can the assistant delete anything?
No. It can archive links, which still work, and add and correct your sites. A site is only deleted in the dashboard.
How do I disconnect?
Open "AI og API" (AI and API) in Affilyflow’s menu, and disconnect the connected app. API keys are revoked separately in the same place.
Where to next
Documentation and further reading
- DocsMCP serverSetup, login, the 23 tools, prompts and limits for Claude, ChatGPT and Cursor.
- DocsREST API referenceKeys, limits and every endpoint under /api/v1 with parameters, responses and error codes.
- Affiliate marketing with AIThe method guide to research, content and analysis with an AI assistant as an affiliate.
Bring Affilyflow into the conversation.
Connect your assistant, and start with the programs you have already joined.