curl --request GET \
--url https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result \
--header 'Authorization: Bearer <token>'import requests
url = "https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "019abc12-9012-7890-abcd-ef1234567896",
"task_status": "pending",
"task_output": {
"storage_key": "tasks/019c65a0-1234-7000-8000-abcdef123456/output_00001_.png",
"image_count": 1
},
"download_url": "https://s3.example.com/tasks/019c65a0-.../output.png?X-Amz-Expires=3600&...",
"download_urls": {
"9.images.0": "https://s3.example.com/outputs/.../image.png?X-Amz-Expires=3600&..."
},
"expires_at": "2025-02-10T15:01:30Z",
"task_error": "",
"completed_at": "2025-02-10T14:01:30Z"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}Get task result
Retrieve the execution result of a task.
Returns output data for completed tasks or error details for failed tasks.
Available for tasks in any terminal status (completed, failed, cancelled).
Accepts JWT Bearer, sk- integration credential, or dk- device credential.
curl --request GET \
--url https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result \
--header 'Authorization: Bearer <token>'import requests
url = "https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.cyberun.cloud/api/v1/r/tasks/{taskId}/result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "019abc12-9012-7890-abcd-ef1234567896",
"task_status": "pending",
"task_output": {
"storage_key": "tasks/019c65a0-1234-7000-8000-abcdef123456/output_00001_.png",
"image_count": 1
},
"download_url": "https://s3.example.com/tasks/019c65a0-.../output.png?X-Amz-Expires=3600&...",
"download_urls": {
"9.images.0": "https://s3.example.com/outputs/.../image.png?X-Amz-Expires=3600&..."
},
"expires_at": "2025-02-10T15:01:30Z",
"task_error": "",
"completed_at": "2025-02-10T14:01:30Z"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}{
"error_message": "resource not found"
}Authorizations
User session JWT (Bearer ). Must be paired with the X-Team-ID
request header on team-scoped endpoints so the server knows which
team's resources to operate on.
Headers
UUID of the team to scope the request to. Used by dual-auth endpoints (runtime + scoped management):
- JWT callers MUST send it — a user may belong to multiple teams and the runtime cannot otherwise know which one to operate on. Missing header → 400.
- Credential callers (
sk-,dk-) can omit it because the team is derived from the credential row itself. Any value sent is ignored.
"019abc12-4567-7890-abcd-ef1234567891"
Path Parameters
UUID of the task.
"019abc12-9012-7890-abcd-ef1234567896"
Response
Task result
Task execution result including output data and download URLs.
- Completed tasks (local):
task_outputcontains metadata withstorage_key,download_urlprovides a presigned S3 URL. - Completed tasks (cloud):
task_outputcontains per-output metadata withs3_key,download_urlsprovides presigned URLs keyed by output identifier. - Failed tasks:
task_errorcontains the error message,task_outputis null. - Cancelled/pending tasks: Both
task_outputanddownload_urlare null.
Unique task identifier.
"019abc12-9012-7890-abcd-ef1234567896"
Current state of the task:
pending: Task created, waiting to be picked up by the scheduler.waiting: The scheduler received the task, waiting for an available agent with matching labels.queued: Task assigned to an agent, waiting for ACK.running: Agent is executing the ComfyUI workflow.completed: Execution finished successfully, output is available.failed: Execution failed, check the error field for details.cancelled: Task was cancelled before completion.
pending, waiting, queued, running, completed, failed, cancelled Result metadata set by the agent upon completion. null if the task has not completed.
Typical fields:
storage_key: S3 object path of the output file.image_count: Number of images generated.
{
"storage_key": "tasks/019c65a0-1234-7000-8000-abcdef123456/output_00001_.png",
"image_count": 1
}
Presigned S3 download URL for the primary output file. Only present when
task_output contains a storage_key. Expires after 1 hour — call this
endpoint again to get a fresh URL.
"https://s3.example.com/tasks/019c65a0-.../output.png?X-Amz-Expires=3600&..."
Presigned S3 download URLs for all output files. Present for cloud tasks that produce
multiple outputs (keyed by output identifier, e.g. "9.images.0"). Each URL expires
after 1 hour — call this endpoint again to get fresh URLs.
Show child attributes
Show child attributes
{
"9.images.0": "https://s3.example.com/outputs/.../image.png?X-Amz-Expires=3600&..."
}
Expiration time of the download_url (typically 1 hour from request). null if no download URL is available.
"2025-02-10T15:01:30Z"
Error message if the task failed. Empty string for non-failed tasks.
""
When the task reached a terminal state. null if still running.
"2025-02-10T14:01:30Z"
