# List devices

> Every device the installer owns — across all channels — in one list.

Source: https://docs.mycrmsim.com/docs/devices/list-devices

```http
GET https://backend.mysmsgateway.app/api/v1/ext/devices
```

- Category: myCRMSIM Devices / Devices
- Auth: Bearer access token
- Scope: `devices.read`

Each channel (Android/SMS, WhatsApp, iMessage, and RCS) is stored separately. This single endpoint queries all four sources, normalizes each record into a common structure with a `channel` field, and returns them together. Requires the `devices.read` scope. Each channel is queried independently — if one source is briefly unavailable, the others are still returned. The response also includes a `summary.by_channel` count.

Android, WhatsApp, and iMessage rows — in this list AND the single-device endpoints — carry a stable health contract identical in shape across those three channels: `health_status` ("healthy" | "degraded" | "offline" | "unknown"), `last_seen_at`, `last_ping_at`, a uniform `health` telemetry object (same keys on each of those channels, null where a metric does not apply), and `channel_details` (the channel-native values grouped into one object). The channel-native values also remain flattened at the top level for backwards compatibility. RCS rows are excluded from this contract — RCS exposes no health telemetry today and keeps its original flattened shape.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `channel` | query | enum | no | Filter to one channel: "android", "whatsapp", "imessage", or "rcs". Omit for all. |

## Response fields (device)

| Field | Type | Description |
| --- | --- | --- |
| `id` | number | Device id within its channel. |
| `channel` | enum | Which channel the device belongs to: "android" (SMS), "whatsapp", "imessage", or "rcs". |
| `name` | string, nullable | Display name (falls back to the device model / imessage user when unnamed). |
| `status` | string, nullable | Channel-specific status. android: "active"/"inactive" (device enabled). imessage: one of "Active-S" / "Active-H" / "Inactive" (Active-S = connection "connected" and pinged within the last 2 min; Active-H = not connected but recently pinged; Inactive otherwise). whatsapp/rcs: the underlying connection status. |
| `workspace_id` | number, nullable | The workspace the device is assigned to. null if unassigned. |
| `workspace_name` | string, nullable | Name of the subaccount (workspace) the device is assigned to. null if unassigned. |
| `is_default` | boolean, nullable | True if this is the default device for its workspace/channel. **Null for Android devices** (default-device selection does not apply to this channel). |
| `created_at` | string (ISO 8601), nullable | When the device connection was created. **Null for Android devices** (no creation timestamp is available for this channel). |
| `updated_at` | string (ISO 8601), nullable | When the device connection was last updated. For Android devices this falls back to the most recent `lastPing` timestamp as a coarse "last activity" proxy. |
| `health_status` | enum | Normalised health for android / whatsapp / imessage rows (absent on RCS): "healthy" \| "degraded" \| "offline" \| "unknown". Derived from the channel `status` (e.g. android "active"/imessage "Active-S"/whatsapp "connected"/"ready" → healthy; imessage "Active-H" → degraded; "inactive"/"disconnected" → offline). |
| `last_seen_at` | string (ISO 8601), nullable | Most recent activity timestamp for the device. android/imessage: last ping · whatsapp: last activity (falls back to last probe) · rcs: last update. null when unknown. |
| `last_ping_at` | string (ISO 8601), nullable | Most recent heartbeat/probe timestamp. android/imessage: last ping · whatsapp: last successful probe · rcs: null (no ping telemetry). null when unknown. |
| `health` | object | Uniform telemetry bag with the SAME keys on every channel — { battery_level, battery_charging, internet_connection, battery_optimized, service_uptime, is_default_sms_app, missing_permissions, rate_limit, limit_exceed_action, last_state, last_probe_ok_at, last_probe_ms, auto_refresh }. Each key is populated for the channel it applies to (android → battery/connectivity/permissions; imessage → rate_limit/limit_exceed_action; whatsapp → last_state/last_probe_*/auto_refresh) and null everywhere else. |
| `channel_details` | object | The full channel-native field set (same values as the flattened extras below), grouped into one object so callers have a stable place to read channel-specific data. Empty object {} when the channel exposes none. |
| `…channel extras` | varies | Backwards-compatible: the channel-native fields (identical to `channel_details`) also stay flattened onto the object, — android: device_model, android_version, app_version, battery_level, battery_charging, internet_connection, is_default_sms_app, service_uptime, battery_optimized, missing_permissions, mms_config, last_ping, sims[] (each {slot, carrier, number, name, country, enabled}) · whatsapp: number, client_id, user_name, last_state, last_activity_at, last_probe_ok_at, last_probe_ms, auto_refresh · imessage: device_model, os_version, app_version, last_ping, user_name, rate_limit, limit_exceed_action · rcs: location_id, login_via, client_id, user_name. |

## Response 200

OK

