How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

API Evangelist

The API Design Guide

An API Evangelist Paper — the design rules that hold up across the market, and the anti-patterns that keep coming back

By Kin Lane, the API Evangelist · Version 1.0 · November 2026
Status as of November 2026. Measured against the APIs.io catalog on 2026-11-26. This paper is updated on a regular cycle.


Executive summary

Every API has design rules. Most live in a reviewer’s head, and the ones that live in a head drift. The same provider uses kebab-case in one path and camelCase in the next, pages one collection with offset and another with cursor, and describes five errors with five schemas. A human developer works around that. A code generator, an SDK and an agent do not.

I did not write this guide from first principles. I built it from three bodies of evidence:

  • What providers publish. 2,065 OpenAPI documents that providers publish themselves, one per provider, each one fetched from the provider’s own URL and archived verbatim with a fetch receipt. 2,049 of them carry operations: 197,450 operations in all.
  • A second, wider sample. 1,952 more source documents from the APIs.io catalog, one per provider, where authorship is not verified by a fetch receipt. I use them as a check on the first set. Where the two agree, the finding holds across the market.
  • What providers write down. 120 Spectral rulesets that 112 providers publish in their own repositories, harvested verbatim. Seventy of them write 1,279 rules of their own. Those rules are the closest thing the market has to a shared design vocabulary.

The headline is simple. The basics are mostly done and the consistency is not.

  • 89% of providers give their operations summaries, and 82% tag them.
  • Only 69% keep those summaries distinct enough for an agent to tell operations apart.
  • Only 74% keep one casing style across their path segments.
  • 31% put verbs in their paths.
  • 27% use two or more pagination styles in the same document.
  • Only 20% of providers with list operations paginate nine in ten of them.
  • 56% publish no example at all, and only 4.4% use the standard error media type.

Each section below names what the evidence shows and closes with numbered rules. The rule IDs match the checks in the companion fix kit’s lint script. Appendix A collects all thirty-one in one checklist.


1. Why a design guide still matters

API Evangelist has argued for years that a style guide is the cheapest form of governance. Two pages on naming and response shape do more than a hundred lint rules nobody understands. I still believe that. What changed is who reads the contract.

A developer reads your docs once and remembers the quirks. A generator reads the contract and turns every quirk into code: a duplicate operationId becomes a method called getThing2, and a path segment in a third casing becomes a third naming style in the SDK. An agent reads the contract every time it connects. It picks an operation by its summary, pages by whatever parameter it finds, and branches on whatever the error looks like. Every inconsistency is a guess, and guesses cost calls.

None of this is new design advice. Plural nouns, one casing, one error shape and cursor pagination were good ideas in 2012. The difference is that machines now hold you to them.

Where this paper sits

This is the design companion to The MCP Style Guide (the tools an agent reads) and the API governance papers (how rules get enforced). This one is about the contract itself: the paths, operations, schemas and responses in your OpenAPI. If you only fix one artifact, fix this one. Every MCP server, SDK and docs page downstream is generated from it.


2. How the evidence was gathered

The provider-published set. The APIs.io catalog keeps each provider’s source OpenAPI verbatim in openapi/_original/. When the harvester fetched that file from the provider’s own URL, it wrote a receipt beside it (.fetch.json: URL, status, bytes, sha256, date). 2,079 providers have at least one receipted document. I took one receipted document per provider, at random with a fixed seed, skipped files over 8 MB, and kept the 2,065 that parsed as OpenAPI or Swagger. That is the set every headline number in this paper comes from.

The wider set. For a check, I took one random source document from each of 1,952 other providers whose source has no fetch receipt. Some of those were written by the provider and some were assembled by our own tooling from documentation, so I report them separately and never mix them into the headline.

Why source documents and not the catalog copies. The catalog normalizes what it serves. It splits documents by tag, upgrades everything to OpenAPI 3.2, and derives a missing summary or operationId from the method and path (stamped x-summary-source: derived). That is good for search and bad for measurement. In the normalized copies, 99.5% of documents pass the unique operationId check. In the provider-published sources, 76.2% do. The design choices are in the source, so that is what I measured.

