Skip to content

By the Octri team · Updated

What is an API catalog? RFC 9727 and examples

Share

An API catalog is a list of an organization's APIs, with links to each one's docs and spec. Since RFC 9727, it can also live at /.well-known/api-catalog, where programs know to look, and this guide builds one.

What is an API catalog?

An API catalog answers one question: what APIs does this company have, and where do I start with each? Every entry names an API and points at the things a developer needs next, which are usually its documentation, its OpenAPI spec and its status.

The term means two different things, and the search results mix them up. Inside a company, an API catalog is an inventory that platform teams keep of every internal and external API, with owners, versions and lifecycle stages, usually inside an API management tool. Outside, it's a public, machine-readable list that a program can fetch to discover what you publish. This guide is mostly about the second kind, because that's the one with a standard behind it and the one your developers and their AI tools can use.

Think of a library's card catalog. Nobody has to walk the shelves to find a book, because the catalog tells you what exists and where it is. The public API catalog does the same for your APIs, and RFC 9727 says which drawer it lives in.

The RFC 9727 API catalog

RFC 9727 is an IETF Standards Track document from June 2025. It defines the api-catalog well-known URI and a link relation of the same name, so a program that knows your domain can find your APIs without reading your marketing site.

The rules are short. A request for /.well-known/api-catalog returns the catalog, and a HEAD request to the same address returns a Link header with rel="api-catalog". The catalog must use the Linkset format, application/linkset+json from RFC 9264, and it must contain links to your APIs. The RFC recommends adding a profile parameter of https://www.rfc-editor.org/info/rfc9727 to the content type, so a reader knows the linkset is an API catalog. It also recommends metadata such as usage policies, versions and links to each API's OpenAPI definition.

Each entry in the linkset has an anchor, which is the API itself, and relations that point at things about it. The RFC's examples use relations from RFC 8631:

Relation Points at
service-desc A machine-readable description, such as the OpenAPI file
service-doc Documentation for people
service-meta Other metadata about the API
status The API's status
item An API that belongs to the catalog

An API catalog example

I wrote this catalog for a made-up billing API while writing this guide. It has one entry, with the OpenAPI file, two kinds of docs and a status page.

json
{
  "linkset": [
    {
      "anchor": "https://api.acme.example/billing/v1",
      "service-desc": [
        {
          "href": "https://api.acme.example/billing/v1/openapi.json",
          "type": "application/vnd.oai.openapi+json"
        }
      ],
      "service-doc": [
        { "href": "https://docs.acme.example/billing", "type": "text/html" },
        { "href": "https://docs.acme.example/llms.txt", "type": "text/plain" }
      ],
      "status": [
        { "href": "https://status.acme.example" }
      ]
    }
  ]
}

Serving it takes a few lines. This Node server answers GET with the catalog and HEAD with the Link header, and it sets the content type with the profile:

javascript
import http from "node:http";
import fs from "node:fs";

const body = fs.readFileSync("api-catalog.json");
const type =
  'application/linkset+json; profile="https://www.rfc-editor.org/info/rfc9727"';

http.createServer((req, res) => {
  if (req.url !== "/.well-known/api-catalog") {
    res.writeHead(404).end();
    return;
  }
  res.writeHead(200, {
    "Content-Type": type,
    Link: '</.well-known/api-catalog>; rel="api-catalog"',
  });
  res.end(req.method === "HEAD" ? undefined : body);
}).listen(8790);

Then I wrote a small checker that does what a client would. It sends a HEAD request and looks for the Link header, sends a GET and checks the content type and profile, and checks that every linkset entry has an anchor and at least one relation with an href. My catalog passed all of it. In production you'd serve the same file from your web server or CDN, and the RFC also allows the well-known address to point at a catalog you host somewhere else.

Diagram of API discovery with RFC 9727: a HEAD request to /.well-known/api-catalog returns a Link header with rel api-catalog, a GET returns application/linkset+json with one entry per API, and each entry's anchor has a service-desc link to the OpenAPI file, a service-doc link to the docs and llms.txt, and a status link to the status page.
How a program finds your APIs with RFC 9727, and what one entry in the catalog points at.

Who publishes an API catalog today?

