Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

compliance-errors changedmanage-claude/compliance-errors

Nearest release: v2.1.333, published 4 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+19added
Lines−2removed
From line 40 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits28to this page, all time

### Missing or invalid version header

The whole hunk

from line 40, old and new numbered
/
lines
from line 40
4040 
4141## 400 Bad Request
4242 
43The request was syntactically valid, but the server rejected a parameter or the Compliance API is not enabled for the organization. Fix the cause named in the message and resend. One 400 is different: [Transcript page too large](https://platform.claude.com/docs/en/manage-claude/compliance-errors#transcript-page-too-large), which the local session messages endpoint can return for a page of a very large session even when every parameter is valid; its entry says what to do instead of resending.
43The request was syntactically valid, but the server rejected a parameter or a header, or the Compliance API is not enabled for the organization. Fix the cause named in the message and resend. One 400 is different: [Transcript page too large](https://platform.claude.com/docs/en/manage-claude/compliance-errors#transcript-page-too-large). The local session messages endpoint can return it for a page of a very large session, even when every parameter is valid. The entry for that error says what to do instead of resending.
4444 
4545### Compliance API not enabled
4646 
from line 54
5454 
5555**Fix:** Enable the Compliance API by following [Set up the Compliance API](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#set-up-the-compliance-api), then resend the request.
5656 
57### Missing or invalid version header
58 
59**Type:** `invalid_request_error`
60 
61```text wrap
62anthropic-version: header is required
63```
64 
65```text wrap
66anthropic-version: "2026-10" is not a valid version
67```
68 
69**Cause:** The first message means that the request omits the `anthropic-version` header. Only some endpoints return this message, such as the [Security posture endpoint](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#request). For what the other endpoints do, see [Versioning](https://platform.claude.com/docs/en/manage-claude/compliance-api#versioning). The second message means that the value is empty or is not an available version. Every endpoint returns this message, which repeats the value sent.
70 
71**Fix:** On every request, set `anthropic-version` to a version listed in [API versions](https://platform.claude.com/docs/en/api/versioning).
72 
5773### Unknown query parameter
5874 
5975**Type:** `invalid_request_error`
from line 344
328344* **Missing or wrong key:** Send the key in the `x-api-key` header and check that it starts with `sk-ant-api01-` or `sk-ant-admin01-`. See [Which key do you need?](https://platform.claude.com/docs/en/manage-claude/compliance-api-access#which-key-do-you-need) for the key types.
329345* **`Not found` on one path while others succeed:** If the header and key are right, check that path against the [Compliance API reference](https://platform.claude.com/docs/en/api/compliance).
330346* **Security posture endpoint:** See [Errors in the Security posture results reference](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#handle-errors) instead.
347* **Transparency log endpoints:** With a valid key, a bare `Not found` can mean that there is no log this key can read. See [Errors in the transparency log guide](https://platform.claude.com/docs/en/manage-claude/access-transparency-log#errors).
331348* **[Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) and [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws):** Use the platform’s credentials instead of a key. See [How the Compliance API works](https://platform.claude.com/docs/en/manage-claude/compliance-api#how-the-compliance-api-works).
332349 
333350### Chat not found
from line 625
608625 Common questions about access, scopes, retention, and integration.
609626 </Card>
610627 
611 <Card title="Errors" href="https://platform.claude.com/docs/en/api/errors">
628 <Card title="Claude API errors" href="https://platform.claude.com/docs/en/api/errors">
612629 The platform-wide error catalog and retry semantics.
613630 </Card>
614631</CardGroup>
Feedback