Evaluation
Operations about evaluation test runs
Retrieve the evaluation test runs of a workflow.
The ID of the workflow.
The maximum number of items to return.
100Example: 100Paginate by setting the cursor parameter to the nextCursor attribute returned by the previous request's response. Default value fetches the first "page" of the collection. See pagination for more detail.
Status to filter the test runs by.
Operation successful.
Paginate through test runs by setting the cursor parameter to the nextCursor attribute returned by a previous request. Default value fetches the first "page" of the collection.
MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDAThe request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
GET /api/v1/workflows/{workflowId}/test-runs HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": "9f8e7d6c5b4a3210",
"status": "new",
"runAt": "2026-01-01T00:00:00.000Z",
"completedAt": "2026-01-01T00:00:00.000Z",
"metrics": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"errorCode": "text",
"errorDetails": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"finalResult": "success",
"testCaseCount": 42,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
],
"nextCursor": "MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA"
}Start a new evaluation test run for a workflow. The workflow must contain a configured evaluation trigger. Requires the workflow:execute project scope in addition to the testRun:create API key scope.
The ID of the workflow.
Safe retry key for this POST. Use 1 to 128 visible ASCII characters. The same key and the same request return the first successful response. A different request with this key returns 422. A retry while the first request is in progress returns 409.
^[\x21-\x7E]+$Operation successful.
9f8e7d6c5b4a3210The request is invalid or provides malformed data.
Unauthorized
Payment required
Forbidden
The specified resource was not found.
Conflict
Unprocessable Entity
POST /api/v1/workflows/{workflowId}/test-runs HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"id": "9f8e7d6c5b4a3210",
"status": "new",
"createdAt": "2026-01-01T00:00:00.000Z"
}Retrieve a single evaluation test run of a workflow, including its aggregated metrics and final result.
The ID of the workflow.
The ID of the test run.
Operation successful.
9f8e7d6c5b4a3210Overall result of the run, derived from its test cases once completed.
42Unauthorized
Forbidden
The specified resource was not found.
GET /api/v1/workflows/{workflowId}/test-runs/{runId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"id": "9f8e7d6c5b4a3210",
"status": "new",
"runAt": "2026-01-01T00:00:00.000Z",
"completedAt": "2026-01-01T00:00:00.000Z",
"metrics": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"errorCode": "text",
"errorDetails": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"finalResult": "success",
"testCaseCount": 42,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}Retrieve the per-case results of an evaluation test run.
The ID of the workflow.
The ID of the test run.
The maximum number of items to return.
100Example: 100Paginate by setting the cursor parameter to the nextCursor attribute returned by the previous request's response. Default value fetches the first "page" of the collection. See pagination for more detail.
Operation successful.
Paginate through test cases by setting the cursor parameter to the nextCursor attribute returned by a previous request. Default value fetches the first "page" of the collection.
MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDAThe request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
GET /api/v1/workflows/{workflowId}/test-runs/{runId}/test-cases HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": "1a2b3c4d5e6f7080",
"status": "new",
"runAt": "2026-01-01T00:00:00.000Z",
"completedAt": "2026-01-01T00:00:00.000Z",
"metrics": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"errorCode": "text",
"errorDetails": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"inputs": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"outputs": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"executionId": 1
}
],
"nextCursor": "MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA"
}Cancel a running evaluation test run of a workflow. Requires the workflow:execute project scope in addition to the testRun:cancel API key scope.
The ID of the workflow.
The ID of the test run.
Safe retry key for this POST. Use 1 to 128 visible ASCII characters. The same key and the same request return the first successful response. A different request with this key returns 422. A retry while the first request is in progress returns 409.
^[\x21-\x7E]+$Operation successful.
9f8e7d6c5b4a3210The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Conflict
Unprocessable Entity
POST /api/v1/workflows/{workflowId}/test-runs/{runId}/cancel HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"id": "9f8e7d6c5b4a3210",
"status": "cancelled"
}Last updated
Was this helpful?