--- url: "https://platform.claude.com/docs/de/api/beta/sessions" titulek: "Sitzungen - Claude API Reference" h1: "Sitzungen" popis: "API reference for Sitzungen endpoints" jazyk: "de" kanonicka: "https://platform.claude.com/docs/de/api/beta/sessions" drobecky: ["mount_path: optional string or null", "mount_path", "optional", "string", "or null", "or", "null", "minLength", "1", "maxLength", "4096"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 08:17:56" znaku: 14463 slov: 1460 kodovani: "utf-8" sha256: "c339027e94bf8c0cd3ff0c4bc60fc372e05bd1e3f9f9fa576275995f873e9a83" --- # Sitzungen ##### [Session erstellen](/docs/de/api/http/beta/sessions/create) POST /v1/sessions ##### [Sessions auflisten](/docs/de/api/http/beta/sessions/list) GET /v1/sessions ##### [Session abrufen](/docs/de/api/http/beta/sessions/retrieve) GET /v1/sessions/{session_id} ##### [Session aktualisieren](/docs/de/api/http/beta/sessions/update) POST /v1/sessions/{session_id} ##### [Session löschen](/docs/de/api/http/beta/sessions/delete) DELETE /v1/sessions/{session_id} ##### [Session archivieren](/docs/de/api/http/beta/sessions/archive) POST /v1/sessions/{session_id}/archive ##### Models BetaManagedAgentsAdvisorParams object{ type, model }Platform advisor roster entry: a model the session's primary thread may consult mid-turn. At most one per roster; the entry occupies the roster name `anthropic.advisor`.type: "advisor"model: stringA Claude model id. The model must be permitted as an advisor for this agent's model — see the sessions/threads/advisor spec.minLength1maxLength256 BetaManagedAgentsAgentMessagePreview object{ type, id }type: "agent.message"id: stringThe id the buffered agent.message will carry if it is emitted. Matches the event_id on this preview's event_delta events. BetaManagedAgentsAgentParams object{ type, id, version }Specification for an Agent. Provide a specific `version` or use the short-form `agent="agent_id"` for the most recent versiontype: "agent"id: stringThe `agent` ID.minLength1maxLength128version: optional numberThe specific `agent` version to use. Omit to use the latest version. Must be at least 1 if specified.formatint32 BetaManagedAgentsAgentThinkingPreview object{ type, id }type: "agent.thinking"id: stringThe id the buffered agent.thinking will carry if it is emitted. Start-only — no event_delta events follow. BetaManagedAgentsAgentWithOverridesParams object{ type, id, mcp_servers, 5 more }Reference to an `agent` plus optional configuration overrides. Each provided field replaces the agent's value for the caller's use; the agent resource is unchanged. BetaManagedAgentsBranchCheckout object{ type, name }type: "branch"name: stringBranch name to check out.minLength1maxLength255 BetaManagedAgentsBudgetLimit object{ type, max_list_cost }A hard spend ceiling. The session stops issuing new model requests once the tracked list cost reaches `max_list_cost`.type: "limit"max_list_cost: [BetaMonetaryAmount](/docs/de/api/http/beta#beta_monetary_amount) { amount, currency }A monetary amount in a specific currency.amount: stringAmount in minor units of the currency, as an integer decimal string with no leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a number so no float rounding is ever applied.currency: [BetaCurrency](/docs/de/api/http/beta#beta_currency)Uppercase ISO-4217 currency code. `USD` is the only currency currently supported; the accepted set is closed and grows only when a new currency is priced. BetaManagedAgentsCacheCreationUsage object{ ephemeral_1h_input_tokens, ephemeral_5m_input_tokens }Prompt-cache creation token usage broken down by cache lifetime.ephemeral_1h_input_tokens: optional numberTokens used to create 1-hour ephemeral cache entries.formatint32ephemeral_5m_input_tokens: optional numberTokens used to create 5-minute ephemeral cache entries.formatint32 BetaManagedAgentsCommitCheckout object{ type, sha }type: "commit"sha: stringFull commit SHA to check out.minLength7maxLength64 BetaManagedAgentsDeletedSession object{ type, id }Confirmation that a `session` has been permanently deleted.type: "session_deleted"id: string BetaManagedAgentsDeltaContent object{ type, content, index }type: "content_delta"content: [BetaManagedAgentsTextBlock](/docs/de/api/http/beta/sessions/events#beta_managed_agents_text_block) { type, text }Regular text content.type: "text"text: stringThe text content.minLength1index: optional numberWhich entry in the previewed event's content array this fragment lands in. Insert content as that entry when the index is new; append to the existing entry otherwise.formatuint32 BetaManagedAgentsDeltaEvent object{ type, delta, event_id }An incremental update to an event that is still being streamed. Deltas are best-effort and may stop early; when the buffered event with id == event_id is produced it carries the complete content. A model request that ends early (an error or interrupt) produces no buffered event — its terminal span.model_request_end closes the preview. Only sent on stream connections that opt in via event_deltas; never appears in event history. BetaManagedAgentsDeltaType = "agent.message" or "agent.thinking"EventDeltaType enumOne of the following:"agent.message""agent.thinking" BetaManagedAgentsFileResourceParams object{ type, file_id, mount_path }Mount a file uploaded via the Files API into the session.type: "file"file_id: stringID of a previously uploaded file.minLength1maxLength128mount_path: optional string or nullMount path in the container. Defaults to `/mnt/session/uploads/`.minLength1maxLength4096 BetaManagedAgentsGitHubRepositoryResourceParams object{ type, url, authorization_token, 2 more }Mount a GitHub repository into the session's container. BetaManagedAgentsMemoryStoreResourceParam object{ type, memory_store_id, access, instructions }Parameters for attaching a memory store to an agent session.type: "memory_store"memory_store_id: stringThe memory store ID (memstore_...). Must belong to the caller's organization and workspace.access: optional "read_write" or "read_only" or nullAccess mode for an attached memory store.One of the following:"read_write""read_only"instructions: optional string or nullPer-attachment guidance for the agent on how to use this store. Rendered into the memory section of the system prompt. Max 4096 chars.maxLength4096 BetaManagedAgentsMultiagent object{ type, agents }Resolved coordinator topology with a concrete agent roster. BetaManagedAgentsMultiagentParams object{ type, agents }A coordinator topology: the session's primary thread orchestrates work by spawning session threads, each running an agent drawn from the `agents` roster. BetaManagedAgentsMultiagentRosterEntryParams = string or [BetaManagedAgentsAgentParams](/docs/de/api/http/beta/sessions#beta_managed_agents_agent_params) { type, id, version } or [BetaManagedAgentsMultiagentSelfParams](/docs/de/api/http/beta/agents#beta_managed_agents_multiagent_self_params) { type } or [BetaManagedAgentsAdvisorParams](/docs/de/api/http/beta/sessions#beta_managed_agents_advisor_params) { type, model }An entry in a multiagent roster: an agent ID string, a versioned agent reference, or `self`.One of the following: BetaManagedAgentsOutcomeEvaluationResource object{ type, completed_at, description, 4 more }Evaluation state for a single outcome defined via a `define_outcome` event.type: "outcome_evaluation"completed_at: string or nullA timestamp in RFC 3339 formatformatdate-timedescription: stringWhat the agent should produce.explanation: string or nullGrader's verdict text from the most recent evaluation. For `satisfied`, explains why criteria are met; for `needs_revision` (intermediate), what's missing; for `failed`, why unrecoverable.iteration: number0-indexed revision cycle the outcome is currently on.formatint32outcome_id: stringServer-generated outc_ ID for this outcome.result: stringCurrent evaluation state. `pending` before the agent begins work; `running` while producing or revising; `evaluating` while the grader scores; `satisfied`/`max_iterations_reached`/`failed`/`interrupted` are terminal. BetaManagedAgentsServerToolUsage object{ web_fetch_requests, web_search_requests }Cumulative count of server-executed tool invocations, broken down by tool.web_fetch_requests: optional numberNumber of server-executed web fetch requests.formatint32web_search_requests: optional numberNumber of server-executed web search requests.formatint32 BetaManagedAgentsSession object{ type, id, agent, 14 more }A Managed Agents `session`. BetaManagedAgentsSessionAgent object{ type, id, description, 8 more }Resolved `agent` definition for a `session`. Snapshot of the `agent` at `session` creation time. BetaManagedAgentsSessionAgentUpdate object{ mcp_servers, tools }Mid-session agent configuration update. Only `tools` and `mcp_servers` are updatable. Full replacement: the provided array becomes the new value. To preserve existing entries, GET the session, modify the array, and POST it back. BetaManagedAgentsSessionMultiagentCoordinator object{ type, agents }Resolved coordinator topology with full agent definitions for each roster member. BetaManagedAgentsSessionStats object{ active_seconds, duration_seconds }Timing statistics for a session.active_seconds: optional numberCumulative time in seconds the session spent in `running` status. Excludes idle time.formatdoubleduration_seconds: optional numberElapsed time since session creation in seconds. For terminated sessions, frozen at the final update.formatdouble BetaManagedAgentsSessionUpdatedEvent object{ type, id, processed_at, 4 more }Emitted when an UpdateSession request changed at least one field. Carries only the fields that changed; absent fields were not part of the update. The new configuration applies from the next turn. BetaManagedAgentsSessionUsage object{ active_seconds, cache_creation, cache_read_input_tokens, 4 more }Cumulative token usage for a session across all turns. BetaManagedAgentsSessionUsageEvent object{ type, id, processed_at, 2 more }Periodic snapshot of the session's cumulative usage and tracked list cost. BetaManagedAgentsStartEvent object{ type, event }Opens a preview of a buffered event. Carries the previewed event's type and id only. Followed by zero or more event_delta events with the same event id, normally concluded by the buffered event carrying that id. If the producing model request ends without that event (an error or interrupt mid-stream), its terminal span.model_request_end closes the preview. Only sent on stream connections that opt in via event_deltas; never appears in event history.type: "event_start"event: [BetaManagedAgentsStartEventPreview](/docs/de/api/http/beta/sessions#beta_managed_agents_start_event_preview)The previewed event's type and id. The event type determines which delta types the preview's event_delta events carry: agent.message events stream content_delta fragments; agent.thinking previews are start-only — no deltas follow, and the buffered agent.thinking with the same id concludes them.One of the following:BetaManagedAgentsAgentMessagePreview object{ type, id }type: "agent.message"id: stringThe id the buffered agent.message will carry if it is emitted. Matches the event_id on this preview's event_delta events.BetaManagedAgentsAgentThinkingPreview object{ type, id }type: "agent.thinking"id: stringThe id the buffered agent.thinking will carry if it is emitted. Start-only — no event_delta events follow. BetaManagedAgentsStartEventPreview = [BetaManagedAgentsAgentMessagePreview](/docs/de/api/http/beta/sessions#beta_managed_agents_agent_message_preview) { type, id } or [BetaManagedAgentsAgentThinkingPreview](/docs/de/api/http/beta/sessions#beta_managed_agents_agent_thinking_preview) { type, id }One of the following:BetaManagedAgentsAgentMessagePreview object{ type, id }type: "agent.message"id: stringThe id the buffered agent.message will carry if it is emitted. Matches the event_id on this preview's event_delta events.BetaManagedAgentsAgentThinkingPreview object{ type, id }type: "agent.thinking"id: stringThe id the buffered agent.thinking will carry if it is emitted. Start-only — no event_delta events follow. BetaManagedAgentsSystemContentBlock object{ type, text }Regular text content.type: "text"text: stringThe text content.minLength1 BetaManagedAgentsSystemMessageEvent object{ type, id, content, processed_at }A mid-conversation system message event. Carries system-role content that is appended to the session as a `role: "system"` turn.type: "system.message"id: stringUnique identifier for this event.content: array of [BetaManagedAgentsSystemContentBlock](/docs/de/api/http/beta/sessions#beta_managed_agents_system_content_block) { type, text }System content blocks. Text-only.type: "text"text: stringThe text content.minLength1processed_at: optional string or nullA timestamp in RFC 3339 formatformatdate-time BetaManagedAgentsUserToolResultEvent object{ type, id, tool_use_id, 4 more }Event sent by the client providing the result of an agent-toolset tool execution. Only valid on `self_hosted` environments, where sandbox-routed tools are executed by the client rather than the server. #### Sitzungen[Events](/docs/de/api/http/beta/sessions/events) ##### [Events auflisten](/docs/de/api/http/beta/sessions/events/list) GET /v1/sessions/{session_id}/events ##### [Events senden](/docs/de/api/http/beta/sessions/events/send) POST /v1/sessions/{session_id}/events ##### [Events streamen](/docs/de/api/http/beta/sessions/events/stream) GET /v1/sessions/{session_id}/events/stream #### Sitzungen[Ressourcen](/docs/de/api/http/beta/sessions/resources) ##### [Session-Ressource hinzufügen](/docs/de/api/http/beta/sessions/resources/add) POST /v1/sessions/{session_id}/resources ##### [Session-Ressourcen auflisten](/docs/de/api/http/beta/sessions/resources/list) GET /v1/sessions/{session_id}/resources ##### [Session-Ressource abrufen](/docs/de/api/http/beta/sessions/resources/retrieve) GET /v1/sessions/{session_id}/resources/{resource_id} ##### [Session-Ressource aktualisieren](/docs/de/api/http/beta/sessions/resources/update) POST /v1/sessions/{session_id}/resources/{resource_id} ##### [Session-Ressource löschen](/docs/de/api/http/beta/sessions/resources/delete) DELETE /v1/sessions/{session_id}/resources/{resource_id} #### Sitzungen[Threads](/docs/de/api/http/beta/sessions/threads) ##### [Session-Threads auflisten](/docs/de/api/http/beta/sessions/threads/list) GET /v1/sessions/{session_id}/threads ##### [Session-Thread abrufen](/docs/de/api/http/beta/sessions/threads/retrieve) GET /v1/sessions/{session_id}/threads/{thread_id} ##### [Session-Thread archivieren](/docs/de/api/http/beta/sessions/threads/archive) POST /v1/sessions/{session_id}/threads/{thread_id}/archive #### SitzungenThreads[Events](/docs/de/api/http/beta/sessions/threads/events) ##### [Session-Thread-Events auflisten](/docs/de/api/http/beta/sessions/threads/events/list) GET /v1/sessions/{session_id}/threads/{thread_id}/events ##### [Session-Thread-Events streamen](/docs/de/api/http/beta/sessions/threads/events/stream) GET /v1/sessions/{session_id}/threads/{thread_id}/stream