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

# GET /workflowtasks/{taskId}

`GET /workflowtasks/{taskId}`

Get a workflow task.

## Path parameters

- `taskId` string, uuid, required

## Response `200`

OK

- WorkflowTask — An actionable item assigned to assignees. It is created when approval or task action starts to execute. Approval is one kind of task.
  - `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[]

## 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)
