Skip to main content
Sandbox is the authenticated authoring and ad-hoc execution surface. Its contract is separate from both the Platform API and customer-facing Endpoint invocation. Element selection belongs to explicit Sandbox calls. Endpoint and Job execution always run the full Component; similarly named fields in business input do not select elements. An explicit Sandbox child call has its own selection. Read instance.endpoints.sandbox from GET /api/v1/me or use the URL exposed by the platform. The Node.js SDK and CLI discover it automatically.

HTTP surface

The exact roles are operation-specific. Component authoring routes require component access; stored execution and SDK dispatch also accept the relevant automation or endpoint execution roles.

Debug transient TypeScript

Transient payloads accept 1–1,000 elements. The default timeout is 10 seconds and the accepted maximum is 600 seconds. Memory defaults to 128 MB and is bounded at 2,048 MB; instance policy can impose a lower effective limit.

Execute saved code

Pass readOnly: true to block platform writes or readOnly: false for authorized full execution. The requested mode is fixed before code runs. External HTTP requests remain real in either mode; non-GET requests to Revo hosts require full execution. Full execution requires a component execution role or equivalent. Omit componentVersion to use the normal resolved version, or provide it when a workflow intentionally verifies an exact low-code revision. CLI 1.0.19 sends the explicit mode with revo component debug <id> --read-only=true|false; its default is read-only. The old sandbox production field and runtime debug toggles are removed. Upgrade callers together with the backend.

Streaming contract

Streaming debug and execute use text/event-stream. Consumers must parse named events rather than assuming every frame is a message:
  • log — structured api.log(...) output;
  • result — the single successful terminal payload;
  • error — the single failed terminal payload;
  • done — completion marker sent before close.
A failed execution emits error, then done with error: true, and does not emit a normal result. Comment frames are heartbeats and can be ignored.
The stream is not durable history. Persist the returned Execution ID and use platform execution/history views for later diagnosis.
Disconnect normally requests cooperative cancellation. A remote write accepted before disconnect may still complete. backgroundProcessing is an explicit debug-stream option for workflows that should continue after the client leaves.

Prefer supported clients

Use revo component debug --stream for local component work and @revoengine/sdk for runtime calls. Direct /v1/runtime/call integration requires contract-revision negotiation, call correlation, batch limits, and binary/date wire encoding; it is not a general-purpose JSON endpoint.

Execution identity

Direct debug and saved-component execution requests, including their streaming variants, accept an optional callStrategy:
  • caller (default) runs with the current caller behavior.
  • endpoints uses the global endpoint execution policy.
  • jobs uses the global job execution policy.
Caller admission and executor authority remain separate. Choosing a global policy still requires access to its execution account and permitted delegation. Administrator execution also requires approved source content; unsaved source is not automatically approved. Inherited execution authority cannot be changed by nested code or Assistant execution. CLI component debugging accepts --call-strategy=caller|endpoints|jobs. You can also set callStrategy in .revoengine/debug.json; the command-line flag takes precedence. VS Code exposes the same setting in the debugger configuration. Both default to caller. The setting is independent of readOnly; choosing a policy does not enable writes.

Execute all elements or one selected element

Debug and saved execution, including both streaming variants, accept optional executionMode: 'all' | 'selected' and elementKey: string. Omitted mode or all retains ordered execution of every element, including when an element key is supplied alone. Selected execution requires an exact, case-sensitive key identifying one existing, uniquely keyed CODE_JS or CODE_TS element. For example, add "executionMode": "selected", "elementKey": "Conversation" to a saved execution request when the Component contains an independent Conversation element. For transient debugging, supply the full original source and select one of its keys. No predecessors or dependencies execute implicitly; previous element results are not restored. Full source remains the basis for access, approval and artifact identity. Deploy the supporting backend before enabling selection in clients.
Last modified on November 12, 2026