> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/mobileitm/send-alert-to-devices.md).

# Send Alert to Devices

**MobileITM - Send Alert to Devices** shows an alert on the screen of MobileITM managed devices. The job collects the IMEI numbers of the selected devices and calls the MobileITM MDM `send-alert` endpoint with your caption, message and duration. Only devices for which MobileITM reported an IMEI can be alerted.

### Before you begin

* The MobileITM adapter must be connected and discovered first, so devices carry MobileITM data (`Specifics.mobileitm`).
* A MobileITM API key created under System Management > System Parameters > API Key. It must belong to the `command` or `general` category.
* Asset type: device only. Required columns: `Hostname` and `Specifics.mobileitm`. Devices that MobileITM does not manage are dropped.
* Connection fields can be pre-filled in [Action Center Settings](broken://pages/f989690d8928a5f187756fe13a8930aea4cb36a9).

### Settings

| Setting          | Type             | Required | Default             | Description                                                |
| ---------------- | ---------------- | -------- | ------------------- | ---------------------------------------------------------- |
| MobileITM Domain | Text             | Yes      | `mdm.mobileitm.com` | MobileITM MDM hostname, without a scheme.                  |
| API Key          | Text (sensitive) | Yes      | None                | The API key. Masked after saving.                          |
| Caption          | Text             | Yes      | None                | Alert title shown on the device. Up to 255 characters.     |
| Message          | Text             | Yes      | None                | Alert body shown on the device.                            |
| Duration         | Integer          | No       | `30`                | How long the alert stays on screen, in seconds. Minimum 1. |
| Request Timeout  | Integer          | No       | `30`                | Timeout for API requests, in seconds.                      |

### How it works

1. The job reads the IMEI values from the device's MobileITM data. Dual SIM devices report two IMEIs separated by a space, and both are used. Duplicates are removed.
2. A device with no IMEI is skipped (logged at debug level). If no selected device has an IMEI, the job logs an error and sends nothing.
3. IMEIs are sent in batches of 100, one request per batch, as a comma separated list.
4. If a batch fails (connection error, a status other than 200, or `Success` false in the reply), the error is logged and the job continues with the next batch.
5. On success the log shows how many of the requested IMEIs matched a device in MobileITM. A smaller number than requested means some IMEIs are unknown to MobileITM.
6. The assets are passed on unchanged.

The connection test sends an alert to an IMEI that cannot belong to a real device, so nobody is alerted. It passes when MobileITM answers with HTTP 200, which confirms the key is allowed to send commands.

### Example

| Setting          | Value                                   |
| ---------------- | --------------------------------------- |
| MobileITM Domain | `mdm.example.com`                       |
| API Key          | `YOUR_API_KEY`                          |
| Caption          | Security update required                |
| Message          | Please install the latest update today. |
| Duration         | `60`                                    |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/8f49a35327f82d612046cd1c46b29390913fc7a5">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save connection defaults for jobs.</td><td><a href="broken://pages/f989690d8928a5f187756fe13a8930aea4cb36a9">Broken link</a></td></tr></tbody></table>
