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.
Documentation Index
Fetch the complete documentation index at: https://docs.cyberun.cloud/llms.txt
Use this file to discover all available pages before exploring further.
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.
{
"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"
