# AffFast > One API for the data of all your affiliate networks: conversions, clicks, programs, payouts, links, webhooks and destinations. Each link below is a Markdown page. The file llms-full.txt has all pages in one file. Instructions for an AI agent that uses the API: - The base URL of the API is https://api.afffast.com. All paths start with /v1. - Send the API key in the header `Authorization: Bearer `. Never put a key in the URL. The API refuses it. - Use a test key (`sk_test_...`) first. A test key reads and writes test data only. Use a live key (`sk_live_...`) only when the user asks. - Send the header `Api-Version: YYYY-MM-DD` to select a dated API version. Without it, the API uses the version of the workspace. - IDs have a prefix, for example `conv_...` and `conn_...`. Each object has an `object` field. - A list response has `object: list`, `data` and `has_more`. Read the next page with `starting_after=` and `limit` (1 to 100). - Send an `Idempotency-Key` header on each POST request. Use a new random value for each new action. - An error response has `error.type`, `error.code`, `error.message` and `error.request_id`. Use `error.code` in your logic. `error.doc_url` links to the page of the code. - The OpenAPI file is at https://docs.afffast.com/openapi.yaml. The MCP server is described at https://docs.afffast.com/docs/mcp.md. - To read a page of this site as Markdown, add .md to its URL, or send the header `Accept: text/markdown`. ## Start here - [OpenAPI file](https://docs.afffast.com/openapi.yaml): all operations, in OpenAPI 3.1. - [Agent skill](https://docs.afffast.com/skills/afffast/SKILL.md): the API rules and common tasks, as a SKILL.md file. - [All pages in one file](https://docs.afffast.com/llms-full.txt): the Markdown of every page. ## Guides - [Destinations](https://docs.afffast.com/docs/destinations.md): Send your conversions and events to Google Sheets, BigQuery, Slack or Google Analytics 4. - [Errors](https://docs.afffast.com/docs/errors.md): The form of an error response, the error types and how to handle them. - [Idempotency](https://docs.afffast.com/docs/idempotency.md): Repeat a POST request safely with an Idempotency-Key. - [Documentation](https://docs.afffast.com/docs.md): Guides for the AffFast API. - [Links and click tracking](https://docs.afffast.com/docs/links.md): Make tracked links, count clicks, and see which page earned each commission. - [MCP server](https://docs.afffast.com/docs/mcp.md): Use the API as tools in Claude Code and Claude Desktop. - [Pagination and expand](https://docs.afffast.com/docs/pagination.md): Read long lists with cursors, and get related objects with expand[]. - [Postbacks](https://docs.afffast.com/docs/postbacks.md): Get conversions in near real time from Awin, Impact, Tradedoubler and tracking platforms. - [Quickstart](https://docs.afffast.com/docs/quickstart.md): Make your first API call with a test key and the Sandbox Network. It takes less than 5 minutes. - [Rate limits](https://docs.afffast.com/docs/rate-limits.md): How many requests a key can send, and how to read the limit headers. - [Test mode](https://docs.afffast.com/docs/test-mode.md): Build and test your integration with test keys, the Sandbox Network and test conversions. - [API versioning](https://docs.afffast.com/docs/versioning.md): How the dated Api-Version header works, and how we change the API. - [Webhooks](https://docs.afffast.com/docs/webhooks.md): Get the events of your workspace as signed HTTPS requests, and verify the signature. ## AI tools - [Claude Code](https://docs.afffast.com/docs/ai/claude-code.md): Add the MCP server to Claude Code, and check that it works. - [Claude Desktop](https://docs.afffast.com/docs/ai/claude-desktop.md): Connect Claude Desktop to the MCP server with mcp-remote. - [Codex CLI](https://docs.afffast.com/docs/ai/codex.md): Add the MCP server to Codex in config.toml, and check that it works. - [Cursor](https://docs.afffast.com/docs/ai/cursor.md): Add the MCP server to Cursor with a button or with mcp.json. - [Use the docs and the API with an AI tool](https://docs.afffast.com/docs/ai.md): Give an AI coding tool our docs, an agent skill and the MCP server. - [Other MCP clients](https://docs.afffast.com/docs/ai/other-clients.md): The connection values for any MCP client, and a generic JSON config. - [VS Code](https://docs.afffast.com/docs/ai/vscode.md): Add the MCP server to VS Code with an install link or .vscode/mcp.json. - [Windsurf](https://docs.afffast.com/docs/ai/windsurf.md): Add the MCP server to Windsurf Cascade in mcp_config.json. ## Connect a network - [Connect Addrevenue](https://docs.afffast.com/docs/connect/addrevenue.md): Step-by-step guide to connect Addrevenue. - [Connect Adtraction](https://docs.afffast.com/docs/connect/adtraction.md): Step-by-step guide to connect Adtraction. - [Connect Awin](https://docs.afffast.com/docs/connect/awin.md): Step-by-step guide to connect Awin. - [Connect Daisycon](https://docs.afffast.com/docs/connect/daisycon.md): Step-by-step guide to connect Daisycon. - [Connect File import (CSV and XLSX)](https://docs.afffast.com/docs/connect/file-import.md): Step-by-step guide to connect File import (CSV and XLSX). - [Connect Impact](https://docs.afffast.com/docs/connect/impact.md): Step-by-step guide to connect Impact. - [Connect a network](https://docs.afffast.com/docs/connect.md): One guide for each affiliate network. - [Connect Partner-Ads](https://docs.afffast.com/docs/connect/partner-ads.md): Step-by-step guide to connect Partner-Ads. - [Connect Sandbox Network](https://docs.afffast.com/docs/connect/sandbox.md): Step-by-step guide to connect Sandbox Network. - [Connect Trackwise](https://docs.afffast.com/docs/connect/trackwise.md): Step-by-step guide to connect Trackwise. - [Connect Tradedoubler](https://docs.afffast.com/docs/connect/tradedoubler.md): Step-by-step guide to connect Tradedoubler. - [Connect TradeTracker](https://docs.afffast.com/docs/connect/tradetracker.md): Step-by-step guide to connect TradeTracker. ## Error codes - [api_key_in_query](https://docs.afffast.com/errors/api-key-in-query.md): The request has an API key in the query string. Send the key in the Authorization header. - [api_key_invalid](https://docs.afffast.com/errors/api-key-invalid.md): The API key is not valid. - [api_version_unsupported](https://docs.afffast.com/errors/api-version-unsupported.md): The API version is not known. - [authentication_required](https://docs.afffast.com/errors/authentication-required.md): The request has no valid credentials. - [connection_credentials_invalid](https://docs.afffast.com/errors/connection-credentials-invalid.md): The credentials do not match the network. - [connection_disabled](https://docs.afffast.com/errors/connection-disabled.md): The connection is disabled. Only an operator can enable it. - [connection_not_importable](https://docs.afffast.com/errors/connection-not-importable.md): The connection does not take file imports. - [connection_not_syncable](https://docs.afffast.com/errors/connection-not-syncable.md): The connection cannot run this sync now. - [expand_invalid](https://docs.afffast.com/errors/expand-invalid.md): The expand parameter is not valid. - [idempotency_key_invalid](https://docs.afffast.com/errors/idempotency-key-invalid.md): The Idempotency-Key header is not valid. Use 1 to 256 printable characters. - [idempotency_key_reused](https://docs.afffast.com/errors/idempotency-key-reused.md): This Idempotency-Key was used with a different request. - [idempotent_request_in_progress](https://docs.afffast.com/errors/idempotent-request-in-progress.md): A request with this Idempotency-Key is still in progress. - [import_file_too_large](https://docs.afffast.com/errors/import-file-too-large.md): The file is too large. - [import_invalid](https://docs.afffast.com/errors/import-invalid.md): The file has errors. The API imported no row. Fix the rows in `details`. - [Error codes](https://docs.afffast.com/errors.md): Each error of the API has a code. Find the code here to see its cause and its fix. - [internal_error](https://docs.afffast.com/errors/internal-error.md): An error occurred on our side. Try again later. - [link_destination_not_allowed](https://docs.afffast.com/errors/link-destination-not-allowed.md): The destination is not on a domain that the program allows. - [network_unavailable](https://docs.afffast.com/errors/network-unavailable.md): The network is not available in this mode. - [parameter_invalid](https://docs.afffast.com/errors/parameter-invalid.md): A parameter is not valid. - [permission_denied](https://docs.afffast.com/errors/permission-denied.md): The API key cannot use this resource. - [plan_limit_reached](https://docs.afffast.com/errors/plan-limit-reached.md): The plan of the workspace has reached its limit. Upgrade the plan to go on. - [program_deeplinks_unsupported](https://docs.afffast.com/errors/program-deeplinks-unsupported.md): The program has no deeplink template, so it cannot make links. - [rate_limit_exceeded](https://docs.afffast.com/errors/rate-limit-exceeded.md): Too many requests. Wait and try again. - [request_body_invalid](https://docs.afffast.com/errors/request-body-invalid.md): The request body is not valid JSON. - [request_invalid](https://docs.afffast.com/errors/request-invalid.md): The request is not valid. - [resource_already_exists](https://docs.afffast.com/errors/resource-already-exists.md): A resource with this name already exists. - [resource_not_found](https://docs.afffast.com/errors/resource-not-found.md): The resource does not exist. - [route_not_found](https://docs.afffast.com/errors/route-not-found.md): The URL does not exist. - [scope_insufficient](https://docs.afffast.com/errors/scope-insufficient.md): The API key does not have the scope for this request. - [test_mode_only](https://docs.afffast.com/errors/test-mode-only.md): This resource works only in test mode. Use a test key (sk_test_...). ## Optional - [Changelog](https://docs.afffast.com/docs/changelog.md): The dated versions of the API, and the changes in each version. - [Email and setup guide](https://docs.afffast.com/docs/email.md): The emails that the platform sends, the setup guide in the dashboard, and the DNS records that a sender domain needs. - [Data processing agreement, summary (draft)](https://docs.afffast.com/docs/legal/dpa.md): A summary of the data processing agreement between the operator and the customer. Draft text. A lawyer must review it before launch. - [Legal (draft)](https://docs.afffast.com/docs/legal.md): The privacy policy, the terms, the data processing agreement and the sub-processor list. All pages are drafts. - [Privacy policy (draft)](https://docs.afffast.com/docs/legal/privacy.md): Which personal data the platform stores, for how long, and how you can export or delete it. Draft text. A lawyer must review it before launch. - [Sub-processors (draft)](https://docs.afffast.com/docs/legal/sub-processors.md): The companies that process data for the platform. Draft list. The hosting provider is not decided yet. - [Terms of service (draft)](https://docs.afffast.com/docs/legal/terms.md): The terms for the use of the platform. Draft text. A lawyer must review it before launch. - [Migrate from Strackr](https://docs.afffast.com/docs/migrate-from-strackr.md): Move your affiliate reporting from Strackr to AffFast. This guide maps the concepts and lists the steps. - [Plans and billing](https://docs.afffast.com/docs/plans.md): The plans, the limits and the overage prices. Prices are drafts until the launch.