Count tokens in a Message changedapi/messages/count_tokens
Nearest release: v2.1.296, published 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−0removed
From line
15
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits16to this page, all time
The whole hunk
from line 15, old and new numbered
/
from line 15
1515
1616## Headers
1717
18- `"anthropic-version": optional string`
19
20 The version of the Claude API you want to use.
21
22 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
23
1824- `"anthropic-user-profile-id": optional string`
1925
2026 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.
No line in this hunk matches that.