Quickstart
Create an API key, start a workflow run from your code, and read its result. About five minutes.
You need a Lodol workspace with at least one workflow, and permission to create API keys there: workspace owners and admins can.
Create an API key
In Lodol, go to API Keys in the sidebar and create a key with the workflows:read, workflows:execute and executions:read scopes. Copy it: the full key is shown only once.
Keep it in an environment variable rather than in your code:
export LODOL_API_KEY="sk_live_..."Find your workflow
List your workflows to get the id of the one to run.
curl https://api-prod.lodol.com/api/v1/workflows \
-H "Authorization: Bearer $LODOL_API_KEY"Each workflow lists the inputs it declares, if any:
{
"workflows": [
{
"id": "665f1a2b3c4d5e6f7a8b9c0d",
"name": "Monthly Client Report",
"description": "Builds a client's monthly report and emails it to them",
"inputs": [
{ "name": "client", "type": "text", "required": true, "default": null, "description": "The client to report on" }
],
"...": "the other workflow fields"
}
],
"next_cursor": null
}Start a run
Start the workflow with its inputs. The Idempotency-Key makes the request safe to retry: sending it again returns the same run instead of starting another.
curl -X POST https://api-prod.lodol.com/api/v1/workflows/665f1a2b3c4d5e6f7a8b9c0d/run \
-H "Authorization: Bearer $LODOL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: acme-report-2026-05" \
-d '{"inputs": {"client": "Acme"}}'The API answers straight away with 202 Accepted and the run's ID, while the run carries on in the background:
{
"id": "683b2c3d4e5f6a7b8c9d0e1f",
"workflow_id": "665f1a2b3c4d5e6f7a8b9c0d",
"workflow_name": "Monthly Client Report",
"status": "queued",
"url": "https://app.lodol.com/runs/665f1a2b3c4d5e6f7a8b9c0d?executionId=683b2c3d4e5f6a7b8c9d0e1f",
"...": "the other run fields"
}A workflow with no required inputs can be started without a body.
Wait for the result
Check the run until it finishes: success, failed or stopped. A run that succeeded has what the workflow handed back in outputs, one field per output it declares; one that failed says why in error.
curl https://api-prod.lodol.com/api/v1/runs/683b2c3d4e5f6a7b8c9d0e1f \
-H "Authorization: Bearer $LODOL_API_KEY"{
"id": "683b2c3d4e5f6a7b8c9d0e1f",
"workflow_id": "665f1a2b3c4d5e6f7a8b9c0d",
"workflow_name": "Monthly Client Report",
"version_id": "6683e1c4b2a9d7f0e5c3a1b2",
"url": "https://app.lodol.com/runs/665f1a2b3c4d5e6f7a8b9c0d?executionId=683b2c3d4e5f6a7b8c9d0e1f",
"status": "success",
"is_trigger_listener": false,
"error": null,
"outputs": { "total": 1250, "summary": "A good month for Acme" },
"retry_of": null,
"retry_options": { "from_start": false, "from_failed_step": false },
"created_at": "2026-04-14T10:30:00+00:00",
"started_at": "2026-04-14T10:30:00+00:00",
"completed_at": "2026-04-14T10:30:45+00:00"
}Every check counts toward your rate limit, so poll every few seconds rather than in a tight loop. To see what each step produced along the way, add include_step_results=true.
Next steps
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.
Authentication
Every request carries an API key. A key belongs to one workspace, its scopes say what it may do, and it can never do more than the member who created it.