---
title: "Gets a single task by ID, including the full task log as a tree of activity elements."
method: GET
path: "/spaces/{spaceIdentifier}/tasks/{id}/details"
tags: ["Tasks"]
---

# Gets a single task by ID, including the full task log as a tree of activity elements.

`GET /spaces/{spaceIdentifier}/tasks/{id}/details`

## Path parameters

- `spaceIdentifier` string, required
- `id` string, required

## Query parameters

- `ranges` string
- `tail` integer
- `verbose` boolean

## Response `200`

Returns details about a specific server task

- TaskDetailsResource
  - `ActivityLogs` ActivityLogTreeNode[]
    - `Children` ActivityLogTreeNode[]
    - `Ended` string, date-time
    - `Id` string
    - `LogElements` ActivityLogEntry[]
      - `Category` 'Trace' | 'Verbose' | 'Info' | 'Wait' | 'Highlight' | 'Gap' | 'Alert' | 'Warning' | 'Error' | 'Fatal' | 'Planned' | 'Updated' | 'Finished' | 'Abandoned' | 'Retry'
      - `Detail` string
      - `GapLastNumber` integer
      - `MessageText` string
      - `Number` integer
      - `OccurredAt` string, date-time
    - `Name` string
    - `ProgressMessage` string
    - `ProgressPercentage` integer
    - `ShowAtSummaryLevel` boolean
    - `Started` string, date-time
    - `Status` 'Pending' | 'Running' | 'Success' | 'Failed' | 'Skipped' | 'SuccessWithWarning' | 'Canceled'
  - `Id` string
  - `LastModifiedBy` string
  - `LastModifiedOn` string, date-time
  - `Links` object
  - `PhysicalLogSize` integer
  - `Progress` TaskProgress
    - `EstimatedTimeRemaining` string
    - `ProgressPercentage` integer
  - `Task` TaskResource
    - `Arguments` object
    - `CanRerun` boolean
    - `Completed` string
    - `CompletedTime` string, date-time
    - `Description` string
    - `Duration` string
    - `ErrorMessage` string
    - `EstimatedRemainingQueueDurationSeconds` integer
    - `FinishedSuccessfully` boolean
    - `HasBeenPickedUpByProcessor` boolean
    - `HasPendingInterruptions` boolean
    - `HasPendingPreconditions` boolean
    - `HasWarningsOrErrors` boolean
    - `Id` string
    - `IsCompleted` boolean
    - `LastModifiedBy` string
    - `LastModifiedOn` string, date-time
    - `LastUpdatedTime` string, date-time
    - `Links` object
    - `Name` string
    - `PendingInterruptionTypes` string[]
    - `PendingPreconditionTypes` string[]
    - `ProjectId` string
    - `QueueTime` string, date-time
    - `QueueTimeExpiry` string, date-time
    - `ServerNode` string
    - `SpaceId` string
    - `StartTime` string, date-time
    - `State` 'Queued' | 'Executing' | 'Failed' | 'Canceled' | 'TimedOut' | 'Success' | 'Cancelling'

## Other responses

- `400` — Bad request. Either the payload was not structurally valid or business rules did not permit the operation.
- `404` — Not found. One or more of the entities involved in the operation was not found.

---

[API](https://skmtc.net/octopus/apis/octopus-server-api.md) · [All operations](https://skmtc.net/octopus/apis/octopus-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/octopus/octopus-server-api/versions/bc9158facfc7/schema)
