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.
Quickstart
Create a key, start a run and read its result, in about five minutes.
Authentication
API keys, scopes and what each key is allowed to do.
Base URL
Every endpoint is under one base URL:
https://api-prod.lodol.com/api/v1Endpoints
| Endpoint | What it does | Scope |
|---|---|---|
GET /workflows | List the workspace's workflows | workflows:read |
GET /workflows/:id | Get one workflow, with its steps | workflows:read |
POST /workflows | Create a workflow | workflows:write |
PUT /workflows/:id | Replace a workflow's steps, name or description | workflows:write |
PATCH /workflows/:id | Change part of a workflow's steps | workflows:write |
POST /workflows/validate | Check a workflow without saving it | workflows:write |
DELETE /workflows/:id | Move a workflow to the Trash | workflows:delete |
POST /workflows/:id/restore | Restore a workflow from the Trash | workflows:delete |
POST /workflows/:id/duplicate | Copy a workflow | workflows:write |
POST /workflows/:id/turn-on | Turn on a workflow that starts itself | workflows:execute |
POST /workflows/:id/turn-off | Turn it off | workflows:execute |
GET /workflows/:id/next-runs | When a scheduled workflow runs next | workflows:read |
GET /workflows/:id/versions | List a workflow's versions | workflows:read |
POST /workflows/:id/versions/:version_id/restore | Make a past version the current one | workflows:write |
GET /workflows/:id/settings | Who is told when it fails, and when it turns itself off | workflows:read |
PATCH /workflows/:id/settings | Change those settings | workflows:write |
POST /workflows/:id/run | Start a run | workflows:execute |
GET /runs | List runs | executions:read |
GET /runs/:id | Get a run's status and results | executions:read |
POST /runs/:id/stop | Stop a run | workflows:execute |
POST /runs/:id/retry | Retry a failed run | workflows:execute |
DELETE /runs/:id | Delete a finished run for good | executions:delete |
GET /approvals | List approval requests | executions:read |
GET /approvals/:id | Get one approval request | executions:read |
POST /approvals/:id/decision | Approve, reject or reply to one | workflows:execute |
GET /connections | List the apps the workspace is connected to | connections:read |
GET /connections/:id | Get one connection | connections:read |
POST /connections | Connect an app with credentials | connections:write |
POST /connections/:id/test | Check the app still accepts a connection | connections:read |
DELETE /connections/:id | Remove a connection | connections:write |
GET /values | List values | values:read |
GET /values/:id | Get a value | values:read |
POST /values | Create a value | values:write |
PATCH /values/:id | Change a value | values:write |
DELETE /values/:id | Delete a value for good | values:delete |
GET /values/:id/rows | List a table's rows | values:read |
POST /values/:id/rows | Add rows to a table | values:write |
PUT /values/:id/rows/:index | Replace a table row | values:write |
DELETE /values/:id/rows/:index | Remove a table row | values:write |
GET /folders | List folders | workflows:read |
GET /folders/:id | Get a folder and what's in it | workflows:read |
POST /folders | Create a folder | workflows:write |
PATCH /folders/:id | Rename a folder | workflows:write |
POST /folders/move | Move workflows and folders | workflows:write |
DELETE /folders/:id | Move a folder and what's in it to the Trash | workflows:delete |
POST /folders/:id/restore | Restore a folder from the Trash | workflows:delete |
GET /trash | List what's in the Trash | workflows:delete |
GET /apps | Search apps | None |
GET /apps/:app_id | How an app connects | None |
GET /apps/:app_id/actions | List an app's actions | None |
GET /apps/:app_id/triggers | List an app's triggers | None |
GET /actions | Search actions | None |
GET /actions/:id | Get an action's fields | None |
GET /triggers | Search triggers | None |
GET /triggers/:id | Get a trigger's fields | None |
GET /usage | Runs used this month | executions:read |
GET /me | The workspace, member and scopes of the key | None |
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
errormessage and a standard HTTP status. See Errors and retries. - Retries. Send an
Idempotency-Keywith 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 asworkflow_id,folder_id,run_idorapp_id, with its name beside it where that helps, such asworkflow_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
idandname, as increated_by,saved_by,deleted_byandconnected_by, ornullwhen Lodol doesn't know who. - Times end in
_at, and are ISO 8601 with an offset, such as2026-03-17T08:00:00+00:00. The last moment something can be restored from the Trash isrestorable_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, andrestorable_until: when it leaves the Trash for good, ornullfor 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.