Cancel one in-progress workflow run
POST
Stops a queued, running or waiting run before its remaining steps. Emails already handed to sending are not recalled and other runs are untouched. Cancelling a run that already ended is a no-op that returns cancelled=false.
bearerAuthheader
AuthorizationBearer <token>Mailly API key(Authorization: Bearer )
workflowKey*stringrunId*stringrun ID
application/json- body
reason?stringWhy the run is cancelled, kept in the run log (1-500 characters)
[key: string]?unknownCancelled, or already ended
application/json- response
success*booleancancelled*booleanrun*platformFailures*array<string>[key: string]?unknowncurl -X POST 'https://api.mailly.site/workflows/string/runs/string/cancel' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "success": true, "cancelled": true, "run": { "property1": null, "property2": null }, "platformFailures": [ "string" ], "property1": null, "property2": null}