Draft 0.1 · open for discussion

Affiliate.txt file structure

The specification is deliberately short. It can be read by a person, created without special software and validated automatically.

Discovery

The canonical location is https://example.org/.well-known/affiliate.txt. Hosting the file on the advertiser's domain verifies the source and keeps it independent of any single CPA network.

The server should return UTF-8 text with status 200. A short redirect to the canonical domain is acceptable.

Format

The draft uses simple key: value lines and named sections in square brackets. Comments start with #.

Minimal file
version: 0.1
program: Example Store
website: https://example.org
contact: [email protected]
updated: 2026-09-17

[offer default]
status: active
landing: https://example.org
allowed: content
forbidden: cookie-stuffing

Field order is irrelevant. Unknown fields must be ignored so the format can evolve without breaking older integrations.

Core fields

FieldRequiredPurpose
versionYesSyntax version used to parse the file.
programYesPublic affiliate program name.
websiteYesAdvertiser's canonical domain.
contactYesOperational program contact.
updatedYesDate of the latest material change in ISO format.
policyNoFull legal program terms.
disputesNoAppeal contact or procedure URL.

Offers

Each offer is a separate [offer identifier] section. The identifier remains stable through ordinary term updates.

FieldExampleMeaning
statusactive / paused / closedWhether new traffic may be sent.
landingURLPrimary landing page.
payout7% confirmed orderShort public payout description.
cookie30dAttribution window.
allowedcontent, cashbackAllowed promotion types.
forbiddenbrand-biddingExplicitly prohibited methods.
assetsURLCurrent creative, feeds or API docs.

Changes and disputes

A critical change — a new restriction, attribution rule, payout or status — requires a new updated date. Previous versions should be retained and linked through changelog.

A violation record is meaningful only with the source rule, file version, event time and appeal process. The standard does not determine guilt.

Data safety

Do not publish personal phone numbers, private keys, tokens, private rates, client lists or any information not intended for public access.

Document status

This is a first format hypothesis, not a final specification. Field names and syntax will change after real-world testing.

Test it in practice

Test the format with your own example

Find a situation the format describes ambiguously or cannot describe at all.

Open examples