# workflowTargets

Audience: Developer

Read the current target surfaces of a single workflow execution.

Read the current target surfaces of a single workflow execution. Returns an
empty list when the workflow has not declared any targets.

**Served by:** [workflow](https://docs.pyck.cloud/dev/api/services/workflow.md)

## Arguments

| Name | Type |
| --- | --- |
| `input` | [GetWorkflowTargetsInput](https://docs.pyck.cloud/dev/api/inputs/getworkflowtargetsinput.md)! |

## Returns

[GetWorkflowTargetsResponse](https://docs.pyck.cloud/dev/api/types/getworkflowtargetsresponse.md)!

## Example

Returns the list of client surfaces a workflow execution targets. The list is empty when the workflow has not declared any targets.

```graphql
query GetWorkflowTargets($input: GetWorkflowTargetsInput!) {
  workflowTargets(input: $input) {
    targets
  }
}
```

**Variables**

```json
{
  "input": {
    "workflowExecutionId": "<workflow execution ID>",
    "workflowId": "<workflow ID>"
  }
}
```
