---
updatedAt: 2026-05-27T12:51:18.000Z
agentTools:
  projectIndex: https://developer.onetrust.com/onetrust/llms.txt
---

# Get List of Subtasks by Request

Use this API to retrieve a list of all subtasks associated with a specific request. The response will include details for each subtask along with the request approver, date created, and deadline.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Privacy Automation - Data Subject Request (DSR) Automation",
    "version": "1.0",
    "contact": {
      "name": "OneTrust Support",
      "url": "https://my.onetrust.com/s/contactsupport"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "description": "The Privacy Rights Automation are used to manage, process, and fulfill data subject access requests (DSARs), including request creation, subtask management, resolution codes, verification methods, and audit history."
  },
  "servers": [
    {
      "url": "https://{hostname}",
      "variables": {
        "hostname": {
          "default": "hostname",
          "description": "The OneTrust hostname such as app.onetrust.com, app-eu.onetrust.com, app-de.onetrust.com, app-uk.onetrust.com, app-apac.onetrust.com, trial.onetrust.com, or uat.onetrust.com."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Subtasks",
      "description": "APIs used to create, update, complete, and reprocess subtasks associated with privacy requests.",
      "externalDocs": {
        "description": "OpenAPI 3.1.0 - Download Definition",
        "url": "https://developer.onetrust.com/onetrust/openapi/privacy-automation-data-subject-request-dsr-automation.json"
      },
      "x-displayName": "Subtasks"
    }
  ],
  "paths": {
    "/api/datasubject/v2/requestqueues/{requestQueueRefId}/subtasks": {
      "get": {
        "operationId": "getAllSubTaskByRefIdUsingGET",
        "summary": "Get List of Subtasks by Request",
        "description": "Use this API to retrieve a list of all subtasks associated with a specific request. The response will include details for each subtask along with the request approver, date created, and deadline.",
        "tags": [
          "Subtasks"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/privacy-automation-data-subject-request-dsr-automation.json"
        },
        "parameters": [
          {
            "name": "requestQueueRefId",
            "in": "path",
            "required": true,
            "schema": {
              "description": "Request queue reference Id",
              "type": "string"
            },
            "example": "ZASHMHK2K7"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Results page to be retrieved (0..N)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0,
              "minimum": 0
            },
            "example": 0
          },
          {
            "name": "size",
            "in": "query",
            "description": "Number of records per page (1..50)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20,
              "maximum": 500,
              "minimum": 1
            },
            "example": 20
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PrivacyAutomation-DataSubjectRequestDSRAutomation_SubTaskListV2Dto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "429": {
            "description": "Too Many Requests. \nFor more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).",
            "headers": {
              "Retry-After": {
                "schema": {
                  "description": "The number of seconds after which requests will be allowed again.",
                  "format": "int32"
                }
              },
              "ot-period": {
                "schema": {
                  "description": "The unit of time for which the rate limit applies",
                  "enum": [
                    "HOUR",
                    "MINUTE"
                  ]
                }
              },
              "ot-ratelimit-event-id": {
                "schema": {
                  "description": "The unique identifier for the rate-limiting event.",
                  "format": "uuid"
                }
              },
              "ot-request-made": {
                "schema": {
                  "description": "The number of requests made within the specified period.",
                  "format": "int32"
                }
              },
              "ot-requests-allowed": {
                "schema": {
                  "description": "The number of requests allowed within the specified period.",
                  "format": "int32"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "PrivacyAutomation-DataSubjectRequestDSRAutomation_OAUTH2": [
              "DSAR",
              "DSAR_READ",
              "DSAR_WRITE"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "PrivacyAutomation-DataSubjectRequestDSRAutomation_SubTaskListV2Dto": {
        "type": "object",
        "properties": {
          "requestApprover": {
            "description": "Approver of the parent request",
            "type": "string",
            "example": "John Doe"
          },
          "requestQueueRefId": {
            "description": "The request reference ID",
            "type": "string",
            "example": "SL244HWD6D"
          },
          "requestOrgName": {
            "description": "Organization name of the request",
            "type": "string",
            "example": "Example Organization"
          },
          "subTaskStatus": {
            "description": "Current status of the subtask",
            "type": "string",
            "example": "OPEN"
          },
          "subTaskType": {
            "description": "Type of the subtask",
            "type": "string",
            "example": "MANUAL"
          },
          "subTaskName": {
            "description": "Name of the subtask",
            "type": "string",
            "example": "Data Discovery"
          },
          "subTaskDescription": {
            "description": "Description of the subtask",
            "type": "string",
            "example": "Discover all data related to the subject"
          },
          "subTaskAssignee": {
            "description": "Person assigned to the subtask",
            "type": "string",
            "example": "Jane Smith"
          },
          "subTaskRequired": {
            "description": "Whether the subtask is required",
            "type": "boolean",
            "example": true
          },
          "requestQueueDateCreated": {
            "description": "Date when the parent request was created",
            "type": "string",
            "format": "date-time",
            "example": "2023-08-01T10:15:30Z"
          },
          "requestQueueDeadline": {
            "description": "Deadline for the parent request",
            "type": "string",
            "format": "date-time",
            "example": "2023-09-01T10:15:30Z"
          },
          "subTaskCreatedDate": {
            "description": "Date when the subtask was created",
            "type": "string",
            "format": "date-time",
            "example": "2023-08-02T14:30:45Z"
          },
          "subTaskLastUpdatedDate": {
            "description": "Date when the subtask was last updated",
            "type": "string",
            "format": "date-time",
            "example": "2023-08-15T09:20:15Z"
          },
          "subTaskReminderDate": {
            "description": "Reminder date for the subtask",
            "type": "string",
            "format": "date-time",
            "example": "2023-08-25T10:15:30Z"
          },
          "subTaskDeadline": {
            "description": "Deadline for the subtask",
            "type": "string",
            "format": "date-time",
            "example": "2023-09-01T10:15:30Z"
          },
          "requestTypes": {
            "description": "Types of the parent request",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Data Portability",
              "Update Data"
            ]
          },
          "subjectTypes": {
            "description": "Subject types of the parent request",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Customer",
              "Employee"
            ]
          },
          "subTaskResolution": {
            "description": "Resolution code for the subtask if completed or rejected",
            "type": "string",
            "example": "Completed Successfully"
          },
          "requestQueueId": {
            "type": "string",
            "format": "uuid"
          },
          "assignedToGroup": {
            "type": "boolean"
          },
          "subTaskId": {
            "type": "string",
            "format": "uuid"
          }
        }
      }
    },
    "securitySchemes": {
      "PrivacyAutomation-DataSubjectRequestDSRAutomation_OAUTH2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{hostname}/api/access/v1/oauth/token",
            "scopes": {
              "DSAR_READ": "Read-only access to DSAR objects scope for external systems",
              "DSAR_WRITE": "Access to DSAR objects scope for external systems",
              "DSAR": "Access to DSAR objects scope for external systems"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "metrics-enabled": false
  },
  "x-onetrust": {
    "spec-label": "OpenAPI 3.1.0"
  }
}
```

# Sibling pages

* [Add Subtask to Request](https://developer.onetrust.com/onetrust/reference/createsubtaskusingpost.md)
* [Get List of Subtasks](https://developer.onetrust.com/onetrust/reference/subtasksusingget.md)
* [Get Subtask](https://developer.onetrust.com/onetrust/reference/getsubtaskbyidusingget.md)
* [Add Targeted Data Discovery Details to Subtask](https://developer.onetrust.com/onetrust/reference/adddatadiscoveryusingput.md)
* [Update Subtask Status](https://developer.onetrust.com/onetrust/reference/updatesubtaskstatususingput.md)
* [Update Subtask](https://developer.onetrust.com/onetrust/reference/updatesubtaskusingput.md)
* [Reprocess System Subtask](https://developer.onetrust.com/onetrust/reference/reprocesssubtaskusingput.md)
* [Complete Subtask](https://developer.onetrust.com/onetrust/reference/completesubtaskusingput.md)
* [Get List of Subtasks by Criteria](https://developer.onetrust.com/onetrust/reference/getallsubtasksv3usingpost.md)
* [Add Subtask to Request using Subtask Template](https://developer.onetrust.com/onetrust/reference/createsubtaskfromtemplateusingpost.md)