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.
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-keyheader
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
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
Authorizationheader
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 →