API reference¶
Base URL:
Auth: the api-key header on quote, settlement, order, position, and earnings
endpoints — see Get API access. The four discovery
endpoints (chains, assets, venues, rates) are public.
The envelope¶
Meadow shares Photon's envelope:
Errors:
{
"success": false,
"error": { "code": "RESOURCE_001", "message": "quote expired",
"category": "RESOURCE", "traceId": "…" },
"timestamp": "2026-07-29T12:00:00.000Z"
}
Codes come from the shared error table.
Conventions¶
- Amounts and shares are base-10 integer strings in smallest units.
- APYs are numbers:
netApy/grossApyin percent,apyBps/feeBps/minApyBps/shareBpsin basis points. expiresAton quotes is Unix seconds.- Ids (
quoteId,orderId) are 24-hex-character strings. - Request bodies are camelCase; the one exception is
Get rates's
risk_tierquery parameter. - Order
statusisrelaying → confirmed | failed; orderkinddistinguishes deposits from withdrawals.
Endpoints¶
Each page renders the full schema from the OpenAPI spec and is interactive against your deployment.
| Endpoint | Purpose |
|---|---|
| List chains · List assets · List venues · Get rates | Discovery (public). |
| Request a quote | Run the auction for an intent. |
| Get a quote | Re-fetch a quote by id. |
| Create a deposit | Settle a signed plan (deposits and withdrawal plans). |
| Create a withdrawal | Build an exit plan to sign. |
| Get an order | Settlement status, photonTxId, executionTxHash. |
| List positions · Get earnings | Live holdings and profit vs cost basis. |