Skip to main content
POST
/
api
/
v1
/
flow
/
{uuid}
/
steps
/
{step}
/
test
Test a step — kind-aware behavior (trigger samples vs action exec)
curl --request POST \
  --url https://{subdomain}.mihu.ai/api/v1/flow/{uuid}/steps/{step}/test \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "persist": true,
  "data": {},
  "sample_uuid": "<string>",
  "limit": 10,
  "input_data": {},
  "config_override": {},
  "dry_run": false,
  "live": false
}
'
{
  "success": true,
  "data": {
    "kind": "trigger",
    "dry_run": true,
    "data": {},
    "duration_ms": 123,
    "resolved": {},
    "selected": {},
    "samples": [
      {
        "sample_uuid": "<string>",
        "label": "<string>",
        "timestamp": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required
step
string<uuid>
required

Body

application/json
persist
boolean
default:true

Save the result to step.last_test and activate the step. Set false to test without committing.

data
object

(triggers) Manual sample payload. When set, skips auto-fetch and persists this object as test_data.

sample_uuid
string | null

(triggers) Pick a specific record from the auto-fetched list.

limit
integer
default:10

(triggers) Max samples to return.

Required range: x <= 50
input_data
object

(actions) Override the upstream {{stepN.…}} resolution. Useful to test with hypothetical input.

config_override
object

(actions) Test with a config different from step.config (does not persist).

dry_run
boolean
default:false

(actions) Force dry-run even for normally-live actions.

live
boolean
default:false

(actions) Force real execution. Bypasses the safe-list — destructive sends/writes will actually go through to the third party.

Response

Test ran

success
boolean
Example:

true

data
object