Cancel a contact's automation runs
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.
bearerAuthAuthorizationBearer <token>An API key from Workspace → API Keys, starting with snl_.
application/json- body
email*stringemailworkflowId?integerOnly runs of this automation. Without it, every automation of the workspace.
Runs cancelled; cancelled is how many (0 when none was in progress).
application/json- response
success*booleandata*curl -X POST 'https://senlo.io/api/automations/cancel' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com"}'{ "success": true, "data": { "cancelled": 0 }}API reference
Every endpoint, generated from docs/openapi.yaml.
Create an automation from an export POST
Creates a draft automation from the JSON `GET /api/workflows/{id}` returns (or the editor's Export). Each email step's `emailRef` is mapped to a trigger of the workspace: by `emails`, else by name; one that matches none is a 400. HTTP header values are not part of an export and are entered again before going live.