---
title: "GET /workflowtasks"
method: GET
path: "/workflowtasks"
tags: ["WorkflowTasks"]
---

# GET /workflowtasks

`GET /workflowtasks`

Get all workflow tasks.

## Query parameters

- `api-version` string, required
- `viewMode` string
- `workflowIds` string[]
- `timeWindow` '1d' | '7d' | '30d' | '90d'
- `maxpagesize` integer
- `orderby` 'createdTime desc' | 'createdTime asc' | 'requestor desc' | 'requestor asc'
- `taskTypes` string[]
- `taskStatuses` string[]
- `requestors` string[]
- `assignees` string[]
- `workflowNameKeyword` string

## Response `200`

OK

- TasksList
  - `value` WorkflowTask[], required — The value of workflow tasks list.
    - `type` 'Approval' | 'SimpleTask', required — The workflow task type.
    - `id` string, uuid, required — The workflow task id.
    - `title` string — The workflow task title.
    - `workflowRunId` string, uuid, required — The workflow run id.
    - `workflowId` string, uuid, required — The workflow id.
    - `requestor` string, uuid, required — The person who submitted the user request.
    - `createdTime` string, date-time, required — The created time.
    - `lastUpdateTime` string, date-time, required — The last update time.
    - `payload` TaskPayload, required — Info and material that helps assignees to take action.
      - `type` 'CreateTerm' | 'UpdateTerm' | 'DeleteTerm' | 'ImportTerms' | 'UpdateAsset' | 'GrantDataAccess', required — The task payload type.
      - `targetValue` string, required — The target value of entity which user want to involve workflow to update.
      - `payload` object — The payload of the task.
    - `reminderInfo` object — Info of task reminder.
      - `lastRemindTime` string, date-time — The last update time.
      - `nextRemindTime` string, date-time, required — The next remind time.
      - `reminderSettings` object, required — The reminder settings.
    - `expiryInfo` object — Info of task expiry.
      - `lastExpiryNotificationTime` string, date-time — The last expiry notification time.
      - `nextExpiryNotificationTime` string, date-time, required — The next expiry notification time.
      - `expiryTime` string, date-time, required — The expiry time.
      - `expirySettings` object, required
        - `expireAfter` object, required — The time of expiry.
        - `notifyOnExpiration` string[]
  - `nextLink` string — The URL to get the next set of results.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/purview-workflow.md) · [All operations](https://skmtc.net/azure/apis/purview-workflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/purview-workflow/versions/60435bfd503d/schema)
