Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

workspaces changedmanage-claude/workspaces

Nearest release: v2.1.304, published under an hour after 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+6added
Lines−6removed
From line 857 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits21to this page, all time

The whole hunk

from line 857, old and new numbered
/
lines
from line 857
857857 
858858The header is absent when the credential doesn't resolve to a workspace (for example, on Admin API requests) or when the request fails before authentication completes, such as a 401 error.
859859 
860The following examples send a Messages API request and print the workspace ID from the response headers:
860The following examples send a Messages API request and read the workspace ID from the response headers:
861861 
862862<CodeGroup>
863863 ```bash cURL
864 # -D - prints the response headers; -o /dev/null discards the body
865 curl -sS -D - -o /dev/null https://api.anthropic.com/v1/messages \
864 # -i prints the response headers, including anthropic-workspace-id, before the body
865 curl -sS -i https://api.anthropic.com/v1/messages \
866866 -H "x-api-key: $ANTHROPIC_API_KEY" \
867867 -H "anthropic-version: 2023-06-01" \
868868 -H "content-type: application/json" \
from line 870
870870 "model": "claude-opus-5-5",
871871 "max_tokens": 1024,
872872 "messages": [{"role": "user", "content": "Hello, Claude"}]
873 }' | grep -i '^anthropic-workspace-id'
873 }'
874874 ```
875875 
876876 ```bash CLI
877877 # --debug prints the HTTP response, including the Anthropic-Workspace-Id
878 # header, to stderr; > /dev/null hides the JSON body on stdout
878 # header, to stderr
879879 ant --debug messages create \
880880 --model claude-opus-5-5 \
881881 --max-tokens 1024 \
882 --message '{role: user, content: "Hello, Claude"}' > /dev/null
882 --message '{role: user, content: "Hello, Claude"}'
883883 ```
884884 
885885 ```python Python
Feedback