# Deploy workflow through API

**URL:** <https://community.automationedge.com/t/deploy-workflow-through-api/2181>\
**Category:** Get Help & Discuss\
**Created:** [June 5, 2020, 10:36am UTC](https://community.automationedge.com/t/deploy-workflow-through-api/2181 "2020-06-05T10:36:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![komal.rayate](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@komal.rayate](https://community.automationedge.com/u/komal.rayate)\
**Post date:** [June 5, 2020, 10:36am UTC](https://community.automationedge.com/t/deploy-workflow-through-api/2181/1 "2020-06-05T10:36:32Z")

</div>

I want to execute/submit request to deployed workflow through API. What is URL for the same. What information should be sent in with request?

---

<div class="post-metadata">

**Author:** ![madhavi.bade](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@madhavi.bade](https://community.automationedge.com/u/madhavi.bade)\
**Post date:** [June 5, 2020, 10:44am UTC](https://community.automationedge.com/t/deploy-workflow-through-api/2181/2 "2020-06-05T10:44:38Z")

</div>

Hi Komal,  
If you want to execute request for the workflow which is already deployed on AE server through API call then below are the details.

Information for executing workflow through API is as below:

| **API** | Execute/ Submit Request |
| --- | --- |
| **Description** | Execute/Submit a workflow |
| **HTTP Method** | POST |
| **URL** | …/rest/execute |
| **Request Header** | Content-Type: application/json |
| X-session-token: token-value | |

**Request Body Sample** {  
“orgCode”: “TENANT1”,  
“workflowName”: “DemoProcess”,  
“userId”: “User1”,  
“sourceId”: “001212”,  
“source”: “Postman”,  
“responseMailSubject”: “null”,  
“params”: [  
{  
“name”: “param1”,  
“value”: “5”,  
“type”: “String”,  
“order”: 1,  
“secret”: false,  
“optional”: false,  
“displayName”: “Number 1”  
},  
{  
“name”: “param2”,  
“value”: “7”,  
“type”: “String”,  
“order”: 1,  
“secret”: false,  
“optional”: false,  
“displayName”: “Number 2”  
}  
]  
}
