API reference

API reference

The Masttro REST API is read-only for the capabilities documented here. Every data endpoint is a GET scoped to a client. Selected REST capabilities are also available through the Masttro MCP Server. The MCP tool catalog is maintained separately and may be narrower than the REST API.

Base URL

Send Authorization: Bearer <token> on every request except POST /Auth/Token. See Authentication.

Endpoints

EndpointDescriptionCore license
POST /Auth/TokenIssue a bearer tokenYes
GET /TenantsTenants you can accessYes
GET /ClientsClients you can accessYes
GET /Holdings/{id}Month-end positionsYes
GET /Transactions/{id}Transactions for a periodYes
GET /Transactions/log/{id}Transactions by posting date, including deletionsYes
GET /Performance/{id}Performance by asset and accountNo
GET /Performance/Grouped/{id}IRR, TWR or XIRR by groupingNo
GET /cef/{id}Closed-end fund metricsNo
GET /TaxLot/UnrealizedGL/{id}Unrealized gains and losses by lotNo
GET /TaxLot/RealizedGL/{id}Realized gains and losses by lotNo
GET /GWM/{id}Global Wealth Map nodesNo
GET /DataFeedUpdates/{id}Last position date per accountNo
GET /PublishedReports/{id}Reports published to the client portalNo
GET /Documents/{documentId}Download a document as base64No
GET /DAI/Valuation/{id}Document AI valuation extractionsNo
GET /DAI/CashFlow/{id}Document AI cash-flow extractionsNo

Conventions

  • Paths. Use the casing shown above. Query parameter names are case-insensitive.
  • Client id. {id} is the numeric id from /Clients. 0 means all clients on most endpoints. See Core concepts.
  • Tenant. Every GET endpoint accepts an optional tenantId query parameter from /Tenants. Without it, requests use your user's main tenant. See Core concepts.
  • Dates. yearMonth is YYYYMM. Day-level dates are YYYYMMDD.
  • Responses. JSON arrays of flat objects with camelCase fields. Empty results may be the JSON string "[]".
  • Errors. See Errors for every status and message.

A machine-readable OpenAPI description is served alongside the API at {{BASE_URL}}/swagger/v1/swagger.json.