# Liongard

> Work with your Liongard instance: manage environments, read agents, launchpoints and systems, run inspections, evaluate and create metrics, read change detections, alerts and the inspection timeline, and manage alert webhooks.

App · 28 actions. Web page: https://docs.lodol.com/docs/integrations/liongard

## Actions

### Create environment

Add an environment (a customer) to Liongard.

**Inputs**

- Name (`name`, text, required): The environment's name, usually the customer's.
- Description (`description`, text): A description of the environment.
- Short name (`short_name`, text): A short name or code for the environment, such as CN.
- Tier (`tier`, text): The environment's Liongard tier, which decides which inspectors it can use. One of: `Core`, `Essentials`.

**Outputs**

- `environment` (object): The new environment

**Example output**

```json
{
  "environment": {
    "AgentsCount": 1,
    "CreatedBy": {
      "FirstName": "Alex",
      "FullName": "Alex Weber",
      "ID": 1234,
      "LastName": "Weber"
    },
    "CreatedOn": "2026-09-10T19:21:03.195Z",
    "EndpointInspectorCount": 0,
    "ID": 18701,
    "Name": "Contoso",
    "ServiceProviderID": 1,
    "Status": 1,
    "Tier": {
      "AssociatedInspectors": 14,
      "CanDownGrade": true,
      "Type": "Core"
    },
    "UpdatedBy": {
      "FirstName": "Alex",
      "FullName": "Alex Weber",
      "ID": 1234,
      "LastName": "Weber"
    },
    "UpdatedOn": "2026-09-10T19:21:03.195Z",
    "Visible": true
  }
}
```

### Create metric

Create a custom metric: a JMESPath query over one inspector's data. It runs against the inspector's latest version.

**Inputs**

- Name (`name`, text, required): The metric's name.
- Inspector (`inspector_id`, text, required): The inspector whose data the query reads.
- Query (`query`, text, required): A JMESPath query over the inspector's data.
- Display (`show_in_dashboards`, true/false): Show the metric in Liongard's views and evaluations.
- Track changes (`track_changes`, true/false): Record a change detection when the value changes.

**Outputs**

- `inspector_version_id` (number): The inspector version the query was saved for
- `metric` (object): The new metric

**Example output**

```json
{
  "inspector_version_id": 65,
  "metric": {
    "ChangesEnabled": true,
    "CreatedOn": "2026-11-30T19:21:03.195Z",
    "Description": "",
    "ID": 1618,
    "Inspector": {
      "Alias": "Active Directory",
      "ID": 13,
      "InspectorCategory": "appservices",
      "Name": "active-directory-inspector"
    },
    "MetricDisplay": true,
    "MetricVersions": [
      {
        "ID": 123,
        "InspectorVersionID": 65,
        "Query": "length(Users)"
      }
    ],
    "Name": "Active Directory: Count of users",
    "UCK": "Active Directory: Count of users",
    "UUIDS": "0b1e6f4c-3c2d-4a8b-9a51-3f5f8b1c2d3e"
  }
}
```

### Create webhook

Have Liongard post every new alert to an https address. Liongard sends the address a test message first, and the address must accept it.

**Inputs**

- Address (`url`, text, required): The https:// address to post new alerts to.
- Description (`description`, text): What the webhook is for.

**Outputs**

- `webhook` (object): The new webhook

**Example output**

```json
{
  "webhook": {
    "Active": true,
    "CreatedOn": "2026-11-30T05:00:00.000Z",
    "Description": "Alerts to our ticketing",
    "Events": [
      "alert.created"
    ],
    "Health": "200 OK",
    "ID": "2371b0fa-10cd-49ea-a97b-c1d1e2680777",
    "Url": "https://example.com/liongard-alerts"
  }
}
```

### Delete environment

Delete an environment. Turn on 'Delete related' to delete its agents, launchpoints and integration mappings with it.

**Inputs**

- Environment (`environment_id`, text, required): The environment (customer). Pick one, or give its ID from an earlier step.
- Delete related (`delete_related`, true/false): Also delete the agents, launchpoints and other records tied to the environment.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `environment_id` (number): The environment's ID deleted

**Example output**

```json
{
  "deleted": true,
  "environment_id": 18701
}
```

