--- url: "https://platform.claude.com/docs/de/api/messages" titulek: "Nachrichten - Claude API Reference" h1: "Nachrichten" popis: "API reference for Nachrichten endpoints" jazyk: "de" kanonicka: "https://platform.claude.com/docs/de/api/messages" drobecky: ["", "path: optional string or null", "path", "optional", "string", "or null", "or", "null", "pattern", "^[^\\x00-\\x1f\\x7f-\\x9f\\u2028\\u2029]*$", "maxLength", "4096"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 09:08:14" znaku: 75525 slov: 8173 kodovani: "windows-1250" sha256: "01521b42084057c82cecba0704b34a081815f87dd7214fc274f8e71cbb08f49d" --- # Nachrichten ##### [Eine Nachricht erstellen](/docs/de/api/http/messages/create) POST /v1/messages Sende eine strukturierte Liste von Eingabenachrichten mit Text- und/oder Bildinhalten, und das Modell generiert die nächste Nachricht in der Konversation. ##### [Tokens in einer Nachricht zählen](/docs/de/api/http/messages/count_tokens) POST /v1/messages/count_tokens Zähle die Anzahl der Tokens in einer Nachricht. ##### Models Base64ImageSource object{ type, data, media_type }type: "base64"data: stringformatbytemedia_type: "image/jpeg" or "image/png" or "image/gif" or "image/webp"One of the following:"image/jpeg""image/png""image/gif""image/webp" Base64PDFSource object{ type, data, media_type }type: "base64"data: stringformatbytemedia_type: "application/pdf" BashCodeExecutionOutputBlock object{ type, file_id }type: "bash_code_execution_output"defaultbash_code_execution_outputfile_id: string BashCodeExecutionOutputBlockParam object{ type, file_id }type: "bash_code_execution_output"file_id: string BashCodeExecutionResultBlock object{ type, content, return_code, 2 more }type: "bash_code_execution_result"defaultbash_code_execution_resultcontent: array of [BashCodeExecutionOutputBlock](/docs/de/api/http/messages#bash_code_execution_output_block) { type, file_id }type: "bash_code_execution_output"defaultbash_code_execution_outputfile_id: stringreturn_code: numberstderr: stringstdout: string BashCodeExecutionResultBlockParam object{ type, content, return_code, 2 more }type: "bash_code_execution_result"content: array of [BashCodeExecutionOutputBlockParam](/docs/de/api/http/messages#bash_code_execution_output_block_param) { type, file_id }type: "bash_code_execution_output"file_id: stringreturn_code: numberstderr: stringstdout: string BashCodeExecutionToolResultBlock object{ type, content, tool_use_id } BashCodeExecutionToolResultBlockParam object{ type, content, tool_use_id, cache_control } BashCodeExecutionToolResultError object{ type, error_code }type: "bash_code_execution_tool_result_error"defaultbash_code_execution_tool_result_errorerror_code: [BashCodeExecutionToolResultErrorCode](/docs/de/api/http/messages#bash_code_execution_tool_result_error_code)One of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded""output_file_too_large" BashCodeExecutionToolResultErrorCode = "invalid_tool_input" or "unavailable" or "too_many_requests" or 2 moreOne of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded""output_file_too_large" BashCodeExecutionToolResultErrorParam object{ type, error_code }type: "bash_code_execution_tool_result_error"error_code: [BashCodeExecutionToolResultErrorCode](/docs/de/api/http/messages#bash_code_execution_tool_result_error_code)One of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded""output_file_too_large" BrowserCloseTabConfig object{ defer_loading, enabled }`close_tab`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserDoubleClickConfig object{ defer_loading, enabled }`double_click`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserFileUploadConfig object{ defer_loading, enabled }`file_upload`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserFindConfig object{ defer_loading, enabled }`find`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserFormInputConfig object{ defer_loading, enabled }`form_input`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserGetPageTextConfig object{ defer_loading, enabled }`get_page_text`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserHoldKeyConfig object{ defer_loading, enabled }`hold_key`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserHoverConfig object{ defer_loading, enabled }`hover`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserJavascriptExecConfig object{ defer_loading, enabled }`javascript_exec`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserKeyConfig object{ defer_loading, enabled }`key`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserLeftClickConfig object{ defer_loading, enabled }`left_click`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserLeftClickDragConfig object{ defer_loading, enabled }`left_click_drag`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserLeftMouseDownConfig object{ defer_loading, enabled }`left_mouse_down`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserLeftMouseUpConfig object{ defer_loading, enabled }`left_mouse_up`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserListTabsConfig object{ defer_loading, enabled }`list_tabs`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserMiddleClickConfig object{ defer_loading, enabled }`middle_click`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserMouseMoveConfig object{ defer_loading, enabled }`mouse_move`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserNavigateConfig object{ defer_loading, enabled }`navigate`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserNewTabConfig object{ defer_loading, enabled }`new_tab`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserReadConsoleConfig object{ defer_loading, enabled }`read_console`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserReadNetworkConfig object{ defer_loading, enabled }`read_network`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserReadPageConfig object{ defer_loading, enabled }`read_page`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserRightClickConfig object{ defer_loading, enabled }`right_click`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserScreenshotConfig object{ defer_loading, enabled }`screenshot`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserScrollConfig object{ defer_loading, enabled }`scroll`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserScrollToConfig object{ defer_loading, enabled }`scroll_to`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserStateBlockParam object{ type, tabs, cache_control, state_changes }The caller's browser state after a browser toolset member call — the full inventory of open tabs, which tab is active, and any side effects (tabs opened, download state changes) the call produced.At most one per `tool_result`, only on a non-error result answering a browser toolset member `tool_use`. The server renders the model-visible text from it; the model never sees the raw fields. BrowserStateChange = [BrowserStateChangeTabOpened](/docs/de/api/http/messages#browser_state_change_tab_opened) { type, tab_id } or [BrowserStateChangeDownloadStarted](/docs/de/api/http/messages#browser_state_change_download_started) { type, download_id, url } or [BrowserStateChangeDownloadCompleted](/docs/de/api/http/messages#browser_state_change_download_completed) { type, download_id, url, 2 more } or [BrowserStateChangeDownloadFailed](/docs/de/api/http/messages#browser_state_change_download_failed) { type, download_id, url, error }One of the following: BrowserStateChangeDownloadCompleted object{ type, download_id, url, 2 more }A file download that finished during this call, reported with the same `download_id` as its `download_started` — or without a prior `download_started`, when the download finished during the call that started it (at most one state change per `download_id` per result).type: "download_completed"download_id: stringThe caller-assigned identifier for this download, stable across the state changes reporting it.maxLength4096minLength1pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$url: stringThe final post-redirect URL the download was served from.maxLength4096pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$path: optional string or nullWhere the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path.pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$maxLength4096size_bytes: optional number or nullThe completed download's size.minimum0 BrowserStateChangeDownloadFailed object{ type, download_id, url, error }A file download that failed — or was cancelled — during this call.type: "download_failed"download_id: stringThe caller-assigned identifier for this download, stable across the state changes reporting it.maxLength4096minLength1pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$url: stringThe final post-redirect URL the download was served from.maxLength4096pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$error: optional string or nullThe failure or cancellation detail, when known.pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$maxLength4096 BrowserStateChangeDownloadStarted object{ type, download_id, url }A file download that started during this call.type: "download_started"download_id: stringThe caller-assigned identifier for this download, stable across the state changes reporting it.maxLength4096minLength1pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$url: stringThe final post-redirect URL the download was served from.maxLength4096pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$ BrowserStateChangeTabOpened object{ type, tab_id }A tab this call's execution opened that remains open at its end — the creation delta of the `tabs` inventory, not an event log.Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry, which must include the same `tab_id`. A tab opened during a failed call gets no deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.type: "tab_opened"tab_id: stringThe `tab_id` of the opened tab, present in `tabs`.maxLength4096minLength1pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$ BrowserStateTabEntry object{ tab_id, title, url, active }One open browser tab reported in a `browser_state` block's `tabs` inventory.`tab_id` is the caller-assigned identifier for the tab; `title` and `url` describe the page the tab is currently showing and may be empty strings (a blank tab legitimately has both empty). `active` marks the tab that is active after this call; whenever `tabs` is non-empty, exactly one entry is marked.tab_id: stringThe caller-assigned identifier for this tab, unique within the inventory.maxLength4096minLength1pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$title: stringThe title of the page the tab is showing. May be empty.maxLength4096pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$url: stringThe URL of the page the tab is showing. May be empty.maxLength4096pattern^[^\x00-\x1f\x7f-\x9f\u2028\u2029]*$active: optional booleanWhether this tab is the active tab after this call. Whenever `tabs` is non-empty, exactly one entry is marked `active: true`. BrowserSwitchTabConfig object{ defer_loading, enabled }`switch_tab`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserToolset20260801 object{ type, cache_control, configs }The browser toolset: a single `tools[]` entry (carrying no `name`) that declares the browser tool family. The model is served the family's tool with any members disabled via `configs` removed from its schema. BrowserToolsetConfigs object{ type, close_tab, double_click, 28 more }Per-member configuration for `browser_toolset_20260801`: one optional field per member tool, keyed by the member name — the same name the member's `tool_use` blocks carry. Every member is an accepted key, and a member's defaults apply wherever its key is absent. Unknown keys are rejected: the field set is this toolset version's complete member set. BrowserTripleClickConfig object{ defer_loading, enabled }`triple_click`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserTypeConfig object{ defer_loading, enabled }`type`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserWaitConfig object{ defer_loading, enabled }`wait`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. BrowserZoomConfig object{ defer_loading, enabled }`zoom`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. CacheControlEphemeral object{ type, ttl }type: "ephemeral"ttl: optional "5m" or "1h"The time-to-live for the cache control breakpoint.This may be one the following values: `5m`: 5 minutes `1h`: 1 hour Defaults to `5m`. See [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) for details.One of the following:"5m""1h" CacheCreation object{ ephemeral_1h_input_tokens, ephemeral_5m_input_tokens }ephemeral_1h_input_tokens: numberThe number of input tokens used to create the 1 hour cache entry.default0minimum0ephemeral_5m_input_tokens: numberThe number of input tokens used to create the 5 minute cache entry.default0minimum0 CitationCharLocation object{ type, cited_text, document_index, 4 more }type: "char_location"defaultchar_locationcited_text: stringdocument_index: numberminimum0document_title: string or nullend_char_index: numberfile_id: string or nullstart_char_index: numberminimum0 CitationCharLocationParam object{ type, cited_text, document_index, 3 more }type: "char_location"cited_text: stringdocument_index: numberminimum0document_title: string or nullmaxLength500minLength1end_char_index: numberstart_char_index: numberminimum0 CitationContentBlockLocation object{ type, cited_text, document_index, 4 more }type: "content_block_location"defaultcontent_block_locationcited_text: stringThe full text of the cited block range, concatenated.Always equals the contents of `content[start_block_index:end_block_index]` joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns.document_index: numberminimum0document_title: string or nullend_block_index: numberExclusive 0-based end index of the cited block range in the source's `content` array.Always greater than `start_block_index`; a single-block citation has `end_block_index = start_block_index + 1`.file_id: string or nullstart_block_index: number0-based index of the first cited block in the source's `content` array.minimum0 CitationContentBlockLocationParam object{ type, cited_text, document_index, 3 more }type: "content_block_location"cited_text: stringThe full text of the cited block range, concatenated.Always equals the contents of `content[start_block_index:end_block_index]` joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns.document_index: numberminimum0document_title: string or nullmaxLength500minLength1end_block_index: numberExclusive 0-based end index of the cited block range in the source's `content` array.Always greater than `start_block_index`; a single-block citation has `end_block_index = start_block_index + 1`.start_block_index: number0-based index of the first cited block in the source's `content` array.minimum0 CitationPageLocation object{ type, cited_text, document_index, 4 more }type: "page_location"defaultpage_locationcited_text: stringdocument_index: numberminimum0document_title: string or nullend_page_number: numberfile_id: string or nullstart_page_number: numberminimum1 CitationPageLocationParam object{ type, cited_text, document_index, 3 more }type: "page_location"cited_text: stringdocument_index: numberminimum0document_title: string or nullmaxLength500minLength1end_page_number: numberstart_page_number: numberminimum1 CitationSearchResultLocationParam object{ type, cited_text, end_block_index, 4 more }type: "search_result_location"cited_text: stringThe full text of the cited block range, concatenated.Always equals the contents of `content[start_block_index:end_block_index]` joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns.end_block_index: numberExclusive 0-based end index of the cited block range in the source's `content` array.Always greater than `start_block_index`; a single-block citation has `end_block_index = start_block_index + 1`.search_result_index: number0-based index of the cited search result among all `search_result` content blocks in the request, in the order they appear across messages and tool results.Counted separately from `document_index`; server-side web search results are not included in this count.minimum0source: stringstart_block_index: number0-based index of the first cited block in the source's `content` array.minimum0title: string or null CitationWebSearchResultLocationParam object{ type, cited_text, encrypted_index, 2 more }type: "web_search_result_location"cited_text: stringencrypted_index: stringtitle: string or nullmaxLength512minLength1url: stringminLength1 CitationsConfig object{ enabled }enabled: booleandefaultfalse CitationsConfigParam object{ enabled }enabled: optional boolean CitationsDelta object{ type, citation } CitationsSearchResultLocation object{ type, cited_text, end_block_index, 4 more }type: "search_result_location"defaultsearch_result_locationcited_text: stringThe full text of the cited block range, concatenated.Always equals the contents of `content[start_block_index:end_block_index]` joined together. The text block is the minimal citable unit; this field is never a substring of a single block. Not counted toward output tokens, and not counted toward input tokens when sent back in subsequent turns.end_block_index: numberExclusive 0-based end index of the cited block range in the source's `content` array.Always greater than `start_block_index`; a single-block citation has `end_block_index = start_block_index + 1`.search_result_index: number0-based index of the cited search result among all `search_result` content blocks in the request, in the order they appear across messages and tool results.Counted separately from `document_index`; server-side web search results are not included in this count.minimum0source: stringstart_block_index: number0-based index of the first cited block in the source's `content` array.minimum0title: string or null CitationsWebSearchResultLocation object{ type, cited_text, encrypted_index, 2 more }type: "web_search_result_location"defaultweb_search_result_locationcited_text: stringencrypted_index: stringtitle: string or nullmaxLength512url: string CodeExecutionOutputBlock object{ type, file_id }type: "code_execution_output"defaultcode_execution_outputfile_id: string CodeExecutionOutputBlockParam object{ type, file_id }type: "code_execution_output"file_id: string CodeExecutionResultBlock object{ type, content, return_code, 2 more }type: "code_execution_result"defaultcode_execution_resultcontent: array of [CodeExecutionOutputBlock](/docs/de/api/http/messages#code_execution_output_block) { type, file_id }type: "code_execution_output"defaultcode_execution_outputfile_id: stringreturn_code: numberstderr: stringstdout: string CodeExecutionResultBlockParam object{ type, content, return_code, 2 more }type: "code_execution_result"content: array of [CodeExecutionOutputBlockParam](/docs/de/api/http/messages#code_execution_output_block_param) { type, file_id }type: "code_execution_output"file_id: stringreturn_code: numberstderr: stringstdout: string CodeExecutionTool20250522 object{ type, name, allowed_callers, 3 more } CodeExecutionTool20250825 object{ type, name, allowed_callers, 3 more } CodeExecutionTool20260120 object{ type, name, allowed_callers, 3 more }Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint). CodeExecutionTool20260521 object{ type, name, allowed_callers, 3 more }Code execution tool with REPL state persistence. CodeExecutionToolResultBlock object{ type, content, tool_use_id }type: "code_execution_tool_result"defaultcode_execution_tool_resultcontent: [CodeExecutionToolResultBlockContent](/docs/de/api/http/messages#code_execution_tool_result_block_content)One of the following:tool_use_id: stringpattern^srvtoolu_[a-zA-Z0-9_]+$ CodeExecutionToolResultBlockContent = [CodeExecutionToolResultError](/docs/de/api/http/messages#code_execution_tool_result_error) { type, error_code } or [CodeExecutionResultBlock](/docs/de/api/http/messages#code_execution_result_block) { type, content, return_code, 2 more } or [EncryptedCodeExecutionResultBlock](/docs/de/api/http/messages#encrypted_code_execution_result_block) { type, content, encrypted_stdout, 2 more }One of the following: CodeExecutionToolResultBlockParam object{ type, content, tool_use_id, cache_control }type: "code_execution_tool_result"content: [CodeExecutionToolResultBlockParamContent](/docs/de/api/http/messages#code_execution_tool_result_block_param_content)One of the following:tool_use_id: stringpattern^srvtoolu_[a-zA-Z0-9_]+$cache_control: optional [CacheControlEphemeral](/docs/de/api/http/messages#cache_control_ephemeral) { type, ttl } or nullCreate a cache control breakpoint at this content block.type: "ephemeral"ttl: optional "5m" or "1h"The time-to-live for the cache control breakpoint.This may be one the following values: `5m`: 5 minutes `1h`: 1 hour Defaults to `5m`. See [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) for details.One of the following:"5m""1h" CodeExecutionToolResultBlockParamContent = [CodeExecutionToolResultErrorParam](/docs/de/api/http/messages#code_execution_tool_result_error_param) { type, error_code } or [CodeExecutionResultBlockParam](/docs/de/api/http/messages#code_execution_result_block_param) { type, content, return_code, 2 more } or [EncryptedCodeExecutionResultBlockParam](/docs/de/api/http/messages#encrypted_code_execution_result_block_param) { type, content, encrypted_stdout, 2 more }One of the following: CodeExecutionToolResultError object{ type, error_code }type: "code_execution_tool_result_error"defaultcode_execution_tool_result_errorerror_code: [CodeExecutionToolResultErrorCode](/docs/de/api/http/messages#code_execution_tool_result_error_code)One of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded" CodeExecutionToolResultErrorCode = "invalid_tool_input" or "unavailable" or "too_many_requests" or "execution_time_exceeded"One of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded" CodeExecutionToolResultErrorParam object{ type, error_code }type: "code_execution_tool_result_error"error_code: [CodeExecutionToolResultErrorCode](/docs/de/api/http/messages#code_execution_tool_result_error_code)One of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded" ComputerCursorPositionConfig object{ defer_loading, enabled }`cursor_position`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerDoubleClickConfig object{ defer_loading, enabled }`double_click`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerHoldKeyConfig object{ defer_loading, enabled }`hold_key`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerKeyConfig object{ defer_loading, enabled }`key`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerLeftClickConfig object{ defer_loading, enabled }`left_click`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerLeftClickDragConfig object{ defer_loading, enabled }`left_click_drag`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerLeftMouseDownConfig object{ defer_loading, enabled }`left_mouse_down`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerLeftMouseUpConfig object{ defer_loading, enabled }`left_mouse_up`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerMiddleClickConfig object{ defer_loading, enabled }`middle_click`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerMouseMoveConfig object{ defer_loading, enabled }`mouse_move`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerRightClickConfig object{ defer_loading, enabled }`right_click`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerScreenshotConfig object{ defer_loading, enabled }`screenshot`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerScrollConfig object{ defer_loading, enabled }`scroll`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerToolset20260801 object{ type, cache_control, configs }The computer toolset: a single `tools[]` entry (carrying no `name`) that declares the computer tool family. The model is served the family's tool with any members disabled via `configs` removed from its schema. Every member is enabled by default, zoom included. The single-tool options `display_number` and `enable_zoom` are not fields of a toolset entry — it carries only `type`, `configs`, and `cache_control`; zoom is controlled via `configs.zoom.enabled`. ComputerToolsetConfigs object{ type, cursor_position, double_click, 14 more }Per-member configuration for `computer_toolset_20260801`: one optional field per member tool, keyed by the member name — the same name the member's `tool_use` blocks carry. Every member is an accepted key, and a member's defaults apply wherever its key is absent. Unknown keys are rejected: the field set is this toolset version's complete member set. ComputerTripleClickConfig object{ defer_loading, enabled }`triple_click`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerTypeConfig object{ defer_loading, enabled }`type`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerWaitConfig object{ defer_loading, enabled }`wait`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. ComputerZoomConfig object{ defer_loading, enabled }`zoom`'s config overrides.defer_loading: optional boolean or nullDefer loading for this member. Must resolve to the same value on every enabled member of the toolset.enabled: optional boolean or nullWhether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema. Container object{ id, expires_at, skills }Information about the container used in the request (for the code execution tool)id: stringIdentifier for the container used in this requestexpires_at: stringThe time at which the container will expire.formatdate-timeskills: array of [ContainerSkill](/docs/de/api/http/messages#container_skill) { type, skill_id, version } or nullSkills loaded in the containertype: "anthropic" or "custom"Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)One of the following:"anthropic""custom"skill_id: stringSkill IDmaxLength64minLength1version: stringThe resolved version: a skill version ID for custom skills.maxLength64minLength1 ContainerParams object{ id, skills }Container parameters with skills to be loaded.id: optional string or nullContainer idskills: optional array of [SkillParams](/docs/de/api/http/messages#skill_params) { type, skill_id, version } or nullList of skills to load in the containermaxItems20type: "anthropic" or "custom"Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)One of the following:"anthropic""custom"skill_id: stringSkill IDmaxLength64minLength1version: optional stringSkill version or 'latest' for most recent versionmaxLength64minLength1 ContainerSkill object{ type, skill_id, version }A skill that was loaded in a container (response model).type: "anthropic" or "custom"Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)One of the following:"anthropic""custom"skill_id: stringSkill IDmaxLength64minLength1version: stringThe resolved version: a skill version ID for custom skills.maxLength64minLength1 ContainerUploadBlock object{ type, file_id }Response model for a file uploaded to the container.type: "container_upload"defaultcontainer_uploadfile_id: string ContainerUploadBlockParam object{ type, file_id, cache_control }A content block that represents a file to be uploaded to the container Files uploaded via this block will be available in the container's input directory.type: "container_upload"file_id: stringcache_control: optional [CacheControlEphemeral](/docs/de/api/http/messages#cache_control_ephemeral) { type, ttl } or nullCreate a cache control breakpoint at this content block.type: "ephemeral"ttl: optional "5m" or "1h"The time-to-live for the cache control breakpoint.This may be one the following values: `5m`: 5 minutes `1h`: 1 hour Defaults to `5m`. See [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) for details.One of the following:"5m""1h" ContentBlock = [TextBlock](/docs/de/api/http/messages#text_block) { type, citations, text } or [ThinkingBlock](/docs/de/api/http/messages#thinking_block) { type, signature, thinking } or [RedactedThinkingBlock](/docs/de/api/http/messages#redacted_thinking_block) { type, data } or 9 moreOne of the following: ContentBlockParam = [TextBlockParam](/docs/de/api/http/messages#text_block_param) { type, text, cache_control, citations } or [ImageBlockParam](/docs/de/api/http/messages#image_block_param) { type, source, cache_control, transformations } or [DocumentBlockParam](/docs/de/api/http/messages#document_block_param) { type, source, cache_control, 3 more } or 13 moreOne of the following: ContentBlockSource object{ type, content }type: "content"content: string or array of [ContentBlockSourceContent](/docs/de/api/http/messages#content_block_source_content)One of the following:stringContentBlockSourceContent = array of [ContentBlockSourceContent](/docs/de/api/http/messages#content_block_source_content)One of the following:TextBlockParam object{ type, text, cache_control, citations }ImageBlockParam object{ type, source, cache_control, transformations } ContentBlockSourceContent = [TextBlockParam](/docs/de/api/http/messages#text_block_param) { type, text, cache_control, citations } or [ImageBlockParam](/docs/de/api/http/messages#image_block_param) { type, source, cache_control, transformations }One of the following:TextBlockParam object{ type, text, cache_control, citations }ImageBlockParam object{ type, source, cache_control, transformations } DirectCaller object{ type }Tool invocation directly from the model.type: "direct" DocumentBlock object{ type, citations, source, title } DocumentBlockParam object{ type, source, cache_control, 3 more } EncryptedCodeExecutionResultBlock object{ type, content, encrypted_stdout, 2 more }Code execution result with encrypted stdout for PFC + web_search results.type: "encrypted_code_execution_result"defaultencrypted_code_execution_resultcontent: array of [CodeExecutionOutputBlock](/docs/de/api/http/messages#code_execution_output_block) { type, file_id }type: "code_execution_output"defaultcode_execution_outputfile_id: stringencrypted_stdout: stringreturn_code: numberstderr: string EncryptedCodeExecutionResultBlockParam object{ type, content, encrypted_stdout, 2 more }Code execution result with encrypted stdout for PFC + web_search results.type: "encrypted_code_execution_result"content: array of [CodeExecutionOutputBlockParam](/docs/de/api/http/messages#code_execution_output_block_param) { type, file_id }type: "code_execution_output"file_id: stringencrypted_stdout: stringreturn_code: numberstderr: string FileDocumentSource object{ type, file_id }type: "file"file_id: string FileImageSource object{ type, file_id }type: "file"file_id: string ImageBlockParam object{ type, source, cache_control, transformations } ImageTransformationsParam object{ oversized_image }Configures the transformations the server applies to this image before the model observes it. Each key names a condition the server transforms images for; its value selects the transformation applied. Omitted keys keep their default behavior, and an empty object is equivalent to omitting the field.oversized_image: optional "downsize" or "error"What the server does when this image exceeds the model's maximum image size. `"downsize"` (the default) scales the image down to fit, which changes the dimensions the model observes without telling you. `"error"` instead rejects the request with a 400 error naming the image's dimensions and the largest dimensions that fit, so you can scale the image deliberately — your image is never silently scaled down.One of the following:"downsize""error" InputJSONDelta object{ type, partial_json }type: "input_json_delta"defaultinput_json_deltapartial_json: string JSONOutputFormat object{ type, schema }type: "json_schema"schema: map[unknown]The JSON schema of the format MemoryTool20250818 object{ type, name, allowed_callers, 4 more } Message object{ type, id, container, 7 more } MessageCountTokensTool = [Tool](/docs/de/api/http/messages#tool) { type, input_schema, name, 7 more } or [ToolBash20250124](/docs/de/api/http/messages#tool_bash_20250124) { type, name, allowed_callers, 4 more } or [CodeExecutionTool20250522](/docs/de/api/http/messages#code_execution_tool_20250522) { type, name, allowed_callers, 3 more } or 18 moreOne of the following: MessageCreateParamsContainer = [ContainerParams](/docs/de/api/http/messages#container_params) { id, skills } or stringContainer identifier for reuse across requests.One of the following:ContainerParams object{ id, skills }Container parameters with skills to be loaded.id: optional string or nullContainer idskills: optional array of [SkillParams](/docs/de/api/http/messages#skill_params) { type, skill_id, version } or nullList of skills to load in the containermaxItems20type: "anthropic" or "custom"Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)One of the following:"anthropic""custom"skill_id: stringSkill IDmaxLength64minLength1version: optional stringSkill version or 'latest' for most recent versionmaxLength64minLength1string MessageDeltaUsage object{ cache_creation_input_tokens, cache_read_input_tokens, input_tokens, 3 more } MessageParam object{ content, role } MessageTokensCount object{ input_tokens }input_tokens: numberThe total number of tokens across the provided list of messages, system prompt, and tools. Metadata object{ user_id }user_id: optional string or nullAn external identifier for the user who is associated with the request.This should be a uuid, hash value, or other opaque identifier. Anthropic may use this id to help detect abuse. Do not include any identifying information such as name, email address, or phone number.maxLength512 Model = "claude-fable-5-1" or "claude-mythos-5-1" or "claude-sonnet-5" or 14 more or stringThe model that will complete your prompt.See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.One of the following: OutputConfig object{ effort, format }effort: optional "low" or "medium" or "high" or 2 more or nullAll possible effort levels.One of the following:"low""medium""high""xhigh""max"format: optional [JSONOutputFormat](/docs/de/api/http/messages#json_output_format) { type, schema } or nullA schema to specify Claude's output format in responses. See [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)type: "json_schema"schema: map[unknown]The JSON schema of the format OutputTokensDetails object{ thinking_tokens }thinking_tokens: numberNumber of output tokens the model generated as internal reasoning, including the thinking-block delimiter tokens.Reflects the raw reasoning the model produced, not the (possibly shorter) summarized thinking text returned in the response body. Computed by re-tokenizing the raw reasoning text, so it may differ from the model's exact generation count by a small number of tokens. Always ≤ `output_tokens`; `output_tokens - thinking_tokens` approximates the non-reasoning output.default0minimum0 PlainTextSource object{ type, data, media_type }type: "text"data: stringmedia_type: "text/plain" RawContentBlockDelta = [TextDelta](/docs/de/api/http/messages#text_delta) { type, text } or [InputJSONDelta](/docs/de/api/http/messages#input_json_delta) { type, partial_json } or [CitationsDelta](/docs/de/api/http/messages#citations_delta) { type, citation } or 2 moreOne of the following: RawContentBlockDeltaEvent object{ type, delta, index }type: "content_block_delta"defaultcontent_block_deltadelta: [RawContentBlockDelta](/docs/de/api/http/messages#raw_content_block_delta)One of the following:index: number RawContentBlockStartEvent object{ type, content_block, index } RawContentBlockStopEvent object{ type, index }type: "content_block_stop"defaultcontent_block_stopindex: number RawMessageDeltaEvent object{ type, delta, usage } RawMessageStartEvent object{ type, message }type: "message_start"defaultmessage_startmessage: [Message](/docs/de/api/http/messages#message) { type, id, container, 7 more } RawMessageStopEvent object{ type }type: "message_stop"defaultmessage_stop RawMessageStreamEvent = [RawMessageStartEvent](/docs/de/api/http/messages#raw_message_start_event) { type, message } or [RawMessageDeltaEvent](/docs/de/api/http/messages#raw_message_delta_event) { type, delta, usage } or [RawMessageStopEvent](/docs/de/api/http/messages#raw_message_stop_event) { type } or 3 moreOne of the following: RedactedThinkingBlock object{ type, data }type: "redacted_thinking"defaultredacted_thinkingdata: stringThe contents of this redacted thinking block, returned when portions of the model's thinking were safety-redacted. This field is opaque and encrypted, with no readable content.Pass `redacted_thinking` blocks back to the API unchanged when continuing a multi-turn conversation. See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#redacted-thinking-blocks) for details. RedactedThinkingBlockParam object{ type, data }type: "redacted_thinking"data: stringThe `data` value of this redacted thinking block, exactly as returned by the API in a previous response. Opaque and encrypted; pass it back unchanged. RefusalStopDetails object{ type, category, explanation }Structured information about a refusal.type: "refusal"defaultrefusalcategory: "cyber" or "bio" or "frontier_llm" or 2 more or nullThe policy category that triggered a refusal.One of the following:"cyber"The request could enable cyber harm, such as malware or exploit development. Benign cybersecurity work can also trigger this category."bio"The request could enable biological harm, such as dangerous lab methods. Beneficial life sciences work can also trigger this category."frontier_llm"The request could assist the development of competing AI models, which is restricted under [Anthropic's commercial terms](https://www.anthropic.com/legal/commercial-terms). Benign machine learning work can also trigger this category."reasoning_extraction"The request asks the model to reproduce its internal reasoning in the response text. To get reasoning in a structured form instead, use [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking)."general_harms"The request could be related to an area that was determined as harmful. Benign work might sometimes trigger this category.explanation: string or nullHuman-readable explanation of the refusal.This text is not guaranteed to be stable. `null` when no explanation is available for the category. SearchResultBlockParam object{ type, content, source, 3 more } ServerToolCaller object{ type, tool_id }Tool invocation generated by a server-side tool.type: "code_execution_20250825"tool_id: stringpattern^srvtoolu_[a-zA-Z0-9_]+$ ServerToolCaller20260120 object{ type, tool_id }type: "code_execution_20260120"tool_id: stringpattern^srvtoolu_[a-zA-Z0-9_]+$ ServerToolUsage object{ web_fetch_requests, web_search_requests }web_fetch_requests: numberThe number of web fetch tool requests.default0minimum0web_search_requests: numberThe number of web search tool requests.default0minimum0 ServerToolUseBlock object{ type, id, caller, 2 more } ServerToolUseBlockParam object{ type, id, input, 3 more } SignatureDelta object{ type, signature }type: "signature_delta"defaultsignature_deltasignature: stringThe `signature` for this thinking block: an opaque value used to verify that the block was generated by Claude when it is passed back to the API. Delivered in a `signature_delta` event just before the block's `content_block_stop` event. SkillParams object{ type, skill_id, version }Specification for a skill to be loaded in a container (request model).type: "anthropic" or "custom"Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)One of the following:"anthropic""custom"skill_id: stringSkill IDmaxLength64minLength1version: optional stringSkill version or 'latest' for most recent versionmaxLength64minLength1 StopReason = "end_turn" or "max_tokens" or "stop_sequence" or 4 moreOne of the following:"end_turn""max_tokens""stop_sequence""tool_use""pause_turn""refusal""model_context_window_exceeded" TextBlock object{ type, citations, text } TextBlockParam object{ type, text, cache_control, citations } TextCitation = [CitationCharLocation](/docs/de/api/http/messages#citation_char_location) { type, cited_text, document_index, 4 more } or [CitationPageLocation](/docs/de/api/http/messages#citation_page_location) { type, cited_text, document_index, 4 more } or [CitationContentBlockLocation](/docs/de/api/http/messages#citation_content_block_location) { type, cited_text, document_index, 4 more } or 2 moreOne of the following: TextCitationParam = [CitationCharLocationParam](/docs/de/api/http/messages#citation_char_location_param) { type, cited_text, document_index, 3 more } or [CitationPageLocationParam](/docs/de/api/http/messages#citation_page_location_param) { type, cited_text, document_index, 3 more } or [CitationContentBlockLocationParam](/docs/de/api/http/messages#citation_content_block_location_param) { type, cited_text, document_index, 3 more } or 2 moreOne of the following: TextDelta object{ type, text }type: "text_delta"defaulttext_deltatext: string TextEditorCodeExecutionCreateResultBlock object{ type, is_file_update }type: "text_editor_code_execution_create_result"defaulttext_editor_code_execution_create_resultis_file_update: boolean TextEditorCodeExecutionCreateResultBlockParam object{ type, is_file_update }type: "text_editor_code_execution_create_result"is_file_update: boolean TextEditorCodeExecutionStrReplaceResultBlock object{ type, lines, new_lines, 3 more }type: "text_editor_code_execution_str_replace_result"defaulttext_editor_code_execution_str_replace_resultlines: array of string or nullnew_lines: number or nullnew_start: number or nullold_lines: number or nullold_start: number or null TextEditorCodeExecutionStrReplaceResultBlockParam object{ type, lines, new_lines, 3 more }type: "text_editor_code_execution_str_replace_result"lines: optional array of string or nullnew_lines: optional number or nullnew_start: optional number or nullold_lines: optional number or nullold_start: optional number or null TextEditorCodeExecutionToolResultBlock object{ type, content, tool_use_id } TextEditorCodeExecutionToolResultBlockParam object{ type, content, tool_use_id, cache_control } TextEditorCodeExecutionToolResultError object{ type, error_code, error_message }type: "text_editor_code_execution_tool_result_error"defaulttext_editor_code_execution_tool_result_errorerror_code: [TextEditorCodeExecutionToolResultErrorCode](/docs/de/api/http/messages#text_editor_code_execution_tool_result_error_code)One of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded""file_not_found"error_message: string or null TextEditorCodeExecutionToolResultErrorCode = "invalid_tool_input" or "unavailable" or "too_many_requests" or 2 moreOne of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded""file_not_found" TextEditorCodeExecutionToolResultErrorParam object{ type, error_code, error_message }type: "text_editor_code_execution_tool_result_error"error_code: [TextEditorCodeExecutionToolResultErrorCode](/docs/de/api/http/messages#text_editor_code_execution_tool_result_error_code)One of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded""file_not_found"error_message: optional string or null TextEditorCodeExecutionViewResultBlock object{ type, content, file_type, 3 more }type: "text_editor_code_execution_view_result"defaulttext_editor_code_execution_view_resultcontent: stringfile_type: "text" or "image" or "pdf"One of the following:"text""image""pdf"num_lines: number or nullstart_line: number or nulltotal_lines: number or null TextEditorCodeExecutionViewResultBlockParam object{ type, content, file_type, 3 more }type: "text_editor_code_execution_view_result"content: stringfile_type: "text" or "image" or "pdf"One of the following:"text""image""pdf"num_lines: optional number or nullstart_line: optional number or nulltotal_lines: optional number or null ThinkingBlock object{ type, signature, thinking }type: "thinking"defaultthinkingsignature: stringA value used to verify that this thinking block was generated by Claude when it is passed back to the API.This is an opaque field and should not be interpreted or parsed. When passing thinking blocks back to the API (required when using tools with extended thinking), pass them back exactly as received, with this field intact. See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) for details.thinking: stringThe text of Claude's thinking process for this block. ThinkingBlockParam object{ type, signature, thinking }type: "thinking"signature: stringThe `signature` value of this thinking block, exactly as returned by the API in a previous response. Used to verify that the block was generated by Claude.Thinking blocks must be passed back unmodified and in their original order; a modified block results in a 400 `invalid_request_error`.thinking: stringThe `thinking` text of this block as returned by the API. ThinkingConfigAdaptive object{ type, display }type: "adaptive"display: optional "summarized" or "omitted" or nullControls how thinking content appears in the response. When set to `summarized`, thinking is returned normally. When set to `omitted`, thinking content is redacted but a signature is returned for multi-turn continuity. Defaults to `summarized`.One of the following:"summarized""omitted" ThinkingConfigDisabled object{ type }type: "disabled" ThinkingConfigEnabled object{ type, budget_tokens, display }type: "enabled"budget_tokens: numberDetermines how many tokens Claude can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality.Must be ≥1024 and less than `max_tokens`. See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) for details.minimum1024display: optional "summarized" or "omitted" or nullControls how thinking content appears in the response. When set to `summarized`, thinking is returned normally. When set to `omitted`, thinking content is redacted but a signature is returned for multi-turn continuity. Defaults to `summarized`.One of the following:"summarized""omitted" ThinkingConfigParam = [ThinkingConfigEnabled](/docs/de/api/http/messages#thinking_config_enabled) { type, budget_tokens, display } or [ThinkingConfigDisabled](/docs/de/api/http/messages#thinking_config_disabled) { type } or [ThinkingConfigAdaptive](/docs/de/api/http/messages#thinking_config_adaptive) { type, display }Configuration for enabling Claude's extended thinking.When enabled, responses include `thinking` content blocks showing Claude's thinking process before the final answer. Requires a minimum budget of 1,024 tokens and counts towards your `max_tokens` limit. See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) for details.One of the following: ThinkingDelta object{ type, thinking }type: "thinking_delta"defaultthinking_deltathinking: stringThe incremental `thinking` text for this content block. Concatenate the `thinking` values of successive `thinking_delta` events to assemble the block's full `thinking` value. Tool object{ type, input_schema, name, 7 more } ToolBash20250124 object{ type, name, allowed_callers, 4 more } ToolChoice = [ToolChoiceAuto](/docs/de/api/http/messages#tool_choice_auto) { type, disable_parallel_tool_use } or [ToolChoiceAny](/docs/de/api/http/messages#tool_choice_any) { type, disable_parallel_tool_use } or [ToolChoiceTool](/docs/de/api/http/messages#tool_choice_tool) { type, name, disable_parallel_tool_use } or [ToolChoiceNone](/docs/de/api/http/messages#tool_choice_none) { type }How the model should use the provided tools. The model can use a specific tool, any available tool, decide by itself, or not use tools at all.One of the following: ToolChoiceAny object{ type, disable_parallel_tool_use }The model will use any available tools.type: "any"disable_parallel_tool_use: optional booleanWhether to disable parallel tool use.Defaults to `false`. If set to `true`, the model will output exactly one tool use. ToolChoiceAuto object{ type, disable_parallel_tool_use }The model will automatically decide whether to use tools.type: "auto"disable_parallel_tool_use: optional booleanWhether to disable parallel tool use.Defaults to `false`. If set to `true`, the model will output at most one tool use. ToolChoiceNone object{ type }The model will not be allowed to use tools.type: "none" ToolChoiceTool object{ type, name, disable_parallel_tool_use }The model will use the specified tool with `tool_choice.name`.type: "tool"name: stringThe name of the tool to use.disable_parallel_tool_use: optional booleanWhether to disable parallel tool use.Defaults to `false`. If set to `true`, the model will output exactly one tool use. ToolReferenceBlock object{ type, tool_name }type: "tool_reference"defaulttool_referencetool_name: stringmaxLength256minLength1pattern^[a-zA-Z0-9_-]{1,256}$ ToolReferenceBlockParam object{ type, tool_name, cache_control }Tool reference block that can be included in tool_result content.type: "tool_reference"tool_name: stringmaxLength256minLength1pattern^[a-zA-Z0-9_-]{1,256}$cache_control: optional [CacheControlEphemeral](/docs/de/api/http/messages#cache_control_ephemeral) { type, ttl } or nullCreate a cache control breakpoint at this content block.type: "ephemeral"ttl: optional "5m" or "1h"The time-to-live for the cache control breakpoint.This may be one the following values: `5m`: 5 minutes `1h`: 1 hour Defaults to `5m`. See [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) for details.One of the following:"5m""1h" ToolResultBlockParam object{ type, tool_use_id, cache_control, 3 more } ToolSearchToolBm25_20251119 object{ type, name, allowed_callers, 3 more } ToolSearchToolRegex20251119 object{ type, name, allowed_callers, 3 more } ToolSearchToolResultBlock object{ type, content, tool_use_id } ToolSearchToolResultBlockParam object{ type, content, tool_use_id, cache_control } ToolSearchToolResultError object{ type, error_code, error_message }type: "tool_search_tool_result_error"defaulttool_search_tool_result_errorerror_code: [ToolSearchToolResultErrorCode](/docs/de/api/http/messages#tool_search_tool_result_error_code)One of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded"error_message: string or null ToolSearchToolResultErrorCode = "invalid_tool_input" or "unavailable" or "too_many_requests" or "execution_time_exceeded"One of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded" ToolSearchToolResultErrorParam object{ type, error_code, error_message }type: "tool_search_tool_result_error"error_code: [ToolSearchToolResultErrorCode](/docs/de/api/http/messages#tool_search_tool_result_error_code)One of the following:"invalid_tool_input""unavailable""too_many_requests""execution_time_exceeded"error_message: optional string or null ToolSearchToolSearchResultBlock object{ type, tool_references }type: "tool_search_tool_search_result"defaulttool_search_tool_search_resulttool_references: array of [ToolReferenceBlock](/docs/de/api/http/messages#tool_reference_block) { type, tool_name }type: "tool_reference"defaulttool_referencetool_name: stringmaxLength256minLength1pattern^[a-zA-Z0-9_-]{1,256}$ ToolSearchToolSearchResultBlockParam object{ type, tool_references } ToolTextEditor20250124 object{ type, name, allowed_callers, 4 more } ToolTextEditor20250429 object{ type, name, allowed_callers, 4 more } ToolTextEditor20250728 object{ type, name, allowed_callers, 5 more } ToolUnion = [Tool](/docs/de/api/http/messages#tool) { type, input_schema, name, 7 more } or [ToolBash20250124](/docs/de/api/http/messages#tool_bash_20250124) { type, name, allowed_callers, 4 more } or [CodeExecutionTool20250522](/docs/de/api/http/messages#code_execution_tool_20250522) { type, name, allowed_callers, 3 more } or 18 moreOne of the following: ToolUseBlock object{ type, id, caller, 3 more } ToolUseBlockParam object{ type, id, input, 4 more } URLImageSource object{ type, url }type: "url"url: string URLPDFSource object{ type, url }type: "url"url: string Usage object{ cache_creation, cache_creation_input_tokens, cache_read_input_tokens, 6 more } UserLocation object{ type, city, country, 2 more }type: "approximate"city: optional string or nullThe city of the user.maxLength255minLength1country: optional string or nullThe two letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the user.maxLength2minLength2region: optional string or nullThe region of the user.maxLength255minLength1timezone: optional string or nullThe [IANA timezone](https://nodatime.org/TimeZones) of the user.maxLength255minLength1 WebFetchBlock object{ type, content, retrieved_at, url }type: "web_fetch_result"defaultweb_fetch_resultcontent: [DocumentBlock](/docs/de/api/http/messages#document_block) { type, citations, source, title }retrieved_at: string or nullISO 8601 timestamp when the content was retrievedurl: stringFetched content URL WebFetchBlockParam object{ type, content, url, retrieved_at }type: "web_fetch_result"content: [DocumentBlockParam](/docs/de/api/http/messages#document_block_param) { type, source, cache_control, 3 more }url: stringFetched content URLretrieved_at: optional string or nullISO 8601 timestamp when the content was retrieved WebFetchTool20250910 object{ type, name, allowed_callers, 8 more } WebFetchTool20260209 object{ type, name, allowed_callers, 8 more } WebFetchTool20260309 object{ type, name, allowed_callers, 9 more }Web fetch tool with use_cache parameter for bypassing cached content. WebFetchTool20260318 object{ type, name, allowed_callers, 10 more } WebFetchToolResultBlock object{ type, caller, content, tool_use_id } WebFetchToolResultBlockParam object{ type, content, tool_use_id, 2 more } WebFetchToolResultErrorBlock object{ type, error_code }type: "web_fetch_tool_result_error"defaultweb_fetch_tool_result_errorerror_code: [WebFetchToolResultErrorCode](/docs/de/api/http/messages#web_fetch_tool_result_error_code)One of the following:"invalid_tool_input""url_too_long""url_not_allowed""url_not_in_prior_context""url_not_accessible""unsupported_content_type""too_many_requests""max_uses_exceeded""unavailable""content_too_large" WebFetchToolResultErrorBlockParam object{ type, error_code }type: "web_fetch_tool_result_error"error_code: [WebFetchToolResultErrorCode](/docs/de/api/http/messages#web_fetch_tool_result_error_code)One of the following:"invalid_tool_input""url_too_long""url_not_allowed""url_not_in_prior_context""url_not_accessible""unsupported_content_type""too_many_requests""max_uses_exceeded""unavailable""content_too_large" WebFetchToolResultErrorCode = "invalid_tool_input" or "url_too_long" or "url_not_allowed" or 7 moreOne of the following:"invalid_tool_input""url_too_long""url_not_allowed""url_not_in_prior_context""url_not_accessible""unsupported_content_type""too_many_requests""max_uses_exceeded""unavailable""content_too_large" WebSearchResultBlock object{ type, encrypted_content, page_age, 2 more }type: "web_search_result"defaultweb_search_resultencrypted_content: stringpage_age: string or nulltitle: stringurl: string WebSearchResultBlockParam object{ type, encrypted_content, title, 2 more }type: "web_search_result"encrypted_content: stringtitle: stringurl: stringpage_age: optional string or null WebSearchTool20250305 object{ type, name, allowed_callers, 7 more } WebSearchTool20260209 object{ type, name, allowed_callers, 7 more } WebSearchTool20260318 object{ type, name, allowed_callers, 8 more } WebSearchToolRequestError object{ type, error_code }type: "web_search_tool_result_error"error_code: [WebSearchToolResultErrorCode](/docs/de/api/http/messages#web_search_tool_result_error_code)One of the following:"invalid_tool_input""unavailable""max_uses_exceeded""too_many_requests""query_too_long""request_too_large" WebSearchToolResultBlock object{ type, caller, content, tool_use_id } WebSearchToolResultBlockContent = [WebSearchToolResultError](/docs/de/api/http/messages#web_search_tool_result_error) { type, error_code } or array of [WebSearchResultBlock](/docs/de/api/http/messages#web_search_result_block) { type, encrypted_content, page_age, 2 more }One of the following: WebSearchToolResultBlockParam object{ type, content, tool_use_id, 2 more } WebSearchToolResultBlockParamContent = array of [WebSearchResultBlockParam](/docs/de/api/http/messages#web_search_result_block_param) { type, encrypted_content, title, 2 more } or [WebSearchToolRequestError](/docs/de/api/http/messages#web_search_tool_request_error) { type, error_code }One of the following: WebSearchToolResultError object{ type, error_code }type: "web_search_tool_result_error"defaultweb_search_tool_result_errorerror_code: [WebSearchToolResultErrorCode](/docs/de/api/http/messages#web_search_tool_result_error_code)One of the following:"invalid_tool_input""unavailable""max_uses_exceeded""too_many_requests""query_too_long""request_too_large" WebSearchToolResultErrorCode = "invalid_tool_input" or "unavailable" or "max_uses_exceeded" or 3 moreOne of the following:"invalid_tool_input""unavailable""max_uses_exceeded""too_many_requests""query_too_long""request_too_large" #### Nachrichten[Batches](/docs/de/api/http/messages/batches) ##### [Einen Message Batch erstellen](/docs/de/api/http/messages/batches/create) POST /v1/messages/batches Sende einen Batch von Anfragen zur Erstellung von Nachrichten. ##### [Einen Message Batch abrufen](/docs/de/api/http/messages/batches/retrieve) GET /v1/messages/batches/{message_batch_id} Dieser Endpunkt ist idempotent und kann verwendet werden, um den Abschluss eines Message Batch per Polling abzufragen. Um auf die Ergebnisse eines Message Batch zuzugreifen, sende eine Anfrage an die im Feld `results_url` der Antwort angegebene URL. ##### [Message Batches auflisten](/docs/de/api/http/messages/batches/list) GET /v1/messages/batches Liste alle Message Batches innerhalb eines Workspace auf. Die zuletzt erstellten Batches werden zuerst zurückgegeben. ##### [Einen Message Batch abbrechen](/docs/de/api/http/messages/batches/cancel) POST /v1/messages/batches/{message_batch_id}/cancel Batches können jederzeit vor Ende der Verarbeitung abgebrochen werden. Sobald der Abbruch eingeleitet wurde, wechselt der Batch in den Zustand `canceling`; in dieser Zeit kann das System laufende, nicht unterbrechbare Anfragen noch abschließen, bevor der Abbruch finalisiert wird. ##### [Einen Message Batch löschen](/docs/de/api/http/messages/batches/delete) DELETE /v1/messages/batches/{message_batch_id} Lösche einen Message Batch. ##### [Ergebnisse eines Message Batch abrufen](/docs/de/api/http/messages/batches/results) GET /v1/messages/batches/{message_batch_id}/results Streamt die Ergebnisse eines Message Batch als `.jsonl`-Datei.