---
title: "Run Streamed Task"
method: POST
path: "/tasks/stream"
tags: ["Tasks"]
---

# Run Streamed Task

`POST /tasks/stream`

Create and dispatch a new agent task, returning an SSE stream of task events. Cancels the task if the client disconnects.

## Request body

- TaskCreate
  - `agentId` integer
  - `llmModel` string — The LLM model identifier to use for the task (e.g. 'google/gemini-3.1-flash-lite')
  - `task` string, required
  - `maxSteps` integer
  - `temperature` number
  - `reasoning` boolean
  - `accessibility` boolean
  - `vision` boolean
  - `executionTimeout` integer
  - `credentials` PackageCredentials[]
    - `packageName` string, required
    - `credentialNames` string[], required
  - `apps` string[]
  - `files` string[]
  - `outputSchema` object, nullable
  - `vpnCountry` 'US' | 'BR' | 'FR' | 'DE' | 'IN' | 'JP' | 'KR' | 'ZA'
  - `subagentModel` string — LLM model used by sub-agent roles: executor, app_opener, structured_output
  - `stealth` boolean
  - `continueOnFailure` boolean
  - `memoryNamespace` string — Memory namespace for cross-task personalization
  - `deviceId` string, uuid, required — The ID of the device to run the task on.
  - `displayId` integer — The display ID of the device to run the task on.

## Response `201`

Successful Response

- unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `403` — Forbidden
- `412` — Precondition Failed
- `422` — Unprocessable Content
- `500` — Internal Server Error

---

[API](https://skmtc.net/droidrun/apis/droidrun-cloud.md) · [All operations](https://skmtc.net/droidrun/apis/droidrun-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/droidrun/droidrun-cloud/versions/7f577998739b/schema)
