Website Spec
← Well-Known URIs
Recommended

/.well-known/api-catalog

RFC 9727 publishes a machine-readable index of the APIs and resources a host exposes. Served as a Linkset (RFC 9264) JSON document, discoverable via the api-catalog link relation.

What it is

/.well-known/api-catalog is an IETF-standardised path at which an organisation publishes a machine-readable catalogue of the APIs and structured resources its host exposes. The document is a Linkset (RFC 9264) — a JSON array of link relations grouped by an anchor URL.

GET /.well-known/api-catalog HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/linkset+json; charset=utf-8
{
  "linkset": [
    {
      "anchor": "https://example.com/",
      "describedby": [
        { "href": "https://example.com/llms.txt", "type": "text/markdown" }
      ],
      "alternate": [
        { "href": "https://example.com/rss.xml", "type": "application/rss+xml" }
      ],
      "sitemap": [
        { "href": "https://example.com/sitemap-index.xml", "type": "application/xml" }
      ],
      "license": [
        { "href": "https://creativecommons.org/licenses/by/4.0/" }
      ]
    }
  ]
}

The path is registered in the IANA Well-Known URIs Registry by RFC 9727 — unlike many AI-era conventions, this one is standards-track.

Why it matters

How to implement

Serve a Linkset. RFC 9727 requires the response body to be a valid Linkset. The media type is application/linkset+json. Set the Content-Type accordingly — most static hosts default to application/octet-stream for files without an extension.

Each linkset entry has an anchor (the resource the links describe) and one or more relation-keyed arrays. Useful relations:

Advertise it. Add the catalogue to your HTTP Link header on every response:

Link: </.well-known/api-catalog>; rel="api-catalog"; type="application/linkset+json"

This is what makes the path discoverable without an out-of-band hint.

Update it when the surface changes. A drifted catalogue is worse than no catalogue. CI should validate it on every change to the public resources it describes.

Keep it small. Catalogues are typically a few KB. Linksets are flat — there is no recursion to follow.

Common mistakes

Verification

Sources