---
title: "Validate a workflow"
method: POST
path: "/api/workflows/{workflow_id}/validations/"
tags: ["workflows"]
---

# Validate a workflow

`POST /api/workflows/{workflow_id}/validations/`

Validate the latest editable draft and send real preview notifications or webhooks for delivery tasks. No logs are fetched and no aggregation runs. Configuration failures are returned in the `200` validation envelope; a draft with no tasks succeeds with an empty `task_results` array.

## Path parameters

- `workflow_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

Workflow validation result.

- WorkflowsValidateWorkflowResponse200
  - `status` 'success' | 'validation_error', required
  - `validation` ApiWorkflowsWorkflowIdValidationsPostResponsesContentApplicationJsonSchemaValidation, required
    - `is_valid` boolean, required
    - `error` string, nullable, required
  - `task_results` ApiWorkflowsWorkflowIdValidationsPostResponsesContentApplicationJsonSchemaTaskResultsItems[], required
    - `task_id` string, required
    - `task_type` string, required
    - `status` 'passed' | 'failed' | 'skipped', required
    - `message` string, required
  - `is_all_passed` boolean, required

## Other responses

- `401` — Authentication failed.
- `404` — Workflow family has no editable draft.

## Changes

> 6 revisions in range; 3 could not be searched.

- **2026-07-31** `c26d550029f8` — 3 warning, 9 info
  - added the new `failed` enum value to the `task_results/items/status` response property for the response status `200`
  - added the new `passed` enum value to the `task_results/items/status` response property for the response status `200`
  - added the new `skipped` enum value to the `task_results/items/status` response property for the response status `200`
  - removed the non-success response with the status `401`
  - …8 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/workflows/:workflow_id/validations/post.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c61efaf24756/schema)