How each rule was measured. Each document ran through the lint script that ships with the companion fix kit (check.py, standard library Python). The thresholds mirror the APIs.io Kin Score and Agent Readiness checks wherever one exists: 80% of operations for summaries, descriptions and tags; 50% for 4xx responses; 98% for distinct summaries; 90% for pagination; 50% for examples. Where no scoring check exists, the threshold is stated with the rule. Casing is judged on names with more than one word, since a single lowercase word fits every style.

The rulesets. I read every rule under rules: in the 120 harvested rulesets and grouped them by keyword in their name, description and message (casing, paths, errors, pagination and so on). That grouping is approximate, and I give it as counts of providers rather than as shares. Three rulesets from properties I am involved in were left out.

What this is not. These are static reads of published contracts. They say nothing about how an API behaves at runtime, and a document can be complete and still be wrong. They show what a provider declares, which is what every machine downstream of the provider reads.


3. The contract itself

The version spread in provider-published documents is healthier than I expected:

OpenAPI version Documents Share
3.1 964 46.7%
3.0 920 44.6%
Swagger 2.0 169 8.2%
3.2 12 0.6%

The weak spot is metadata. Only 35.3% of documents have a complete info block: a title, a version, a description of at least fifty characters and a contact. 79.8% declare a public HTTPS server. The rest declare none, point at localhost, or use plain HTTP.

The rulesets agree on the first point. Backbase, CAMARA, Entur and Logius each have a rule that pins the OpenAPI version, and adidas, AgID, BBVA and Docker each require a semantic info.version.

Rules

  • C1. Publish OpenAPI 3.1 or later. Leave Swagger 2.0 behind; 3.0 is acceptable while you move.
  • C2. Complete the info block: title, semantic version, a real description and a contact.
  • C3. Declare at least one public HTTPS server. Never ship localhost or plain HTTP.

4. Naming

Naming is where providers write the most rules, and where they drift the most.

Path casing. Of the 1,664 documents with multi-word path segments, kebab-case leads by a wide margin:

Dominant path-segment style Documents
kebab-case (payment-methods) 990
snake_case (payment_methods) 316
camelCase (paymentMethods) 154
PascalCase (PaymentMethods) 76
mixed, no clear style 128

Only 73.5% of all documents keep 95% or more of their segments in one style. The rest mix them. One AI provider’s 172 distinct segments are only 58% kebab-case. A building-systems provider sits at 54%.

Verbs in paths. 642 documents (31.3%) have path segments that start with a verb: get, create, update, delete, add, remove. Real examples from the set include /add, /create and /remove as sibling segments in one cloud-cost API, /update-consent and /get-compatible-selectors in a testing API, and saveTemplate beside save_workbook (two casings and a verb) in an analytics API. The HTTP method is the verb. adidas makes this an explicit rule (adidas-oas3-no-verbs-in-paths: paths “MUST NOT include verbs like ‘get’, ‘update’, ‘create’”).

Trailing slashes and extensions. 200 documents (9.8%) have paths that end in a slash, and 188 (9.2%) have paths ending in .json, .xml or .php. Both turn one resource into two URLs.

Property casing. Snake_case and camelCase split the market nearly evenly: 1,037 documents are mostly snake_case and 807 mostly camelCase. Either works. Mixing them does not, and 24.3% of documents with properties do: 290 have 80% to 95% of their properties in one style, and 192 fall under 80%. Two large financial-data providers sit at 94% and 95% snake_case across more than 15,000 properties each. The other 5% is a few hundred field names that each SDK user has to remember as exceptions.

Query parameters. 471 of 1,732 documents (27.2%) either mix casings in their query parameters or use a different casing there than in their bodies. A property-data API asks for page_size in the query and returns pageSize in the body.

What providers write down. Naming is the most common subject in the published rulesets. 59 of the 70 providers with rules of their own have path or resource rules, and 44 have casing rules. adidas requires kebab-case paths, camelCase path parameters and properties, and Hyphenated-Pascal-Case headers. AgID requires kebab-case paths and Train-Case headers.

