Expose Workflow
expose_workflowTurn existing workflows into callable REST API endpoints with custom routing and input validation for external consumption.
Instructions
Expose a workflow as an API endpoint.
Creates an automation and API endpoint trigger to expose a workflow for external consumption. This enables workflows to be called via REST API endpoints with custom routing and input validation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "expose_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the workflow to expose | |
| project | No | The project where the workflow resides | |
| route_name | No | The API route name to assign to this endpoint | |
| endpoint_name | No | Set the name for the trigger endpoint | |
| endpoint_schema | No | Set the request schemd for the endpoint trigger | |
| endpoint_description | No | Set a description on the endpoint trigger |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The status of the expose operation |