### Delete metric

Delete a custom metric. Liongard's own metrics can't be deleted.

**Inputs**

- Metric (`metric_id`, text, required): The custom metric. Pick one, or give its ID.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `metric_id` (number): The metric's ID deleted

**Example output**

```json
{
  "deleted": true,
  "metric_id": 1618
}
```

### Delete webhook

Delete a webhook so Liongard stops sending alerts to it.

**Inputs**

- Webhook (`webhook_id`, text, required): The webhook. Pick one, or give its ID from an earlier step.

**Outputs**

- `deleted` (true/false): Always true once deleted
- `webhook_id` (text): The webhook's ID deleted

**Example output**

```json
{
  "deleted": true,
  "webhook_id": "2371b0fa-10cd-49ea-a97b-c1d1e2680777"
}
```

### Get a system's metric values

Get the value of every displayed metric for one system, from its latest inspection.

**Inputs**

- System ID (`system_id`, text, required): The system's ID, from 'List systems' or an earlier step.
- Page (`page`, number): Which page to get, starting at 1. Defaults to the first. At least 1.
- Page size (`page_size`, number): How many to get per page, 1 to 2000. Defaults to 50. From 1 to 2000.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): True when there is another page; run again with the next page number
- `page` (number): The page number returned
- `values` (list): One value per metric

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "page": 1,
  "values": [
    {
      "EnvironmentID": 18701,
      "EnvironmentName": "Contoso",
      "FriendlyName": "Active Directory - Contoso",
      "InspectorName": "active-directory-inspector",
      "MetricID": 1,
      "MetricName": "Active Directory: Count of Joined Computers",
      "MetricUUID": "aa4eef4d-3dc5-4b3d-9d8a-00c1d9b68065",
      "SystemID": 3454,
      "TimelineDate": "2026-11-30T14:52:57.022Z",
      "TimelineID": 1294715,
      "Value": 42
    }
  ]
}
```

### Get agent

Get one agent with its host, platform, version and last check-in.

**Inputs**

- Agent (`agent_id`, text, required): The agent. Pick one, or give its ID from an earlier step.

**Outputs**

- `agent` (object): The agent

**Example output**

```json
{
  "agent": {
    "CreatedOn": "2026-09-10T19:21:03.195Z",
    "Data": {
      "AgentVersion": "2.0.2",
      "JobsRunning": 0,
      "MaxJobsAllowed": 5
    },
    "Description": "Main agent",
    "Environment": {
      "ID": 18701,
      "Name": "Contoso",
      "ShortName": "CN"
    },
    "Hostname": "CN-DC01",
    "ID": 1511,
    "IP": "203.0.113.10",
    "LastHeartbeat": "2026-11-30T09:00:00.000Z",
    "Managed": false,
    "Name": "Contoso Agent",
    "Platform": "windows",
    "SAAS": false,
    "Status": 1,
    "Suspended": false,
    "Type": "customer-on-prem",
    "UpdatedOn": "2026-11-30T09:00:00.000Z"
  }
}
```

### Get alert

Get one alert with its priority, status, rule and the inspection that raised it.

**Inputs**

- Alert ID (`alert_id`, text, required): The alert's ID, from 'List alerts' or a trigger.

**Outputs**

- `alert` (object): The alert

**Example output**

```json
{
  "alert": {
    "Category": "",
    "CommonID": "T20261130.00001",
    "CreatedOn": "2026-11-30T19:21:03.195Z",
    "Description": "A new domain admin was added.",
    "DueDate": "",
    "Environment": {
      "ID": 18701,
      "Name": "Contoso",
      "ShortName": "CN"
    },
    "ID": 7586,
    "Inspector": {
      "Alias": "Active Directory",
      "ID": 13,
      "InspectorCategory": "appservices",
      "Name": "active-directory-inspector"
    },
    "Launchpoint": {
      "Alias": "Active Directory - Contoso",
      "ID": 18671,
      "Status": "Active"
    },
    "Name": "Admin account added",
    "Owner": "",
    "Priority": {
      "ID": 67,
      "Name": "Critical"
    },
    "Rule": {
      "ID": 1219,
      "Name": "New domain admin",
      "Title": "Admin account added"
    },
    "Source": "Roar",
    "StartDate": "",
    "Status": {
      "ID": 14,
      "Name": "New"
    },
    "Timeline": {
      "Alerts": 1,
      "ChangeDetections": 3,
      "CreatedOn": "2026/11/30 19:21:03",
      "ID": 1294715,
      "Status": "Completed"
    },
    "UpdatedOn": "2026-11-30T19:21:03.195Z",
    "Visible": true
  }
}
```

### Get change detection

Get one change detection with what was added or removed and where.

**Inputs**

- Detection ID (`detection_id`, text, required): The change detection's ID, from 'List change detections'.

**Outputs**

- `detection` (object): The change detection

**Example output**

```json
{
  "detection": {
    "Category": {
      "ID": 1,
      "Name": "Users"
    },
    "CreatedOn": "2026/11/30 19:21:03",
    "Description": "",
    "Detection": "",
    "Environment": {
      "ID": 18701,
      "Name": "Contoso",
      "ShortName": "CN"
    },
    "ID": 68998,
    "Inspector": {
      "Alias": "Active Directory",
      "ID": 13,
      "InspectorCategory": "appservices",
      "Name": "active-directory-inspector"
    },
    "Keywords": "",
    "Name": "Domain Admins membership changed",
    "Patch": [
      {
        "added": true,
        "count": 1,
        "removed": false,
        "value": "jdoe"
      }
    ],
    "System": {
      "Description": "",
      "ID": 3454,
      "Name": "contoso.local"
    },
    "Timeline": {
      "Alerts": 1,
      "ChangeDetections": 3,
      "CreatedOn": "2026/11/30 19:21:03",
      "ID": 1294715,
      "Status": "Completed"
    },
    "TimelineID": 1294715
  }
}
```

### Get environment

Get one environment with its tier, status and agent count.

**Inputs**

- Environment (`environment_id`, text, required): The environment (customer). Pick one, or give its ID from an earlier step.

**Outputs**

- `environment` (object): The environment

**Example output**

```json
{
  "environment": {
    "AgentsCount": 1,
    "CreatedBy": {
      "FirstName": "Alex",
      "FullName": "Alex Weber",
      "ID": 1234,
      "LastName": "Weber"
    },
    "CreatedOn": "2026-09-10T19:21:03.195Z",
    "EndpointInspectorCount": 0,
    "ID": 18701,
    "Name": "Contoso",
    "ServiceProviderID": 1,
    "Status": 1,
    "Tier": {
      "AssociatedInspectors": 14,
      "CanDownGrade": true,
      "Type": "Core"
    },
    "UpdatedBy": {
      "FirstName": "Alex",
      "FullName": "Alex Weber",
      "ID": 1234,
      "LastName": "Weber"
    },
    "UpdatedOn": "2026-09-10T19:21:03.195Z",
    "Visible": true
  }
}
```

### Get environment's related records

List what is tied to an environment: its launchpoints, agents, integration mappings and child environments.

**Inputs**

- Environment (`environment_id`, text, required): The environment (customer). Pick one, or give its ID from an earlier step.

**Outputs**

- `agents` (list): Its agents
- `child_environments` (list): Environments under it
- `environment_id` (number): The environment's ID
- `integration_mappings` (list): Its mappings to other tools (PSA, documentation)
- `launchpoints` (list): Its inspector launchpoints

**Example output**

```json
{
  "agents": [
    {
      "Description": "Main agent",
      "Hostname": "CN-DC01",
      "ID": 1511,
      "Managed": false,
      "Name": "Contoso Agent",
      "Platform": "windows"
    }
  ],
  "child_environments": [
    {
      "ID": 8669,
      "Name": "Contoso - Remote",
      "Status": 1,
      "Visible": true
    }
  ],
  "environment_id": 18701,
  "integration_mappings": [
    {
      "ID": 5502,
      "Integration": "ConnectWise"
    }
  ],
  "launchpoints": [
    {
      "Alias": "Active Directory - Contoso",
      "Enabled": true,
      "ID": 18671,
      "InspectorID": 13,
      "InspectorName": "Active Directory",
      "Status": "Active",
      "SystemID": 3454
    }
  ]
}
```

### Get launchpoint

Get one inspector launchpoint with its schedule, last runs and status.

**Inputs**

- Launchpoint (`launchpoint_id`, text, required): The inspector launchpoint (one configured inspection). Pick one, or give its ID from an earlier step.

**Outputs**

- `launchpoint` (object): The launchpoint

**Example output**

```json
{
  "launchpoint": {
    "Agent": {
      "ID": 1511,
      "Name": "Contoso Agent"
    },
    "Alias": "Active Directory - Contoso",
    "CreatedOn": "2026-09-10T19:21:03.195Z",
    "Enabled": true,
    "Environment": {
      "ID": 18701,
      "Name": "Contoso",
      "ShortName": "CN"
    },
    "EnvironmentID": 18701,
    "FreqInterval": 1,
    "FreqType": "days",
    "ID": 18671,
    "Inspector": {
      "Alias": "Active Directory",
      "ID": 13,
      "InspectorCategory": "appservices",
      "Name": "active-directory-inspector"
    },
    "LastAdHocRun": "2026-11-20T19:21:03.195Z",
    "LastScheduledRun": "2026-11-30T19:21:03.195Z",
    "NextScheduledFor": "2026-12-01T19:21:03.195Z",
    "Status": "Active",
    "System": {
      "Description": "",
      "ID": 3454,
      "Name": "contoso.local"
    },
    "TotalAdHocRuns": 7,
    "TotalScheduledRuns": 249,
    "UpdatedOn": "2026-09-10T19:21:03.195Z",
    "Visible": true
  }
}
```

### Get metric values

Get each system's value for one or more metrics, from its latest inspection, optionally for one environment.

**Inputs**

- Metrics (`metric_ids`, list, required): The metrics' IDs or UUIDs, from 'List metrics'.
- Environment (`environment_id`, text): Only this environment's. Leave empty for every environment.
- Include hidden metrics (`include_hidden`, true/false): Also evaluate metrics whose display is turned off.
- Page (`page`, number): Which page to get, starting at 1. Defaults to the first. At least 1.
- Page size (`page_size`, number): How many to get per page, 1 to 2000. Defaults to 50. From 1 to 2000.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): True when there is another page; run again with the next page number
- `page` (number): The page number returned
- `values` (list): One value per system and metric

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "page": 1,
  "values": [
    {
      "EnvironmentID": 18701,
      "EnvironmentName": "Contoso",
      "FriendlyName": "Active Directory - Contoso",
      "InspectorName": "active-directory-inspector",
      "MetricID": 1,
      "MetricName": "Active Directory: Count of Joined Computers",
      "MetricUUID": "aa4eef4d-3dc5-4b3d-9d8a-00c1d9b68065",
      "SystemID": 3454,
      "TimelineDate": "2026-11-30T14:52:57.022Z",
      "TimelineID": 1294715,
      "Value": 42
    }
  ]
}
```

