[BUG] Admin API docs incorrectly redirect to broken Java page; "Copy Page" fails
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:
- 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. - 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?
- Redirection: The generic URL should not redirect to a language specific page that does not implement the method. It should default to
curlor a language where the method is supported. - Content: The documentation page should display the API endpoint details.
- 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
- Open a browser.
- Navigate to
https://platform.claude.com/docs/en/api/admin/api_keys/list. - Observe that the browser automatically redirects to
https://platform.claude.com/docs/en/api/java/admin/api_keys/list.
Issue B: Broken Content/Copy
- Navigate to
https://platform.claude.com/docs/en/api/java/admin/api_keys/list. - Click the "Copy page" button.
- Paste the clipboard content; observe it only contains the error string mentioned above.
- Alternatively, click the "Open markdown" button (navigates to
.../list.md). - 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.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