Technology Insights
Why AppDirect Builds Its APIs on GraphQL
By Mathew Spolin / November 30, 2026
In this article:
TL;DR:
Every query Is a prompt
GraphQL is overkill for a simple app, but AppDirect's subscription commerce platform isn't simple. It lets many teams ship services behind one typed, self-documenting API that grows without new versions, prices every query so none is unbounded, and returns exactly the fields you ask for. Those same properties make it the most predictable interface we can give AI agents, because every query is a prompt.
The API we built for developers works even better for AI agents
GraphQL has a lot of critics, and a good part of their case holds up. For a CRUD app with twenty users, it’s overkill. It adds a query language, a schema, a gateway and a new set of performance concerns to solve problems you don't have. A plain REST endpoint is easier to build, cache and debug, and every engineer already knows how it works. GraphQL starts to pay for itself only once the application behind it is genuinely complex.
AppDirect's subscription commerce platform is. We run marketplaces for telecom providers, distributors, resellers and software vendors, and each one is configured differently. A single purchase can touch the product catalog, pricing, checkout, subscriptions, billing, provisioning, and the users and companies on both sides of the sale. Many engineering teams build different products on that platform. So do our partners, whose integrations we don't control, can't redeploy, and can't break.
We didn't start with GraphQL. Our platform began as one large application, and its REST APIs mirrored the way that application was built inside. As we broke it into separately deployed services, which now ship hundreds of times a day, the problems with that approach got harder to ignore:
Over- and under-fetching. A partner who needed three fields got an entire object back. A partner who needed data from three domains made three or more calls and joined the results themselves.
Brittle integrations. When an API reflects internal structure, every internal change risks becoming an external one. Moving a capability from one service to another shouldn't break someone else's code, but with endpoints tied to services, it could.
Version sprawl. Each breaking change meant a new endpoint version to document, support and eventually retire, and partners had to migrate on our schedule.
So we made API design a first-class engineering concern and chose GraphQL, with federation to bring many services together into one graph. That came with work we hadn't fully anticipated. We had to build the tooling to compose, check and document schemas, define lifecycle stages for each part of the API, and write shared standards for naming, identifiers, errors and how a schema is allowed to change. Our public GraphQL API is the result, and it's still growing.
In the past couple of years, AI has made the case even stronger. A GraphQL query tells the server which data to return and what shape to return it in, which is what a prompt does. Every query is a prompt. A schema that a human developer reads once to get started is something an AI agent reads on every task, so the properties that serve developers well serve agents even better.
We'll come back to agents. First, here is what GraphQL gives the people building on AppDirect today.
1. Many products, one API
A great product experience draws on many parts: your catalog, subscriptions, billing, and customer identity. AppDirect brings them together behind one GraphQL endpoint and one schema, so you can combine them however your experience needs.
Want a dashboard showing a customer's company, team, and products? Ask for exactly those fields in a single query. You don't need to know what sits behind each field, and you don't stitch results together yourself.
Your integration stays steady as the platform grows. New capabilities are added to the same graph, ready when you are, and we validate every schema change against the complete graph before release, so the fields you rely on don't quietly disappear. One endpoint, one schema, and the freedom to build the experience you have in mind.

2. The schema is the contract, and it documents itself
The AppDirect GraphQL API is strongly typed, and the schema defines every type, field, argument and mutation you can use. The GraphQL Explorer, which marketplace managers can enable on their marketplace, builds its documentation from the live schema through introspection. The reference docs come from the same source.
For you, that means three things:
The documentation describes what the server accepts today, because both come from the same schema.
You can generate typed client code from the schema instead of writing response models by hand.
An invalid query, such as a misspelled field or a wrong argument type, fails validation before any of our code runs, and the error names the problem.
3. We add to the API, and we don't make you migrate
Our API has no /v2. When we need to change something, we add new fields next to the old ones and mark the old ones deprecated. Your existing queries keep working, and you move when you're ready.
Our GraphQL API policy puts this in writing. Once a feature reaches Early Availability, we make only backward-compatible changes. GA functionality is covered by our support and service-level agreements for at least two years.
New features show up first on a separate preview endpoint. You can build against the preview schema and give us feedback before it's final, and changes still in progress never reach your production integration.
4. Every query has a price, so none of them is unbounded
The strongest objection to GraphQL is that it's unbounded: you hand clients a language that can ask your database for almost anything. That's true of a naive GraphQL server. A single query can ask for as much work as hundreds of REST calls, so counting requests tells you nothing about load.
We price each query before we run it, based on how much work it will take. The cost is the number of backend requests needed to fulfill the query plus the number of nodes it returns.

