---
title: "Inspect Workflow"
method: POST
path: "/preview/workflows/inspect"
tags: ["Workflows"]
---

# Inspect Workflow

`POST /preview/workflows/inspect`

## Request body

- WorkflowServiceRequestInput
  - `flags` object, nullable
  - `tags` object, nullable
  - `meta` object, nullable
  - `version` string, nullable
  - `interface` union
    - WorkflowServiceInterfaceInput
      - `version` string, nullable
      - `uri` string, nullable
      - `url` string, nullable
      - `headers` object, nullable
      - `schemas` JsonSchemasInput
        - `parameters` object, nullable
        - `inputs` object, nullable
        - `outputs` object, nullable
    - object
  - `configuration` union
    - WorkflowServiceConfigurationInput
      - `script` object, nullable
      - `parameters` object, nullable
    - object
  - `references` object, nullable
  - `links` object, nullable
  - `secrets` object, nullable
  - `credentials` string, nullable
  - `data` WorkflowServiceRequestData
    - `revision` object, nullable
    - `parameters` object, nullable
    - `testcase` object, nullable
    - `inputs` object, nullable
    - `trace` object, nullable
    - `outputs` unknown

## Response `200`

Successful Response

- WorkflowServiceRequestOutput
  - `flags` object, nullable
  - `tags` object, nullable
  - `meta` object, nullable
  - `version` string, nullable
  - `interface` union
    - WorkflowServiceInterfaceOutput
      - `version` string, nullable
      - `uri` string, nullable
      - `url` string, nullable
      - `headers` object, nullable
      - `schemas` JsonSchemasOutput
        - `parameters` object, nullable
        - `inputs` object, nullable
        - `outputs` object, nullable
    - object
  - `configuration` union
    - WorkflowServiceConfigurationOutput
      - `script` object, nullable
      - `parameters` object, nullable
    - object
  - `references` object, nullable
  - `links` object, nullable
  - `secrets` object, nullable
  - `credentials` string, nullable
  - `data` WorkflowServiceRequestData
    - `revision` object, nullable
    - `parameters` object, nullable
    - `testcase` object, nullable
    - `inputs` object, nullable
    - `trace` object, nullable
    - `outputs` unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-13** `72fe88316d15` — 2 breaking, 4 info
  - response property `interface/anyOf[subschema #1: WorkflowServiceInterface]/version` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `version` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - request property `interface/anyOf[subschema #1: WorkflowServiceInterface]/version` list-of-types was widened by adding types `null` to media type `application/json`
  - request property `version` list-of-types was widened by adding types `null` to media type `application/json`
  - …2 more
- **2026-01-14** `53da4c9de2b7` — 1 breaking, 10 warning, 23 info
  - request property `version` list-of-types was narrowed by removing types `null` from media type `application/json`
  - removed the request property `headers`
  - removed the request property `mappings`
  - removed the request property `schemas`
  - …30 more
- **2025-11-05** `e62506c24377` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/preview/workflows/inspect/post.md)

---

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