Link header with rel="service-doc"
A Link response header with rel="service-doc" points a client from a page to the human-readable documentation for the site's service or API.
Also called service-doc, RFC 8631, Link headers.
The HTTP Link header (RFC 8288) lets a response point to related resources, each tagged with a relation type. RFC 8631, an Informational RFC from July 2019, defines four relations for web services: service-doc for documentation meant mainly for people, service-desc for a machine-readable description such as an OpenAPI file, service-meta for metadata, and status for the health of the service.
Sent on the home page, a header such as Link: </docs>; rel="service-doc" tells an agent where the docs are without parsing any HTML. RFC 9727 adds rel="api-catalog" for the API catalog.
Cloudflare's Is It Agent Ready scanner passes its Link headers check when the home page sends a relation an agent can use. Link headers are one of the three level 1 checks, with robots.txt and a sitemap. Point a relation only at something that exists.
In Zine
tryzine.ai's home page sends Link: </docs>; rel="service-doc", </.well-known/api-catalog>; rel="api-catalog". Zine's check accepts api-catalog, service-desc, service-doc, service-meta, describedby and status.
Sources
Related terms
- API catalog: An API catalog is a document at /.well-known/api-catalog that lists a publisher's APIs and links to their descriptions, defined by RFC 9727.
- robots.txt: robots.txt is a plain-text file at a site's root that tells crawlers which paths they may fetch, standardized by the IETF as RFC 9309 in 2022.
- Agent readiness score: A number from 0 to 100: the share of scored agent readiness checks a site passes, as Cloudflare's Is It Agent Ready scanner counts them.