myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Get device by id (channel-less)

GET

/api/v1/ext/devices/{id}

Look up a device by id alone — the channel is resolved automatically.

Auth: Bearer access_token
Scope: devices.read

Convenience endpoint for callers that already know the device id but not its channel. The API resolves the device across all channels and returns the device when exactly one channel matches. When the same id exists on multiple channels (rare — device ids are only unique within a channel), the response is 409 Conflict with a channels array, and the caller should re-issue the request against /devices/{channel}/{id} to disambiguate. Use the channel-qualified endpoint directly when you already know the channel — it skips the cross-channel scan.

Parameters

NameInTypeRequiredDescription
id
path
number
yes
Device id within any channel.

Responses

StatusWhen
200
OK — exactly one channel matched
401
Missing or invalid token
403
Missing scope
404
No channel has a device with this id
409
Ambiguous — id exists on multiple channels

Response schema

deviceobject

The matched device

idnumber

Device id within its channel.

Example:12
channelenum

Which channel the device belongs to: "android" (SMS), "whatsapp", "imessage", or "rcs".

Example:whatsapp
namestring
nullable

Display name (falls back to the device model / imessage user when unnamed).

statusstring
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_idnumber
nullable

The workspace the device is assigned to. null if unassigned.

workspace_namestring
nullable

Name of the subaccount (workspace) the device is assigned to. null if unassigned.

is_defaultboolean
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_atstring (ISO 8601)
nullable

When the device connection was created. **Null for Android devices** (no creation timestamp is available for this channel).

updated_atstring (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_statusenum

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_atstring (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_atstring (ISO 8601)
nullable

Most recent heartbeat/probe timestamp. android/imessage: last ping · whatsapp: last successful probe · rcs: null (no ping telemetry). null when unknown.

healthobject

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_detailsobject

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 extrasvaries

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.

Request
curl -X GET "https://backend.mysmsgateway.app/api/v1/ext/devices/{id}" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"
Responses
OK — exactly one channel matched
{
  "success": true,
  "data": {
    "id": 7022,
    "channel": "android",
    "name": null,
    "status": "active",
    "health_status": "healthy",
    "last_seen_at": "2026-06-09T11:08:43.000Z",
    "last_ping_at": "2026-06-09T11:08:43.000Z",
    "health": {
      "battery_level": 100,
      "battery_charging": true,
      "internet_connection": "wifi",
      "battery_optimized": false,
      "service_uptime": 172800,
      "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-A065F",
      "android_version": "16",
      "app_version": "10.9.5",
      "battery_level": 100,
      "battery_charging": true,
      "internet_connection": "wifi",
      "is_default_sms_app": true,
      "service_uptime": 172800,
      "battery_optimized": false,
      "missing_permissions": [],
      "mms_config": "auto",
      "last_ping": "2026-06-09T11:08:43.000Z",
      "sims": [
        {
          "slot": 1,
          "carrier": "Example Mobile",
          "number": "+15551234567",
          "name": "Example Mobile",
          "country": "US",
          "enabled": true
        },
        {
          "slot": 2,
          "carrier": "Example Mobile",
          "number": "+15557654321",
          "name": "Example Mobile",
          "country": "US",
          "enabled": true
        }
      ]
    },
    "workspace_id": 7,
    "workspace_name": "Acme Co",
    "is_default": null,
    "device_model": "SM-A065F",
    "android_version": "16",
    "app_version": "10.9.5",
    "battery_level": 100,
    "battery_charging": true,
    "internet_connection": "wifi",
    "is_default_sms_app": true,
    "service_uptime": 172800,
    "battery_optimized": false,
    "missing_permissions": [],
    "mms_config": "auto",
    "last_ping": "2026-06-09T11:08:43.000Z",
    "sims": [
      {
        "slot": 1,
        "carrier": "Example Mobile",
        "number": "+15551234567",
        "name": "Example Mobile",
        "country": "US",
        "enabled": true
      },
      {
        "slot": 2,
        "carrier": "Example Mobile",
        "number": "+15557654321",
        "name": "Example Mobile",
        "country": "US",
        "enabled": true
      }
    ],
    "created_at": null,
    "updated_at": "2026-06-09T11:08:43.000Z"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

Device id within any channel.

Request URL
GEThttps://backend.mysmsgateway.app/api/v1/ext/devices/%7Bid%7D
Previous

« List devices

Next

Get device »