Skip to content

Data REST API ​

The canonical public base URL for Monarch's REST Data API is:

text
https://api.monarchlend.xyz

Use this host for public integrations. Older data.monarchlend.xyz URLs are legacy/internal compatibility endpoints and should not be used as the public endpoint.

Authentication and API keys ​

In Monarch, open Settings → Developer Options and select Create API key. Copy the key when it is shown and store it securely. Send it with your API request:

bash
curl 'https://api.monarchlend.xyz/v1/markets/metrics?limit=1' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Current public endpoints ​

The Monarch frontend currently uses these public REST endpoints:

MethodPathPurpose
GET/v1/markets/metricsMarket metrics
GET/v1/risk/assetsAsset risk data
GET/v1/tokens/metadataToken metadata lookup
POST/v1/tokens/metadataToken metadata batch lookup

Examples ​

text
https://api.monarchlend.xyz/v1/markets/metrics?limit=1000&offset=0
text
https://api.monarchlend.xyz/v1/risk/assets?chain_id=8453

The indexer GraphQL API is separate from the REST Data API and is available at:

text
https://indexer.monarchlend.xyz/graphql

Documentation for Monarch.