Client APIs
anthropic_messages_protocol
Normalizes Anthropic Messages protocol headers for native backends.
Switching projects opens that project’s default documentation release.
Versions marked “overview” do not contain this page. Selecting one opens that version’s documentation overview.
On this page
Normalizes Anthropic Messages protocol headers for native backends.
Configuration Notes
default_version applies only when the caller sends no anthropic-version; a caller-supplied version, such as the 2026-10-21 default of Anthropic SDK v2, is forwarded unchanged. The filter does not validate version-specific body rules, so under 2026-10-21 the backend owns rejecting temperature, top_p, top_k, assistant document blocks, and non-empty citations on user text blocks. It does not touch credentials: remove x-api-key and authorization separately when the gateway owns the upstream credential.
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
default_version | string | no | Default anthropic-version header value when absent. |
Examples
Example 1
filter: anthropic_messages_protocol
Example 2
filter: anthropic_messages_protocol
default_version: "2023-06-01"