Skip to main content

Stream a published agent

The agent’s Endpoint page shows the streaming POST URL after an API trigger is available. Edit the JSON request body on that page and select Run agent to submit it to this endpoint and follow the response stream in the UI:
Use the active API trigger’s schedule ID and token. This request runs the backing pipeline’s last agent block and returns server-sent events (SSE), including run metadata and agent output, on the same connection. Include your deployment’s URL prefix before /api when applicable.

Start a run with a Mage session

The response includes the pipeline run ID, schedule ID, and stream URL.