Skip to content

How APIs.Dev works

APIs.Dev turns one file into a product people and agents find, choose, buy and verify, with its own site, portal and docs. Nine subsystems run it.

One file, four kinds of state

Your file compiles to one versioned Definition, and every part of the product is generated from it. Underneath sit four kinds of state, and each has one owner.

StateWhat it holdsChanged by
The DefinitionWhat may happen: Nouns, Verbs, lifecycles, prices, terms, Roles and staffinga deploy, and nothing else
The recordWhat did happen: records, Events, Actions, money and evidence, kept forevera Verb, through one commit gate
ViewsSearch, lists, metrics, and your own numbers: revenue, margin per Verb, cost to serverebuilt from the record, never written
Outside truthStripe, upstream Sources, and the systems each Customer connectsreconciled; a disagreement arrives as an Event

A fact, its Event, its meter line and its audit entry commit together, or none of them do.

RuleWhat keeps every output in step with the file
LineageEvery output carries the digest of the Definition it came from
The diff is the changeA deploy compares two Definitions, writes the changelog, and refuses a breaking change unless it ships as a new Version
PinningEvery caller and every running case stays on the Version it started on
CutoverEvery Interface moves to the new Version at once, and a rollback moves them all back
MigrationA migration is checked against the live record, and old Versions run until the work pinned to them closes

Each Customer can extend your file with its own fields, rules and Workflows, inside the limits you set.

Nine subsystems

Every move passes the runtime's gate. A subsystem with pages of its own links to them.

Definition and compile

The compiler checks the business: it refuses a Verb with no price, a price below cost, or a step nobody can staff. Specified in the seven patterns and the file.

Identity, access and policy

A person, an agent, a key or an app acts for a Customer org under a Role or a mandate. One decision answers every move: allowed, pending, or refused with a cure.

Model and records

Each Customer's records: Nouns, Relationships, lifecycles, files and content, with full history. Search, views and metrics are rebuilt from them. Specified in Headless SaaS.

Data and Sources

Sources read live or kept on a schedule, through a Mapping, and each Customer's own systems as an Integration. Licence terms travel with the data. Specified in Dataset API.

Runtime

One gate for every move: identify, decide, price, guard, commit, then act outside. A Workflow waits for weeks without losing its place.

Work

Jobs done by agents and people: cases, review, licensed supervision, suppliers, booking, orders and acceptance. Each step runs on the cheapest worker that meets its grade.

Commerce

The sell side prices, meters and takes payment from people through Stripe Checkout and from agents inside the call. The buy side lets your Customers' agents spend.

Interfaces and distribution

Eleven Interfaces from one file, among them the landing site, the developer portal and the docs. Each product is found where people and agents look. Specified in What every product gets and Reference.

Trust and operations

The managed infrastructure: Test and Live, deploy and rollback, status, security, privacy, tenant operations and brakes on abuse, proved to an outside check.

What every product can do

Each family is an API, so a person, an agent and any UI reach the same state and moves.

FamilyWhat a product does with itSubsystem
Orgs and membersCustomer orgs, members, invites, teams, single sign-on and directory sync, apps acting for a CustomerIdentity
Roles and policyCustom Roles; permissions per Verb, field and record; mandates for agents; approvals; support access a Customer consents toIdentity
RecordsNouns and Relationships, full history and restore, import and export, fields each Customer addsModel
Content and filesFiles and media, documents generated from records, drafts, review and publishing, editions and access tiersModel
Search and viewsSearch that respects permissions, saved views, metrics and reportsModel
IntegrationsEach Customer's own systems, read and written back, with outside truth reconciledData
Workflows and state machinesLifecycles with guarded moves, durable runs, schedules, recurring work and timersRuntime
EventsThe change feed, Watches, signed webhooks in and out, live subscriptionsRuntime
Agents inside the productAn agent for each Customer, with tools drawn from the Verbs, its own memory and skills, spend brakes and a record of what it didWork
Cases and outcomesIntake with conflict checks, quotes, tasks, queues, handoffs, delivery, acceptance and remedy under an Outcome contractWork
Review and supervisionAdversarial, affirmative, sampled and four-eyes review; licensed sign-off; privilege, ethical walls, retention and legal holdWork
Suppliers and the people who do the workJoin, verify, match and staff; capacity, booking and track record; orders filled, shipped and returnedWork
Billing and moneyPlans, seats, credits, committed use, invoices, outcome prices with holds, splits between payees, client funds held until acceptanceCommerce
Payments for your CustomersEach Customer takes payments from its own customers on its own Stripe account, with your fee on eachCommerce
Buying with agentsBudgets, mandates, a selection policy, a credential per seller and one receipt stream for a Customer's own agentsCommerce
MessagesDelivery sends, notifications, inbound intake into a case, and one thread per case, with preferences and consentInterfaces
Customer operationsProvision, suspend, restore, export and erase a Customer; isolation; audit exportTrust

