---
title: "List variables for a case instance"
method: GET
path: "/cmmn-runtime/case-instances/{caseInstanceId}/variables"
tags: ["Case Instance Variables"]
---

# List variables for a case instance

`GET /cmmn-runtime/case-instances/{caseInstanceId}/variables`

## Request

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

In case the variable is a binary variable or serializable, the valueUrl points to an URL to fetch the raw value. If it’s a plain variable, the value is present in the response. Note that only local scoped variables are returned, as there is no global scope for case-instance variables.

## Path parameters

- `caseInstanceId` string, required

## Response `200`

Indicates the case instance was found and 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

- `400`: Indicates the requested case instance 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)