### Get system data

Get a system and the raw data (its dataprint) from its latest inspection.

**Inputs**

- System ID (`system_id`, text, required): The system's ID, from 'List systems' or an earlier step.

**Outputs**

- `raw` (object): Everything the latest inspection found, as Liongard keeps it
- `system` (object): The system

**Example output**

```json
{
  "raw": {
    "Computers": [
      {
        "Name": "CN-DC01"
      }
    ]
  },
  "system": {
    "CreatedOn": "2026/09/10 19:21:03",
    "Description": "Contoso's domain",
    "Environment": {
      "ID": 18701,
      "Name": "Contoso",
      "ShortName": "CN"
    },
    "ID": 3454,
    "Inspector": {
      "Alias": "Active Directory",
      "ID": 13,
      "InspectorCategory": "appservices",
      "Name": "active-directory-inspector"
    },
    "LastVerifyTime": "2026/11/30 19:21:03",
    "Launchpoint": {
      "Alias": "Active Directory - Contoso",
      "ID": 18671,
      "Status": "Active"
    },
    "Name": "contoso.local",
    "Status": 1,
    "Tags": "",
    "UpdatedOn": "2026/11/30 19:21:03",
    "Visible": true
  }
}
```

### Get webhook

Get one webhook with its address, state and health.

