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

# Get Subtask

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

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/datasubject/v2/subtasks/{subtaskID}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `DSAR`, `DSAR_READ`, `DSAR_WRITE`

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.dev/onetrust/apis/privacy-automation-data-subject-request-dsr-automation.md) - [All operations](https://skmtc.dev/onetrust/apis/privacy-automation-data-subject-request-dsr-automation/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/privacy-automation-data-subject-request-dsr-automation/revisions/612f0b39b904?raw)