Rules

  • N1. One casing for path segments across the whole API. Kebab-case is the market default.
  • N2. No trailing slashes.
  • N3. No verbs in paths. Resources are nouns; the method is the verb. For an action that is not CRUD, use a sub-resource (POST /orders/{id}/cancellation) or a documented action segment, and do it the same way everywhere.
  • N4. No file extensions in paths. Use content negotiation.
  • N5. One casing for every property in every schema, request and response.
  • N6. Query parameters use the same casing as properties.

5. Operations

Operations are where the basics are mostly done:

Check Pass
Summaries on 80% or more of operations 89.0%
Tags on 80% or more of operations 82.3%
Every operation has a unique operationId 76.2%
One casing for operationIds 79.5%
Descriptions on 80% or more of operations 63.9%
Summaries distinct (98% or more unique) 68.9%

The last line is the one that matters for agents. An agent picks an operation by its summary. Of the 1,847 documents with two or more summaries, 574 fall below 98% unique, and 317 fall below 90%. The repeats are not subtle. Across all 2,049 documents, the most common summaries are single words: create (144 documents), get (134), delete (123), update (111), list (110). In all, 6,147 summaries (3.7%) are one word long, in 387 documents. A one-word summary names the action but not the thing.

The other common source of collisions is a document that carries two versions of the same resource. One translation API repeats “list all glossaries” and “create glossary” because v2 and v3 both live in the same file. One digital-asset API repeats every metaproperty summary for the same reason.

operationIds have the same problem in a different form. 487 documents (23.8%) have at least one operation without an operationId, or two with the same one. camelCase leads (881 documents), then snake_case (330).

Rules

  • O1. Every operation has an operationId, and no two are the same.
  • O2. One casing for operationIds, verb first: listInvoices, getInvoice.
  • O3. Every operation has a summary.
  • O4. Summaries are distinct. Say what is done to which thing: “List invoices for a customer”, not “List”.
  • O5. Every operation has a real description, not a placeholder. Say what it returns and when to use it.
  • O6. Every operation is tagged, and every tag is declared.

6. Responses and errors

89.1% of documents declare a success response on every operation, and 73.9% declare a 4xx response on at least half their operations. That is the floor. The design question is what the error looks like.

A shared error schema. Of the 1,826 documents that declare error responses, 72.2% reference the same error schema from two or more of them. That is the signal the Agent Readiness Stable Error Semantics check reads. The rest describe errors inline, one at a time, or not at all. One documented blockchain API declares 50 error responses and references a shared schema from none of them. At the other end, 424 documents reference five or more different error schemas. That is technically shared and practically five envelopes.

The envelope. When I list the top-level fields of error bodies, the market converges on a handful of names:

Field Documents
error 629
message 543
detail 429
code 290
status 285
errors 210
type 157
title 122

The standard. RFC 9457 (Problem Details, the successor to RFC 7807) defines type, title, status, detail and instance, and the application/problem+json media type. Only 81 of 1,826 documents (4.4%) declare that media type, and 100 have an error body with type, title and detail together. adidas requires it outright (adidas-oas3-response-error-problem: “All error responses MUST be of media type application/problem+json”). Of the 70 providers that publish rules of their own, 37 have error rules.

Rules

  • E1. Every operation declares a success response.
  • E2. Every operation declares the 4xx responses it can actually return.
  • E3. One error schema, referenced from every error response. Not one per operation.
  • E4. Use RFC 9457 Problem Details (application/problem+json) for that schema, with a stable, documented type or code an agent can branch on.

7. Collections and pagination

This is the weakest area in the evidence.

Of the 1,228 documents with collection GETs (a GET that returns an array, or an object wrapping one in data, items, results and the like), only 251 (20.4%) paginate 90% or more of them. Another 322 paginate between half and 90%. 655 (53.3%) paginate fewer than half. An agent that calls one of those either gets a silent partial result or the whole table.

The second problem is consistency. Of the 1,168 documents that use pagination parameters at all, 314 (26.9%) use two or more styles (cursor, offset or page number) in the same document. One workflow platform uses offset on 24 operations and a cursor on 9. A media database uses page on 10 and offset on one.

