Skip to main content
anthropic.archiveSession archives a Claude session while retaining its history.

Example

automations/anthropic-archive-session.automation.ts

Inputs

Requires sessionId. Inputs use public camelCase names and accept signals.

Output and behavior

Returns the archived session. Anthropic requests time out before the action lease and provider mutations are not retried after an uncertain response unless stated otherwise.