> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runaether.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List the provider-native subagents a task owns

> Lists the task's ledger: the provider-native sub-agents, tool runs and commands the task's agent started inside the task (Claude Code Task agents and teammates, background shells, workflows and MCP tasks, Codex collab agents), each with its state.

Use this tool when you need to:
- See which sub-agents, background commands or workflows a task's agent started, and whether each is still running or how it ended
- Find a sub-agent's tool_call_id before reading its transcript
- Read a ledger row's summary, error, output_file or token usage

Examples:
- GET /tasks/{taskID}/subagents
- GET /tasks/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/subagents

Hints:
- taskID is the task's uuid; there are no other parameters. Every row comes in one response, in the order the rows were observed; the list is not paged.
- These are not Aether tasks: they have no workspace, branch or pull request of their own. task_type tells them apart: local_agent, in_process_teammate and remote_agent are sub-agents, local_workflow and mcp_task are tool runs, local_bash is a command.
- status is pending, running, paused, completed, failed, killed, stopped or stream_closed, and ended_at is set once it is terminal. ambient marks CLI housekeeping the provider does not surface as work, which clients hide from activity indicators.
- Use listTaskSubagentEvents instead to read one row's transcript by its tool_call_id.
- Use getTaskTree instead for the cloud agents a task spawned: those are Aether tasks with their own workspace and pull request.
- Owners, admins, members and viewers of the task's organization; a billing member is refused with 403 org_role_insufficient and a task the caller cannot see is 404. 503 when the membership check is unavailable.



## OpenAPI

