DEVELOPERS
Documentation

Build on Monolith safely & fast

Clean REST API, webhooks, and SDK stubs. Compliance-first objects and auditable flows.

RESTWebhooksOIDCSandbox
Search docs
Service statusAll good

Realtime uptime & incidents.

Open status

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
MethodPathTagDescription
GET/v1/investorsInvestorsList investors
POST/v1/investorsInvestorsCreate investor
GET/v1/fundsFundsList funds
POST/v1/fundsFundsCreate fund
GET/v1/ordersTradingList orders
POST/v1/ordersTradingPlace order (RFQ)
POST/v1/webhooksWebhooksRegister 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