Skip to content

API Base URLs

Production

All live traffic goes through the unified API gateway:

https://api.rach.finance

This domain routes requests to the correct backend service based on path:

Path prefixService
/v1/market/*Market Data API
All other pathsPayments API

Direct Service URLs

Each backend service is also reachable directly (useful for debugging):

Payments API:    https://payments-api-dev-966260606560.europe-west2.run.app
Market Data API: https://payments-market-data-dev-966260606560.europe-west2.run.app

Use the gateway

Always use https://api.rach.finance in production. The direct Cloud Run URLs bypass the load balancer and SSL certificate — use them for health checks or debugging only.

WebSocket

WebSocket connections go through the same gateway:

wss://api.rach.finance/v1/market/ws?key=YOUR_API_KEY

Examples

bash
# Payments — create a checkout
curl https://api.rach.finance/v1/checkout \
  -H "X-API-Key: live_sk_YOUR_KEY"

# Market Data — coin prices
curl https://api.rach.finance/v1/market/prices?symbols=btc,eth \
  -H "X-API-Key: live_sk_YOUR_KEY"

# Market Data — health (no auth required)
curl https://api.rach.finance/v1/market/health

Rach Payments API