API Endpoints

Simple REST endpoints for integration — example routes and required params.

v1 • REST • JSON
GET /api/v1/health
Status check — returns service & network status
No auth
GET /api/v1/prices?pair=BTC_XMR
Latest price for given trading pair
Public
GET /api/v1/wallets/{address}/balance
Returns balance for wallet (read-only)
Auth
POST /api/v1/swap
Create a swap order. JSON body: from, to, amount, callback_url
Auth
GET /api/v1/tx/{txid}
Query transaction status by id
Public
Examples
Health check
curl -X POST -s http://onion.tor.my/api/v1/health
Create swap (JSON)
curl -X POST http://onion.tor.my/api/v1/swap \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"from":"BTC","to":"XMR","amount":"0.01","callback_url":"http://onion.tor.my/callback"}'
Notes:Keep API keys secret. This service does not request personal data. Use Tor for all requests. Do not worry aboute rate limits. API requests are limited per Key, not per IP so Tor won't stop you.