[BUG] Admin API docs incorrectly redirect to broken Java page; "Copy Page" fails

Resolved 💬 3 comments Opened Jan 25, 2026 by coygeek Closed Feb 12, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

There are two related issues occurring on the platform.claude.com documentation site regarding the Admin API Keys List endpoint:

  1. Incorrect Redirection: navigating to the generic/base URL for the endpoint (/api/admin/api_keys/list) automatically redirects to the Java-specific page (/api/java/admin/api_keys/list), even if that is not the intended language.
  2. Broken Content & Copy Function: The destination page (Java version) does not render documentation. instead, it displays the text: The method 'list' is not available in this language. Consequently, clicking the "Copy page" button or the "Open markdown" button results in copying/displaying that single error string instead of the actual documentation content.

What Should Happen?

  1. Redirection: The generic URL should not redirect to a language specific page that does not implement the method. It should default to curl or a language where the method is supported.
  2. Content: The documentation page should display the API endpoint details.
  3. Functionality: The "Copy page" and "Open Markdown" buttons should retrieve the full documentation text/markdown, not the internal error string.

Error Messages/Logs

The content rendered on the page, the clipboard content after clicking "Copy", and the content of the generated Markdown file all contain only this string:


The method `list` is not available in this language.

Steps to Reproduce

Issue A: Incorrect Redirection

  1. Open a browser.
  2. Navigate to https://platform.claude.com/docs/en/api/admin/api_keys/list.
  3. Observe that the browser automatically redirects to https://platform.claude.com/docs/en/api/java/admin/api_keys/list.

Issue B: Broken Content/Copy

  1. Navigate to https://platform.claude.com/docs/en/api/java/admin/api_keys/list.
  2. Click the "Copy page" button.
  3. Paste the clipboard content; observe it only contains the error string mentioned above.
  4. Alternatively, click the "Open markdown" button (navigates to .../list.md).
  5. Observe the raw file only contains the error string.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.19

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Workaround found:
While the rendered page and the automatic redirect are broken, the generic Markdown source file does exist and contains the correct content.

Manually appending .md to the generic URL (without /java/) retrieves the correct documentation:
https://platform.claude.com/docs/en/api/admin/api_keys/list.md

This suggests the content exists in the backend, but the frontend routing logic is aggressively prioritizing the Java SDK view, which appears to have a missing implementation or documentation mapping for this specific Admin endpoint.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