**Inputs**

- Webhook (`webhook_id`, text, required): The webhook. Pick one, or give its ID from an earlier step.

**Outputs**

- `webhook` (object): The webhook

**Example output**

```json
{
  "webhook": {
    "Active": true,
    "CreatedOn": "2026-11-30T05:00:00.000Z",
    "Description": "Alerts to our ticketing",
    "Events": [
      "alert.created"
    ],
    "Health": "200 OK",
    "ID": "2371b0fa-10cd-49ea-a97b-c1d1e2680777",
    "Url": "https://example.com/liongard-alerts"
  }
}
```

### List agents

List the Liongard agents, with their host, platform, version and last check-in, for every environment or one.

**Inputs**

- Environment (`environment_id`, text): Only this environment's. Leave empty for every environment.

**Outputs**

- `agents` (list): The agents
- `count` (number): How many

**Example output**

```json
{
  "agents": [
    {
      "CreatedOn": "2026-09-10T19:21:03.195Z",
      "Data": {
        "AgentVersion": "2.0.2",
        "JobsRunning": 0,
        "MaxJobsAllowed": 5
      },
      "Description": "Main agent",
      "Environment": {
        "ID": 18701,
        "Name": "Contoso",
        "ShortName": "CN"
      },
      "Hostname": "CN-DC01",
      "ID": 1511,
      "IP": "203.0.113.10",
      "LastHeartbeat": "2026-11-30T09:00:00.000Z",
      "Managed": false,
      "Name": "Contoso Agent",
      "Platform": "windows",
      "SAAS": false,
      "Status": 1,
      "Suspended": false,
      "Type": "customer-on-prem",
      "UpdatedOn": "2026-11-30T09:00:00.000Z"
    }
  ],
  "count": 1
}
```

