API reference
Publish an automation
POST
Goes live with the editor's checks and publishes the draft as a new version.
bearerAuthheader
AuthorizationBearer <token>An API key from Workspace → API Keys, starting with snl_.
id*integerThe automation's id (in the editor's URL).
Live.
application/json- response
success*booleandata*curl -X POST 'https://senlo.io/api/workflows/0/publish'Example Response
{ "success": true, "data": { "id": 0, "status": "DRAFT" }}Postmark webhook POST
Paste this URL into a Postmark webhook and add a custom header `X-Postmark-Secret` with the webhook secret saved on the provider in Senlo. Senlo applies `Delivery`, `Bounce`, `SpamComplaint`, `Open` and `Click` records. Other record types are acknowledged and ignored.
Resend webhook POST
Paste this URL into a Resend webhook. Senlo verifies the Svix signature with the webhook signing secret saved on the provider in Senlo, then applies `email.delivered`, `email.bounced` and `email.complained`. Other event types are acknowledged and ignored.