TypeScript
const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({inputs: {}}) }; fetch('https://api.example.com/v1/regions/global/workflows/{id}/runs', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": { "id": "<string>", "workflowId": "<string>", "status": "pending", "createdAt": "2023-11-07T05:31:56Z", "triggeredBy": "<string>", "inputs": {}, "outputs": {}, "startedAt": "2023-11-07T05:31:56Z", "completedAt": "2023-11-07T05:31:56Z", "duration": 123 } }
Start a new execution of a workflow
Workflow identifier
Input parameters for the workflow run
Workflow run triggered
true
Workflow execution instance
Show child attributes
Was this page helpful?