> ## Documentation Index
> Fetch the complete documentation index at: https://intunedhq.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Runs (single executions)

> Execute browser automations on demand with immediate, single-purpose API calls

## Overview

Standalone Runs let you execute browser automations on demand. It's the simplest way to run your browser automations.

Use Standalone Runs when you need to trigger a browser automation:

* **In response to user actions** — Submit a form when a user clicks "Apply Now", fetch account details on request, or pull data when a customer connects their account
* **As part of a workflow** — Scrape data for a single item, validate a URL, or extract information from a page as one step in a larger process

> [!TIP]
>
> For batch processing or scheduled executions, see [Jobs (batch
> executions)](https://intunedhq.com/docs/main/02-features/jobs-batched-executions.md).

The Run Playground in the dashboard lets you trigger Runs manually—useful for testing your automations before integrating them into your application.

## How it works

### Project configuration

Your **replication** settings control how many Runs can execute at the same time. `maxCount` sets the most machines your project can scale up to, and `minCount` sets how many stay ready at all times.

> [tab] Online IDE
>
> Select **Files** > **Intuned.json**. Update the settings as needed.
>
> ![Replication settings in the online IDE](https://mintcdn.com/intuned-dev/bhb38akfgMoZ2D8J/assets/features/standalone-run-settings-ide.gif?s=181a451d7b0afc38ef059003c10f5255)

> [tab] CLI
>
> ```jsonc Intuned.json theme={null}
> {
>   "replication": {
>     "minCount": 1,
>     "maxCount": 3,
>     // ...
>   }
> }
> ```

When you deploy your project, Intuned keeps `minCount` machines ready to handle requests. Each Run is picked up by one machine. As Runs come in and the ready machines get busy, the project scales up—adding machines up to `maxCount`. If all machines are busy at the ceiling, additional Runs wait in a queue.

Machines added above your `minCount` baseline are removed when they're no longer needed. You're billed for active compute only—idle machines, including your `minCount` baseline, aren't billed when they're not running anything.

> [!NOTE]
>
> Your workspace has a limit on total deployed machines across all projects.
> Contact support if you need to increase this limit.

### Triggering a Standalone Run

> [!NOTE]
>
> Before triggering a Standalone Run, make sure your project is deployed.

> [tab] Dashboard (Playground)
>
> From the dashboard, go to **Your Project** > **Runs** > **Start Run**. Enter all the inputs for your Run and select "Start Run" to trigger it. Once triggered, you'll be redirected to the Run details page where you can monitor progress and view results.
>
> ![UI Run Playground](https://mintcdn.com/intuned-dev/bhb38akfgMoZ2D8J/assets/features/standalone-run-playground.gif?s=e916350e704821c77618d40ba959209d)

> [tab] API
>
> Call the [Run start endpoint](https://intunedhq.com/docs/client-apis/api-reference/projectsruns/run-api--start.md) with the API name and parameters. The response includes a Run ID that you can use to monitor progress and get results. Then use the [Run result endpoint](https://intunedhq.com/docs/client-apis/api-reference/projectsruns/run-api--result.md) with the Run ID to check status and get the result when complete.
>
> ```typescript Typescript theme={null}
> const result = await intuned.projects.runs.start(projectName, {
>   api: "<api-name>", // Name of the API to execute
>   parameters: {
>     // Parameters to pass to the API
>   },
>   retry: {
>     // (Optional) retry configuration
>     maximumAttempts: 3, // (Optional) Maximum number of Attempts for the Run. Default is 3
>   },
>   requestTimeout: 600, // (Optional) Timeout for an Attempt. Default is 600 seconds (10 minutes)
>   proxy: "<proxy-url>", // (Optional) Proxy URL, or { url, regex? } — see Proxies docs
>   saveTrace: true, // (Optional) Whether to save a browser trace for the Run. Default is true
>   authSession: {
>     // AuthSession configuration. Required for authenticated Projects
>   },
>   sink: {
>     // (Optional) Sink configuration to send Run results to external systems
>   },
> });
>
> console.log(`Started run ${result.runId}`); // Run ID
>
> // Poll for results (or use sinks to receive results automatically—see "Get results without polling" below)
> while (true) {
>   const runResult = await intuned.projects.runs.result(
>     projectName,
>     result.runId
>   );
>
>   if (runResult.status === "pending") {
>     await new Promise((resolve) => setTimeout(resolve, 5000)); // Wait before checking again
>     continue;
>   }
>
>   console.log(
>     `Run ${runResult.runId} finished with status ${runResult.status}`
>   );
>   // Process results
>   break;
> }
> ```
>
> ```python Python theme={null}
> from intuned_client import models
>
> started_run = intuned.projects.runs.start(
>   project_name=project_name,
>   body=models.RunStartRequestBody(
>     api="<api_name>", # Name of the API to execute
>     parameters={ # Parameters to pass to the API
>
>     },
>     retry={ # (Optional) retry configuration
>       "maximum_attempts": 3 # (Optional) Maximum number of Attempts for the Run. Default is 3
>     },
>     request_timeout=600, # (Optional) Timeout for an Attempt. Default is 600 seconds (10 minutes)
>     proxy="<proxy_url>", # (Optional) Proxy URL, or { url, regex? } — see Proxies docs
>     save_trace=True, # (Optional) Whether to save a browser trace for the Run. Default is true
>     auth_session={ # AuthSession configuration. Required for authenticated Projects
>
>     },
>     sink={ # (Optional) Sink configuration to send Run results to external systems
>
>     },
>   ),
> )
>
> print(f"Started run {started_run.run_id}") # Run ID
>
> # Poll for results (or use sinks to receive results automatically—see "Get results without polling" below)
> while True:
>   run_result = client.projects.runs.result(
>     project_name=project_name,
>     run_id=started_run.run_id,
>   )
>
>   if run_result.status == "pending":
>     time.sleep(5) # Wait before checking again
>     continue
>
>   print(f"Run {run_result.run_id} finished with status {run_result.status}")
>   # Process results
>   break
>
> ```
>
> `proxy` accepts a URL string or an object `{ url, regex? }` for conditional path-based routing. Set `timezone` alongside `proxy`. See [Proxy options](https://intunedhq.com/docs/main/02-features/stealth-mode-captcha-solving-proxies.md#proxy-options).

> [tab] CLI
>
> > [!NOTE]
> >
> > Run from your project directory (where Intuned Settings is located), or specify the project explicitly with `-p <project-name>`.
>
> Pass the Run configuration as a JSON string or a path to a JSON file:
>
> ```bash theme={null}
> intuned platform runs start '{"api": "my-awesome-api", "parameters": {"param1": "value1"}}'
> ```
>
> With retry and timeout options:
>
> ```bash theme={null}
> intuned platform runs start '{"api": "my-awesome-api", "parameters": {"param1": "value1"}, "retry": {"maximumAttempts": 3}, "requestTimeout": 600}'
> ```
>
> Using a file:
>
> ```bash theme={null}
> intuned platform runs start ./run-config.json
> ```
>
> The command returns a Run ID. Use it to check status and results:
>
> ```bash theme={null}
> # List recent runs (filter by status, API name, etc.)
> intuned platform runs list --filter status=pending
>
> # Get details for a specific run
> intuned platform runs get <run-id>
> ```
>
> See [Runs Start](https://intunedhq.com/docs/main/05-references/cli/platform.md#runs-start) and [Runs Get](https://intunedhq.com/docs/main/05-references/cli/platform.md#runs-get) for all options.

#### Get results without polling

Intuned supports **webhook** and **S3** sinks to deliver Run results automatically when complete.

> [tab] Dashboard (Playground)
>
> While you have the Run Playground open to start a Run, select the **Sink** tab to configure webhook or S3 sinks for result delivery.
>
> ```jsonc Webhook theme={null}
> {
>   "type": "webhook",
>   "url": "<webhook-url>",
>   "headers": { // (Optional) Additional headers to include in the webhook request. Useful for authentication
>     //...
>   },
>   "skipOnFail": false // (Optional) Whether to skip sending the webhook if the Run failed. Default is false
> }
> ```
>
> ```jsonc S3 theme={null}
> {
>   "type": "s3",
>
>   // S3-compatible bucket configuration
>   "bucket": "<bucket-name>",
>   "accessKeyId": "<access-key-id>",
>   "secretAccessKey": "<secret-access-key>",
>   "region": "<region>",
>   "prefix": "<prefix>", // (Optional) Prefix to add to the object key
>   "endpoint": "<custom-endpoint>", // (Optional) Custom S3 endpoint for non-AWS providers (e.g., R2)
>   "forcePathStyle": false, // (Optional) Whether to force path-style URLs. Enable it for S3-compatible providers that require it (e.g., Supabase Storage)
>
>   "skipOnFail": false // (Optional) Whether to skip sending the webhook if the Run failed. Default is false
> }
> ```
>
> ![UI Run Playground Sink Configuration](https://mintcdn.com/intuned-dev/bhb38akfgMoZ2D8J/assets/features/standalone-run-playground-sink.gif?s=9e5b86739e38b54912adc7acfbb2827d)

> [tab] API
>
> ```typescript Typescript - webhook theme={null}
> await client.projects.runs.start(
>   projectName,
>   {
>     sink: {
>       type: "webhook",
>       url: "<webhook-url>",
>       headers: { // (Optional) Additional headers to include in the webhook request. Useful for authentication
>        //...
>       },
>       skipOnFail: false, // (Optional) Whether to skip sending the webhook if the Run failed. Default is false
>     },
>     // ...
>   }
> )
> ```
>
> ```typescript Typescript - S3 theme={null}
> client.projects.runs.start(projectName, {
>   sink: {
>     type: "s3",
>
>     // S3-compatible bucket configuration
>     bucket: "<bucket-name>",
>     accessKeyId: "<access-key-id>",
>     secretAccessKey: "<secret-access-key>",
>     region: "<region>",
>     prefix: "<prefix>", // (Optional) Prefix to add to the object key
>     endpoint: "<custom-endpoint>", // (Optional) Custom S3 endpoint for non-AWS providers (e.g., R2)
>     forcePathStyle: false, // (Optional) Whether to force path-style URLs. Enable it for S3-compatible providers that require it (e.g., Supabase Storage)
>
>     skipOnFail: false, // (Optional) Whether to skip sending the webhook if the Run failed. Default is false
>   },
>   api: "",
>   parameters: {},
> });
> ```
>
> ```python Python - webhook theme={null}
> from intuned_client import models
>
> client.projects.runs.start(
>   project_name=project_name,
>   body=models.RunStartRequestBody(
>     api="<api_name>",
>     parameters={},
>     sink={
>       "type": "webhook",
>       "url": "<webhook-url>",
>       "headers": { # (Optional) Additional headers to include in the webhook request. Useful for authentication
>           # ...
>       },
>
>       "skip_on_fail": False, # (Optional) Whether to skip sending the webhook if the Run failed. Default is false
>     },
>     # ...
>   ),
> )
> ```
>
> ```python Python - S3 theme={null}
> from intuned_client import models
>
> client.projects.runs.start(
>   project_name=project_name,
>   body=models.RunStartRequestBody(
>     api="<api_name>",
>     parameters={},
>     sink={
>       "type": "s3",
>
>       # S3-compatible bucket configuration
>       "bucket": "<bucket-name>",
>       "access_key_id": "<access-key-id>",
>       "secret_access_key": "<secret-access-key>",
>       "region": "<region>",
>       "prefix": "<prefix>", # (Optional) Prefix to add to the object key
>       "endpoint": "<custom-endpoint>", # (Optional) Custom S3 endpoint for non-AWS providers (e.g., R2)
>       "force_path_style": False, # (Optional) Whether to force path-style URLs. Enable it for S3-compatible providers that require it (e.g., Supabase Storage)
>
>
>       "skip_on_fail": False, # (Optional) Whether to skip sending the webhook if the Run failed. Default is false
>     },
>     # ...
>   ),
> )
> ```

> [tab] CLI
>
> > [!NOTE]
> >
> > Run from your project directory (where Intuned Settings is located), or specify the project explicitly with `-p <project-name>`.
>
> Include `sink` in the run configuration JSON:
>
> ```bash theme={null}
> # Webhook sink
> intuned platform runs start '{
>   "api": "my-awesome-api",
>   "parameters": {},
>   "sink": {
>     "type": "webhook",
>     "url": "<webhook-url>"
>   }
> }'
> ```
>
> ```bash theme={null}
> # S3 sink
> intuned platform runs start '{
>   "api": "my-awesome-api",
>   "parameters": {},
>   "sink": {
>     "type": "s3",
>     "bucket": "<bucket-name>",
>     "accessKeyId": "<access-key-id>",
>     "secretAccessKey": "<secret-access-key>",
>     "region": "<region>"
>   }
> }'
> ```

### AuthSession Support

For authenticated Projects, each Run must specify an AuthSession to use. Before each Attempt runs, Intuned automatically validates the AuthSession and can recreate it if needed. This ensures your automation code never runs with an invalid session.

> [!NOTE]
>
> Runs use `authSession` (camelCase) in TypeScript and the REST API. This is
> different from Jobs, which use `auth_session` (snake\_case) in all languages.
> Python SDK uses `auth_session` for both.

> [!TIP]
>
> Before triggering a Run, you need an AuthSession created. Check out
> [AuthSessions - Create an
> AuthSession](https://intunedhq.com/docs/main/02-features/auth-sessions.md#4-create-an-authsession).

> [tab] Dashboard (Playground)
>
> While you have the Run Playground open to start a Run, select the AuthSession to use in the **Authentication** section and configure it.
>
> ![UI Run Playground AuthSession](https://mintcdn.com/intuned-dev/bhb38akfgMoZ2D8J/assets/features/standalone-run-playground-authsession.gif?s=fc300be962eb58d78c000ba10d5dcea5)

> [tab] API
>
> Specify the AuthSession to use in the run configuration:
>
> ```typescript Typescript theme={null}
> await intuned.projects.runs.start(
>   projectName,
>   {
>     authSession: {
>       id: "<auth-session-id>", // Auth session ID to use for the Run
>       autoRecreate: true, // (Optional) Whether to automatically recreate the auth session if initial check fails. Default is true
>       checkAttempts: 3, // (Optional) Number of attempts to check for session validity. Default is 3
>       createAttempts: 3, // (Optional) Number of attempts to create a new session if needed. Default is 3
>     },
>     // ...
>   }
> )
> ```
>
> ```python Python theme={null}
> from intuned_client import models
>
> client.projects.runs.start(
>   project_name=project_name,
>   body=models.RunStartRequestBody(
>     api="<api_name>",
>     parameters={},
>     auth_session={
>       "id": "<auth-session-id>", # Auth session ID to use for the Run
>       "auto_recreate": True, # (Optional) Whether to automatically recreate the auth session if initial check fails. Default is true
>       "check_attempts": 3, # (Optional) Number of attempts to check for session validity. Default is 3
>       "create_attempts": 3, # (Optional) Number of attempts to create a new session if needed. Default is 3
>     },
>     # ...
>   ),
> )
> ```
>
> > [!TIP]
> >
> > Intuned supports different types of AuthSessions. Check out [AuthSessions -
> > AuthSession types](https://intunedhq.com/docs/main/02-features/auth-sessions.md#authsession-types) for more information.

> [tab] CLI
>
> > [!NOTE]
> >
> > Run from your project directory (where Intuned Settings is located), or specify the project explicitly with `-p <project-name>`.
>
> Include `authSession` in the run configuration JSON:
>
> ```bash theme={null}
> intuned platform runs start '{
>   "api": "my-awesome-api",
>   "parameters": {},
>   "authSession": {
>     "id": "<auth-session-id>"
>   }
> }'
> ```

Each Attempt will produce an **AuthSession Validate** Run before it executes to ensure the session is valid.

### Ephemeral parameters

Values in `parameters` are stored on the Run record so you can inspect, re-run, and debug a Run. When an input is a secret that belongs to this Run alone—an end user's portal password, a one-time code—pass it as `ephemeralParameters` instead. Those values are never stored on the Run record, never sent to sinks, and are deleted when the Run ends.

```typescript Typescript theme={null}
const result = await intuned.projects.runs.start(projectName, {
  api: "submit-claim",
  parameters: { claimId: "C-10294" }, // stored, as usual
  ephemeralParameters: { portalPassword: "<end-user-password>" }, // never stored
});
```

```python Python theme={null}
from intuned_client import models

started_run = intuned.projects.runs.start(
  project_name=project_name,
  body=models.RunStartRequestBody(
    api="submit-claim",
    parameters={"claim_id": "C-10294"},  # stored, as usual
    ephemeral_parameters={"portal_password": "<end-user-password>"},  # never stored
  ),
)
```

Your automation reads them with `getEphemeralParameter` inside a `withoutTracing` block, so the value can't reach a trace or log. See [Ephemeral parameters](https://intunedhq.com/docs/main/02-features/ephemeral-parameters.md). **Preview**

### Execution model

When you start a Standalone Run, it executes a single API with the parameters you specify.

Browser automations can sometimes fail due to temporary issues (network problems, element not found, timeouts). To handle this, Runs support automatic retries through multiple Attempts. The Run will try one or more Attempts until it succeeds or runs out of retries.

Each Run produces a **result** or **error** based on the final Attempt's outcome. Each Attempt has its own **result** or **error**, along with detailed logs and a browser trace for debugging.

The Run starts in a `Pending` state, transitions to `Started` when an Attempt begins, and finally to `Success`, `Failed`, or `Canceled` based on the outcome.

For more details about Runs and Attempts, see [Intuned in depth: Runs and Attempts](https://intunedhq.com/docs/main/01-learn/deep-dives/intuned-indepth.md#runs-and-attempts).

### Monitoring

Intuned tracks every Run and its Attempts, giving you full visibility into your automation executions. From the dashboard, you can view Run records, inspect individual Attempts, and access detailed logs and browser traces for debugging.

For more details, see [Monitoring and traces](https://intunedhq.com/docs/main/02-features/observability-monitoring-logs.md).

## Best practices

* Choose an appropriate **maximum concurrent requests** value based on your expected load. While you're not charged for idle compute time, setting a reasonable limit helps manage resource usage effectively.
* Set **request timeouts** to reasonable values to ensure that failed Attempts are detected quickly, allowing for faster retries and reducing overall execution time.
* Use [**sinks** (webhook or S3)](#using-sinks) to receive Run results automatically, reducing the need for polling and improving efficiency.
* If your use case involves batch or scheduled executions, consider transitioning to [**Jobs**](https://intunedhq.com/docs/main/02-features/jobs-batched-executions.md) for better management and scalability.
* **Set appropriate retry attempts.** Increase retries for websites with flaky behavior or network issues to improve success rates.

## Limitations

* **Workspace machine limit**: Your workspace has a limit on total deployed machines across all projects. If you need more capacity, contact support to increase this limit.
* **Sink delivery is at-least-once**: Results sent to sinks may be delivered multiple times in rare failure scenarios. Make sure your webhook or processing logic handles duplicate deliveries idempotently.

## FAQs

> [accordion] What's the difference between Standalone Runs and Jobs?
>
> Standalone Runs execute a single API immediately when you call the endpoint. Jobs orchestrate multiple API executions together with scheduling, retries, and concurrency management. Use Standalone Runs for one-off or user-triggered executions; use Jobs for batch processing and recurring automations.

&#x20;

> [accordion] How do retries work?
>
> Each Run can have multiple Attempts. If an Attempt fails, Intuned
> automatically retries up to your configured `maximumAttempts` (default is 3).
> Each Attempt has its own logs and browser trace for debugging. The Run
> succeeds if any Attempt succeeds, and fails only after all Attempts are
> exhausted.

&#x20;

> [accordion] Can I cancel a Run in progress?
>
> Yes. Use the [Run cancel
> endpoint](https://intunedhq.com/docs/client-apis/api-reference/projectsruns/run-api--cancel.md) with the
> Run ID to cancel a pending or running Run. The Run status changes to
> `Canceled`, along with any pending Runs that depend on it.
>
> Two cases cannot be canceled this way: a Run that already finished returns
> `409`, and a Run that belongs to a Job returns `400` — terminate the [JobRun](https://intunedhq.com/docs/client-apis/api-reference/projectsjobsruns/terminate-job-run.md) instead.

> [accordion] How long can a Run take?
>
> Each Attempt has a configurable `requestTimeout` (default 600 seconds / 10 minutes). If an Attempt exceeds this timeout, it fails and triggers a retry if attempts remain. For long-running automations, increase the timeout or call [`extendTimeout`](https://intunedhq.com/docs/main/05-references/runtime-sdk-typescript/extend-timeout) ([`extend_timeout`](https://intunedhq.com/docs/main/05-references/runtime-sdk-python/extend-timeout) in Python) to reset the timer as work progresses.

## Related resources

> [card] [AuthSessions](https://intunedhq.com/docs/main/02-features/auth-sessions.md)
>
> Authenticated browser automations

> [card] [Run API reference](https://intunedhq.com/docs/client-apis/api-reference/projectsruns/run-api--start.md)
>
> Programmatic access to Standalone Runs

> [card] [Sinks API reference](https://intunedhq.com/docs/client-apis/api-reference/sinks/overview.md)
>
> Webhook and S3 result delivery

> [card] [Monitoring and traces](https://intunedhq.com/docs/main/02-features/observability-monitoring-logs.md)
>
> Debug and monitor Run executions


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.