Moss API

Non-custodial cross-chain swap quotes, live assets, P2P offers, and independent transaction tracking over plain REST.

Public REST API

https://moss.cash/api/v1

Discover live assets, compare quotes and track settlement. Try read-only requests in the workbench. Quotes are estimates; provider conditions apply. Never send private keys to the API.

  • GET /api/v1/health — API liveness, not the availability of every upstream provider.
  • GET /api/v1/assets — Live asset IDs, chains, source availability and providers. Discover assets before requesting a quote.
  • GET /api/v1/quote — Compare available rails. Omit destination for a preview; adding destination and refund creates a real deposit route.
  • GET /api/v1/cross-quote — Discover a route through an intermediate asset. An estimate does not create payment instructions.
  • GET /api/v1/cross-capacity — Find a conservative smaller amount when the original amount has no executable route. Discovery can be slower.
  • POST /api/v1/cross-commit — State-changing. Creates both deposit legs; needs destination, source refund and intermediate refund addresses. Never blindly retry.
  • GET /api/v1/recent — Normalized NEAR Intents and Chainflip activity, including swaps not initiated on Moss. Check amountKind before displaying amounts.
  • GET /api/v1/search — Search NEAR Intents by address or transaction hash. This is not an all-chain, all-provider search.
  • GET /api/v1/tx/{hash} — MAYA / THORChain inbound transaction hash: exactly 64 hex characters, without a 0x prefix.
  • GET /api/v1/deposit-status — NEAR Intents or Chainflip. For a Chainflip deposit channel also pass the trackId returned in its quote.
  • GET /api/v1/p2p/offers — HodlHodl offer discovery only. Buy and sell represent your user's intent; trades happen with the provider.
  • GET /api/v1/fiat-prices — Cached price data for supported coins. Not an executable exchange rate or payout guarantee.
  • GET /api/v1/guides — List guides published through the Moss CMS. The editorial site also has built-in guides.
  • GET /api/v1/guides/{slug} — Read one published CMS guide, including language-specific content blocks.
  • POST /api/partner/v1/swaps — Server-side X-API-Key required. Creates a real deposit route and a stable Moss swap ID. No idempotency-key support.
  • GET /api/partner/v1/swaps/{id} — Refresh a swap owned by your integration. Requires the partner key on your server; expectedOut remains an estimate.

Partner swaps and signed webhooks

Partner endpoints use https://moss.cash/api/partner/v1 and server-side X-API-Key authentication. Preview first and confirm before creating a deposit route. Webhook delivery is best-effort; verify HMAC-SHA256 signatures and reconcile swap status.

OpenAPI 3.1: request and response schemas