Senlo
API reference

Publish an automation

POST
/api/workflows/{id}/publish

Goes live with the editor's checks and publishes the draft as a new version.

Authorization

bearerAuth
headerAuthorizationBearer <token>

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

Path Parameters

id*integer

The automation's id (in the editor's URL).

Response Body

Live.

application/json
  1. response
success*boolean
data*
Example Request
curl -X POST 'https://senlo.io/api/workflows/0/publish'
Example Response
{  "success": true,  "data": {    "id": 0,    "status": "DRAFT"  }}