Valeo

402.md Specification v1.0

A machine-readable pricing manifest for AI agents and payment-aware clients.


1. File Location

The file MUST be located at the root of a domain:

https://example.com/402.md

Optionally, a JSON variant can also be served:

https://example.com/402.json

2. File Format

The 402.md file uses YAML frontmatter (delimited by ---) followed by an optional human-readable description in Markdown.

3. Required Fields

FieldTypeDescription
version"1.0"Literal string. Currently only 1.0.
ownerstringGeneric identifier (wallet address, ENS name, etc.). Min 1 character.
networkenumOne of: base, base-sepolia, solana-mainnet, solana-devnet
endpointsEndpoint[]Array of endpoint definitions. At least one required.

4. Optional Fields

FieldTypeDescription
facilitatorURLPayment verification service URL.
contactemailContact email for support.
contentobjectContent pricing defaults.
policiesobjectTerms, refunds, budgets.
metadataobjectTitle, description, image, category.

5. Endpoint Schema

FieldTypeDescription
pathstringRequired. Must start with /. Supports glob patterns.
methodenumOptional. GET, POST, PUT, PATCH, DELETE. Default: "GET".
pricestringRequired. USD notation: "$X.XX" up to 6 decimal places.
currencystringOptional. Default: "USDC". Currently only USDC.
descriptionstringOptional but strongly recommended.
rate_limitstringOptional. Format: "100/min".
tagsstring[]Optional. Array of category tags.
content_typestringOptional. Response MIME type.
auth_requiredbooleanOptional. Default: false.

6. Price Format

Prices MUST be in USD notation: $X.XX with up to 6 decimal places.

  • $0.01 — one cent
  • $0.001 — one-tenth of a cent
  • $0.000001 — one micro-dollar (smallest unit)

Internally, prices are stored as integer micros (1 micro = $0.000001) to avoid floating-point issues.

7. Content Schema

FieldTypeDescription
default_price$X.XXDefault price for pages not listed in endpoints.
free_pathsstring[]Paths that are always free.
docs_urlURLLink to API documentation.

8. Policies Schema

FieldTypeDescription
refundsstring|booleanRefund policy.
bulk_discountstring|booleanBulk pricing information.
max_budget_per_session$X.XXSuggested agent budget cap.
terms_urlURLLink to terms of service.

9. Metadata Schema

FieldTypeDescription
titlestringHuman-readable title for the service.
descriptionstringBrief description.
imageURLOG image or logo URL.
categorystringService category.

10. Validation Rules

  • Unknown fields at any nesting level produce warnings, never silent drops.
  • Duplicate endpoints (same method + path) produce errors.
  • The owner field is a generic string with no format enforcement.
  • The facilitator field is truly optional with no default value.

11. Discovery

Agents and crawlers discover pricing by fetching /402.md at the root of any domain. If not found, they may fall back to /402.json.

The 402md registry at 402md.org indexes discovered manifests for public searchability.