---
title: "Get Subtask"
method: GET
path: "/api/datasubject/v2/subtasks/{subtaskID}"
tags: ["Subtasks"]
---

# Get Subtask

`GET /api/datasubject/v2/subtasks/{subtaskID}`

Use this API to retrieve a single subtask by its unique identifier along with the assignee, deadline, and status.

## Path parameters

- `subtaskID` string, uuid, required — Subtask ID

## Query parameters

- `includeComments` boolean — Include comments in the response

## Response `200`

OK

- PrivacyAutomationDataSubjectRequestDSRAutomationSubtaskByIdDto
  - `subTaskId` string, uuid
  - `requestQueueRefId` string
  - `requestQueueId` string, uuid
  - `taskName` string
  - `statusCode` integer
  - `status` string
  - `type` string
  - `integrationSystemId` string, uuid
  - `integrationWorkflowId` string, uuid
  - `isGroup` boolean
  - `isManualRun` boolean
  - `required` boolean
  - `deadline` string, date-time
  - `reminder` string, date-time
  - `userId` string, uuid
  - `assignee` string
  - `workflowDetailId` string, uuid
  - `workflowStage` string
  - `taskDescription` string
  - `subTaskV2CommentsDtoList` PrivacyAutomationDataSubjectRequestDSRAutomationSubtaskExposedCommentDto[]
    - `commentId` string, uuid, required
    - `comment` string, required
    - `commenterName` string, required
    - `attachments` PrivacyAutomationDataSubjectRequestDSRAutomationSubtaskExposedFileDto[]
      - `fileName` string, required
      - `fileId` string, uuid, required
    - `isEditable` boolean
    - `isEdited` boolean
    - `isInternal` boolean
  - `subTaskResolution` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500` — Internal Server Error

---

[API](https://skmtc.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/versions/21de3aa0b170/schema)
