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 <= 100Successful Response
The paginated items
Show child attributes
openai/gpt-5, google/gemini-2.5-flash, google/gemini-2.5-pro, google/gemini-3-pro-preview, anthropic/claude-sonnet-4.5, minimax/minimax-m2, moonshotai/kimi-k2-thinking 1created, running, paused, completed, failed, cancelled US, BR, FR, DE, IN, JP, KR, ZA Pagination metadata
Show child attributes
Whether there is a next page
Whether there is a previous page
Current page number (1-based)
Number of items per page
Total number of pages
Total number of items
Was this page helpful?