Block until the execution reaches a terminal state (completed, failed,
or cancelled) or the timeout expires.
This is a simpler alternative to SSE streaming for agents and HTTP clients that cannot consume event streams. The server polls internally and returns once the execution is done.
If the timeout expires before the execution finishes, the response includes
timeout: true alongside the current execution state. This is NOT an error
— the execution is still running. You can call this endpoint again or switch
to polling.
Recommended for agents: Use timeout=60 (default) for typical image
workflows. Use timeout=120 for video workflows.
EventSource or SSE. The server polls internally and returns once the execution reaches completed, failed, or cancelled.
If the timeout expires first, the response includes timeout: true alongside the current execution state — this is not an error.
timeout=60 (default)timeout=120| Method | When to use |
|---|---|
| Wait (this endpoint) | Agent can make HTTP calls but not consume SSE. Simplest integration. |
| SSE stream | Need real-time progress events (node completions, intermediate status). |
| Webhook | Production workloads where you don’t want open connections. |
| Polling | Fallback when none of the above fit. Poll every 3-5 seconds. |
Workspace API key. Prefix: lma_. Example: lma_abc123...
The run ID returned from the Run App or Content Create endpoint
Maximum seconds to wait before returning (default 60, max 120)
1 <= x <= 120