Flows - Get run status
Retrieve the current status and results of a flow execution run.
Use this endpoint to poll the status of a run after calling the
POST /v1/ai/flows/{flow-id}/run endpoint. The run_id path parameter
corresponds to the workflow_run_identifier returned in the run response.
Polling strategy:
- Wait 2-3 seconds after starting the run before the first poll
- Poll every 3-5 seconds
- When
statusiscompleted, theresultfield contains download URLs - When
statusisfailed, theerror_messagefield describes the failure
Asset URLs in the result field are temporary and valid for 12 hours.
Statuses:
| Status | Description |
|---|---|
pending | Run is queued but has not started yet |
running | Flow is executing |
completed | Finished successfully, result is available |
completed_with_errors | Execution finished but some nodes failed |
failed | Execution failed, see error_message |
cancelled | Execution was cancelled |
Authorizations
Your Magnific API key. Required for authentication. Learn how to obtain an API key
Path Parameters
Unique identifier (SQID) of the flow run. This is the
workflow_run_identifier value returned by the POST /v1/ai/flows/{flow-id}/run endpoint.
"omps2OH829"
Response
OK - Run status and result.
Status and result of a single flow execution run.