Developer API

Start workflows from your own code, pass them inputs, read what each run did, answer the approvals runs wait on, create or change workflows, and manage the apps, values and folders they use. A small REST API with JSON bodies and API-key authentication.

The developer API lets your own systems use the workflows you've built in Lodol: list them, start runs with the inputs they need, follow each run to its result, answer the approval requests runs wait on, and stop, retry or delete a run. Workflows are usually built in Lodol or by your AI tool, and the API can create and change them too, in the workflow format. It can also connect apps, keep the values workflows read, organize workflows into folders, and look up the apps, actions and triggers a workflow can use.

Base URL

Every endpoint is under one base URL:

https://api-prod.lodol.com/api/v1

Endpoints

EndpointWhat it doesScope
GET /workflowsList the workspace's workflowsworkflows:read
GET /workflows/:idGet one workflow, with its stepsworkflows:read
POST /workflowsCreate a workflowworkflows:write
PUT /workflows/:idReplace a workflow's steps, name or descriptionworkflows:write
PATCH /workflows/:idChange part of a workflow's stepsworkflows:write
POST /workflows/validateCheck a workflow without saving itworkflows:write
DELETE /workflows/:idMove a workflow to the Trashworkflows:delete
POST /workflows/:id/restoreRestore a workflow from the Trashworkflows:delete
POST /workflows/:id/duplicateCopy a workflowworkflows:write
POST /workflows/:id/turn-onTurn on a workflow that starts itselfworkflows:execute
POST /workflows/:id/turn-offTurn it offworkflows:execute
GET /workflows/:id/next-runsWhen a scheduled workflow runs nextworkflows:read
GET /workflows/:id/versionsList a workflow's versionsworkflows:read
POST /workflows/:id/versions/:version_id/restoreMake a past version the current oneworkflows:write
GET /workflows/:id/settingsWho is told when it fails, and when it turns itself offworkflows:read
PATCH /workflows/:id/settingsChange those settingsworkflows:write
POST /workflows/:id/runStart a runworkflows:execute
GET /runsList runsexecutions:read
GET /runs/:idGet a run's status and resultsexecutions:read
POST /runs/:id/stopStop a runworkflows:execute
POST /runs/:id/retryRetry a failed runworkflows:execute
DELETE /runs/:idDelete a finished run for goodexecutions:delete
GET /approvalsList approval requestsexecutions:read
GET /approvals/:idGet one approval requestexecutions:read
POST /approvals/:id/decisionApprove, reject or reply to oneworkflows:execute
GET /connectionsList the apps the workspace is connected toconnections:read
GET /connections/:idGet one connectionconnections:read
POST /connectionsConnect an app with credentialsconnections:write
POST /connections/:id/testCheck the app still accepts a connectionconnections:read
DELETE /connections/:idRemove a connectionconnections:write
GET /valuesList valuesvalues:read
GET /values/:idGet a valuevalues:read
POST /valuesCreate a valuevalues:write
PATCH /values/:idChange a valuevalues:write
DELETE /values/:idDelete a value for goodvalues:delete
GET /values/:id/rowsList a table's rowsvalues:read
POST /values/:id/rowsAdd rows to a tablevalues:write
PUT /values/:id/rows/:indexReplace a table rowvalues:write
DELETE /values/:id/rows/:indexRemove a table rowvalues:write
GET /foldersList foldersworkflows:read
GET /folders/:idGet a folder and what's in itworkflows:read
POST /foldersCreate a folderworkflows:write
PATCH /folders/:idRename a folderworkflows:write
POST /folders/moveMove workflows and foldersworkflows:write
DELETE /folders/:idMove a folder and what's in it to the Trashworkflows:delete
POST /folders/:id/restoreRestore a folder from the Trashworkflows:delete
GET /trashList what's in the Trashworkflows:delete
GET /appsSearch appsNone
GET /apps/:app_idHow an app connectsNone
GET /apps/:app_id/actionsList an app's actionsNone
GET /apps/:app_id/triggersList an app's triggersNone
GET /actionsSearch actionsNone
GET /actions/:idGet an action's fieldsNone
GET /triggersSearch triggersNone
GET /triggers/:idGet a trigger's fieldsNone
GET /usageRuns used this monthexecutions:read
GET /meThe workspace, member and scopes of the keyNone

The scopes for reading and deleting runs keep the names executions:read and executions:delete.

Requests and responses

  • Authentication. Send your API key as a bearer token: Authorization: Bearer sk_live_…. See Authentication.
  • JSON. Request bodies are JSON, sent with Content-Type: application/json. Every response is JSON.
  • Timestamps are ISO 8601 with an offset, such as 2026-03-17T08:00:00+00:00.
  • Errors have a JSON body with an error message and a standard HTTP status. See Errors and retries.
  • Retries. Send an Idempotency-Key with each run you start and each workflow you save, so retrying a request never does the work twice. See Idempotency.
  • Limits. Requests are rate-limited per workspace, by plan. See Limits.

Conventions

Every endpoint names things the same way, so what you learn from one holds for the rest.

  • IDs. An object's own ID is id. A field that names another object ends in _id, such as workflow_id, folder_id, run_id or app_id, with its name beside it where that helps, such as workflow_name.
  • Names and types. What a thing is called is name, and what kind of thing it is, type.
  • People are an object with their id and name, as in created_by, saved_by, deleted_by and connected_by, or null when Lodol doesn't know who.
  • Times end in _at, and are ISO 8601 with an offset, such as 2026-03-17T08:00:00+00:00. The last moment something can be restored from the Trash is restorable_until.
  • Lists answer with the things listed and a next_cursor, a page at a time. See Paging through lists.
  • Doing something to a thing answers with the thing as it now is. Turning a workflow on answers with the workflow, renaming a folder with the folder, stopping a run with the run.
  • Deleting answers with the thing's id, "deleted": true, and restorable_until: when it leaves the Trash for good, or null for something that can't be restored, such as a run, a connection or a value.
{ "id": "665f1a2b3c4d5e6f7a8b9c0d", "deleted": true, "restorable_until": "2026-04-16T10:30:00+00:00" }

Paging through lists

Every endpoint that lists, such as List workflows or List runs, returns a page at a time, under the name of what it lists, with a next_cursor:

{
  "runs": [{ "id": "683b2c3d4e5f6a7b8c9d0e1f", "...": "..." }],
  "next_cursor": "683b2c3d4e5f6a7b8c9d0e1f"
}

Pass limit (1 to 100, default 50) for the page size, and cursor, set to the next_cursor of the page you have, for the next page. next_cursor is null on the last page. A cursor is an opaque string: pass it back as it came, and don't build one yourself. A limit or cursor the API can't read gets 400 with the code invalid_request. A filter by text on a list is called search.

# First page
curl "https://api-prod.lodol.com/api/v1/runs?limit=50" \
  -H "Authorization: Bearer $LODOL_API_KEY"

# Next page: cursor = the next_cursor of the previous page
curl "https://api-prod.lodol.com/api/v1/runs?limit=50&cursor=683b2c3d4e5f6a7b8c9d0e1f" \
  -H "Authorization: Bearer $LODOL_API_KEY"

A page of approval requests can hold fewer than limit, even none, while next_cursor isn't null, when some it read were from workflows the key's member can't see: keep going until it's null.

The catalog's searches are different: they take search, which they need, and answer with their best limit matches (up to 25) on one page, with no cursor.

Version

This is version 1 of the API, named in the path as /api/v1.

On this page