Test Start Hook (Streaming)
Provisions an isolated sandbox, runs the supplied start hook script, and streams output back as Server-Sent Events. Use this instead of a synchronous test endpoint to avoid gateway timeouts on long-running hooks. Events emitted: progress (status messages), output (captured stdout/stderr), complete (final exit_code and timed_out), and error (terminal failure).
Authorizations
API key authentication. Obtain your API key from the Replicas dashboard under Settings > API Keys.
Path Parameters
Environment UUID, or the literal string global.
Body
Shell script to execute (not persisted)
Response
SSE stream of start hook test events
SSE events. Each event has type in {progress, output, complete, error} plus an optional message, output, exit_code, or timed_out payload.