Hardly anyone yet, and I counted. On 29 November 2026 I requested /.well-known/api-catalog from 25 API domains belonging to well-known companies, including the APIs of GitHub, Stripe, Twilio, OpenAI, Slack, Cloudflare, DigitalOcean, Microsoft Graph, Google, Spotify and Zoom. Two of the hostnames didn't resolve. Of the 23 that answered, one served a catalog.

That one was Zoom. api.zoom.us/.well-known/api-catalog returned a linkset with 77 entries, one per API, and each had a service-desc link to an OpenAPI file, service-doc links to both the HTML docs and a Markdown version, and a status link. Its HEAD response carried the Link header too, and alongside rel="api-catalog" it pointed at an MCP server card. My checker passed it on everything except the profile parameter, which Zoom leaves off its content type. The RFC says "should" for that one, so Zoom's catalog is still valid.

Everyone else returned an error, mostly 404s, with a few 401s and 403s, one 400 and one 410. GitHub, Stripe and Twilio all returned 404.

So here's the honest take. An API catalog won't bring you traffic today, because almost nobody publishes one yet. It's a small file, though, the standard is settled, and the one big API that has one uses it to point at its OpenAPI files, its Markdown docs and its MCP server. Rule of thumb: if you already publish an OpenAPI file and docs, an API catalog is an afternoon's work.

How to publish an API catalog

  1. List your public APIs, one entry each, with the base URL as the anchor.
  2. Link each one's OpenAPI file with service-desc, using application/vnd.oai.openapi+json or the YAML type.
  3. Link its docs with service-doc, and add a Markdown or llms.txt version for AI tools.
  4. Link its status page with status if you have one.
  5. Serve the file at /.well-known/api-catalog with application/linkset+json and the RFC 9727 profile.
  6. Answer HEAD with a Link header that has rel="api-catalog".
  7. Publish it at each API domain you run, which the RFC recommends, and add it to your release checklist so a new API never ships without its entry.

The other kind: an internal API catalog

The inventory kind of catalog solves a different problem. A company with a few hundred internal services needs to know which APIs exist, who owns each one, which version is current and which are being retired, or teams build the same API twice. That catalog usually lives in an API management or developer portal tool, sits behind company sign-in and carries fields nobody outside needs, like cost centre and on-call team.

The two kinds can share data. A public RFC 9727 catalog can be exported from the internal one, filtered down to the APIs you publish. What is an API developer portal? covers the difference between the portal your customers see and the internal developer portal your engineers use.

Unofficial Vercel API showcase built with Octri, on its AI tools overview page, listing Ask AI, Copy for LLM, View raw and llms.txt as the ways the site is built to be read by assistants as well as people.
An unofficial Vercel API showcase built with Octri. Its AI tools page lists what an assistant can read on the site, and an API catalog entry can link to the same pages.

API catalog checklist

  • A linkset at /.well-known/api-catalog, served as application/linkset+json.
  • The RFC 9727 profile parameter on the content type.
  • A Link header with rel="api-catalog" on HEAD requests.
  • One entry per public API, anchored at its base URL.
  • service-desc links to each OpenAPI file.
  • service-doc links to the docs, with a Markdown or llms.txt version.
  • status links where a status page exists.
  • The catalog at every API domain, and updated in every release.

API catalog with Octri

Octri gives you most of what goes in an API catalog, and you write the file itself. API Studio publishes your docs on your own domain, custom domains included on Free, so your service-doc link points at a site that follows your spec. The same site publishes /llms.txt, an index of every page that builds itself from your navigation, which is the Markdown-friendly link an AI tool wants. If you import your spec from GitHub, or from a URL on the Growth plan and up, the docs follow each new version on their own.

Monitoring can publish a status page at your own address, such as status.acme.com, for the status link, and the hosted MCP server gives agents a URL that calls your API, which you can link from the catalog the way Zoom does. How to make API documentation AI-readable covers the rest of what helps an assistant read your docs.

The llms.txt file of an unofficial Vercel API showcase built with Octri, a Markdown index with a title, a summary line and sections such as Overview, Get started and Guides, each listing pages with their URLs and a one-line description.
The llms.txt that an Octri docs site publishes, here for the unofficial Vercel API showcase. A catalog's service-doc entry can link straight to it.

Share

Keep reading