The parameter names follow the same split:

Parameter Documents
limit 899
page 506
offset 427
cursor 308
pageSize 156
page_size 152
after 113
per_page 97

Few providers write pagination rules down. Only 16 of the 70 have one, the lowest of any subject I grouped. That is the gap the numbers above show.

Rules

  • P1. Every collection GET is paginated, with a documented default and maximum page size.
  • P2. One pagination style across the API. Prefer cursors (limit plus an opaque cursor or after, with the next cursor in the response) for anything that changes while it is read.

8. Versioning and change

Versioning in paths is mostly calm. 1,029 documents carry no version in their paths and 831 carry exactly one major version. 189 (9.2%) carry two or more (/v1 and /v2) in the same document, which is where most cross-version summary collisions come from. 112 documents use a version query parameter. Header versioning is rare in this set, and most of the header names that do appear (anthropic-version, API-Version, A2A-Version) are one provider each.

Deprecation is under-used rather than misused. 340 documents mark 3,142 operations deprecated. That is the right mechanism. What the contract rarely says is what replaces the operation and when it goes away.

Of the 70 providers with their own rules, 26 have versioning rules. Logius requires the full version number in a response header. MongoDB caps each operation at one upcoming versioned Accept header.

Rules

  • V1. One major version per published document. Publish v2 as its own document.
  • V2. Mark retired operations deprecated: true, and say in the description what replaces them and the date they go away. Announce it in a changelog.

9. Examples

Examples are the cheapest way for a developer or an agent to learn a payload shape before the first call. They are also the most-skipped part of the contract.

1,139 documents (55.6%) carry no request or response example on any operation. Only 401 (19.6%) carry one on half or more of their operations, which is what the Agent Readiness Request/Response Examples check gives full credit for. The wider set is the same: 16.7% reach half.

Thirty of the 70 providers with their own rules have example rules. That is a higher share than the market’s actual example coverage. Providers know examples matter. They just don’t enforce it.

Rules

  • X1. Every operation carries a realistic example of its request body and its success response. Use examples on the media type, and make sure they validate against the schema.

10. Security

Check Pass
Security schemes defined 74.5%
Security applied to the document or its operations 71.7%
No API key in the query string 95.4%
No implicit or password OAuth flows 97.5%

The schemes in use are bearer tokens (764 documents), API keys in a header (656), OAuth 2.0 (238) and HTTP Basic (153). 94 documents put an API key in the query string, where it ends up in logs, browser history and referrer headers. 52 still declare the implicit or password OAuth flows, which OAuth 2.0 Security Best Current Practice (RFC 9700) tells you not to use.

A quarter of documents declare no security at all. Some of those APIs are genuinely open. Most are not, and an agent can’t tell which from the contract.

Rules

  • S1. Declare every security scheme the API accepts.
  • S2. Apply security at the document level, and override per operation where it differs. If an operation is public, say so with an empty requirement (security: []).
  • S3. Keep credentials out of the query string.
  • S4. No implicit or password OAuth flows. Use authorization code with PKCE, or client credentials.

11. Writes and data

Idempotency. Only 155 of 1,773 documents (8.7%) with POST operations accept an Idempotency-Key header on any of them. A retried POST without one can charge a card twice. An agent retries more than a person does.

Shared schemas. Reuse is done. Of the 1,648 documents with five or more component schemas, 99.0% reference them. The components habit has taken hold.

Dates. 891 of 1,984 documents (44.9%) have a string property named like a date or time (created_at, createdAt, start_date, closedAt) with no format. That leaves every client to guess between ISO 8601, epoch seconds and a locale string. Logius has rules requiring date-times with a time zone. Of the 70 providers with their own rules, 18 have date or time rules.

Rules

  • W1. Accept an Idempotency-Key header on every POST that creates something or moves money.
  • D1. Define shared objects once under components and reference them.
  • D2. Every date or time property declares format: date-time or format: date, in ISO 8601 / RFC 3339, in UTC or with an offset.

Anti-patterns worth watching for

Each one below appears in the provider-published set, with the count of documents it appears in. I have left providers unnamed. These are market patterns, and every one is fixable in an afternoon.