### List alerts

List the alerts Liongard raised, newest first, with their priority, status and rule, for every environment or one.

**Inputs**

- Environment (`environment_id`, text): Only this environment's. Leave empty for every environment.
- Most to return (`limit`, number): Return at most this many, newest first. Leave empty for all. From 1 to 2000.

**Outputs**

- `alerts` (list): The alerts
- `count` (number): How many

**Example output**

```json
{
  "alerts": [
    {
      "Category": "",
      "CommonID": "T20261130.00001",
      "CreatedOn": "2026-11-30T19:21:03.195Z",
      "Description": "A new domain admin was added.",
      "DueDate": "",
      "Environment": {
        "ID": 18701,
        "Name": "Contoso",
        "ShortName": "CN"
      },
      "ID": 7586,
      "Inspector": {
        "Alias": "Active Directory",
        "ID": 13,
        "InspectorCategory": "appservices",
        "Name": "active-directory-inspector"
      },
      "Launchpoint": {
        "Alias": "Active Directory - Contoso",
        "ID": 18671,
        "Status": "Active"
      },
      "Name": "Admin account added",
      "Owner": "",
      "Priority": {
        "ID": 67,
        "Name": "Critical"
      },
      "Rule": {
        "ID": 1219,
        "Name": "New domain admin",
        "Title": "Admin account added"
      },
      "Source": "Roar",
      "StartDate": "",
      "Status": {
        "ID": 14,
        "Name": "New"
      },
      "Timeline": {
        "Alerts": 1,
        "ChangeDetections": 3,
        "CreatedOn": "2026/11/30 19:21:03",
        "ID": 1294715,
        "Status": "Completed"
      },
      "UpdatedOn": "2026-11-30T19:21:03.195Z",
      "Visible": true
    }
  ],
  "count": 1
}
```

### List change detections

List the changes Liongard detected between inspections, newest first, optionally for one environment or system and a time range.

**Inputs**

- Environment (`environment_id`, text): Only this environment's. Leave empty for every environment.
- System ID (`system_id`, text): Only changes to this system.
- Detected on or after (`since`, date and time): Only changes detected at or after this time.
- Detected on or before (`until`, date and time): Only changes detected at or before this time.
- Most to return (`limit`, number): Return at most this many, newest first. Leave empty for all. From 1 to 2000.

**Outputs**

- `count` (number): How many
- `detections` (list): The change detections