A CRM you sell is a Headless SaaS built from these families.

The landing site, the portal and the docs

All three are generated from your file under your brand, and a new Verb lands in all three at the same deploy.

InterfaceWhat it holds
Landing siteThe promise, examples that run, the catalog and price page with its machine twin, the offer card, terms, privacy and the refund rule from your file, status, the changelog, sign-up
Developer portalSign-in and single sign-on, Test and Live keys, usage with alerts and spend caps, plan changes and cancellation, payment methods and tax details, invoices and receipts, members, connected apps, webhook addresses and their delivery log, request logs, mandates and budgets for agents, disputes, export and deletion, a way to reach you
The portal for suppliersA second kind of account, in a Marketplace or a Service API: verification, the supplier's catalog, payout onboarding on Stripe, payouts and tax forms
DocsA quickstart per Interface, guides, a reference page per Verb and Noun, an error page per refusal with its cure, try-it with sandbox keys, docs pinned per Version with migration guides, search, llms.txt

Every move in the portal is a Verb first.

The buy side

Your Customers' agents buy too, under the same one decision.

PartWhat it does
BudgetFunded on Stripe, then split per agent, task and seller
MandateScoped, budgeted, time-boxed and revocable, and checked by the seller before it serves
Selection policyAllowed sellers, price and proof thresholds, and an approval above a limit
CredentialsOne per seller, held for the agent, never in its prompt
ReceiptsOne signed stream across every seller, verified, reconciled, exported to the Customer's books, and disputed with the receipt

Where the product stops

Anything outside the product reads it through these hooks: Events, webhooks, entitlements, offers in replies and the UI contracts. It acts through the same Verbs.

A message that delivers what a Customer bought is product; a campaign to someone who never called runs outside, on its Events.

Seven patterns, one system

The seven patterns share one grammar, gate, decision and receipt; only the core, in bold, and the unit metered change.

They stack: a Dataset API feeds a Function API, which is an agent's tool. Agents and people deliver a Service API, and a Headless SaaS keeps the records. Content sells records by access, and a Marketplace sells any of them from many suppliers.

SubsystemDataset APIFunction APIContentAgent API
DefinitionSources and MappingsFunctions and pricesitems, editions, access tiersthe agent, its tools, its mandate
Identitykeyskeys and mandatesmembers and tiersthe mandate chain
Modelthe records it servesinput and outputposts, issues, files, spacesthe Customer's records and memory
Datathe coreoptionalimportseach Customer's own systems
Runtimerefreshthe corescheduled editionslong runs, schedules
Workcorrectionsescalation to a personmoderationbrakes, handoffs, proof
Commerceper answerper callsubscription, one-off, per readtokens and minutes
Interfacesall elevenall elevenand delivery sendsand an agent card
Trustcoverage, freshness, licenceevalslicence, moderation recordtraces, spend brakes
An agent, end to endcompares offer cards, buys an answer, checks the receiptquotes, calls, pays per callpays per readhires the agent and reads its proof
SubsystemHeadless SaaSMarketplaceService API
DefinitionNouns, lifecycles, planssuppliers, their catalog, split rulesthe case, its grades, its staffing
Identityorgs, members, Roles, approvalsbuyers and suppliers, verifiedclient orgs, parties without accounts, licensed Roles
Modelthe corethe catalog, stock, ratingscase files, privilege classes
Dataeach Customer's Integrationssupplier feedsoutside submissions and evidence
Runtimelifecycles, Workflows, Eventsorder routingclocks, signals, effects
Workapprovals, booking, ordersorders filled by suppliers, on timethe core
Commerceplans and seatsthe split, payouts, your shareper accepted outcome, held funds
Interfacesand an app's contractsand buyer and supplier contractsand client and worker contracts
Trustaudit, residencysupplier risk, fraudsupervision record, evidence
An agent, end to enda member's day and an admin's setupbuys from a supplier, the money splits, contests a bad fillfiles a matter, accepts or contests, pays

Every pattern launches with the site, the portal and the docs.

Products built on products

Any product can be a Source of another, and each hop keeps its own price and margin. The patterns show the files.

ChainWhat it guarantees when your product is built on another
VersionThe product you build on is pinned, and its breaking changes ship as new Versions
MandateAn agent's spending authority narrows at every hop
SettlementOne payment splits to every seller at its printed price
TraceOne evidence chain runs from the first call to the last
RemedyAn upstream refusal or refund flows into your Outcome contract