Skip to main content
Restate lets you persist key-value (K/V) state using its embedded K/V store.

Key characteristics

State is only available for Virtual Objects and Workflows. Scope & retention:
  • For Virtual Objects: State is scoped per object key and retained indefinitely. It is persisted and shared across all invocations for that object until explicitly cleared.
  • For Workflows: State is scoped per workflow execution (workflow ID) and retained only for the duration of the workflow’s configured retention time.
Access Rules: You can inspect and edit the K/V state via the UI and the CLI.

List all state keys

To retrieve all keys for which the current Virtual Object has stored state:

Get state value

To read a value by key: