workflow_tasks

Approve workflow task

Send a draft a play left waiting for approval (initiator play, status pending, a send-class type or move_to_workflow): a congratulation, a comment, a workflow entry. The task goes scheduled now with the text as edited (variables_snapshot) and leaves through the sender profile's own scheduler and limits. A repeat on a scheduled draft answers already_approved true. A question a play asked is complete_workflow_task; a journey's task is never approved (409). To drop a draft: cancel_workflow_task.

Contract:

  • MCP tool approve_workflow_task, registry package mcp.playtables/workflow_tasks, mount playtables.journeys.
  • Operation action, response envelope action.
  • Flags: dangerous: the MCP layer gates it behind a preview/commit token, and the effect cannot be undone through this API.
post/api/workflow-tasks/{sid}/approve

Request

  • Base URL
    https://beta.getsales.io/playtables/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Path parameters

sidstring required

Workflow task sid (wf_tk_…).

Request body

variables_snapshotobject

Partial: the text as edited before it goes (message for a congratulation, comment for a post), keyed by the type's template field; absent = as drafted.

Response

action success envelope.

successtrue required
operation'action' required
actionstring required

kebab-case verb; matches the route segment.

Changes

No recorded changes to this operation across all 1 revision of this API.