Quick Start

Get from zero to your first autonomous payment in under 5 minutes.

1. Get an API Key

Create an API key from the Dashboard or via the API:

bash
curl -X POST https://agentpay-api-production.up.railway.app/keys \
  -H "Content-Type: application/json" \
  -d '{"name": "my-first-key"}'

# Response:
# {
#   "key": "ap_a1b2c3d4...",
#   "id": 1,
#   "name": "my-first-key",
#   "message": "Store this key securely — it will not be shown again"
# }

2. Send Your First Payment

Make a POST request to the /pay endpoint:

curl -X POST https://agentpay-api-production.up.railway.app/pay \
  -H "Content-Type: application/json" \
  -H "X-API-Key: ap_YOUR_KEY_HERE" \
  -d '{
    "agent_id": "trading-bot-001",
    "amount": 5.00,
    "token": "USDC",
    "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD2C",
    "reason": "API access fee"
  }'

3. Check the Dashboard

Open the Dashboard to see your transaction in real-time. Every payment is logged with a full audit trail and on-chain confirmation.