Docs
API versions and deprecation
Which versions of the Affiligato API exist, what counts as a breaking change, the notice before a version is retired, and where we announce it.
The version is in the path of every request. Both versions are supported, and neither is scheduled to be retired.
| Version | Base URL | What it covers | Status |
|---|---|---|---|
| v1 | https://app.affiligato.com/api/v1 |
The conversions API: signups, sales and refunds, adding partners, and reading partners, referrals, commissions and payouts | Supported |
| v2 | https://app.affiligato.com/api/v2 |
Everything the app reads and writes | Supported |
Webhook events carry the same objects as the API, and follow the same rules. The API page documents both versions and the events.
Inside a version, we only add
These changes can come at any time, without notice:
- a new endpoint, or a new method on an endpoint;
- a new optional field in a request;
- a new field in an answer or in a webhook event;
- a new webhook event type: you receive only the events your endpoint subscribes to;
- a reworded
errorsentence. Act oncode, which never changes.
Write your code to ignore fields it does not know.
What counts as a breaking change
Any change that can make code that works today fail. We never make one inside a version. For example:
- removing or renaming an endpoint, a field or an event type;
- changing a field’s type, format or meaning, or the unit of an amount;
- making an optional request field required, or adding a required one;
- changing an error’s
codeor its HTTP status; - changing how a request is authenticated, or how a webhook is signed;
- changing how lists page.
A breaking change comes as a new version, beside the old one.
Notice before a version is retired
A version is retired no sooner than 12 months after we announce it. Until that date it keeps working as documented.
The one exception is a security flaw that cannot be fixed inside the version. Then we change only what we must, and tell you as soon as we do.
How we announce it
- In the changelog, with the date the version stops working.
- By email to the owner of every program that has an API key.
- On this page, where the version’s status changes to Deprecated, with its retirement date.
Not covered
The MCP server is not versioned. An agent reads the list of tools each time it connects, so the tools change with the app. See What an agent can do.