📚 API Documentation

Complete API reference for Ping402

GET
/api/health

Check API health status

Response:

{
  "status": "ok"
}
GET
/api/info

Get API information and pricing

Response:

{
  "name": "Hello Ping-402 API",
  "version": "1.0.0",
  "description": "A Example x402-compatible API that says hello to Agent Payment Protocol",
  "endpoint": "/api/hello",
  "pricing": {
    "unit": "per_call",
    "price_usd": "0.01"
  },
  "facilitators": [
    "Coinbase",
    "PayAI"
  ],
  "owner": "0x72abe1993eC47DAcDf4E45eF55C2c7A7C9Cd583f",
  "capabilities": [
    "x402-protocol",
    "signature-verification",
    "billing-verification",
    "webhook-events"
  ]
}
POST
/api/hello

Say hello with a custom name

Request Body:

{
  "name": "Bruce"
}

Response:

{
  "message": "Hello Bruce!"
}

💡 Quick Start

All API calls should be made to https://x402-api-server-production.up.railway.app