JavaScript
import Mobilerun from '@mobilerun/sdk';
const client = new Mobilerun({
apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
});
const tasks = await client.tasks.list();
console.log(tasks.items);import os
from mobilerun_sdk import Mobilerun
client = Mobilerun(
api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"), # This is the default and can be omitted
)
tasks = client.tasks.list()
print(tasks.items)package main
import (
"context"
"fmt"
"github.com/stainless-sdks/droidrun-cloud-go"
"github.com/stainless-sdks/droidrun-cloud-go/option"
)
func main() {
client := mobileruncloud.NewClient(
option.WithAPIKey("My API Key"),
)
tasks, err := client.Tasks.List(context.TODO(), mobileruncloud.TaskListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", tasks.Items)
}mobilerun-cloud tasks list \
--api-key 'My API Key'curl --request GET \
--url https://api.mobilerun.ai/tasks \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mobilerun.ai/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://api.mobilerun.ai/tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mobilerun.ai/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"llmModel": "<string>",
"task": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deviceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayId": 123,
"tmpDevice": true,
"userId": "<string>",
"ownerId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"agentId": 0,
"maxSteps": 100,
"temperature": 0.5,
"reasoning": true,
"accessibility": true,
"vision": false,
"executionTimeout": 1000,
"credentials": [
{
"packageName": "<string>",
"credentialNames": [
"<string>"
]
}
],
"apps": [
"<string>"
],
"files": [
"<string>"
],
"outputSchema": {},
"subagentModel": "google/gemini-3.1-flash-lite",
"stealth": false,
"continueOnFailure": false,
"memoryNamespace": "default",
"dispatchedAt": "2023-11-07T05:31:56Z",
"claimedAt": "2023-11-07T05:31:56Z",
"cancelRequestedAt": "2023-11-07T05:31:56Z",
"streamUrl": "<string>",
"succeeded": true,
"message": "<string>",
"output": {},
"steps": 123,
"finishedAt": "2023-11-07T05:31:56Z",
"creditsUsed": 123,
"createdBy": "<string>"
}
],
"pagination": {
"page": 123,
"pageSize": 123,
"total": 123,
"pages": 123,
"hasNext": true,
"hasPrev": true
}
}{
"title": "Unauthorized",
"status": 401,
"detail": "You are not authorized to access this resource",
"errors": []
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"errors": [
"<unknown>"
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"errors": [
"<unknown>"
]
}Tasks
List Tasks
List tasks with optional filtering, sorting, and pagination.
GET
/
tasks
JavaScript
import Mobilerun from '@mobilerun/sdk';
const client = new Mobilerun({
apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
});
const tasks = await client.tasks.list();
console.log(tasks.items);import os
from mobilerun_sdk import Mobilerun
client = Mobilerun(
api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"), # This is the default and can be omitted
)
tasks = client.tasks.list()
print(tasks.items)package main
import (
"context"
"fmt"
"github.com/stainless-sdks/droidrun-cloud-go"
"github.com/stainless-sdks/droidrun-cloud-go/option"
)
func main() {
client := mobileruncloud.NewClient(
option.WithAPIKey("My API Key"),
)
tasks, err := client.Tasks.List(context.TODO(), mobileruncloud.TaskListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", tasks.Items)
}mobilerun-cloud tasks list \
--api-key 'My API Key'curl --request GET \
--url https://api.mobilerun.ai/tasks \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mobilerun.ai/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://api.mobilerun.ai/tasks")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mobilerun.ai/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"llmModel": "<string>",
"task": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"deviceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayId": 123,
"tmpDevice": true,
"userId": "<string>",
"ownerId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"agentId": 0,
"maxSteps": 100,
"temperature": 0.5,
"reasoning": true,
"accessibility": true,
"vision": false,
"executionTimeout": 1000,
"credentials": [
{
"packageName": "<string>",
"credentialNames": [
"<string>"
]
}
],
"apps": [
"<string>"
],
"files": [
"<string>"
],
"outputSchema": {},
"subagentModel": "google/gemini-3.1-flash-lite",
"stealth": false,
"continueOnFailure": false,
"memoryNamespace": "default",
"dispatchedAt": "2023-11-07T05:31:56Z",
"claimedAt": "2023-11-07T05:31:56Z",
"cancelRequestedAt": "2023-11-07T05:31:56Z",
"streamUrl": "<string>",
"succeeded": true,
"message": "<string>",
"output": {},
"steps": 123,
"finishedAt": "2023-11-07T05:31:56Z",
"creditsUsed": 123,
"createdBy": "<string>"
}
],
"pagination": {
"page": 123,
"pageSize": 123,
"total": 123,
"pages": 123,
"hasNext": true,
"hasPrev": true
}
}{
"title": "Unauthorized",
"status": 401,
"detail": "You are not authorized to access this resource",
"errors": []
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"errors": [
"<unknown>"
]
}{
"title": "<string>",
"status": 123,
"detail": "<string>",
"errors": [
"<unknown>"
]
}Authorizations
Bearer token via Authorization header
Query Parameters
Available options:
queued, created, running, cancelling, paused, completed, failed, cancelled Search in task description.
Maximum string length:
128Available options:
id, createdAt, finishedAt, status Available options:
asc, desc Required range:
x >= 1Required range:
1 <= x <= 100Was this page helpful?
⌘I