Anti-pattern What it looks like Documents
The verb path /add, /create, /remove as siblings; /update-consent 642
The mixed casing saveTemplate beside save_workbook; paths 54% kebab-case 542 paths, 482 properties
The one-word summary Create, Get, Delete, List 387
Two versions in one file /v1 and /v2 together, so every summary appears twice 189
The unpaged list A collection GET with no limit, cursor or next 655 page fewer than half
Three ways to page offset here, page there, a cursor elsewhere 314
Five error envelopes Each operation group with its own error schema 424
The inline error 50 error responses, none referencing a schema 507 without a shared schema
The untyped date created_at: {type: string} 891
The exampleless contract No example anywhere 1,139
The key in the URL apiKey in query 94
The placeholder description: Needs description. or TODO caught by O5

Provider self-assessment

Score one point for each “yes”. Run it against your primary OpenAPI document, or run the lint script from the companion fix kit, which checks most of these automatically.

  1. Do you publish OpenAPI 3.1 or later, with a complete info block and a public HTTPS server?
  2. Is every multi-word path segment in one casing?
  3. Are your paths free of verbs, trailing slashes and file extensions?
  4. Is every property and query parameter in one, matching casing?
  5. Does every operation have a unique operationId in one casing?
  6. Does every operation have a summary that names both the action and the resource?
  7. Does every operation have a real description?
  8. Does every operation declare its success response and the 4xx responses it can return?
  9. Does every error response reference one shared error schema?
  10. Is that schema RFC 9457 Problem Details?
  11. Is every collection GET paginated, with one pagination style?
  12. Does each document carry a single major version?
  13. Does every deprecated operation say what replaces it and when it goes?
  14. Do at least half your operations carry a request or response example?
  15. Are security schemes declared and applied, with no key in the query string?
  16. Do POSTs that create things accept an Idempotency-Key?
  17. Does every date property declare a format?
  18. Is all of the above written down as a ruleset that runs in CI?

15–18: your contract is in the top fifth of the market on design. 10–14: where most providers who publish their own OpenAPI sit. Under 10: start with pagination, errors and examples. They move the most points on the Agent Readiness score.


Where this is going

The rules in this paper are not new. What is new is that they are measurable at market scale, and that the readers who hold you to them are machines. The APIs.io Kin Score already reads summaries, descriptions, tags, operationIds, success and error responses, components, security and the OpenAPI version. Agent Readiness reads distinct summaries, pagination, examples, error semantics and idempotency. Every rule above maps to one of those checks or sits next to one.

The next step for most providers is not a longer style guide. It is writing the short one down as a ruleset and running it in CI. Seventy providers already do. The evidence here says the rest should start with the three gaps the market shares: pagination, error shape and examples.


Appendix A — The rules, as a checklist

ID Rule Market today Moves
C1 OpenAPI 3.1 or later 47.3% Kin Score: OpenAPI 3.1 / 3.2 (3.0 earns less)
C2 Complete info block 35.3% Kin Score: Complete info block
C3 Public HTTPS server 79.8% Kin Score: Real servers declared
N1 One casing for path segments 73.5% —
N2 No trailing slashes 90.2% —
N3 No verbs in paths 68.7% —
N4 No file extensions in paths 90.8% —
N5 One casing for properties 75.7% —
N6 Query parameters match property casing 72.8% —
O1 Unique operationId on every operation 76.2% Kin Score: Unique operationIds
O2 One casing for operationIds 79.5% —
O3 Every operation has a summary 89.0% Kin Score: Operations have summaries
O4 Summaries distinct 68.9% Agent Readiness: Distinct Operations
O5 Every operation has a real description 63.9% Kin Score: Operations have descriptions
O6 Every operation tagged 82.3% Kin Score: Operations are tagged
E1 Success response on every operation 89.1% Kin Score: Success responses defined
E2 4xx responses declared 73.9% Kin Score: Error responses documented
E3 One shared error schema 72.2% Agent Readiness: Stable Error Semantics
E4 RFC 9457 Problem Details 4.4% Agent Readiness: Stable Error Semantics
P1 Every collection GET paginated 20.4% Agent Readiness: Pagination
P2 One pagination style 73.1% —
V1 One major version per document 90.8% —
V2 Deprecations name a replacement and a date — —
X1 Examples on half or more of operations 19.6% Agent Readiness: Request/Response Examples; Kin Score: Examples present
S1 Security schemes declared 74.5% Kin Score: Security schemes defined
S2 Security applied 71.7% Kin Score: Security applied to operations
S3 No credentials in the query string 95.4% Kin Score: Keeps credentials out of the query string
S4 No implicit or password OAuth flows 97.5% Kin Score: Declares no deprecated OAuth grant
W1 Idempotency-Key on creating POSTs 8.7% Agent Readiness: Idempotency
D1 Shared schemas under components 99.0% Kin Score: Reusable components
D2 Date and time properties declare a format 55.1% —

