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);{
"items": [
{
"deviceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"llmModel": "openai/gpt-5",
"task": "<string>",
"userId": "<string>",
"apps": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"credentials": [
{
"credentialNames": [
"<string>"
],
"packageName": "<string>"
}
],
"executionTimeout": 1000,
"files": [
"<string>"
],
"finishedAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"maxSteps": 100,
"output": {},
"outputSchema": {},
"reasoning": true,
"status": "created",
"steps": 123,
"succeeded": true,
"temperature": 0.5,
"trajectory": [
{}
],
"updatedAt": "2023-11-07T05:31:56Z",
"vision": false,
"vpnCountry": "US"
}
],
"pagination": {
"hasNext": true,
"hasPrev": true,
"page": 123,
"pageSize": 123,
"pages": 123,
"total": 123
}
}List all tasks you’ve created so far
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);{
"items": [
{
"deviceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"llmModel": "openai/gpt-5",
"task": "<string>",
"userId": "<string>",
"apps": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"credentials": [
{
"credentialNames": [
"<string>"
],
"packageName": "<string>"
}
],
"executionTimeout": 1000,
"files": [
"<string>"
],
"finishedAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"maxSteps": 100,
"output": {},
"outputSchema": {},
"reasoning": true,
"status": "created",
"steps": 123,
"succeeded": true,
"temperature": 0.5,
"trajectory": [
{}
],
"updatedAt": "2023-11-07T05:31:56Z",
"vision": false,
"vpnCountry": "US"
}
],
"pagination": {
"hasNext": true,
"hasPrev": true,
"page": 123,
"pageSize": 123,
"pages": 123,
"total": 123
}
}Bearer token via Authorization header
created, running, paused, completed, failed, cancelled id, createdAt, finishedAt, status asc, desc Search in task description.
128Page number (1-based). If provided, returns paginated results.
x >= 1Number of items per page
1 <= x <= 100Was this page helpful?