# REST API to start process instance along with payoad

**URL:** <https://forum.camunda.io/t/rest-api-to-start-process-instance-along-with-payoad/57243>\
**Category:** Camunda 8 Topics\
**Created:** [November 19, 2024, 11:51am UTC](https://forum.camunda.io/t/rest-api-to-start-process-instance-along-with-payoad/57243 "2024-11-19T11:51:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kayal\_Vizhi](https://forum.camunda.io/user_avatar/forum.camunda.io/kayal_vizhi/32/31262_2.png) [@Kayal\_Vizhi](https://forum.camunda.io/u/Kayal_Vizhi)\
**Post date:** [November 19, 2024, 11:51am UTC](https://forum.camunda.io/t/rest-api-to-start-process-instance-along-with-payoad/57243/1 "2024-11-19T11:51:03Z")

</div>

Hi,  
I want to start a process instance using payload and the workflow connectors should take the payload and continue the execution.  
I have explored on the webhook connector but after hitting the webhook API there is no response like process instance key / process started.  
So, I explored on the start REST API of tasklist, Which provides process instance key. But if I provide any payload it gives  
JSON BODY:  
{  
“variables”: {  
“name”: “demo”,  
“age”: 56  
}  
}  
ERROR MESSAGE:  
{  
“status”: 400,  
“message”: “JSON parse error: Cannot deserialize value of type `java.util.ArrayList<io.camunda.tasklist.webapp.graphql.entity.VariableInputDTO>` from Object value (token `JsonToken.START_OBJECT`)”,  
“instance”: null  
}  
Could anyone help me regarding this issue?

---

<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:** [November 19, 2024, 2:25pm UTC](https://forum.camunda.io/t/rest-api-to-start-process-instance-along-with-payoad/57243/2 "2024-11-19T14:25:21Z")

</div>

Hi @Kayal_Vizhi - there are two ways to start a process with data:

- you can start a process using the [Zeebe `CreateProcessInstance` gRPC endpoint](https://docs.camunda.io/docs/apis-tools/zeebe-api/gateway-service/#createprocessinstance-rpc) or the [new REST endpoint](https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/create-process-instance/) (only available in 8.6+), and send variable data with the request;
- or you can use the Webhook Connector on your Start Event: [HTTP Webhook Connector | Camunda 8 Docs](https://docs.camunda.io/docs/components/connectors/protocol/http-webhook/)

The webhook is more convenient for an external service that you don’t want fully authenticating to your Camunda cluster, as you can use different authentication methods for it. If your core application is making the call, the difference is really which one you feel is more convenient for you.

---

<div class="post-metadata">

**Author:** ![Kayal\_Vizhi](https://forum.camunda.io/user_avatar/forum.camunda.io/kayal_vizhi/32/31262_2.png) [@Kayal\_Vizhi](https://forum.camunda.io/u/Kayal_Vizhi)\
**Post date:** [November 21, 2024, 6:41am UTC](https://forum.camunda.io/t/rest-api-to-start-process-instance-along-with-payoad/57243/3 "2024-11-21T06:41:56Z")

</div>

Thank you @nathan.loding.  
Issue resolved.

---

<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:** [November 28, 2024, 6:42am UTC](https://forum.camunda.io/t/rest-api-to-start-process-instance-along-with-payoad/57243/4 "2024-11-28T06:42:50Z")

</div>

Closed on November 28, 2024, 6:42am UTC

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