“Market today” is the share of the 2,049 provider-published documents with operations that pass the rule. The denominator excludes documents where the rule does not apply (no error responses, no collection GETs, no POSTs, no properties). C1 counts 3.1 and 3.2 together.

Appendix B — Sources

Catalog data (APIs.io catalog cache, read 2026-11-26)

Dataset Documents Operations Used for
Provider-published source OpenAPI, fetch-receipted, one per provider 2,065 (2,049 with operations) 197,450 Every headline figure
Other source OpenAPI, one per provider, authorship not receipted 1,952 (1,931 with operations) 90,022 Cross-check
Harvested Spectral rulesets, provider-published 120 from 112 providers 1,279 custom rules from 70 What providers write down

The cross-check set agrees with the headline set on direction everywhere. It runs a few points higher on naming and operation hygiene (for example, 86.4% distinct summaries against 68.9%) and the same or lower on pagination (23.8%), examples (16.7%) and Problem Details (3.2%).

Provider rulesets quoted: adidas (adidas/api-guidelines), AgID, Backbase, BBVA, CAMARA, Docker, Entur, Logius, MongoDB. Every ruleset is profiled with its source URL and fetch date in the provider’s APIs.io catalog repository.

Standards referenced: OpenAPI 3.1 and 3.2; RFC 9457 Problem Details for HTTP APIs; RFC 3339 date and time; RFC 9700 OAuth 2.0 Security Best Current Practice; the IETF Idempotency-Key header draft.


About API Evangelist

API Evangelist is the research, analysis, and advisory practice of Kin Lane, studying the business and politics of the API industry since 2010. For sixteen years it has been one of the most cited independent voices in the space, publishing open research at apievangelist.com and maintaining a working catalog of the API landscape at APIs.io.

The practice is deliberately independent and vendor-neutral. Kin is a former Presidential Innovation Fellow and has advised platform teams, enterprises, and government agencies on API strategy, governance, and developer experience. The method is consistent: survey what providers actually ship, define it as open, machine-readable artifacts (OpenAPI, APIs.json, and now MCP), and turn that evidence into guidance practitioners can act on. This paper is a direct product of that method.

About API Evangelist White Papers

API Evangelist White Papers are formal, practitioner-focused guides distilled from ongoing research across the API landscape. Each one takes a single, consequential part of API operations and turns a broad scan of how real providers handle it into an opinionated, reusable playbook, complete with anti-patterns and a self-assessment you can run against your own operations.

  • Evidence-based. Every recommendation is grounded in what providers actually shipped, cross-referenced to the live catalog at APIs.io.
  • Vendor-neutral. No sponsor steers the conclusions; tools and platforms are named on merit.
  • Living documents. Each paper carries a version and an “as of” date, and is revised on a regular cycle as the landscape moves.

API Evangelist Services

This paper is a map; API Evangelist also does the work alongside you, across three areas: Discovery (vocabulary, interfaces and standards), Governance (strategies, policies, rules, pipelines and reviews, including turning a design guide like this one into a ruleset that runs in CI), and Evangelism (stories, talks, papers and workshops).

Get in touch

— Kin Lane, the API Evangelist


© API Evangelist · Kin Lane · This paper is part of a regularly-updated series.