Server API
The Kerf server exposes a single endpoint.
POST /execute
Execute a workflow.
Request
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_name |
string | yes | - | Name matching workflows/<name>.json |
input_data |
string | yes | - | Input text |
fallback_enabled |
boolean | no | true |
Whether to apply fallback policies |
Response (200)
If the workflow has a task_type, the response is the LLM output:
If the workflow is tool-chain-only (no task_type), the response wraps the preprocessed output: