SuperAI Flow Platform

Sections

Theme switcher

Get task output by ID

Retrieve a specific task output by its unique identifier.

Fetch a single task output record with complete output data, summary, tags, and metadata. Used for inspecting individual task results, debugging, and retrieving output for downstream processing.

Resource Identification

Task outputs are uniquely identified by UUID (id field). To find task outputs by other criteria (flow execution, task name), use GET /flow-executions/{id} or GET /task-outputs (list all).

What You'll Get

  • summary: Structured task output summary for display
  • output: Full output data produced by task
  • tags: Associated metadata tags
  • status: Task execution state when output was created
  • Timestamps: created_at, updated_at for audit trail
  • Organization context: organization_id for multi-tenant isolation

Common Use Cases

  • Inspect task output for debugging or validation
  • Retrieve output data for manual review or corrections
  • Audit task execution history
  • Display detailed task results in UI

Related Endpoints

  • GET /task-outputs - List all task outputs
  • GET /flow-executions/{id} - View parent flow execution with all outputs
  • GET /task-executions/{id} - View full task execution details

Header Parameters

Authorizationstring

Path Parameters

task_output_idstring Required

Unique identifier of the task output to retrieve. UUID assigned when task output was created. Task outputs are scoped to organization; attempting to access another organization's output returns 404.

Response

200
Object
Task output successfully retrieved

Response Attributes

created_atnull
flow_execution_idstring Required

ID of the parent flow execution containing this task. Establishes the execution hierarchy and organization scope.

flow_versionnull
Minimum
1
idstring Required

Unique identifier for this task output. Auto-generated UUID assigned at creation time. Used for direct resource access via GET /task-outputs/{id}.

modified_bystring

Identifier of the actor who last modified this task output. Tracks who made the last change for auditing purposes. Defaults to 'system' for worker-initiated changes.

Values:

  • 'system': System-automated changes (workers, background jobs)
  • User ID: UUID string of the user who made the change (e.g., '123e4567-e89b-12d3-a456-426614174000')
  • Integration type: For service accounts/integrations (e.g., 'integration', 'service-account')
Default value
system
organization_idstring Required

ID of the organization owning this task output. Inherited from parent flow execution. Used for Row-Level Security (RLS) and multi-tenant isolation.

outputnull
statusstring Required

Execution status when output was created. Valid values: 'queued', 'running', 'completed', 'failed', 'deleted', 'stale'. Typically 'completed' for successful task outputs.

Status meanings:

  • queued: Task scheduled but not started
  • running: Task actively executing
  • completed: Task finished successfully
  • failed: Task encountered error (may have partial output)
  • deleted: Soft-deleted, excluded from queries (preserves audit trail)
  • stale: Output data is outdated (needs refresh)
summarystring Required

Structured summary of task output for UI display and querying. Typically a dictionary with standardized keys for rendering.

Common patterns:

  • Document processing: {'pages': 10, 'word_count': 5000}
  • API calls: {'status_code': 200, 'response_time_ms': 450}
  • Data validation: {'valid_rows': 950, 'invalid_rows': 50}
tagsnull
task_namestring Required

Name of the task that produced this output. Case-sensitive identifier matching flow definition YAML. Used to associate output with specific workflow task.

Min length
1
Max length
200
updated_atnull
401
Object
Unauthorized - Missing or invalid authentication credentials

Response Attributes

errorobject Required

Standard error detail structure.

This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.

Show child attributes

request_idnull
403
Object
Forbidden - Insufficient permissions to access this resource

Response Attributes

errorobject Required

Standard error detail structure.

This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.

Show child attributes

request_idnull
404
Object
Task output not found or belongs to a different organization
422
Object
Unprocessable Entity - Request validation failed

Response Attributes

errorobject Required

Standard error detail structure.

This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.

Show child attributes

request_idnull
500
Object
Internal Server Error - An unexpected error occurred

Response Attributes

errorobject Required

Standard error detail structure.

This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.

Show child attributes

request_idnull
Was this section helpful?

What made this section unhelpful for you?

GET

/

Select
1

Response

Was this section helpful?

What made this section unhelpful for you?

View as Markdown

Ask an AI

Open in ChatGPTOpen in ClaudeOpen in Perplexity

Code with AI

Open in Copilot