```json
{
  "success": true,
  "data": [
    {
      "id": 12,
      "channel": "whatsapp",
      "name": "Sales WhatsApp",
      "status": "ready",
      "health_status": "healthy",
      "last_seen_at": "2026-05-21T09:12:00.000Z",
      "last_ping_at": "2026-05-21T09:13:00.000Z",
      "health": {
        "battery_level": null,
        "battery_charging": null,
        "internet_connection": null,
        "battery_optimized": null,
        "service_uptime": null,
        "is_default_sms_app": null,
        "missing_permissions": null,
        "rate_limit": null,
        "limit_exceed_action": null,
        "last_state": "CONNECTED",
        "last_probe_ok_at": "2026-05-21T09:13:00.000Z",
        "last_probe_ms": 5,
        "auto_refresh": true
      },
      "channel_details": {
        "number": "+15551234567",
        "client_id": "wa_8f21",
        "user_name": "Ada Lovelace",
        "last_state": "CONNECTED",
        "last_activity_at": "2026-05-21T09:12:00.000Z",
        "last_probe_ok_at": "2026-05-21T09:13:00.000Z",
        "last_probe_ms": 5,
        "auto_refresh": true
      },
      "workspace_id": 7,
      "workspace_name": "Acme Co",
      "is_default": true,
      "number": "+15551234567",
      "client_id": "wa_8f21",
      "user_name": "Ada Lovelace",
      "last_state": "CONNECTED",
      "last_activity_at": "2026-05-21T09:12:00.000Z",
      "last_probe_ok_at": "2026-05-21T09:13:00.000Z",
      "last_probe_ms": 5,
      "auto_refresh": true,
      "created_at": "2026-05-21T09:14:22.000Z",
      "updated_at": "2026-05-21T09:14:22.000Z"
    },
    {
      "id": 4,
      "channel": "imessage",
      "name": "MacBook Pro",
      "status": "Active-S",
      "health_status": "healthy",
      "last_seen_at": "2026-05-21T09:10:00.000Z",
      "last_ping_at": "2026-05-21T09:10:00.000Z",
      "health": {
        "battery_level": null,
        "battery_charging": null,
        "internet_connection": null,
        "battery_optimized": null,
        "service_uptime": null,
        "is_default_sms_app": null,
        "missing_permissions": null,
        "rate_limit": 100,
        "limit_exceed_action": "queue",
        "last_state": null,
        "last_probe_ok_at": null,
        "last_probe_ms": null,
        "auto_refresh": null
      },
      "channel_details": {
        "device_model": "MacBookPro18,3",
        "os_version": "14.4",
        "app_version": "1.2.0",
        "last_ping": "2026-05-21T09:10:00.000Z",
        "user_name": "Ada Lovelace",
        "rate_limit": 100,
        "limit_exceed_action": "queue"
      },
      "workspace_id": 7,
      "workspace_name": "Acme Co",
      "is_default": false,
      "device_model": "MacBookPro18,3",
      "os_version": "14.4",
      "app_version": "1.2.0",
      "last_ping": "2026-05-21T09:10:00.000Z",
      "user_name": "Ada Lovelace",
      "rate_limit": 100,
      "limit_exceed_action": "queue",
      "created_at": "2026-05-20T08:00:00.000Z",
      "updated_at": "2026-05-21T09:10:00.000Z"
    },
    {
      "id": 9,
      "channel": "rcs",
      "name": "Pixel 8",
      "status": "active",
      "workspace_id": null,
      "workspace_name": null,
      "is_default": false,
      "location_id": "loc_abc",
      "login_via": "qrcode",
      "client_id": "rcs_5b3",
      "user_name": "Grace Hopper",
      "created_at": "2026-05-19T12:00:00.000Z",
      "updated_at": "2026-05-21T07:00:00.000Z"
    },
    {
      "id": 31,
      "channel": "android",
      "name": "Galaxy S22",
      "status": "active",
      "health_status": "healthy",
      "last_seen_at": "2026-05-21T09:13:40.000Z",
      "last_ping_at": "2026-05-21T09:13:40.000Z",
      "health": {
        "battery_level": 87,
        "battery_charging": false,
        "internet_connection": "wifi",
        "battery_optimized": false,
        "service_uptime": 86400,
        "is_default_sms_app": true,
        "missing_permissions": [],
        "rate_limit": null,
        "limit_exceed_action": null,
        "last_state": null,
        "last_probe_ok_at": null,
        "last_probe_ms": null,
        "auto_refresh": null
      },
      "channel_details": {
        "device_model": "SM-S901",
        "android_version": "14",
        "app_version": "3.4.1",
        "battery_level": 87,
        "battery_charging": false,
        "internet_connection": "wifi",
        "is_default_sms_app": true,
        "service_uptime": 86400,
        "battery_optimized": false,
        "missing_permissions": [],
        "mms_config": "auto",
        "last_ping": "2026-05-21T09:13:40.000Z",
        "sims": [
          {
            "slot": 1,
            "carrier": "Example Mobile",
            "number": "+15551234567",
            "name": "Example Mobile",
            "country": "US",
            "enabled": true
          }
        ]
      },
      "workspace_id": 7,
      "workspace_name": "Acme Co",
      "is_default": null,
      "device_model": "SM-S901",
      "android_version": "14",
      "app_version": "3.4.1",
      "battery_level": 87,
      "battery_charging": false,
      "internet_connection": "wifi",
      "is_default_sms_app": true,
      "service_uptime": 86400,
      "battery_optimized": false,
      "missing_permissions": [],
      "mms_config": "auto",
      "last_ping": "2026-05-21T09:13:40.000Z",
      "sims": [
        {
          "slot": 1,
          "carrier": "Example Mobile",
          "number": "+15551234567",
          "name": "Example Mobile",
          "country": "US",
          "enabled": true
        }
      ],
      "created_at": null,
      "updated_at": null
    }
  ],
  "summary": {
    "total": 4,
    "by_channel": {
      "whatsapp": 1,
      "imessage": 1,
      "rcs": 1,
      "android": 1
    }
  }
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): devices.read."
}
```
