> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.simplified.com/api-reference/workflows/runs/get-workflow-run-status/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.simplified.com/_mcp/server. # Flows · Runs · Poll a run for status and final output GET https://api.simplified.com/api/v1/workflows/executions/{run_id}/status Returns one run's current state: `status`, `input`, `output`, `reason_for_incompletion`, and millisecond epoch timestamps (`create_time`, `start_time`, `update_time`, `end_time`). Terminal statuses are `COMPLETED`, `FAILED`, `TERMINATED` and `TIMED_OUT`. `RUNNING` and `PAUSED` mean the run is still live. On success the result is in `output`; on failure `reason_for_incompletion` says why. `expand=tasks` additionally lists each task's `reference_task_name`, `task_type` and `status` — enough to identify a task waiting on approval without pulling the full record. This is a small payload, intended for repeated polling. Workflows take minutes to hours; polling every few seconds does not make one arrive sooner. `resource: workflow://run-control` covers the polling loop and approval gates. Reference: https://docs.simplified.com/api-reference/workflows/runs/get-workflow-run-status ## Authentication - `Authorization` header (required) (prefixed with ` Api-Key `) — Header authentication of the form `Api-Key ` - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Path parameters - `run_id` (string, required) — UUID of a single workflow execution, from `flows_startWorkflow` (returned as `workflow_id`) or `flows_listWorkflowRuns` (returned as `id`). NOT the small integer workflow-definition ID. ### Query parameters - `expand` (string, optional) — Set to `tasks` to also list each task's `reference_task_name`, `task_type` and `status` — enough to identify a task waiting on approval, without the full record. ## Response ### 200 Current status, input and output for the run. ## Errors ### 404 Not Found Error No such run in this workspace. - `any` ## Examples **Response** ```json {} ``` **SDK Code** ```python import requests url = "https://api.simplified.com/api/v1/workflows/executions/run_id/status" headers = {"Authorization": "Api-Key "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.simplified.com/api/v1/workflows/executions/run_id/status'; const options = {method: 'GET', headers: {Authorization: 'Api-Key '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.simplified.com/api/v1/workflows/executions/run_id/status" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Api-Key ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.simplified.com/api/v1/workflows/executions/run_id/status") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Api-Key ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.simplified.com/api/v1/workflows/executions/run_id/status") .header("Authorization", "Api-Key ") .asString(); ``` ```php request('GET', 'https://api.simplified.com/api/v1/workflows/executions/run_id/status', [ 'headers' => [ 'Authorization' => 'Api-Key ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.simplified.com/api/v1/workflows/executions/run_id/status"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Api-Key "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Api-Key "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.simplified.com/api/v1/workflows/executions/run_id/status")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```