Catalog

Search the apps Lodol works with, list an app's actions, look up an action's or a trigger's fields, and find triggers, to build workflows from your own code.

The catalog is what a workflow can be built from: the apps Lodol works with, the actions each can take, and the triggers that start a workflow. Use it with Create a workflow and the workflow format. Any valid key can call these endpoints; they need no scope.

The searches take search, in plain words: an app's name (HubSpot), something to do (send an SMS) or a category (CRM). They need it: a search without it gets 400. Each answers with its best limit matches, from 1 to 25 (10 unless you ask), on one page, with no cursor. Apps the workspace has hidden aren't listed.


Search apps

GET/api/v1/apps

Query parameters

searchstring
What you're looking for, up to 200 characters.Required.
limitinteger
How many to return, from 1 to 25.Default: 10.
curl "https://api-prod.lodol.com/api/v1/apps?search=stripe&limit=2" \
  -H "Authorization: Bearer $LODOL_API_KEY"

Response 200: the best matches first. connected says whether the key's member has a connection to the app.

{
  "apps": [
    {
      "id": "stripe",
      "name": "Stripe",
      "description": "Take payments, send payment links and invoices, issue refunds, manage subscriptions and coupons, and follow customers.",
      "categories": ["Payments & Billing", "E-Commerce"],
      "connected": false
    },
    {
      "id": "govee",
      "name": "Govee",
      "description": "Control your Govee lights, plugs and appliances: turn them on or off, set brightness, color and scenes, and read sensors.",
      "categories": ["Smart Home & Cars"],
      "connected": false
    }
  ]
}

To see how an app connects and which credentials it takes, use How an app connects.


List an app's actions

GET/api/v1/apps/:app_id/actions

Returns the actions an app offers, a page at a time. List an app's triggers lists what can start a workflow from it. :app_id is the app's ID, or its name. An app there's none of returns 404, suggesting the closest.

Query parameters

limitinteger
How many to return, from 1 to 100.Default: 50.
cursorstring
For the next page: the next_cursor of the page you have.
curl https://api-prod.lodol.com/api/v1/apps/stripe/actions \
  -H "Authorization: Bearer $LODOL_API_KEY"

Response 200: each action with its id, its app, a description, and whether the key's member has connected the app. next_cursor gets the next page; see Paging through lists.

{
  "actions": [
    {
      "id": "stripe_create_customer",
      "app_id": "stripe",
      "app_name": "Stripe",
      "description": "Add a customer to Stripe with their email and, if you like, their name, phone number and a note.",
      "connected": false
    },
    "..."
  ],
  "next_cursor": null
}

List an app's triggers

GET/api/v1/apps/:app_id/triggers

Returns the triggers an app offers, a page at a time, as Search triggers describes them. An app there's none of returns 404.

Query parameters

limitinteger
How many to return, from 1 to 100.Default: 50.
cursorstring
For the next page: the next_cursor of the page you have.
curl https://api-prod.lodol.com/api/v1/apps/stripe/triggers \
  -H "Authorization: Bearer $LODOL_API_KEY"

Response 200: next_cursor gets the next page.

{
  "triggers": [
    {
      "id": "stripe_new_payment_trigger",
      "app_id": "stripe",
      "app_name": "Stripe",
      "name": "New payment",
      "description": "Runs when someone pays you in Stripe or, with a status chosen, when a payment reaches that status."
    },
    "..."
  ],
  "next_cursor": null
}

Search actions

GET/api/v1/actions

Finds actions across every app.

Query parameters

searchstring
What you want to do, up to 200 characters, such as create a refund.Required.
limitinteger
How many to return, from 1 to 25.Default: 10.
curl "https://api-prod.lodol.com/api/v1/actions?search=create%20a%20refund&limit=2" \
  -H "Authorization: Bearer $LODOL_API_KEY"

Response 200:

