Views
A View is a human-facing surface for automation. It can show a live Runtime, a completed Run, trace and event data, or a place for a person to respond when automation needs help.
The Run remains the machine-readable record. The View is the interface a person uses to observe or influence that execution. This pattern is commonly called live supervision or human-in-the-loop control.
Create a View
Create a hosted View for one Run:
scope is required. bell, control, recordings, trace, and events are
the canonical capability fields. bell, control, recordings, and trace
default to true; events defaults to false. presentation defaults to
hosted ({ mode: "hosted" }). expiresInSeconds defaults to 28_800 (8 hours)
and accepts up to 2_592_000 (30 days).
Choose a scope
The scope determines what automation the View can show:
For a Space scope, runtimeIds is optional and may contain up to 50 unique
Runtime IDs. A View must use exactly one of spaceId, runtimeId, or runId.
Choose capabilities
Each capability grants the View access to a surface. Omit a capability to use its default:
Create a supervised View when a person should be able to act:
The legacy components object is accepted as a deprecated compatibility input,
but new integrations should use the capability booleans above.
Hosted and embedded Views
Hosted Views open at the returned URL:
Use an embedded View when you want to place the surface inside your own
application. allowedOrigins must contain exact HTTPS origins. HTTP is allowed
only for localhost development:
The View token is returned only when the View is created. Treat it as a
short-lived bearer credential: do not log it or expose it outside the intended
viewer. Use expiresInSeconds to set a shorter lifetime. It defaults to 28,800
seconds (8 hours) and the maximum is 2,592,000 seconds (30 days).
Live and recording sessions
When you need a short-lived session URL for a live browser or a recording, use the token returned during creation:
surface is "live" or "recording". A recording can be unavailable when
recording was disabled for the Run.
View fields
The response components field is the normalized, persisted capability map; it
is not the shape used by the canonical create request. It can contain live,
inputs, recordings, trace, and events entries.
token and url are available on the create response. List and get return the
View resource without the token.
Manage Views
Views expire automatically. Delete a View when the viewer should lose access before its expiration time.
View, Run, and Conversation
Use Runs for durable observability and Conversations for persistent Agent interaction. Use a View when that information or control needs to be presented to a person.

