Senlo
API reference

Export an automation

GET
/api/workflows/{id}

The automation's saved draft and settings, with trigger names instead of ids and without header values.

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

The export.

application/json
  1. response
success*boolean
data*
Example Request
curl -X GET 'https://senlo.io/api/workflows/0'
Example Response
{  "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"      }    ]  }}