> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs-unsw-v6.advance-uac.com/unsw-advance-institution-api/workflows/get-one-workflow/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-unsw-v6.advance-uac.com/_mcp/server. # Get one workflow GET https://unsw-v6-dev.advance-uac.com/institution-api/institution/workflows/{id} Its steps in the order they run, and the programs of yours it governs. A step marked `automatic` is performed by the system; the others wait for a person. Reference: https://docs-unsw-v6.advance-uac.com/unsw-advance-institution-api/workflows/get-one-workflow ## Authentication - `Authorization` header (bearer token, required) — Paste a Keycloak access token (no "Bearer " prefix) ## Servers - `https://unsw-v6-dev.advance-uac.com/institution-api` (Dev, default) - `https://unsw-v6-test.advance-uac.com/institution-api` (Test) ## Request ### Path parameters - `id` (string, required) ## Response ### 200 OK - `id` (string, optional) - `name` (string, optional) - `version` (integer, optional) - `status` (string, optional) - `description` (string, optional) - `steps` (list of WorkflowStep, optional) — The steps in the order they run. An application's `workflowStatus` on the outcome endpoint is one of these `code` values. - `programs` (list of WorkflowProgram, optional) — Your programs attached to this workflow, one entry per cohort year and stream. ## Types ### WorkflowStep One step of an assessment process. - `code` (string, optional) — Matches `workflowStatus` on the outcome endpoint. - `label` (string, optional) — The step in words, e.g. "Credit match". - `description` (string, optional) - `automatic` (boolean, optional) — True when the system performs this step and moves on by itself. False means it waits for a person, so an application can sit here. - `initial` (boolean, optional) — Where an application starts. - `terminal` (boolean, optional) — An end state. Reaching one is what sets `finalOutcome`. ### WorkflowProgram A program attached to a workflow. - `code` (string, optional) - `name` (string, optional) - `cohortYear` (integer, optional) — The cohort year this attachment applies to. - `stream` (string, optional) — The stream this attachment applies to. ## Examples **Response** ```json { "id": "string", "name": "string", "version": 1, "status": "string", "description": "string", "steps": [ { "code": "CREDIT_MATCH", "label": "string", "description": "string", "automatic": true, "initial": true, "terminal": true } ], "programs": [ { "code": "8429", "name": "string", "cohortYear": 1, "stream": "string" } ] } ``` **SDK Code** ```python import requests url = "https://unsw-v6-dev.advance-uac.com/institution-api/institution/workflows/id" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://unsw-v6-dev.advance-uac.com/institution-api/institution/workflows/id'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; 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://unsw-v6-dev.advance-uac.com/institution-api/institution/workflows/id" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") 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://unsw-v6-dev.advance-uac.com/institution-api/institution/workflows/id") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' 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://unsw-v6-dev.advance-uac.com/institution-api/institution/workflows/id") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://unsw-v6-dev.advance-uac.com/institution-api/institution/workflows/id', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://unsw-v6-dev.advance-uac.com/institution-api/institution/workflows/id"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://unsw-v6-dev.advance-uac.com/institution-api/institution/workflows/id")! 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() ```