Skip to main content
POST
/
workflows
/
test-node
Test a single node
curl --request POST \
  --url https://api.altostrat.io/workflows/test-node \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "node": {
    "id": "n1",
    "type": "manual_trigger",
    "position": {
      "x": 150,
      "y": 250
    },
    "data": {
      "componentId": "manual_trigger"
    }
  },
  "context": {
    "n1": {
      "trigger_type": "manual",
      "run_id": "fl_run_example"
    }
  },
  "authorization_id": "auth_01H..."
}'
{
  "status": "success",
  "output": {}
}

Authorizations

Authorization
string
header
required

Standard JWT for user sessions obtained via Altostrat authentication.

Body

application/json
node
object
required
context
object

A mock context object, simulating the state of a workflow run before this node is executed.

Example:
{
"n1": {
"trigger_type": "manual",
"run_id": "fl_run_example"
}
}
authorization_id
string | null

The prefixed ID of an Authorization to use if the node requires it (e.g., altostrat_api).

Example:

"auth_01H..."

Response

The node executed successfully.

status
enum<string>
Available options:
success
output
object

The JSON output from the node's execution.