Batches changedapi/messages/batches
Nearest release: v2.1.306, published under an hour before 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+112added
Lines−0removed
From line
4,716
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits24to this page, all time
The whole hunk
from line 4716, old and new numbered
/
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 4716
47164716
47174717 - `CacheMissModelChanged object`
47184718
4719 A `cache_miss_reason` for a request whose `model` or `speed` differs from the previous request's.
4720
4721 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
4722
47194723 - `type: "model_changed"`
47204724
47214725 default: model_changed
from line 4730
47264730
47274731 - `CacheMissSystemChanged object`
47284732
4733 A `cache_miss_reason` for a request whose `system` differs from the previous request's.
4734
4735 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
4736
47294737 - `type: "system_changed"`
47304738
47314739 default: system_changed
from line 4744
47364744
47374745 - `CacheMissToolsChanged object`
47384746
4747 A `cache_miss_reason` for a request whose `tools` differ from the previous request's, for example because tools were added, removed, or reordered.
4748
4749 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
4750
47394751 - `type: "tools_changed"`
47404752
47414753 default: tools_changed
from line 4758
47464758
47474759 - `CacheMissMessagesChanged object`
47484760
4761 A `cache_miss_reason` for a request whose `messages` differ from the previous request's in an earlier entry, instead of only having entries appended. The `model`, `system`, and `tools` match.
4762
4763 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
4764
47494765 - `type: "messages_changed"`
47504766
47514767 default: messages_changed
from line 4772
47564772
47574773 - `CacheMissPreviousMessageNotFound object`
47584774
4775 A `cache_miss_reason` for when the API doesn't have a stored record of the request that `diagnostics.previous_message_id` references.
4776
4777 This doesn't mean that this request changed.
4778
4779 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
4780
47594781 - `type: "previous_message_not_found"`
47604782
47614783 default: previous_message_not_found
from line 4784
47624784
47634785 - `CacheMissUnavailable object`
47644786
4787 A `cache_miss_reason` for when the API can't give a diagnosis. The request itself was processed normally.
4788
4789 This includes a request whose `model`, `system`, and `tools` match the previous request's but whose other prompt-affecting parameters, such as `thinking` or `tool_choice`, differ.
4790
4791 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
4792
47654793 - `type: "unavailable"`
47664794
47674795 default: unavailable
from line 6265
62376265
62386266 - `CacheMissModelChanged object`
62396267
6268 A `cache_miss_reason` for a request whose `model` or `speed` differs from the previous request's.
6269
6270 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
6271
62406272 - `type: "model_changed"`
62416273
62426274 default: model_changed
from line 6279
62476279
62486280 - `CacheMissSystemChanged object`
62496281
6282 A `cache_miss_reason` for a request whose `system` differs from the previous request's.
6283
6284 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
6285
62506286 - `type: "system_changed"`
62516287
62526288 default: system_changed
from line 6293
62576293
62586294 - `CacheMissToolsChanged object`
62596295
6296 A `cache_miss_reason` for a request whose `tools` differ from the previous request's, for example because tools were added, removed, or reordered.
6297
6298 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
6299
62606300 - `type: "tools_changed"`
62616301
62626302 default: tools_changed
from line 6307
62676307
62686308 - `CacheMissMessagesChanged object`
62696309
6310 A `cache_miss_reason` for a request whose `messages` differ from the previous request's in an earlier entry, instead of only having entries appended. The `model`, `system`, and `tools` match.
6311
6312 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
6313
62706314 - `type: "messages_changed"`
62716315
62726316 default: messages_changed
from line 6321
62776321
62786322 - `CacheMissPreviousMessageNotFound object`
62796323
6324 A `cache_miss_reason` for when the API doesn't have a stored record of the request that `diagnostics.previous_message_id` references.
6325
6326 This doesn't mean that this request changed.
6327
6328 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
6329
62806330 - `type: "previous_message_not_found"`
62816331
62826332 default: previous_message_not_found
from line 6333
62836333
62846334 - `CacheMissUnavailable object`
62856335
6336 A `cache_miss_reason` for when the API can't give a diagnosis. The request itself was processed normally.
6337
6338 This includes a request whose `model`, `system`, and `tools` match the previous request's but whose other prompt-affecting parameters, such as `thinking` or `tool_choice`, differ.
6339
6340 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
6341
62866342 - `type: "unavailable"`
62876343
62886344 default: unavailable
from line 7586
75307586
75317587 - `CacheMissModelChanged object`
75327588
7589 A `cache_miss_reason` for a request whose `model` or `speed` differs from the previous request's.
7590
7591 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
7592
75337593 - `type: "model_changed"`
75347594
75357595 default: model_changed
from line 7600
75407600
75417601 - `CacheMissSystemChanged object`
75427602
7603 A `cache_miss_reason` for a request whose `system` differs from the previous request's.
7604
7605 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
7606
75437607 - `type: "system_changed"`
75447608
75457609 default: system_changed
from line 7614
75507614
75517615 - `CacheMissToolsChanged object`
75527616
7617 A `cache_miss_reason` for a request whose `tools` differ from the previous request's, for example because tools were added, removed, or reordered.
7618
7619 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
7620
75537621 - `type: "tools_changed"`
75547622
75557623 default: tools_changed
from line 7628
75607628
75617629 - `CacheMissMessagesChanged object`
75627630
7631 A `cache_miss_reason` for a request whose `messages` differ from the previous request's in an earlier entry, instead of only having entries appended. The `model`, `system`, and `tools` match.
7632
7633 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
7634
75637635 - `type: "messages_changed"`
75647636
75657637 default: messages_changed
from line 7642
75707642
75717643 - `CacheMissPreviousMessageNotFound object`
75727644
7645 A `cache_miss_reason` for when the API doesn't have a stored record of the request that `diagnostics.previous_message_id` references.
7646
7647 This doesn't mean that this request changed.
7648
7649 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
7650
75737651 - `type: "previous_message_not_found"`
75747652
75757653 default: previous_message_not_found
from line 7654
75767654
75777655 - `CacheMissUnavailable object`
75787656
7657 A `cache_miss_reason` for when the API can't give a diagnosis. The request itself was processed normally.
7658
7659 This includes a request whose `model`, `system`, and `tools` match the previous request's but whose other prompt-affecting parameters, such as `thinking` or `tool_choice`, differ.
7660
7661 See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics?sdk_languages=http#cache-miss-reason-types) to learn what to change for each reason.
7662
75797663 - `type: "unavailable"`
75807664
75817665 default: unavailable
from line 8431
83478431
83488432 - `WebSearchToolResultBlock object`
83498433
8350 - `type: "web_search_tool_result"`
8351
8352 default: web_search_tool_result
8353
8354 - `caller: DirectCaller or ServerToolCaller or ServerToolCaller20260120`
8355
8356 default: {"type":"direct"}
8357
8358 - `DirectCaller object`
8359
8360 Tool invocation directly from the model.
8361
8362 - `ServerToolCaller object`
8363
8364 Tool invocation generated by a server-side tool.
8365
8366 - `ServerToolCaller20260120 object`
8367
8368 - `content: WebSearchToolResultBlockContent`
8369
8370 - `WebSearchToolResultError object`
8371
8372 - `type: "web_search_tool_result_error"`
8373
8374 default: web_search_tool_result_error
8375
8376 - `error_code: WebSearchToolResultErrorCode`
8377
8378 - `"invalid_tool_input"`
8379
8380 - `"unavailable"`
8381
8382 - `"max_uses_exceeded"`
8383
8384 - `"too_many_requests"`
8385
8386 - `"query_too_long"`
8387
8388 - `"request_too_large"`
8389
8390 - `array of WebSearchResultBlock`
8391
8392 - `type: "web_search_result"`
8393
8394 default: web_search_result
8395
8396 - `encrypted_content: string`
8397
8398 - `page_age: string or null`
8399
8400 - `title: string`
8401
8402 - `url: string`
8403
8404 - `tool_use_id: string`
8405
8406 pattern: ^srvtoolu_[a-zA-Z0-9_]+$
8407
8408 - `WebFetchToolResultBlock object`
8409
8410 - `type: "web_fetch_tool_result"`
8411
8412 default: web_fetch_tool_result
8413
8414 - `caller: DirectCaller or ServerToolCaller or ServerToolCaller20260120`
8415
8416 default: {"type":"direct"}
8417
8418 - `DirectCaller object`
8419
8420 Tool invocation directly from the model.
8421
8422 - `ServerToolCaller object`
8423
8424 Tool invocation generated by a server-side tool.
8425
8426 - `ServerToolCaller20260120 object`
8427
8428 - `content: WebFetchToolResultErrorBlock or WebFetchBlock`
8429
8430 - `WebFetchToolResultErrorBlock object`
8431
8432 - `type: "web_fetch_tool_result_error"`
8433
8434 default: web_fetch_tool_result_error
8435
8436 - `error_code: WebFetchToolResultErrorCode`
8437
8438 - `"invalid_tool_input"`
8439
8440 - `"url_too_long"`
8441
8442 - `"url_not_allowed"`
8443
8444 - `"url_not_in_prior_context"`
8445
8446 - `"url_not_accessible"`
8447
8448 - `"unsupported_content_type"`
8449
8450 - `"too_many_requests"`
8451
8452 - `"max_uses_exceeded"`
8453
8454 - `"unavailable"`
8455
8456 - `"content_too_large"`
8457
8458 - `WebFetchBlock object`
8459
8460 - `type: "web_fetch_result"`
8461
8462 default: web_fetch_result
8463
8464 - `content: DocumentBlock`
8465
8466 - `type: "document"`
8467
8468 default: document
8469
8470 - `citations: CitationsConfig or null`
8471
8472 Citation configuration for the document
8473
8474 - `enabled: boolean`
8475
8476 default: false
8477
8478 - `source: Base64PDFSource or PlainTextSource`
8479
8480 - `Base64PDFSource object`
8481
8482 - `type: "base64"`
8483
8484 - `data: string`
8485
8486 format: byte
8487
8488 - `media_type: "application/pdf"`
8489
8490 - `PlainTextSource object`
8491
8492 - `type: "text"`
8493
8494 - `data: string`
8495
8496 - `media_type: "text/plain"`
8497
8498 - `title: string or null`
8499
8500 The title of the document
8501
8502 - `retrieved_at: string or null`
8503
8504 ISO 8601 timestamp when the content was retrieved
8505
8506 - `url: string`
8507
8508 Fetched content URL
8509
8510 - `tool_use_id: string`
8511
8512 pattern: ^srvtoolu_[a-zA-Z0-9_]+$
8513
8514 - `CodeExecutionToolResultBlock object`
8515
8516 - `type: "code_execution_tool_result"`
8517
8518 default: code_execution_tool_result
8519
8520 - `content: CodeExecutionToolResultBlockContent`
8521
8522 - `CodeExecutionToolResultError object`
8523
8524 - `type: "code_execution_tool_result_error"`
8525
8526 default: code_execution_tool_result_error
8527
8528 - `error_code: CodeExecutionToolResultErrorCode`
8529
8530 - `"invalid_tool_input"`
8531
8532 - `"unavailable"`
8533
8534 - `"too_many_requests"`
8535
8536 - `"execution_time_exceeded"`
8537
8538 - `CodeExecutionResultBlock object`
8539
8540 - `type: "code_execution_result"`
8541
8542 default: code_execution_result
8543
8544 - `content: array of CodeExecutionOutputBlock`
8545
8546 - `type: "code_execution_output"`
8547
8548 default: code_execution_output
8549
8550 - `file_id: string`
8551
8552 - `return_code: number`
8553
8554 - `stderr: string`
8555
8556 - `stdout: string`
8557
8558 - `EncryptedCodeExecutionResultBlock object`
8559
8560 Code execution result with encrypted stdout for PFC + web_search results.
8561
8562 - `type: "encrypted_code_execution_result"`
8563
8564 default: encrypted_code_execution_result
8565
8566 - `content: array of CodeExecutionOutputBlock`
8567
8568 - `type: "code_execution_output"`
8569
8570 default: code_execution_output
8571
8572 - `file_id: string`
8573
8574 - `encrypted_stdout: string`
8575
8576 - `return_code: number`
8577
8578 - `stderr: string`
8579
8580 - `tool_use_id: string`
8581
8582 pattern: ^srvtoolu_[a-zA-Z0-9_]+$
8583
8584 - `BashCodeExecutionToolResultBlock object`
8585
8586 - `type: "bash_code_execution_tool_result"`
8587
8588 default: bash_code_execution_tool_result
8589
8590 - `content: BashCodeExecutionToolResultError or BashCodeExecutionResultBlock`
8591
8592 - `BashCodeExecutionToolResultError object`
8593
8594 - `type: "bash_code_execution_tool_result_error"`
8595
8596 default: bash_code_execution_tool_result_error
8597
8598 - `error_code: BashCodeExecutionToolResultErrorCode`
8599
8600 - `"invalid_tool_input"`
8601
8602 - `"unavailable"`
8603
8604 - `"too_many_requests"`
8605
8606 - `"execution_time_exceeded"`
8607
8608 - `"output_file_too_large"`
8609
8610 - `BashCodeExecutionResultBlock object`
8611
8612 - `type: "bash_code_execution_result"`
8613
8614 default: bash_code_execution_result
8615
8616 - `content: array of BashCodeExecutionOutputBlock`
8617
8618 - `type: "bash_code_execution_output"`
8619
8620 default: bash_code_execution_output
8621
8622 - `file_id: string`
8623
8624 - `return_code: number`
8625
8626 - `stderr: string`
8627
8628 - `stdout: string`
8629
8630 - `tool_use_id: string`
8631
8632 pattern: ^srvtoolu_[a-zA-Z0-9_]+$
8633
8634 - `TextEditorCodeExecutionToolResultBlock object`
8635
8636 - `type: "text_editor_code_execution_tool_result"`
8637
8638 default: text_editor_code_execution_tool_result
8639
8640 - `content: TextEditorCodeExecutionToolResultError or TextEditorCodeExecutionViewResultBlock or TextEditorCodeExecutionCreateResultBlock or TextEditorCodeExecutionStrReplaceResultBlock`
8641
8642 - `TextEditorCodeExecutionToolResultError object`
8643
8644 - `type: "text_editor_code_execution_tool_result_error"`
8645
8646
8434
No line in this hunk matches that.