Cancel one in-progress workflow run
Cancel one in-progress workflow run with the Mailly email API for AI agents: POST /workflows/{workflowKey}/runs/{runId}/cancel. Parameters, request body, responses and code samples.
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.
bearerAuthAuthorizationBearer <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}archive Workflow POST
archive Workflow with the Mailly email API for AI agents: POST /workflows/{workflowKey}/archive. Parameters, request body, responses and code samples.
Create a workflow (draft) POST
Create a workflow (draft) with the Mailly email API for AI agents: POST /workflows. Parameters, request body, responses and code samples.