Skip to content

Missing Required Header in Documentation #37

@ivan-velikanov

Description

@ivan-velikanov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions