Api Reference

API Reference

Overview of M0's Orchestration API (REST) and Protocol API (GraphQL).

Getting an API key

Both Orchestration and Protocol APIs require authentication. Get in touch with the M0 team to obtain your API key.

Contact us →


Orchestration API (REST)

What it does: Get quotes and execute conversions between M0 stablecoin extensions and other stablecoins (USDC, USDT). This is the API powering M0's Onchain Orchestration product.

  • Endpoint: https://gateway.m0.xyz/v1/orchestration
  • Type: REST
  • Authentication: API key in x-api-key header

Good for:

  • Getting conversion quotes between your stablecoin extension and USDC/USDT
  • Integrating M0 liquidity into your product's flows
  • Automating stablecoin distribution to you, your partners or clients

Orchestration API overview →

Full endpoint reference →

Type generation →


Protocol API (GraphQL)

What it does: Query on-chain data - token supplies, holder balances, rewards accrual, earner status, and configuration parameters.

  • Endpoint: https://protocol-api.m0.org/graphql
  • Type: GraphQL
  • Authentication: API key in Authorization header

Good for:

  • Monitoring token supply and collateral coverage
  • Querying rewards earned by a specific stablecoin extension
  • Building dashboards on top of protocol state
  • Auditing stablecoin extension balances and earner approvals

Try the interactive playground →

Authentication setup →

Common query recipes →


Get started

Authentication

Learn how to authenticate your API requests and store keys securely.

Orchestration API

Get quotes, place orders, and manage cross-chain operations.

GraphQL Recipes

Common GraphQL queries for network supply, token data, yields, and more.

Copyright © M0 Foundation 2026