Count tokens in a Message changedapi/messages/count_tokens
Nearest release: v2.1.280, published 20 hours 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+4added
Lines−0removed
From line
21
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits22to this page, all time
The whole hunk
from line 21, old and new numbered
/
from line 21
2121
2222- `"anthropic-workspace-id": optional string`
2323
24 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
25
26 Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
27
2428## Body parameters
2529
2630- `messages: array of MessageParam`
No line in this hunk matches that.