# Magistry > Magistry is the AI operating system for commerce. One live data layer joins every channel, ad and customer of a store, and a fleet of AI agents runs the business on it around the clock. It reads a store's catalogue, ads, orders, feed and customer service, decides what to change, and acts inside published guardrails. Everything the in-app operator can do is also available over a REST API and a remote MCP server, behind OAuth 2.1 or an API key. The programmable surface is **1148 operations** (494 read, 654 write) on API version 1, each requiring exactly one scope. The documents below are generated from the same registry that serves the requests, so they cannot describe a surface that does not exist. All of them are public and unauthenticated, and all of them carry contract only — no merchant data is reachable without a credential. ## API contract - [Operation index](https://app.magistry.io/api/v1/operations.json): every operation in one line each — name, method, path, scope, risk, area and summary. The whole surface at a size a model can read in one go; start here. - [OpenAPI 3.1 specification](https://app.magistry.io/api/v1/openapi.json): every operation, its request schema, its required scope and every error code. Generated from the tool registry. Add `?tag=` for one area's operations only (the areas are listed below). - [AsyncAPI specification](https://app.magistry.io/api/v1/asyncapi.json): the outbound event contract for webhook subscriptions. - [Changelog and deprecations](https://app.magistry.io/api/v1/changelog.json): machine-readable support policy — a 365-day minimum notice, additive-only within a major version, and every announced deprecation with its sunset date and its replacement. ## Model Context Protocol - [MCP server discovery](https://app.magistry.io/api/mcp): a GET returns the server name, the supported protocol revisions (2026-07-28, 2025-06-18) and where to authorize. The same URL is the JSON-RPC endpoint for a POST carrying a bearer token. - Tools added after a client connected: its copy of `tools/list` dates from the moment it connected, and this endpoint cannot push a change. Three tools whose shape never changes read the live catalogue instead — `magistry_search_tools`, `magistry_describe_tool` and `magistry_call_tool` — under the same scopes, write grants and approvals as a direct call. - [MCP registry manifest](https://www.magistry.io/server.json): this server in the `server.json` format the official MCP registry publishes, for a client that wants to install it without being handed the address. - [Protected resource metadata](https://app.magistry.io/.well-known/oauth-protected-resource): RFC 9728 — which authorization server guards the MCP endpoint, and the scopes it understands. - [Authorization server metadata](https://app.magistry.io/.well-known/oauth-authorization-server): RFC 8414 — the authorize, token, revoke and introspection endpoints. ## Operations by area - [admin](https://app.magistry.io/api/v1/openapi.json?tag=admin): 10 operations (5 read, 5 write). - [ads](https://app.magistry.io/api/v1/openapi.json?tag=ads): 65 operations (26 read, 39 write). - [analytics](https://app.magistry.io/api/v1/openapi.json?tag=analytics): 27 operations (22 read, 5 write). - [automation](https://app.magistry.io/api/v1/openapi.json?tag=automation): 83 operations (34 read, 49 write). - [billing](https://app.magistry.io/api/v1/openapi.json?tag=billing): 6 operations (6 read, 0 write). - [catalog](https://app.magistry.io/api/v1/openapi.json?tag=catalog): 57 operations (25 read, 32 write). - [costs](https://app.magistry.io/api/v1/openapi.json?tag=costs): 31 operations (11 read, 20 write). - [creative](https://app.magistry.io/api/v1/openapi.json?tag=creative): 82 operations (33 read, 49 write). - [cs](https://app.magistry.io/api/v1/openapi.json?tag=cs): 144 operations (45 read, 99 write). - [developer](https://app.magistry.io/api/v1/openapi.json?tag=developer): 22 operations (9 read, 13 write). - [disputes](https://app.magistry.io/api/v1/openapi.json?tag=disputes): 20 operations (9 read, 11 write). - [finance](https://app.magistry.io/api/v1/openapi.json?tag=finance): 151 operations (56 read, 95 write). - [general](https://app.magistry.io/api/v1/openapi.json?tag=general): 27 operations (19 read, 8 write). - [integrations](https://app.magistry.io/api/v1/openapi.json?tag=integrations): 14 operations (2 read, 12 write). - [marketplaces](https://app.magistry.io/api/v1/openapi.json?tag=marketplaces): 23 operations (16 read, 7 write). - [merchant](https://app.magistry.io/api/v1/openapi.json?tag=merchant): 79 operations (30 read, 49 write). - [orders](https://app.magistry.io/api/v1/openapi.json?tag=orders): 19 operations (8 read, 11 write). - [promotions](https://app.magistry.io/api/v1/openapi.json?tag=promotions): 5 operations (2 read, 3 write). - [reputation](https://app.magistry.io/api/v1/openapi.json?tag=reputation): 28 operations (5 read, 23 write). - [research](https://app.magistry.io/api/v1/openapi.json?tag=research): 44 operations (24 read, 20 write). - [settings](https://app.magistry.io/api/v1/openapi.json?tag=settings): 68 operations (32 read, 36 write). - [social](https://app.magistry.io/api/v1/openapi.json?tag=social): 25 operations (11 read, 14 write). - [theme](https://app.magistry.io/api/v1/openapi.json?tag=theme): 93 operations (53 read, 40 write). - [workspace](https://app.magistry.io/api/v1/openapi.json?tag=workspace): 25 operations (11 read, 14 write). ## Authorization - [Scopes](https://app.magistry.io/api/v1/openapi.json): 46 capability scopes — two broad bundles (`read`, `write`), a `resource:action` pair per capability area, and `admin`. A token is evaluated against exactly one required scope per operation and nothing else. `offline_access` is granted alongside them to opt into a refresh token; it gates no operation. - An OAuth client may be registered dynamically, or identified by a Client ID Metadata Document — an https URL serving your client metadata, passed as `client_id`. Dynamic registration is deprecated with notice; the changelog above carries the date. - [Error codes](https://app.magistry.io/docs/api/errors): every code, what it means, what to do about it, and whether a retry is reasonable. Public — checked with an unauthenticated fetch, because it lives on the app origin and almost everything else there needs a login. ## Product and policy - [What Magistry does](https://www.magistry.io/platform): the agents, what each one decides, and where a merchant sees it. - [Pricing](https://www.magistry.io/pricing): plans, included credits and overage. - [Integrations](https://www.magistry.io/integrations): the platforms Magistry reads and writes. - [Trust and sub-processors](https://www.magistry.io/company/trust): where data goes and who processes it. - [Privacy notice](https://www.magistry.io/legal/privacy) - [Data processing agreement](https://www.magistry.io/legal/dpa) - [Terms of service](https://www.magistry.io/legal/terms) ## Optional - [Full reference](https://www.magistry.io/llms-full.txt): this index followed by the ad networks, commerce platforms, modules, integrations and FAQ, in one plain-text file. - [Blog feed](https://www.magistry.io/feed.xml): product and engineering writing. - [Sitemap](https://www.magistry.io/sitemap.xml) ## Notes for an agent reading this - Every call is authenticated. There is no anonymous read of merchant data anywhere on this platform; the documents above are contract, not content. - Errors carry a stable machine-readable `error` code and a `request_id`. Branch on the code — there are 96 of them and they are enumerated in the OpenAPI document — never on the prose. - Write operations accept an idempotency key. `idempotency_in_flight` means ask again; `idempotency_unavailable` means nothing was written. Those two are the pair worth telling apart before you retry. - This file is generated from the API surface itself (`apps/dashboard/lib/api/artifacts/llms-txt.ts`). If a number here disagrees with the OpenAPI document, the OpenAPI document is right and our CI is broken.