{
  "actions": [
    {
      "id": "cash_app_create_refund",
      "app_id": "cash_app",
      "app_name": "Cash App",
      "description": "Create a refund from a merchant to a customer.",
      "connected": false
    },
    {
      "id": "quickbooks_create_refund_receipt",
      "app_id": "quickbooks",
      "app_name": "QuickBooks Online",
      "description": "Refund a customer: record money paid back to them out of a bank account.",
      "connected": false
    }
  ]
}

Get an action

GET/api/v1/actions/:id

Returns everything about one action: its parameters, with their types and whether each is required, and what it returns. An ID there's no action with returns 404 with the code not_found, suggesting the closest:

{
  "error": "No action with id 'stripe_create_custmer'. Did you mean stripe_create_customer, stripe_create_price, stripe_create_coupon?",
  "error_code": "not_found"
}
curl https://api-prod.lodol.com/api/v1/actions/stripe_create_customer \
  -H "Authorization: Bearer $LODOL_API_KEY"

Response 200: path is how a workflow names the action, as the path argument of an app action's call in the workflow format.

{
  "id": "stripe_create_customer",
  "app_id": "stripe",
  "app_name": "Stripe",
  "description": "Add a customer to Stripe with their email and, if you like, their name, phone number and a note.",
  "path": "/actions/library/stripe/create-customer",
  "parameters": [
    { "name": "email", "type": "string", "required": true, "description": "The customer's email address.", "dynamic": false },
    { "name": "name", "type": "string", "required": false, "description": "The customer's full name or business name.", "dynamic": false },
    { "name": "description", "type": "string", "required": false, "description": "A note about the customer. Only your team sees it, in Stripe.", "dynamic": false },
    { "name": "phone", "type": "string", "required": false, "description": "The customer's phone number.", "dynamic": false }
  ],
  "returns": {
    "type": "object",
    "description": "The new customer: their id, email, name and the rest of what Stripe keeps about them.",
    "properties": {
      "id": { "type": "string", "description": "The customer's id in Stripe, which starts with cus_." },
      "email": { "type": "string", "description": "Their email address; blank when Stripe has none." },
      "...": "..."
    }
  }
}

Search triggers

GET/api/v1/triggers

Finds the triggers that can start a workflow, across every app.

Query parameters

searchstring
What should start the workflow, up to 200 characters, such as new Stripe payment.Required.
limitinteger
How many to return, from 1 to 25.Default: 10.
curl "https://api-prod.lodol.com/api/v1/triggers?search=new%20stripe%20payment&limit=1" \
  -H "Authorization: Bearer $LODOL_API_KEY"

Response 200:

{
  "triggers": [
    {
      "id": "stripe_new_payment_trigger",
      "app_id": "stripe",
      "app_name": "Stripe",
      "name": "New payment",
      "description": "Runs when someone pays you in Stripe or, with a status chosen, when a payment reaches that status."
    }
  ]
}

Get a trigger

GET/api/v1/triggers/:id

Returns one trigger, with its parameters, the settings it takes, and output, the fields of the event it starts a run with. An ID there's no trigger with returns 404, suggesting the closest.

curl https://api-prod.lodol.com/api/v1/triggers/stripe_new_payment_trigger \
  -H "Authorization: Bearer $LODOL_API_KEY"

Response 200:

{
  "id": "stripe_new_payment_trigger",
  "app_id": "stripe",
  "app_name": "Stripe",
  "name": "New payment",
  "description": "Runs when someone pays you in Stripe or, with a status chosen, when a payment reaches that status.",
  "parameters": [
    {
      "name": "status",
      "arg_index": 0,
      "required": false,
      "description": "Only run for payments in this state, such as succeeded. Leave empty to run once for every new payment, including ones still waiting for the customer to pay."
    },
    {
      "name": "minimum_amount",
      "arg_index": 1,
      "required": false,
      "description": "Only run for payments of at least this much, in dollars (or your currency), not cents: 1000 means $1,000. Leave empty to run for every amount."
    }
  ],
  "output": {
    "payment_intent_id": "The payment's id in Stripe (pi_...).",
    "amount": "The amount in cents (or the currency's smallest unit), so 5000 is $50.00.",
    "currency": "The three-letter currency code, such as usd.",
    "...": "..."
  }
}

On this page