````yaml api-reference/openapi.json GET /tasks/{taskID}/subagents
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /tasks/{taskID}/subagents:
    get:
      tags:
        - tasks
      summary: List the provider-native subagents a task owns
      description: >-
        Lists the task's ledger: the provider-native sub-agents, tool runs and
        commands the task's agent started inside the task (Claude Code Task
        agents and teammates, background shells, workflows and MCP tasks, Codex
        collab agents), each with its state.


        Use this tool when you need to:

        - See which sub-agents, background commands or workflows a task's agent
        started, and whether each is still running or how it ended

        - Find a sub-agent's tool_call_id before reading its transcript

        - Read a ledger row's summary, error, output_file or token usage


        Examples:

        - GET /tasks/{taskID}/subagents

        - GET /tasks/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/subagents


        Hints:

        - taskID is the task's uuid; there are no other parameters. Every row
        comes in one response, in the order the rows were observed; the list is
        not paged.

        - These are not Aether tasks: they have no workspace, branch or pull
        request of their own. task_type tells them apart: local_agent,
        in_process_teammate and remote_agent are sub-agents, local_workflow and
        mcp_task are tool runs, local_bash is a command.

        - status is pending, running, paused, completed, failed, killed, stopped
        or stream_closed, and ended_at is set once it is terminal. ambient marks
        CLI housekeeping the provider does not surface as work, which clients
        hide from activity indicators.

        - Use listTaskSubagentEvents instead to read one row's transcript by its
        tool_call_id.

        - Use getTaskTree instead for the cloud agents a task spawned: those are
        Aether tasks with their own workspace and pull request.

        - Owners, admins, members and viewers of the task's organization; a
        billing member is refused with 403 org_role_insufficient and a task the
        caller cannot see is 404. 503 when the membership check is unavailable.
      operationId: listTaskSubagents
      parameters:
        - in: path
          name: taskID
          required: true
          schema:
            format: uuid
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  items:
                    items:
                      $ref: '#/components/schemas/TaskSubagent'
                    type: array
                required:
                  - items
                type: object
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Not Found
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Service Unavailable
components:
  schemas:
    TaskSubagent:
      additionalProperties: false
      properties:
        ambient:
          type: boolean
        conversation_turn_id:
          format: uuid
          type: string
        description:
          minLength: 1
          type: string
        ended_at:
          format: date-time
          type: string
        error:
          minLength: 1
          type: string
        instruction:
          minLength: 1
          type: string
        is_backgrounded:
          type: boolean
        native_task_id:
          minLength: 1
          type: string
        output_file:
          minLength: 1
          type: string
        provider:
          $ref: '#/components/schemas/AgentType'
        spawn_depth:
          format: int64
          minimum: 1
          type: integer
        started_at:
          format: date-time
          type: string
        status:
          enum:
            - pending
            - running
            - paused
            - completed
            - failed
            - killed
            - stopped
            - stream_closed
          type: string
        subagent_type:
          minLength: 1
          type: string
        summary:
          minLength: 1
          type: string
        task_type:
          enum:
            - local_agent
            - local_bash
            - local_workflow
            - mcp_task
            - remote_agent
            - in_process_teammate
          type: string
        tool_call_id:
          minLength: 1
          type: string
        updated_at:
          format: date-time
          type: string
        usage:
          $ref: '#/components/schemas/TaskSubagentUsage'
      required:
        - native_task_id
        - provider
        - tool_call_id
        - conversation_turn_id
        - task_type
        - description
        - is_backgrounded
        - ambient
        - status
        - started_at
        - updated_at
      type: object
    TasksErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - account_deleting
            - aether_inference_unserved
            - agent_pr_blocked
            - agent_pr_pending
            - agent_profile_changed
            - agent_starts_off
            - app_identity_missing
            - attribution_unavailable
            - bad_gateway
            - bad_request
            - caller_inactive
            - chat_archived
            - chat_settings_fixed
            - chats_not_addable
            - checkout_not_archivable
            - cli_upgrade_required
            - client_outdated
            - computer_bridge_outdated
            - computer_cli_outdated
            - computer_starts_no_agents
            - computer_starts_no_forks
            - computer_unreachable
            - conflict
            - connection_creator_only
            - connection_harness_mismatch
            - connection_not_held
            - contents_write_required
            - continuation_failed
            - continuation_unavailable
            - control_forbidden
            - creator_github_access_missing
            - credential_kind_not_admitted
            - download_unsupported
            - embeddings_unavailable
            - fix_not_requested
            - fix_requests_unrecorded
            - forbidden
            - fork_branch_delete_unsupported
            - fork_forbidden
            - gateway_timeout
            - github_claim_unverified
            - github_failed
            - github_identity_mismatch
            - github_identity_required
            - github_push_access_required
            - github_reconnect_required
            - github_ref_not_found
            - gone
            - handed_branch_protected
            - head_moved
            - html_render_nul_byte
            - html_render_too_large
            - idempotency_key_conflict
            - idempotency_key_reused
            - idle_compaction_not_pending
            - idle_compaction_skipped
            - inference_proxy_unavailable
            - insufficient_credits
            - insufficient_inference_balance
            - internal_error
            - invalid_request
            - last_queued_message
            - live_protocol_unsupported
            - main_chat_permanent
            - mcp_server_not_connected
            - merge_when_ready_requires_pr_review
            - message_not_queued
            - method_not_allowed
            - mode_forbidden
            - name_follows_session
            - no_checkout_on_computer
            - no_dispatch_target
            - no_turn_running
            - not_acceptable
            - not_found
            - not_implemented
            - onboarding_already_completed
            - onboarding_requirements_missing
            - org_id_required
            - org_role_insufficient
            - org_suspended
            - payment_required
            - pending_input_answered
            - permission_prompt_answered_in_terminal
            - permission_prompt_expired
            - permission_prompt_open
            - permission_prompt_stopped
            - pr_automation_unsupported
            - pr_review_actor_required
            - pr_review_connection_spent
            - pr_review_publish_forbidden
            - precondition_failed
            - project_archived
            - project_has_no_repository
            - project_repo_disconnected
            - project_repository_differs
            - project_required
            - pull_request_closed
            - pull_request_mirror_failed
            - pull_request_not_mirrored
            - push_file_too_large
            - push_rejected
            - push_secret_detected
            - question_answers
            - queued_stop_requires_discard
            - rate_limited
            - reasoning_effort_fixed
            - repository_administration_not_granted
            - repository_already_connected
            - repository_create_forbidden
            - repository_create_rejected
            - repository_created_not_linked
            - repository_owner_not_caller
            - request_canceled
            - request_timeout
            - request_too_large
            - review_name_follows_pull_request
            - sandbox_deleted
            - sandbox_failed
            - sandbox_needs_message
            - save_in_progress
            - save_requires_task_creator
            - service_unavailable
            - session_not_started_by_aether
            - slash_command
            - stack_cycle
            - stack_too_large
            - stack_two_parents
            - stale_execution
            - stale_or_indeterminate
            - stale_pending_input
            - stream_delivery_gap
            - stream_event_conflict
            - task_already_saved
            - task_archived
            - task_awaiting_message
            - task_awaiting_tool_response
            - task_backed_by_work_tree
            - task_bound_at_creation
            - task_branch_diverged
            - task_branch_is_default
            - task_branch_mismatch
            - task_branch_missing
            - task_connection_disconnected
            - task_creator_deleted
            - task_executing
            - task_file_too_large
            - task_fork_refused
            - task_has_no_commits
            - task_has_no_files
            - task_has_no_repository
            - task_history_has_merges
            - task_ineligible
            - task_is_child
            - task_not_accepting_messages
            - task_not_pinnable
            - task_not_started
            - task_rebase_in_progress
            - task_settings_changed
            - task_start_failed
            - task_start_pending
            - teleport_unavailable
            - terminal_chat
            - terminal_chat_continuation_refused
            - terminal_chat_run_running
            - terminal_question
            - too_many_live_connections
            - unauthenticated
            - unsigned_aether_head
            - unsigned_commit
            - unsupported_changes
            - unsupported_media_type
            - untyped_error
            - user_suspended
            - validation_failed
            - working_tree_dirty
            - workspace_git_unavailable
            - workspace_gone
            - workspace_outdated
            - workspace_rejected
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    AgentType:
      description: >-
        The agent harness that runs a task, a profile or a connection:
        claude-code or claude_code is Claude Code, codex is Codex, opencode is
        OpenCode.
      enum:
        - codex
        - claude-code
        - opencode
        - claude_code
      type: string
    TaskSubagentUsage:
      additionalProperties: false
      properties:
        duration_ms:
          format: int64
          minimum: 0
          type: integer
        tool_uses:
          format: int64
          minimum: 0
          type: integer
        total_tokens:
          format: int64
          minimum: 0
          type: integer
      required:
        - total_tokens
        - tool_uses
        - duration_ms
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.