Skip to main content
POST
/
v1
/
regions
/
global
/
workflows
/
{id}
/
runs
Trigger workflow run
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
  }
}

Path Parameters

id
string
required

Workflow identifier

Body

application/json
inputs
object

Input parameters for the workflow run

Response

201 - application/json

Workflow run triggered

success
enum<boolean>
Available options:
true
data
object

Workflow execution instance