Introduction
Why Suwappu?
60-Second Quickstart
# 1. Register your agent (no auth needed)
curl -X POST https://api.suwappu.bot/v1/agent/register \
-H "Content-Type: application/json" \
-d '{"name": "my-agent"}'
# Response: { "success": true, "api_key": "suwappu_sk_..." }
# 2. Get a swap quote
curl -X POST https://api.suwappu.bot/v1/agent/quote \
-H "Authorization: Bearer suwappu_sk_..." \
-H "Content-Type: application/json" \
-d '{"from_token": "ETH", "to_token": "USDC", "amount": "0.5", "chain": "base"}'
# Response: { "success": true, "quote_id": "q_abc123", "expected_output": "985.42", ... }
# 3. Execute the swap
curl -X POST https://api.suwappu.bot/v1/agent/swap/execute \
-H "Authorization: Bearer suwappu_sk_..." \
-H "Content-Type: application/json" \
-d '{"quote_id": "q_abc123"}'
# Response: { "success": true, "swap_id": "sw_xyz789", "status": "pending", ... }
# 4. Check swap status
curl https://api.suwappu.bot/v1/agent/swap/status/sw_xyz789 \
-H "Authorization: Bearer suwappu_sk_..."
# Response: { "success": true, "status": "completed", "tx_hash": "0x...", ... }Documentation
Section
Description
Agent Discovery
Last updated