Data REST API
The canonical public base URL for Monarch's REST Data API is:
text
https://api.monarchlend.xyzUse 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:
| Method | Path | Purpose |
|---|---|---|
GET | /v1/markets/metrics | Market metrics |
GET | /v1/risk/assets | Asset risk data |
GET | /v1/tokens/metadata | Token metadata lookup |
POST | /v1/tokens/metadata | Token metadata batch lookup |
Examples
text
https://api.monarchlend.xyz/v1/markets/metrics?limit=1000&offset=0text
https://api.monarchlend.xyz/v1/risk/assets?chain_id=8453Related API
The indexer GraphQL API is separate from the REST Data API and is available at:
text
https://indexer.monarchlend.xyz/graphql