---
title: "Test a workflow with given input"
method: POST
path: "/api/{org_id}/workflows/test"
tags: ["Workflows"]
---

# Test a workflow with given input

`POST /api/{org_id}/workflows/test`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/workflows/test`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/workflows/test/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required

## Query parameters

- `draft` boolean

## Request body

- object

## Response `200`

Success

- WorkflowTestResult
  - `errors` object, required
  - `inputs` object, required
  - `outputs` object, required

## Other responses

- `400`: Failure

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