**Example output**

```json
{
  "count": 1,
  "detections": [
    {
      "Category": {
        "ID": 1,
        "Name": "Users"
      },
      "CreatedOn": "2026/11/30 19:21:03",
      "Description": "",
      "Detection": "",
      "Environment": {
        "ID": 18701,
        "Name": "Contoso",
        "ShortName": "CN"
      },
      "ID": 68998,
      "Inspector": {
        "Alias": "Active Directory",
        "ID": 13,
        "InspectorCategory": "appservices",
        "Name": "active-directory-inspector"
      },
      "Keywords": "",
      "Name": "Domain Admins membership changed",
      "Patch": [
        {
          "added": true,
          "count": 1,
          "removed": false,
          "value": "jdoe"
        }
      ],
      "System": {
        "Description": "",
        "ID": 3454,
        "Name": "contoso.local"
      },
      "Timeline": {
        "Alerts": 1,
        "ChangeDetections": 3,
        "CreatedOn": "2026/11/30 19:21:03",
        "ID": 1294715,
        "Status": "Completed"
      },
      "TimelineID": 1294715
    }
  ]
}
```

### List environments

List the environments (your customers) in Liongard, one page at a time.

**Inputs**

- Page (`page`, number): Which page to get, starting at 1. Defaults to the first. At least 1.
- Page size (`page_size`, number): How many to get per page, 1 to 2000. Defaults to 50. From 1 to 2000.

**Outputs**

- `count` (number): How many on this page
- `environments` (list): The environments
- `has_more` (true/false): True when there is another page; run again with the next page number
- `page` (number): The page number returned

**Example output**

```json
{
  "count": 1,
  "environments": [
    {
      "AgentsCount": 1,
      "CreatedBy": {
        "FirstName": "Alex",
        "FullName": "Alex Weber",
        "ID": 1234,
        "LastName": "Weber"
      },
      "CreatedOn": "2026-09-10T19:21:03.195Z",
      "EndpointInspectorCount": 0,
      "ID": 18701,
      "Name": "Contoso",
      "ServiceProviderID": 1,
      "Status": 1,
      "Tier": {
        "AssociatedInspectors": 14,
        "CanDownGrade": true,
        "Type": "Core"
      },
      "UpdatedBy": {
        "FirstName": "Alex",
        "FullName": "Alex Weber",
        "ID": 1234,
        "LastName": "Weber"
      },
      "UpdatedOn": "2026-09-10T19:21:03.195Z",
      "Visible": true
    }
  ],
  "has_more": false,
  "page": 1
}
```

### List inspection runs

List inspection runs from the timeline, with their status, exit message and how many changes and alerts each found, one page at a time.

**Inputs**

- System ID (`system_id`, text): Only runs that inspected this system.
- Launchpoint (`launchpoint_id`, text): Only runs of this launchpoint.
- Latest run only (`latest_only`, true/false): Only each launchpoint's latest run.
- Sort by (`sort_by`, text): What to sort by. Defaults to run ID. One of: `ID` (Run ID), `CreatedOn` (Created), `SystemID` (System ID), `LaunchpointID` (Inspector launchpoint ID).
- Order (`direction`, text): Defaults to newest or highest first. One of: `DESC` (Newest or highest first), `ASC` (Oldest or lowest first).
- Page (`page`, number): Which page to get, starting at 1. Defaults to the first. At least 1.
- Page size (`page_size`, number): How many to get per page, 1 to 2000. Defaults to 50. From 1 to 2000.

**Outputs**

- `count` (number): How many on this page
- `entries` (list): The inspection runs
- `has_more` (true/false): True when there is another page; run again with the next page number
- `page` (number): The page number returned

**Example output**

```json
{
  "count": 1,
  "entries": [
    {
      "AdHoc": false,
      "Alerts": 0,
      "ChangeDetections": 1,
      "CreatedOn": "2026-11-30T21:46:31.185+00:00",
      "EnvironmentID": 18701,
      "ExitCode": 0,
      "ExitMessage": "",
      "FinishedAt": "2026-11-30T21:45:44.286+00:00",
      "ID": 3054681,
      "Latest": true,
      "LaunchpointID": 18671,
      "PayloadSizeBytes": 232541,
      "RunningAt": "2026-11-30T21:45:42.832+00:00",
      "ScheduledAt": "2026-11-30T21:46:31.185+00:00",
      "ServiceProviderID": 78,
      "Status": "Completed",
      "SystemDetailID": 613300,
      "SystemID": 3454,
      "UpdatedOn": "2026-11-30T21:46:48.989+00:00"
    }
  ],
  "has_more": false,
  "page": 1
}
```

