Count tokens in a Message changedapi/beta/messages/count_tokens
Nearest release: v2.1.306, published 2 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+1added
Lines−1removed
From line
131
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits25to this page, all time
The whole hunk
from line 131, old and new numbered
/
from line 131
131131
132132- `"anthropic-user-profile-id": optional string`
133133
134 The user profile ID to attribute this request to. Use when acting on behalf of a party other than your organization. Requires the `user-profiles` beta header.
134 The user profile ID to attribute this request to. Use when acting on behalf of a party other than your organization.
135135
136136- `"anthropic-workspace-id": optional string`
137137
No line in this hunk matches that.