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.

Your assistant · your tools

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. 1

    Open Customize → Connectors in Claude, and choose Add custom connector.

  2. 2

    Name the connection Affilyflow, and paste in the MCP address below.

  3. 3

    Choose Connect. Log in to your Affilyflow account, and approve the connection.

  4. 4

    Turn on Affilyflow under Connectors in the conversation. Ask the assistant to show the programs you have joined.

MCP address
https://app.affilyflow.com/api/mcp

On 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.

mcp.json
{
  "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 yet
  • list_programsThe programs you have joined
  • get_programCommission, cookie, approval, guidelines, today’s rules and upcoming changes, discount codes and materials
  • check_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 commission
  • create_linkLanding page, sub-ID, campaign, channel, UTM, HTML code and QR code
  • create_links_batchUp to 50 links in one call with a result per link
  • list_links · get_linkYour links with numbers and the pages they work on
  • update_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 add
  • add_siteAdd a site – the numbers from the clicks that have already arrived come with it
  • update_siteCorrect the domain, name, niche or traffic, for example a domain without .dk
  • list_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 country
  • list_salesStatus, rejection reason, approval date and refunds
  • list_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 dashboard
  • get_balanceBalance, next payout and what is missing
  • list_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.

Product links for an article
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.

Check the rules before a campaign
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.

Monthly report
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 new programs
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.

Tidy up your sites
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 connections

OAuth 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.

Fetch your programs
curl https://app.affilyflow.com/api/v1/programs \
  -H "Authorization: Bearer $AFFILYFLOW_API_KEY"

Create a link
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.

REST endpoints and what they do
MethodUnder /api/v1Used for
GET/accountYour account and quota
GET/catalogSearch all open programs
GET/programsPrograms you have joined
GET/programs/{id}A program with rules and guidelines
GET / POST/programs/{id}/complianceCheck a promotion against the rules
GET/productsSearch the stores’ products
GET / POST/websitesYour sites: read or add
PATCH/websites/{id}Correct a site’s domain, name, niche or traffic
GET / POST/linksRead or create links
POST/links/batchUp to 50 links in one call
GET / PATCH/links/{id}One link: details, or correct the name and landing page
POST / DELETE/links/{id}/archiveArchive or restore
GET/statsNumbers by period, sub-ID, program, link, day, site, page, source, device or country
GET/salesIndividual sales and status
GET/clicksIndividual clicks with page and source
GET/sites · /pagesMeasured sites and pages
GET/balance · /payoutsBalance and payouts (read only)
See the API’s current parameters and limits Full reference in the docs

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.

Bring Affilyflow into the conversation.

Connect your assistant, and start with the programs you have already joined.