-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Issue: The API documentation is incomplete - it's missing a critical required header.
Current Documentation:
- Only shows anthropic-version: 2023-06-01 as required header
- Examples suggest this is sufficient for API calls
Actual Behavior:
- Requests fail with "OAuth authentication is currently not supported"
- Both headers are required:
anthropic-version: 2023-06-01
anthropic-beta:
claude-code-20250219,oauth-2025-04-20,interleaved-thinking-2025-05-14,fine-grained-tool-streaming-2025-05-14
Test Case:
Fails (per docs)
curl -X POST http://localhost:8080/v1/messages
-H "Content-Type: application/json"
-H "anthropic-version: 2023-06-01"
-d '{"model": "claude-3-5-haiku-20241022", "max_tokens": 10, "messages": [{"role": "user", "content": "test"}]}'
Works (actual requirement)
curl -X POST http://localhost:8080/v1/messages
-H "Content-Type: application/json"
-H "anthropic-version: 2023-06-01"
-H "anthropic-beta:
claude-code-20250219,oauth-2025-04-20,interleaved-thinking-2025-05-14,fine-grained-tool-streaming-2025-05-14"
-d '{"model": "claude-3-5-haiku-20241022", "max_tokens": 10, "messages": [{"role": "user", "content": "test"}]}'
Fix: Update docs/api-http.md examples to include the required anthropic-beta header.