That query costs 1 point. A query that lists 250 products costs 251 points: one request plus 250 nodes.
Two limits apply (details):
Per query: at most 1,000 points.
Per client: a leaky bucket that holds 1,000 points and refills at 100 points per second. Over time you can make as many requests as you like, but you can't send a burst big enough to hurt the platform.
Because limits are based on work, a client that asks for exactly what it needs gets more out of its budget than one that over-fetches.
5. Ask for exactly the fields you need, across domains, in one request
An AppDirect product or subscription has a lot of attributes, and each integration uses a different handful of them. A storefront needs names, pricing and images. A provisioning integration needs editions, entitlements and subscription status. A reporting job needs IDs, dates and amounts.
With REST, you either get the full object every time or ask us to build an endpoint for your screen. With GraphQL, you list the fields you want. You can also follow relationships, such as a subscription's product, its edition and the company that owns it, in one round trip instead of chaining several calls.
Now the part about AI
A GraphQL query states which entities the caller wants, which fields, which relationships, and the shape of the response. A well-written prompt does much the same job. The features that make GraphQL feel heavy to a human developer, such as a formal schema, strict validation and an explicit selection of every field, are the ones an AI agent needs most.
Here is why it suits agents:
Discovery is built in. An agent can introspect our schema and get a typed list of every field, argument and mutation it's allowed to use, along with their descriptions. It doesn't have to guess at URL patterns or scrape docs.
Mistakes come back fast and readable. If an agent writes an invalid query, validation rejects it before execution and the error names the bad field. The agent can fix the query and try again, the same loop it already uses with a compiler.
Responses contain only what the agent asked for. Every unrequested field costs context tokens and adds noise to the agent's reasoning. A GraphQL response has nothing extra.
Cost limits work as guardrails. An agent that writes an expensive query gets a clear limit back instead of putting load on a shared platform. The limits we built for human developers protect against an over-eager agent just as well.
Partners are already writing integrations with AI coding assistants, and more of them will run autonomous agents against our platform. A typed, introspectable, cost-bounded API is the most predictable thing we can give those tools.
What it costs us
GraphQL has real downsides, and the critics have a point.
HTTP caching is harder. Every request is a POST to one endpoint, so the CDN and browser caching that REST gets for free with GET and cache headers don't apply. We do more caching on the server side as a result.
Federation needs care. Composing schemas from many teams into one graph requires its own validation and release discipline, and we've had to invest in both.
Coverage is still growing. Parts of our GraphQL API are in Preview or Early Availability, and some workflows still require our REST APIs. The changelog shows what's available at each stage.
We accept those costs because the alternative is worse for the people building on us: more endpoints, more versions, more over-fetching, and an API that AI tools have to guess their way through.
Try it
The GraphQL API reference includes interactive examples. If your marketplace manager has enabled the GraphQL Explorer, you can run queries against your own marketplace data from the browser. The Explorer works on live data, so use a test environment if you plan to try mutations.
If you're building with an AI assistant, point it at the schema and let it introspect. Tell us how it goes, because what we learn from agent usage will shape where the API goes next.
Join the conversation on my original LinkedIn article.
Mathew Spolin leads global engineering at AppDirect, where managing organizational debt across multiple countries, acquisitions, and restructurings has been as critical as managing our technical debt. If this framework resonates, I'd love to hear your examples.
Related Articles
Technology Insights
The Factory Kitchen for AI Agents
What can a Cheesecake Factory kitchen teach us about AI agents? AppDirect SVP of Engineering Mathew Spolin draws a delightful parallel between restaurant recipes, stations, and quality checks—and the system that helps agents carry knowledge from one session to the next. The secret isn’t agents that remember everything; it’s a kitchen that gets better every time.By Mathew Spolin / AppDirect / October 22, 2026
Technology Insights
Agentic Software Development Created New Friction Points—Where to Find Them, How to Fix Them
As AI accelerates software development, the bottleneck doesn't disappear. It moves. Mathew Spolin, AppDirect's SVP of Engineering and Technology, maps the four friction points that emerge when coding gets fast — and the practical solutions engineering and business leaders can act on today.By Mathew Spolin / AppDirect / June 3, 2026
Strategy & Best Practices
Quality Isn't Vibes: How We Created a Practical Framework to Measure Software Quality
Software quality often gets treated as a vibe rather than something engineered. The AppDirect engineering team made it measurable using a 5-pillar framework: Security, Reliability, Performance, Responsiveness, and Issue Detection .By Mathew Spolin / AppDirect / May 13, 2026