/v1/flows) and their runs executions (/v1/executions).
Step kinds
A device script (
scripts.run) and an uploaded Serverless Function (functions.run) are different step kinds. Available steps come from the action catalog, not every connected app; see Integrations and delivery.
Create a routine
1
Start in Cloud or ask your agent
Open Routines, choose New routine, enter a Name, and choose Create routine. Add or edit steps on Steps; changes autosave. Or paste a document to configure the whole routine. You can also ask your agent to create a routine.
2
Choose When and Steps
Open When and choose Manually or On a schedule. Add a ready Serverless Function or an action from the catalog, configure inputs, and choose a device if needed. On an event is Soon.
3
Check, Test run, then enable
Check inspects configuration without executing work. Test run performs real work: inspect its result before enabling recurring runs. A routine without steps stays disabled. See Runs and troubleshooting.
Through the API or SDK
Use your API key. The SDK examples use@mobilerun/sdk or mobilerun-sdk 6.2.1; mobilerun.api accesses their typed HTTP methods and response envelopes. The example assumes you already have a trigger, an action, and a connected device: replace their UUIDs below. Create a trigger through POST /v1/triggers and an action through POST /v1/actions; the function walkthrough shows how to connect a Serverless Function.
1
Create a disabled routine
Bind the trigger to ordered actions. Keep
enabled: false while you check the configuration. An idempotency key lets you safely retry the same create request.2
Check and Test run
Validate and dry-run, then verify with a real run. Inspect the execution before activating the unchanged routine.
3
Enable the routine
Use the verified activation path to enable recurring work after successful verification.
Explore routines
Triggers
Choose When: manual, schedule, or a custom API call. Event triggers are Soon.
Steps and Functions
Build steps and upload, version, or run Serverless Functions.
Documents (YAML/JSON)
Copy a template, edit the whole routine, and check it before saving.
Integrations and delivery
Connect apps, deliver files, and notify on outcomes.
Runs and troubleshooting
Check, test, monitor results, and fix failing routines.