Skip to main content
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);
{
  "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
  }
}

Authorizations

Authorization
string
header
required

Bearer token via Authorization header

Query Parameters

status
enum<string> | null
Available options:
created,
running,
paused,
completed,
failed,
cancelled
orderBy
enum<string> | null
default:createdAt
Available options:
id,
createdAt,
finishedAt,
status
orderByDirection
enum<string>
default:desc
Available options:
asc,
desc
query
string | null

Search in task description.

Maximum string length: 128
page
integer | null
default:1

Page number (1-based). If provided, returns paginated results.

Required range: x >= 1
pageSize
integer
default:20

Number of items per page

Required range: 1 <= x <= 100

Response

Successful Response

items
Task · object[]
required

The paginated items

pagination
PaginationMeta · object
required

Pagination metadata