> 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/sentinelone/send-message-to-agents.md).

# Send Message to Agents

Sends a short message to the SentinelOne agent of every device the workflow collected, so that it is shown on the endpoint. According to the field help text, this is supported on Windows and macOS.

### Before you begin

* A SentinelOne management console domain and an API token that is allowed to run this action. Enter them in the job, or save them once as defaults (see [Action Center Settings](broken://pages/901350e1f6816b2aa976f94576b97b9d1582c31b)).
* Asset type: `device` only.
* Required column: `Hostname`. Devices without a value in this column are left out before the job runs.
* A condition node before the job, so that devices are collected for it to act on.

### Settings

| Setting            | Type   | Required | Default | Description                                                                                                                                |
| ------------------ | ------ | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| SentinelOne Domain | Text   | Yes      | None    | Your SentinelOne management console domain, for example `your-console.sentinelone.net`. Enter the host name only; the job adds `https://`. |
| API Token          | Text   | Yes      | None    | SentinelOne API token with the permissions this action needs. Sent as `Authorization: ApiToken ...`. Not masked in the console.            |
| Request Timeout    | Number | No       | 30      | Timeout in seconds for each API request.                                                                                                   |
| Message            | Text   | Yes      | None    | Message to broadcast to agents. Maximum 140 characters.                                                                                    |

### How it works

The job sends one request per device, not one request for all devices. For each device it sends a `POST` to `https://<domain>/web/api/v2.1/agents/actions/broadcast` with a filter that selects that one agent, and the data `{"message": <Message>}`.

For each device the job picks the agent like this: if the asset has `Specifics.sentinelone-edr.id`, the agent is matched by that ID; otherwise it is matched by computer name using the device `Hostname`. A device with neither is skipped.

The job does not check the response status. If SentinelOne rejects a request (for example because of a missing permission or an unknown agent), nothing is raised and the job continues. Only a failure to send the request (for example a timeout or a connection error) is written to the log for that device, and the job continues with the next device.

When it finishes, the job passes the assets it received on to the next node unchanged.

### Example

```
SentinelOne Domain: your-console.sentinelone.net
API Token:         YOUR_API_TOKEN
Request Timeout:   30
Message:           Maintenance starts in 30 minutes. Please save your work.
```

### 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/49aa8aca1c261c00834abce192d5195e633f8214">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save default values and SSH connections for jobs.</td><td><a href="broken://pages/901350e1f6816b2aa976f94576b97b9d1582c31b">Broken link</a></td></tr><tr><td><strong>Initiate Scan</strong></td><td>Run a Full Disk Scan.</td><td><a href="broken://pages/016122539f90208854c3be0d495f7a49f05d16c1">Broken link</a></td></tr><tr><td><strong>Add Tags to Agents</strong></td><td>Tag agents.</td><td><a href="broken://pages/74b98bd49ebdefde259a3223458ae1c863250ca8">Broken link</a></td></tr></tbody></table>

{% hint style="info" %}
Available starting from version 6.3.1.
{% endhint %}
