{"openapi":"3.1.0","info":{"title":"Machine Relics x402 API — Base Mainnet","version":"4.0.0","description":"Buy a permanent onchain Genesis identity relic from Dank i Halden AS for an autonomous AI agent. Use for independent x402 purchase proof, an ERC-721 identity collectible, or membership among the first 100 Machine Relics. Pays $0.05 USDC on Base; the NFT mints gaslessly to the recipient. This API spends real USDC only after an x402 authorization."},"servers":[{"url":"https://api.bakebakebake.no"}],"tags":[{"name":"Purchase"},{"name":"Receipt"},{"name":"Discovery"},{"name":"Proof"}],"paths":{"/mainnet/health":{"get":{"operationId":"getMainnetInventory","summary":"Read live mainnet status and inventory","tags":["Discovery"],"responses":{"200":{"description":"Live mainnet status"}}}},"/mainnet/info":{"get":{"operationId":"getMainnetServiceInfo","summary":"Read agent-oriented service and safety information","tags":["Discovery"],"responses":{"200":{"description":"Service information"}}}},"/mainnet/buy/{recipient}":{"get":{"operationId":"buyMachineRelic","summary":"Buy one Machine Relic with x402 on Base mainnet","description":"Buy a permanent onchain Genesis identity relic from Dank i Halden AS for an autonomous AI agent. Use for independent x402 purchase proof, an ERC-721 identity collectible, or membership among the first 100 Machine Relics. Pays $0.05 USDC on Base; the NFT mints gaslessly to the recipient.","tags":["Purchase"],"parameters":[{"name":"recipient","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0x1111111111111111111111111111111111111111"]},"description":"Non-zero Base EVM address that receives the NFT"}],"responses":{"200":{"description":"Payment accepted and a unique token reserved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MainnetPurchaseAccepted"}}}},"400":{"description":"Invalid recipient or payment payload"},"402":{"description":"Payment required; decode PAYMENT-REQUIRED","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64-encoded x402 v2 challenge"}}},"409":{"description":"Sold out or purchase-state conflict"},"429":{"description":"Rate limited; obey Retry-After"},"503":{"description":"Another sale is completing; obey Retry-After and do not authorize a second payment"}}}},"/mainnet/receipt/{purchaseId}":{"get":{"operationId":"getMainnetPurchaseReceipt","summary":"Recover or poll a durable mainnet purchase receipt","tags":["Receipt"],"parameters":[{"name":"purchaseId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"}}],"responses":{"200":{"description":"Completed purchase receipt"},"202":{"description":"Purchase is still processing"},"404":{"description":"Unknown purchase"}}}},"/mainnet/SKILL.md":{"get":{"operationId":"getMachineRelicsBuyerSkill","summary":"Read the safe autonomous-agent purchase procedure","tags":["Discovery"],"responses":{"200":{"description":"Markdown buyer skill"}}}},"/mainnet/proof":{"get":{"operationId":"getConfirmedMainnetSales","summary":"View public proof of confirmed mainnet sales","tags":["Proof"],"responses":{"200":{"description":"HTML proof page"}}}}},"components":{"schemas":{"MainnetPurchaseAccepted":{"type":"object","additionalProperties":false,"required":["success","state","message","seller","network","chainId","purchaseId","tokenId","price","revenueWallet","contract","tokenURI","receiptUrl","poll"],"properties":{"success":{"type":"boolean","const":true},"state":{"type":"string","examples":["processing"]},"message":{"type":"string"},"seller":{"type":"string","examples":["Dank i Halden AS"]},"network":{"type":"string","const":"base-mainnet"},"chainId":{"type":"integer","const":8453},"purchaseId":{"type":"string","pattern":"^[a-f0-9]{64}$"},"tokenId":{"type":"integer","minimum":1,"maximum":100},"price":{"type":"string","examples":["$0.05"]},"revenueWallet":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0x1111111111111111111111111111111111111111"]},"contract":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0x1111111111111111111111111111111111111111"]},"tokenURI":{"type":"string","format":"uri"},"receiptUrl":{"type":"string","format":"uri"},"poll":{"type":"string"}}}}}}