# How to get variables by taskId and ProcessInstance Key in SaaS mode using REST API

**URL:** <https://forum.camunda.io/t/how-to-get-variables-by-taskid-and-processinstance-key-in-saas-mode-using-rest-api/59008>\
**Category:** Camunda 8 Topics\
**Tags:** camunda-8-slack\
**Created:** [January 24, 2025, 1:34pm UTC](https://forum.camunda.io/t/how-to-get-variables-by-taskid-and-processinstance-key-in-saas-mode-using-rest-api/59008 "2025-01-24T13:34:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Basavaraj\_S.P](https://forum.camunda.io/user_avatar/forum.camunda.io/basavaraj_s.p/32/30915_2.png) [@Basavaraj\_S.P](https://forum.camunda.io/u/Basavaraj_S.P)\
**Post date:** [January 24, 2025, 1:34pm UTC](https://forum.camunda.io/t/how-to-get-variables-by-taskid-and-processinstance-key-in-saas-mode-using-rest-api/59008/1 "2025-01-24T13:34:20Z")

</div>

Unable to use these APIs, getting 404  
camunda version → 8.6.7, deployment mode → SaaS  
https://{{region}}.zeebe.camunda.io/{{cluster-id}}/v2/process-instances/:processInstanceKey/variables

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [January 24, 2025, 6:56pm UTC](https://forum.camunda.io/t/how-to-get-variables-by-taskid-and-processinstance-key-in-saas-mode-using-rest-api/59008/2 "2025-01-24T18:56:20Z")

</div>

Hi @Basavaraj_S.P - that is an alpha API endpoint, I believe, and needs to be explicitly enabled in your cluster. Have you enabled the alpha features? [See the note here](https://docs.camunda.io/docs/apis-tools/camunda-api-rest/camunda-api-rest-overview/#query-api), and the alpha instructions below:

> **[Enable alpha features | Camunda 8 Docs](https://docs.camunda.io/docs/components/console/manage-organization/enable-alpha-features/)**
>
> Learn how admin users can manage access to alpha features in Console and Modeler.

---

<div class="post-metadata">

**Author:** ![Basavaraj\_S.P](https://forum.camunda.io/user_avatar/forum.camunda.io/basavaraj_s.p/32/30915_2.png) [@Basavaraj\_S.P](https://forum.camunda.io/u/Basavaraj_S.P)\
**Post date:** [January 27, 2025, 5:09am UTC](https://forum.camunda.io/t/how-to-get-variables-by-taskid-and-processinstance-key-in-saas-mode-using-rest-api/59008/3 "2025-01-27T05:09:30Z")

</div>

Hi @nathan.loding is there any alternate stable API to get variables either by userTaskKey or processInstanceKey because as the TASKLIST APIs are soon will be deprecated.

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [January 27, 2025, 6:14pm UTC](https://forum.camunda.io/t/how-to-get-variables-by-taskid-and-processinstance-key-in-saas-mode-using-rest-api/59008/4 "2025-01-27T18:14:45Z")

</div>

@Basavaraj_S.P - the stable API is the current Tasklist API, which will be deprecated in a future release. However, it is only being marked deprecated, not fully removed, so you could develop against it then migrate the API calls to the new endpoints when they are released. There has been a delay with the unified API, unfortunately, and it won’t be available until October with version 8.8 ([read the announcement here](https://camunda.com/blog/2025/01/camunda-87-88-release-update/)).

---

<div class="post-metadata">

**Author:** ![Basavaraj\_S.P](https://forum.camunda.io/user_avatar/forum.camunda.io/basavaraj_s.p/32/30915_2.png) [@Basavaraj\_S.P](https://forum.camunda.io/u/Basavaraj_S.P)\
**Post date:** [January 27, 2025, 6:25pm UTC](https://forum.camunda.io/t/how-to-get-variables-by-taskid-and-processinstance-key-in-saas-mode-using-rest-api/59008/5 "2025-01-27T18:25:27Z")

</div>

Thanks a lot @nathan.loding that was so helpfull

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [April 27, 2025, 6:25pm UTC](https://forum.camunda.io/t/how-to-get-variables-by-taskid-and-processinstance-key-in-saas-mode-using-rest-api/59008/6 "2025-04-27T18:25:46Z")

</div>

Closed on April 27, 2025, 6:25pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
