DEVELOPERS
Documentation
Build on Monolith safely & fast
Clean REST API, webhooks, and SDK stubs. Compliance-first objects and auditable flows.
RESTWebhooksOIDCSandbox
Search docs
Quickstart
cURL
shell
curl -X POST https://api.monolith.xyz/v1/orders \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "side": "buy", "symbol": "FUND-3643", "amount": "10000" }'JavaScript
js
const res = await fetch("https://api.monolith.xyz/v1/investors", {
method: "GET",
headers: { Authorization: `Bearer ${token}` }
});
const investors = await res.json();Webhook (example)
json
{
"type": "order.executed",
"data": {
"orderId": "ord_123",
"symbol": "FUND-3643",
"filled": "10000",
"price": "1.02",
"ts": "2025-09-24T10:25:33Z"
}
}REST API
7 / 7 endpoints| Method | Path | Tag | Description |
|---|---|---|---|
| GET | /v1/investors | Investors | List investors |
| POST | /v1/investors | Investors | Create investor |
| GET | /v1/funds | Funds | List funds |
| POST | /v1/funds | Funds | Create fund |
| GET | /v1/orders | Trading | List orders |
| POST | /v1/orders | Trading | Place order (RFQ) |
| POST | /v1/webhooks | Webhooks | Register webhook |
Node SDK (stub)
js
import { Monolith } from "@monolith/sdk";
const client = new Monolith({ token });
const funds = await client.funds.list();Webhook handler
js
export default async function handler(req, res) {
const evt = req.body;
if (evt.type === "order.executed") {
// verify signature, then process
}
res.status(200).end();
}Auth (OIDC)
txt
1) Create client in Dashboard 2) Redirect users to provider 3) Exchange code for tokens 4) Use short-lived access tokens