Publish a workflow as a share page
share_workflowMake a public link for a workflow, the dashboard's Share button: anyone with the link can run the workflow as it is now, with their own inputs, billed to this account (within the page's monthly limits). Steps that use connected accounts, knowledge bases or approvals cannot be shared; the call says which steps block it. Call it first without approved: it checks the workflow and returns the page copy it would publish (pass draft_copy: true to have the copy written for you). Show the person, then call again with approved: true and the copy they agreed to.
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": {
"workflow_id": "<workflow_id>"
},
"name": "share_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | What visitors see on the page. | |
| approved | No | true only after the person has agreed to publish this page. | |
| campaign | No | The Campaign tag (e.g. GRO-264). Private: visitors never see it. A blank value clears it. | |
| draft_copy | No | Draft any copy fields you left out. Default false. | |
| workflow_id | Yes | The workflow to share. | |
| customer_label | No | The Customer label tag (e.g. the lead's company). Private: visitors never see it. A blank value clears it. |