Build
API
REST endpoints for auth, dashboard, top-ups, and the gateway.
Base URL: https://api.tryrelai.xyz
Auth
| Method | Path | Auth | Description |
| GET | /api/v1/auth/nonce/:wallet | — | Get sign-in message |
| POST | /api/v1/auth/login | — | Verify signature, issue JWT |
| GET | /api/v1/config | — | Public config (mint, treasury, models) |
| GET | /health | — | Service health |
Dashboard
| Method | Path | Auth | Description |
| GET | /api/v1/dashboard/ | JWT | Keys, balance, usage |
| POST | /api/v1/dashboard/api-keys | JWT | Create gateway key |
| POST | /api/v1/dashboard/api-keys/:id/revoke | JWT | Revoke a key |
Top-ups
| Method | Path | Auth | Description |
| POST | /api/v1/topup/intent | JWT | Create order, get payment info |
| POST | /api/v1/topup/verify | JWT | Check chain, credit once |
| GET | /api/v1/topup/presets | JWT | Amount presets |
Gateway
| Method | Path | Auth | Description |
| ANY | /api/v1/gateway/v1/* | API key | OpenAI-compatible proxy |
| GET | /api/v1/gateway/v1/models | API key | Model catalogue |
| POST | /api/v1/gateway/v1/chat/completions | API key | Metered chat completions |