---
title: "Changes to Count tokens for an Anthropic message"
method: POST
path: "/messages/count_tokens"
---

# Changes to Count tokens for an Anthropic message

`POST /messages/count_tokens`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 2 revisions.

- **2026-11-03** `d63ac1749ae7`: 1 breaking, 52 warning, 17 info

## Changes

- **2026-11-03** `d63ac1749ae7`: 1 breaking, 52 warning, 17 info
  - removed the enum value `priority` of the request property `metadata/completion_window`
  - removed the optional property `error/code` from the response with the `400` status
  - removed the optional property `error/code` from the response with the `401` status
  - removed the optional property `error/code` from the response with the `429` status
  - removed the optional property `error/code` from the response with the `500` status
  - removed the optional property `error/param` from the response with the `400` status
  - removed the optional property `error/param` from the response with the `401` status
  - removed the optional property `error/param` from the response with the `429` status
  - removed the optional property `error/param` from the response with the `500` status
  - added the new `api_error` enum value to the `error/type` response property for the response status `400`
  - added the new `api_error` enum value to the `error/type` response property for the response status `401`
  - added the new `api_error` enum value to the `error/type` response property for the response status `429`
  - added the new `api_error` enum value to the `error/type` response property for the response status `500`
  - added the new `authentication_error` enum value to the `error/type` response property for the response status `400`
  - added the new `authentication_error` enum value to the `error/type` response property for the response status `401`
  - added the new `authentication_error` enum value to the `error/type` response property for the response status `429`
  - added the new `authentication_error` enum value to the `error/type` response property for the response status `500`
  - added the new `billing_error` enum value to the `error/type` response property for the response status `400`
  - added the new `billing_error` enum value to the `error/type` response property for the response status `401`
  - added the new `billing_error` enum value to the `error/type` response property for the response status `429`
  - added the new `billing_error` enum value to the `error/type` response property for the response status `500`
  - added the new `conflict_error` enum value to the `error/type` response property for the response status `400`
  - added the new `conflict_error` enum value to the `error/type` response property for the response status `401`
  - added the new `conflict_error` enum value to the `error/type` response property for the response status `429`
  - added the new `conflict_error` enum value to the `error/type` response property for the response status `500`
  - added the new `invalid_request_error` enum value to the `error/type` response property for the response status `400`
  - added the new `invalid_request_error` enum value to the `error/type` response property for the response status `401`
  - added the new `invalid_request_error` enum value to the `error/type` response property for the response status `429`
  - added the new `invalid_request_error` enum value to the `error/type` response property for the response status `500`
  - added the new `not_found_error` enum value to the `error/type` response property for the response status `400`
  - added the new `not_found_error` enum value to the `error/type` response property for the response status `401`
  - added the new `not_found_error` enum value to the `error/type` response property for the response status `429`
  - added the new `not_found_error` enum value to the `error/type` response property for the response status `500`
  - added the new `overloaded_error` enum value to the `error/type` response property for the response status `400`
  - added the new `overloaded_error` enum value to the `error/type` response property for the response status `401`
  - added the new `overloaded_error` enum value to the `error/type` response property for the response status `429`
  - added the new `overloaded_error` enum value to the `error/type` response property for the response status `500`
  - added the new `permission_error` enum value to the `error/type` response property for the response status `400`
  - added the new `permission_error` enum value to the `error/type` response property for the response status `401`
  - added the new `permission_error` enum value to the `error/type` response property for the response status `429`
  - …30 more

---

[Operation](https://skmtc.dev/sailresearch/apis/sail-api/docs/messages/count_tokens/post.md) - [API](https://skmtc.dev/sailresearch/apis/sail-api.md) - [Page](https://skmtc.dev/sailresearch/apis/sail-api/changes/messages/count_tokens/post)
