affixo

API keys, webhooks and the MCP server

Create API keys, send program events to your own systems, and connect AI tools like Claude and Cursor to your workspace.

Updated October 21, 2026

affixo connects to your own systems three ways: API keys for your server and scripts, webhooks that push events to your URL, and an MCP server for AI tools. All three are on every plan and live under SettingsConnect. Only admins can open them.

This article covers setup in the dashboard. For endpoints, payloads and code, see the developer docs at docs.affixo.dev.

Create an API key#

Open Developer & API

Go to SettingsConnectDeveloper & API and click New key.

Name it and pick scopes

Give it a Name such as "Production server" and choose Scopes: read to fetch data, write to create and update records, track for server-to-server tracking.

Copy it now

Click Generate key and copy the key. It won't be shown again.

Treat a key like a password. To revoke one, click the trash icon on its row and confirm with Revoke key. Anything using it stops working straight away. The same page shows your public tracking key, which is safe to share.

Add a webhook endpoint#

Open Webhooks

Go to SettingsConnectWebhooks.

Add your URL

Under Add an endpoint, enter an Endpoint URL. It must be https and publicly reachable.

Choose events

Leave All events on to get every event, including ones added later, or turn it off and pick the events you want.

Save and test

Click Add endpoint, then Send test on it. The test is queued, not sent on the spot, so click Process now under Recent deliveries to send it, and check your server received it.

Every delivery is signed with your endpoint's signing secret, so your server can check it came from affixo. Failed deliveries retry automatically. To pause an endpoint, switch it off rather than deleting it.

Check what was delivered#

Recent deliveries lists each event sent to your endpoints, with its status code or Queued while it waits.

  • View opens a delivery and lists every attempt with its time, status code, how long it took and any error, plus the JSON body that was sent. Attempt history is kept for 30 days. Your server's response body isn't stored, so it can't be shown.
  • Resend appears on a failed delivery. Like Send test, it only queues the delivery.
  • Process now sends everything queued for your workspace straight away and tells you how many were delivered and how many failed.

Webhook events#

There are 14 events. Leave All events on to get all of them, including any added later.

EventSent when
affiliate.createdAn affiliate joins your program.
affiliate.updatedAn affiliate's status changes: approved, suspended, archived, left the program or rejoined.
affiliate.campaign_joinedAn affiliate becomes an active member of a campaign. A request waiting for approval sends nothing until you decide.
affiliate.campaign_removedAn affiliate is removed or blocked from a campaign, or their request to join is declined.
conversion.createdA referral or sale is recorded.
conversion.reversedA sale is refunded or charged back.
commission.confirmedA commission is confirmed.
commission.reversedA commission is reversed.
commission.reassignedA commission moves to another affiliate with a referral move.
customer.qualifiedA referred customer's first payment clears its refund window with no refund or chargeback.
payout.paidA payout is marked paid.
fulfilment.pendingA non-cash reward is waiting to be handed out.
fulfilment.completedA non-cash reward is marked handed out.
fulfilment.cancelledA non-cash reward is cancelled.

Payload details for each event are in the developer docs at docs.affixo.dev.

Connect an AI tool with MCP#

The MCP server lets tools like Claude, ChatGPT, Cursor and VS Code read and manage your program in plain language.

  1. Go to SettingsConnectMCP server.
  2. Under Add it to your client, pick your tool and follow its steps.
  3. Sign in to affixo when asked, then choose the workspace and access level.

There's no key to paste. For other tools, use the URL under Any other client as a remote connector. MCP tools can't move money.

Move referrals, quote commissions and send test referrals#

Three things you do in the dashboard also work from your own code and AI tools:

TaskAPIMCP
Move a referral to another affiliatePOST /v1/referrals/move, with a preview at POST /v1/referrals/move/previewPreview only
See what a sale would earn, without recording itPOST /v1/commissions/quoteYes
Send a test referralPOST /v1/test-referralsYes
  • Moving a referral needs an API key with the write scope. It follows the same rules as the dashboard: choose from now on only or include history, paid commissions always stay put, and a refused move changes nothing. An AI tool connected through MCP can preview a move, but the move itself happens in the dashboard or with an API key, because MCP never changes who is owed money. See Move a referral to another affiliate.
  • A commission quote runs your real commission rules on a pretend sale and tells you what the affiliate would earn, and whether it would be held. Nothing is saved, emailed or paid. It needs the read scope and allows 60 quotes a minute per workspace.
  • A test referral works like Send a test referral on the Referrals page: it always goes to your test affiliate, is marked as test data and is never paid. It needs the write scope and allows 30 per workspace an hour. Deleting test referrals stays in the dashboard. See Send a test referral.

Questions

Every plan, Free included.

Admins only. The Developer & API, Webhooks and MCP server pages are under Settings › Connect.

No. A key is shown once when you create it, and only its prefix is stored. Revoke the old key and create a new one.

No. MCP tools can't move money.

14 events: affiliate.created, affiliate.updated, affiliate.campaign_joined, affiliate.campaign_removed, conversion.created, conversion.reversed, commission.confirmed, commission.reversed, commission.reassigned, customer.qualified, payout.paid, fulfilment.pending, fulfilment.completed and fulfilment.cancelled.

Send test and Resend queue the delivery rather than sending it on the spot. Click Process now under Recent deliveries to send what's queued straight away.

Click View on a delivery. It lists every attempt with its time, status code and error, plus the JSON that was sent. Response bodies aren't stored, so they can't be shown.

Yes. POST /v1/referrals/move moves a referral with a write-scoped API key, and POST /v1/commissions/quote tells you what a sale would earn without recording it. AI tools connected through MCP can preview a move and get a quote, but can't apply a move.

At docs.affixo.dev, with the full API reference, webhook payloads and MCP tool list.

Still stuck?

Send us a note and a person will get back to you, usually within one business day.

Contact us