Export an automation
The automation's saved draft and settings, with trigger names instead of ids and without header values.
bearerAuthAuthorizationBearer <token>An API key from Workspace → API Keys, starting with snl_.
id*integerThe automation's id (in the editor's URL).
The export.
application/json- response
success*booleandata*curl -X GET 'https://senlo.io/api/workflows/0'{ "success": true, "data": { "format": "senlo.workflow", "version": 1, "name": "string", "description": "string", "settings": {}, "nodes": [ { "id": "string", "type": "string", "data": {} } ], "edges": [ { "id": "string", "source": "string", "target": "string", "sourceHandle": "string" } ] }}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.
Groundmail webhook POST
Paste this URL into a Groundmail webhook endpoint and save the endpoint's `whsec_` secret as the webhook secret on the provider in Senlo. Senlo checks the `Groundmail-Signature` header (HMAC-SHA256 of `<timestamp>.<raw body>`, timestamp within 5 minutes) and applies `email.delivered`, `email.bounced`, `email.complained` and hard `email.failed` events. A `block` bounce (the receiving server refused the sender, not the address) and other events are acknowledged and ignored.