### List launchpoints

List the inspector launchpoints (each configured inspection) with their schedule and status, for every environment or one, and every inspector or one.

**Inputs**

- Environment (`environment_id`, text): Only this environment's. Leave empty for every environment.
- Inspector (`inspector_id`, text): Only this inspector type's, such as Active Directory.

**Outputs**

- `count` (number): How many
- `launchpoints` (list): The launchpoints

**Example output**

```json
{
  "count": 1,
  "launchpoints": [
    {
      "Agent": {
        "ID": 1511,
        "Name": "Contoso Agent"
      },
      "Alias": "Active Directory - Contoso",
      "CreatedOn": "2026-09-10T19:21:03.195Z",
      "Enabled": true,
      "Environment": {
        "ID": 18701,
        "Name": "Contoso",
        "ShortName": "CN"
      },
      "EnvironmentID": 18701,
      "FreqInterval": 1,
      "FreqType": "days",
      "ID": 18671,
      "Inspector": {
        "Alias": "Active Directory",
        "ID": 13,
        "InspectorCategory": "appservices",
        "Name": "active-directory-inspector"
      },
      "LastAdHocRun": "2026-11-20T19:21:03.195Z",
      "LastScheduledRun": "2026-11-30T19:21:03.195Z",
      "NextScheduledFor": "2026-12-01T19:21:03.195Z",
      "Status": "Active",
      "System": {
        "Description": "",
        "ID": 3454,
        "Name": "contoso.local"
      },
      "TotalAdHocRuns": 7,
      "TotalScheduledRuns": 249,
      "UpdatedOn": "2026-09-10T19:21:03.195Z",
      "Visible": true
    }
  ]
}
```

### List metrics

List Liongard's metrics and your own, with their IDs and UUIDs, one page at a time.

**Inputs**

- Page (`page`, number): Which page to get, starting at 1. Defaults to the first. At least 1.
- Page size (`page_size`, number): How many to get per page, 1 to 2000. Defaults to 50. From 1 to 2000.

**Outputs**

- `count` (number): How many on this page
- `has_more` (true/false): True when there is another page; run again with the next page number
- `metrics` (list): The metrics
- `page` (number): The page number returned

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "metrics": [
    {
      "ChangesEnabled": true,
      "CreatedOn": "2026-02-01T18:31:22.896Z",
      "Description": "Number of computers joined to this Active Directory domain.",
      "Enabled": true,
      "EnvironmentID": 0,
      "ID": 1,
      "InspectorID": 13,
      "MetricDisplay": true,
      "Name": "Active Directory: Count of Joined Computers",
      "UCK": "Active Directory: Count of Joined Computers",
      "UUID": "aa4eef4d-3dc5-4b3d-9d8a-00c1d9b68065",
      "UpdatedOn": "2026-08-23T16:10:44.000Z",
      "Visible": true
    }
  ],
  "page": 1
}
```

### List systems

List the systems Liongard has discovered (domains, firewalls, tenants and so on), for every environment or one, narrowed by inspector or launchpoint.

**Inputs**

- Environment (`environment_id`, text): Only this environment's. Leave empty for every environment.
- Inspector (`inspector_id`, text): Only this inspector type's, such as Active Directory.
- Launchpoint (`launchpoint_id`, text): Only the systems this launchpoint inspects.

**Outputs**

- `count` (number): How many
- `systems` (list): The systems

**Example output**

```json
{
  "count": 1,
  "systems": [
    {
      "CreatedOn": "2026/09/10 19:21:03",
      "Description": "Contoso's domain",
      "Environment": {
        "ID": 18701,
        "Name": "Contoso",
        "ShortName": "CN"
      },
      "ID": 3454,
      "Inspector": {
        "Alias": "Active Directory",
        "ID": 13,
        "InspectorCategory": "appservices",
        "Name": "active-directory-inspector"
      },
      "LastVerifyTime": "2026/11/30 19:21:03",
      "Launchpoint": {
        "Alias": "Active Directory - Contoso",
        "ID": 18671,
        "Status": "Active"
      },
      "Name": "contoso.local",
      "Status": 1,
      "Tags": "",
      "UpdatedOn": "2026/11/30 19:21:03",
      "Visible": true
    }
  ]
}
```

### List webhooks

List the webhooks Liongard sends new alerts to, with their address, state and health.

**Inputs**: None.

**Outputs**

- `count` (number): How many
- `webhooks` (list): The webhooks

**Example output**

```json
{
  "count": 1,
  "webhooks": [
    {
      "Active": true,
      "CreatedOn": "2026-11-30T05:00:00.000Z",
      "Description": "Alerts to our ticketing",
      "Events": [
        "alert.created"
      ],
      "Health": "200 OK",
      "ID": "2371b0fa-10cd-49ea-a97b-c1d1e2680777",
      "Url": "https://example.com/liongard-alerts"
    }
  ]
}
```

### Run inspection now

Queue an inspection on a launchpoint now, outside its schedule. Its result shows on the timeline once the agent has run it.

**Inputs**

- Launchpoint (`launchpoint_id`, text, required): The inspector launchpoint (one configured inspection). Pick one, or give its ID from an earlier step.

**Outputs**

- `launchpoint_id` (number): The launchpoint run
- `liongard_reply` (text): The number Liongard answered with
- `queued` (true/false): Always true once queued

**Example output**

```json
{
  "launchpoint_id": 18671,
  "liongard_reply": "14822",
  "queued": true
}
```

### Update environment

Change an environment's name, description, short name or tier. Fields left empty are not sent.

**Inputs**

- Environment (`environment_id`, text, required): The environment (customer). Pick one, or give its ID from an earlier step.
- Name (`name`, text): The environment's name, usually the customer's. Leave empty to keep it.
- Description (`description`, text): A description of the environment. Leave empty to keep it.
- Short name (`short_name`, text): A short name or code for the environment, such as CN. Leave empty to keep it.
- Tier (`tier`, text): The environment's Liongard tier, which decides which inspectors it can use. Leave empty to keep it. One of: `Core`, `Essentials`.

**Outputs**

- `environment` (object): The environment

**Example output**

```json
{
  "environment": {
    "AgentsCount": 1,
    "CreatedBy": {
      "FirstName": "Alex",
      "FullName": "Alex Weber",
      "ID": 1234,
      "LastName": "Weber"
    },
    "CreatedOn": "2026-09-10T19:21:03.195Z",
    "EndpointInspectorCount": 0,
    "ID": 18701,
    "Name": "Contoso",
    "ServiceProviderID": 1,
    "Status": 1,
    "Tier": {
      "AssociatedInspectors": 14,
      "CanDownGrade": true,
      "Type": "Core"
    },
    "UpdatedBy": {
      "FirstName": "Alex",
      "FullName": "Alex Weber",
      "ID": 1234,
      "LastName": "Weber"
    },
    "UpdatedOn": "2026-09-10T19:21:03.195Z",
    "Visible": true
  }
}
```

### Update webhook

Change a webhook's address or description, or turn it on or off. Fields left empty are not changed.

**Inputs**

- Webhook (`webhook_id`, text, required): The webhook. Pick one, or give its ID from an earlier step.
- Address (`url`, text): A new https:// address. Leave empty to keep it.
- Description (`description`, text): A new description. Leave empty to keep it.
- On (`active`, true/false): On sends alerts to the webhook; off stops it.

**Outputs**

- `webhook` (object): The webhook

**Example output**

```json
{
  "webhook": {
    "Active": false,
    "CreatedOn": "2026-11-30T05:00:00.000Z",
    "Description": "Alerts to our ticketing",
    "Events": [
      "alert.created"
    ],
    "Health": "200 OK",
    "ID": "2371b0fa-10cd-49ea-a97b-c1d1e2680777",
    "Url": "https://example.com/liongard-alerts"
  }
}
```
