Skip to content

Register Your API

Registering your API in x402 Relay makes it discoverable by AI agents worldwide. Benefits:

  • Visibility — AI agents find your API via search, MCP, and intent matching
  • Trust Score — Verified APIs rank higher and get more traffic
  • Analytics — Track discovery and usage metrics (coming soon)

x402 Relay automatically discovers APIs through:

  1. x402scan — Crawls Base chain for x402 transactions
  2. GitHub Scanner — Searches GitHub for x402 implementations
  3. Manifest Scanner — Reads ai.txt and x402.json files from your domain

Create https://yourdomain.com/.well-known/ai.txt:

x402-endpoint: https://api.yourdomain.com
x402-network: base
x402-asset: USDC
x402-price: 0.001
Terminal window
curl -X POST https://api.x402relay.com/api/services \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Your API Name",
"description": "What your API does",
"endpoint": "https://api.yourdomain.com/v1",
"category": "cat-ai",
"pricing": {
"currency": "USD",
"pricePerRequest": "0.001",
"freeQuota": 100
},
"x402Config": {
"paymentAddress": "0xYourWalletAddress",
"network": "base"
}
}'
FieldDescription
nameAPI name (max 255 chars)
descriptionWhat the API does (max 2000 chars)
endpointBase URL of your API
categoryCategory ID (see /api/categories)
pricing.currencyPrice currency (e.g., USD)
pricing.pricePerRequestCost per API call
x402Config.paymentAddressYour wallet address for receiving payments
x402Config.networkBlockchain network (e.g., base, ethereum)

After registration, your API goes through verification:

  1. Registeredunverified status
  2. Probed → x402 Relay sends a test request to verify 402 response
  3. Verified → Trust Score calculated, status becomes verified

Verification typically completes within the next scan cycle (1 hour).