> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://onepin.ai/docs/reference/api-reference/workflows/download-run-node-api-v-1-workflows-workflow-id-runs-run-id-nodes-node-id-download-get/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://onepin.ai/_mcp/server. # Download Run Node GET https://api.onepin.ai/api/v1/workflows/{workflow_id}/runs/{run_id}/nodes/{node_id}/download Create a temporary download URL for a single output node's audio export. Returns a pre-signed URL for a ZIP archive containing the audio files produced by one specific output node within the run. Useful when a workflow has multiple output nodes and the caller wants only one node's results rather than the full run archive. `node_id` must identify an output-category node in the run's definition snapshot. Passing a node ID that belongs to a non-output node type (e.g. an operator or validation node) returns 404. Returns 404 if the node produced no audio files, and 409 if the run has not yet completed. The URL is valid for 15 minutes. To download all output nodes in a single archive, use `GET /runs/{run_id}/download` instead. Reference: https://onepin.ai/docs/reference/api-reference/workflows/download-run-node-api-v-1-workflows-workflow-id-runs-run-id-nodes-node-id-download-get ## Authentication - `Authorization` header (bearer token, required) — Clerk JWT token - `Authorization` header (bearer token, required) — Onepin live API key (`op_live_...`). Test and public keys are reserved in Phase 1. ## Servers - `https://api.onepin.ai` (prod, default) - `https://dev-api.onepin.ai` (dev) ## Request ### Path parameters - `workflow_id` (string, required) - `run_id` (string, required) - `node_id` (string, required) ### Headers - `X-Workspace-Id` (string, optional, nullable) ## Response ### 200 Successful Response - `data` (DownloadUrlOut, required) - `meta` (Meta, required) ## Errors ### 404 Not Found Error Sink node not found or has no audio files - `any` ### 409 Conflict Error Run not yet completed or export too large - `any` ### 422 Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ## Types ### DownloadUrlOut - `url` (string, required) — Pre-signed download URL. Valid until `expires_at`; do not cache beyond that time. - `filename` (string, required) — Suggested filename for the downloaded ZIP archive. - `expires_at` (datetime, required) — UTC datetime after which the URL is no longer valid (15 minutes from generation). ### Meta - `request_id` (string, required) - `timestamp` (datetime, required) ### ValidationError - `loc` (list of ValidationErrorLocItems, required) - `msg` (string, required) - `type` (string, required) - `input` (any, optional) - `ctx` (ValidationErrorCtx, optional) ### ValidationErrorLocItems ### ValidationErrorCtx ## Examples **Request** ```json {} ``` **Response** ```json { "data": { "url": "https://storage.onepin.ai/downloads/3f9b8c2a-7d4e-4a1f-9c3e-2b5d6f7a8e9c/output-node-audio-export.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIOSFODNN7EXAMPLE%2F20240615%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240615T093000Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890", "filename": "run-8a7f6c5d-node-3f9b8c2a-audio-export.zip", "expires_at": "2024-06-15T09:45:00Z" }, "meta": { "request_id": "7e4f9d2b-1c3a-4e5f-b8d7-9a0c1e2f3b4d", "timestamp": "2024-06-15T09:30:00Z" } } ``` **SDK Code** ```python import requests url = "https://api.onepin.ai/api/v1/workflows/workflow_id/runs/run_id/nodes/node_id/download" payload = {} headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.get(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.onepin.ai/api/v1/workflows/workflow_id/runs/run_id/nodes/node_id/download'; const options = { method: 'GET', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{}' }; 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" "strings" "net/http" "io" ) func main() { url := "https://api.onepin.ai/api/v1/workflows/workflow_id/runs/run_id/nodes/node_id/download" payload := strings.NewReader("{}") req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") 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.onepin.ai/api/v1/workflows/workflow_id/runs/run_id/nodes/node_id/download") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{}" 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.onepin.ai/api/v1/workflows/workflow_id/runs/run_id/nodes/node_id/download") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{}") .asString(); ``` ```php request('GET', 'https://api.onepin.ai/api/v1/workflows/workflow_id/runs/run_id/nodes/node_id/download', [ 'body' => '{}', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.onepin.ai/api/v1/workflows/workflow_id/runs/run_id/nodes/node_id/download"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.onepin.ai/api/v1/workflows/workflow_id/runs/run_id/nodes/node_id/download")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers request.httpBody = postData as Data 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() ``` > Onepin is a voice workflow platform that orchestrates, validates, and ships production-ready audio across 33 TTS models.