Senlo
API reference

Cancel a contact's automation runs

POST
/api/automations/cancel

Ends the contact's runs in progress (CANCELLED), in every automation of the workspace or in one (workflowId). Their remaining steps do not run. Use it when something in your app makes a flow pointless: the invoice was paid, the user deleted their account. The contact can enter the automation again on its next event.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key from Workspace → API Keys, starting with snl_.

Request Body

application/json
  1. body
email*string
Formatemail
workflowId?integer

Only runs of this automation. Without it, every automation of the workspace.

Response Body

Runs cancelled; cancelled is how many (0 when none was in progress).

application/json
  1. response
success*boolean
data*
curl -X POST 'https://senlo.io/api/automations/cancel' \  -H 'Content-Type: application/json' \  -d '{  "email": "user@example.com"}'
Example Response
{  "success": true,  "data": {    "cancelled": 0  }}