Publish a workflow as a REST API
writ_expose_workflow_apiPublish a saved workflow as a managed REST endpoint that runs the workflow and returns its JSON result. Repeated calls reuse the same endpoint.
Instructions
Publish a saved workflow through Writ's managed REST gateway, using the same resource as the frontend's REST endpoint switch. The returned POST URL waits for the workflow and returns its JSON result. Repeated calls reuse the existing endpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional name for the endpoint. | |
| workflow | No | ||
| workflow_id | No | ||
| wait_timeout | No | Deprecated alias of timeout_seconds. | |
| timeout_seconds | No | Managed run timeout. Defaults to 120, or 300 for AI navigation workflows. |