---
title: "List tasks for a device"
method: GET
path: "/devices/{deviceId}/tasks"
tags: ["Devices"]
---

# List tasks for a device

`GET /devices/{deviceId}/tasks`

Returns a paginated list of tasks that have run on the device, along with pagination metadata.

## Path parameters

- `deviceId` string, required

## Query parameters

- `page` integer
- `pageSize` integer
- `orderBy` 'id' | 'createdAt' | 'updatedAt' | 'assignedAt'
- `orderByDirection` 'asc' | 'desc'

## Response `200`

OK

- ResponseTask
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `items` Task[], nullable, required
    - `createdAt` string, date-time, required
    - `taskId` string, required
    - `updatedAt` string, date-time, required
  - `pagination` Meta, required
    - `hasNext` boolean, required
    - `hasPrev` boolean, required
    - `page` integer, required
    - `pageSize` integer, required
    - `pages` integer, required
    - `total` integer, required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/mobilerun/apis/workflows.md) · [All operations](https://skmtc.net/mobilerun/apis/workflows/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mobilerun/workflows/revisions/1bc499aa8f99/schema)
