Skip to main content

For tech partners

Build on the Magistry API and MCP server.

A REST API with an OpenAPI spec and a remote MCP server with OAuth 2.1 and scoped API keys. The same tools that run Magistry and its dashboard, open to your integration.

REST + MCPOAuth 2.1 + scoped keysWrites gated by approval cards

Why partners build on Magistry

Build on the system itself, not on a screen around it.

Most platforms ask partners to wrap a user interface. Magistry lets you build on the same tools its own agents use, so your integration gets the same audit trail, the same undo and the same kill switch.
01

REST tool endpoints — the same registry Magistry runs on

POST /api/v1/tools/{tool} with a scoped API key runs the exact tool registry that powers Magistry and the dashboard — each tool tagged read, write, or write-approval, documented in the OpenAPI spec at /api/v1/openapi.json.

02

An MCP server, not just an API

Connect Claude, Cursor, or any MCP client to the remote MCP endpoint over OAuth 2.1 with store and scope selection. Full read surface under RLS; low-risk writes such as a sync or pausing a campaign run directly, and other writes land as approval cards in the dashboard.

03

Decision-log access through read tools

Query decisions, job runs, and evidence through the scoped read tools — build reporting layers, BI exports, finance reconciliation, or your own digest products on the same rows the dashboard renders.

04

Fine-grained scopes and keys you can defend

Per-resource, per-action scopes (ads:read, catalog:write, …) plus read/write/admin bundles. Mint keys on the Developers page, see the full tool catalog, and rate limits enforced server-side.

This week

What you could build on Magistry this week.

Three integrations you could ship this week against the public surface — no private endpoints, no special access, same registry the dashboard runs on.
  • Pull the decision history into a BI warehouse through the read tools — one scoped, read-only API key, one nightly cursor.
  • Connect Claude Desktop to the MCP server over OAuth 2.1 — scoped to the stores you pick, every proposed write landing as an approval card in the operator's dashboard.
  • Propose catalog actions from an external research tool via /api/v1/tools — write-approval tools queue them for the operator; nothing applies without a card.

From your dashboard

One API call. One proposed action. One approval card.

Submit an action through /api/v1/tools/{tool}; write-approval tools land as approval cards behind the same gates and reverse-op machinery as our first-party agents. Below: an example call proposing a discount.
POST /api/v1/tools/propose_discount
Authorization: Bearer mag_sk_live_***

{
  "sku":           "linen-blazer-stone-m",
  "discount_pct":  4,
  "window_days":   7,
  "rationale":     "sell-through ahead of plan,
                    margin headroom above floor"
}

← 200 OK
{
  "status":        "pending_approval",
  "proposal_id":   "prop_84217",
  "surface":       "approval card in dashboard",
  "gates":         ["kill_switch","rate_limit",
                    "cost_tier","margin_floor"],
  "docs":          "/api/v1/openapi.json"
}

What your integration gets

Same judge. Same gates. Same decision log.

Your integration isn't a second-class citizen — every gate that protects our first-party agents protects yours. Customers see your integration's actions in the same decision log, with the same kill switch.

/api/v1/tools/{tool} · /api/v1/openapi.json · MCP: /api/mcp · OAuth 2.1

The API is the product

Built for partners who treat the API as the product.

The Magistry API exposes the same decision log the product runs on, so an integration can read every action with its reason and evidence. A solid base for a reporting sync or your own dashboard.

Build on Magistry

The decision log is open. Build on it.

Mint a scoped API key on the free plan, connect your MCP client, and ship your first integration against the same tool registry Magistry uses.

Operator-owned kill switch · Dry run is a mode you choose