Test Workflow
Run a workflow in test mode without publishing. Use this to validate the full graph execution against input parameters before promoting to production.
Checksum (required for a successful test)
The test endpoint requires the current checksum of the workflow. If the checksum you send does not match the latest checksum on the server, the API returns a checksum mismatch error and the test does not run.
Recommended flow:
Call Get workflow by id (
GET /dev/v1/workflow/{entity-id}) for the workflow you want to test.From the response, copy
data.checksum(the exact string returned by the API).Paste that value into your test request body as
checksum, together withparams(keys matching your trigger node'sinputfield names) and optionalversion(e.g."draft").
Run a workflow in test mode without publishing. Validates full graph execution against given input parameters.
checksum is required and must match the server's current checksum — if not, the test is rejected. Always get the latest checksum from GET /dev/v1/workflow/{entity-id} → data.checksum before testing.
params keys must match the field names defined in the trigger node's data.input map. For the example workflow: orderId (string), cartTotal (numeric), customerTier (string).
version defaults to draft if omitted.
Response data contains per-node execution output (nodeOutputs), overall workflow output, status, and executionTime.
Canonical response file: examples/test_workflow_200.json
Your Nected API key. Obtain from your workspace settings.
The workflow entity ID
a1b2c3d4-e5f6-7890-abcd-ef1234567890Branch name (optional)
Request body for the test endpoint
Current checksum from Get workflow by id — must match server state
Version to test (defaults to draft)
draftOK — test execution result with node outputs.
Standard API response wrapper
Response payload — shape varies by endpoint
Bad Request (e.g. checksum mismatch)
Internal Server Error
POST /dev/v1/workflow/{entity-id}/test HTTP/1.1
Host: api.nected.ai
Nected-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"checksum": "7f3d2a1b9c8e4f6a0d5b2c7e1a9f3d8c",
"params": {
"orderId": "ORD-20260101-9921",
"cartTotal": 1250,
"customerTier": "gold"
},
"version": "draft"
}{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"output": {
"Calculate_Discount": {
"discountPct": 15,
"discountAmount": 187.5,
"finalAmount": 1062.5
}
},
"nodeOutputs": {
"node_abc123codenode01": {
"status": "success",
"executionTime": "2ms",
"output": {
"discountPct": 15,
"discountAmount": 187.5,
"finalAmount": 1062.5
}
}
},
"status": "success",
"executionTime": "5ms"
},
"code": "success",
"message": "Success."
}Request body
Example on POST /dev/v1/workflow/{entity-id}/test in openapi.yaml:
Replace "checksum" with the value from GET /dev/v1/workflow/{entity-id} → data.checksum.
Last updated