> ## Documentation Index
> Fetch the complete documentation index at: https://docs.serval.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LogicMonitor

> Connect LogicMonitor alerts and infrastructure to Serval workflows.

Connect LogicMonitor to look up alerts, devices, resource groups, collectors and
scheduled downtime from Serval workflows. Workflows can also acknowledge alerts,
add notes, and create or delete scheduled downtime when the token's user has the
corresponding permissions.

## Create a bearer token

1. In LogicMonitor, create or select a user for the Serval connection. An
   [API-only user](https://www.logicmonitor.com/support/adding-an-api-only-user)
   can be used for this purpose.
2. Assign a role with resource read access for the device healthcheck and the
   permissions needed by your workflows.
3. Create a **Bearer** API token for that user and copy its value.

See LogicMonitor's [API authentication guide](https://www.logicmonitor.com/support/rest-api-authentication)
for token creation and expiration. This connector uses bearer tokens rather than
LMv1 access ID and access key credentials.

## Connect in Serval

1. Open **Integrations**, find **LogicMonitor**, and choose **Connect**.
2. Enter the **Account name** from your portal address. For
   `https://your-account.logicmonitor.com`, enter `your-account`.
3. Enter the **Bearer token**, then connect.

The connection uses your HTTPS LogicMonitor portal and API v3. Saving stores the
credentials without validating them with LogicMonitor. Run the device healthcheck
to verify resource read access; it reads one device. Separate workflow healthchecks
check alert, collector and scheduled downtime read access. A successful read does
not establish write permission.

## Use the connection

Use LogicMonitor actions in workflows to investigate an alert or coordinate a
maintenance window. Connecting the app does not automatically create incidents
or import device inventory into Serval.

> [!WARNING]
>
> Acknowledging an alert can stop its escalation. Scheduled downtime suppresses notifications for
> its target resources; deleting downtime can resume them. Review the resources and time window
> before running these actions.

The typed API supports bounded list requests with `size` and `offset`. Workflows
must request additional pages when needed and respect LogicMonitor's endpoint
rate limits. See the [v3 API reference](https://www.logicmonitor.com/support/rest-api-v3-swagger-documentation)
for filters, scheduled downtime types and endpoint permissions.

## Troubleshooting

* **A healthcheck fails:** Check the account name, token expiration and
  resource read permission. A valid token may lack access to the check's endpoint.
* **An action returns 403:** Grant the token's user the permission required by
  that action and resource.
* **An action returns 429:** Reduce request frequency and retry after the rate
  limit window. Confirm the outcome before retrying a write.
* **Rotate a token:** Update the connection with its replacement token.
* **Use another account:** Add a new connection for that account. An existing
  connection stays bound to its original account; a masked or blank token preserves
  its current secret.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.