Skip to content

Document that download-spec publishes /.well-known/api-catalog - #7559

Open
MTSUBOOR wants to merge 1 commit into
mainfrom
talha/document-api-catalog-opt-in
Open

MTSUBOOR wants to merge 1 commit into
mainfrom
talha/document-api-catalog-opt-in

Conversation

@MTSUBOOR

@MTSUBOOR MTSUBOOR commented Sep 29, 2026 •

Copy link
Copy Markdown

The api-catalog endpoint is gated on the download-spec contextual option, but no page said so.

Documentation changes

  • api-playground/openapi-setup.mdx: in "Let visitors download your spec", added that enabling download-spec also publishes an RFC 9727 API catalog at /.well-known/api-catalog, that the endpoint returns 404 without it, and that it's auth-gated on authenticated projects.
  • ai/llmstxt.mdx: the Link header bullet now links the API catalog to that section and notes it's served only when download-spec is enabled.
  • help-center/register-external-mcp-server-in-discovery.mdx: noted the catalog is only served after opting into spec downloads.

Rationale

/.well-known/api-catalog is gated on download-spec in contextual.options (mint hasDownloadSpecOptIn, added in mintlify/mint#8354), but no page said so. The llms.txt page and help-center article implied the catalog is generated automatically from any OpenAPI spec in docs.json, so users seeing the advertised link 404 had no way to find the fix.

Verification

  • mint broken-links: no broken links.
  • RFC 9727 link returns 200.
  • Vale wasn't available locally; wording checked against the style guide manually.
  • English only; translations are generated after merge.

Areas of uncertainty

  • The Link header currently advertises api-catalog on every site regardless of opt-in. That's being handled separately in mint; if that behavior changes (for example, serving an empty catalog instead of a 404), the "returns a 404" sentence in openapi-setup.mdx will need an update.
    Closes

For Reviewers

When reviewing documentation PRs, please consider:

✅ Technical accuracy

  • Code examples work as written
  • Commands and configurations are correct
  • Links resolve to the right destinations
  • Prerequisites and requirements are accurate

✅ Clarity and completeness

  • Instructions are clear and easy to follow
  • Steps are in logical order
  • Nothing important is missing
  • Examples help illustrate the concepts
  • Content follows the style guide

✅ User experience

  • A new user could follow these docs successfully
  • Common gotchas or edge cases are addressed
  • Error messages or troubleshooting guidance is helpful

Note

Low Risk
Documentation-only updates with no product or security behavior changes.

Overview
Documents that /.well-known/api-catalog is only available when download-spec is enabled in contextual.options, so readers understand why the catalog might 404 despite the Link header.

The OpenAPI setup page now explains that opting in also publishes an RFC 9727 catalog for agent discovery, that the endpoint returns 404 without download-spec, and that auth/userAuth sites restrict catalog access like spec downloads. The llms.txt page ties the advertised API catalog in the Link header to that section and the same opt-in requirement. The external MCP help article clarifies the catalog is not automatic from OpenAPI in docs.json alone—it follows the spec-download opt-in.

Reviewed by Cursor Bugbot for commit 0461db6. Bugbot is set up for automated code reviews on this repo. Configure here.

The api-catalog endpoint is gated on the download-spec contextual option,
but no page said so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
mintlify 🟢 Ready View Preview Sep 29, 2026, 3:00 AM

This branch was successfully deployed

1 active deployment
staging — 0461db6a Deployed Sep 29, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant