---
title: "List variables for a task"
method: GET
path: "/cmmn-runtime/tasks/{taskId}/variables"
tags: ["Task Variables"]
---

# List variables for a task

`GET /cmmn-runtime/tasks/{taskId}/variables`

## Request

- Base URL: `https://developer-docs.flowable.com/cmmn-api`
- URL: `https://developer-docs.flowable.com/cmmn-api/cmmn-runtime/tasks/{taskId}/variables`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/docs/cmmn-runtime/tasks/:taskId/variables/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `taskId` string, required

## Query parameters

- `scope` string

## Response `200`

Indicates the task was found and the requested variables are returned

- RestVariable[]
  - `name` string: Name of the variable
  - `type` string: Type of the variable.
  - `value` object: Value of the variable.
  - `valueUrl` string
  - `scope` string

## Other responses

- `404`: Indicates the requested task was not found..

---

[API](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/revisions/afdfa1fcacd0?raw)
