---
title: "Get workflow task configuration"
method: GET
path: "/workflows/{workflowId}/revisions/{revisionId}/tasks/{taskId}/config"
tags: ["Workflow Tasks"]
---

# Get workflow task configuration

`GET /workflows/{workflowId}/revisions/{revisionId}/tasks/{taskId}/config`

Returns the configuration for a workflow task. Shape varies by task type: Approval returns subject task IDs, AI returns prompt and output mapping, Code returns code with input/output mappings. Standard tasks have no configuration (returns 400).

## Path parameters

- `workflowId` string, required
- `revisionId` string, required
- `taskId` string, required

## Response `200`

- PublicApiTaskConfigResponse
  - `data` union, required
    - object
      - `prompt` string, required — AI prompt template. May contain merge tags referencing form field values.
      - `systemPrompt` string — Optional system message prepended to the AI prompt to set its behaviour.
      - `outputMapping` object — Mapping from prompt/code output keys to form field IDs that receive the values.
      - `type` 'Ai', required — Discriminator value for this variant. See the parent oneOf for the full set of values.
    - object
      - `subjectTaskIds` string[] — IDs of the tasks reviewed by an approval task.
      - `type` 'Approval', required — Discriminator value for this variant. See the parent oneOf for the full set of values.
    - object
      - `code` string, required — Code snippet executed by this Code task.
      - `inputMapping` object — Mapping from prompt/code input keys to form field IDs whose values are passed in.
      - `outputMapping` object — Mapping from prompt/code output keys to form field IDs that receive the values.
      - `type` 'Code', required — Discriminator value for this variant. See the parent oneOf for the full set of values.
  - `links` object[] — Pagination links. When the result has more pages, look for an entry with `name: "next"` — its `href` is the URL to fetch the next page. Absence of `next` means there are no more pages. For single-resource responses this array is typically empty.
    - `name` string, required — Standard link relation name (RFC 5988) indicating this link's role. Common values include `self`, `edit`, `related`, `previous`, `next`.
    - `href` string, required — URL of the linked resource.
    - `rel` 'Approval Task' | 'Approvals' | 'Assignees' | 'Comment' | 'Data Set Records' | 'Data Sets' | 'Form Field Values' | 'Subject Task' | 'Task' | 'Tasks' | 'Users' | 'Webhook' | 'Workflow' | 'Workflow Run' — Optional. The kind of resource this link points to (e.g. `Workflow`, `Task`, `Comment`).
    - `type` 'Api' | 'App', required — Whether this link targets an API endpoint or a Process Street app URL. `Api` — a callable API endpoint you can fetch directly. `App` — a browser-facing URL in the Process Street UI.

## Other responses

- `default`

---

[API](https://skmtc.net/process/apis/process-street-public-api.md) · [All operations](https://skmtc.net/process/apis/process-street-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/process/process-street-public-api/revisions/6199a9464227/schema)
