# Lansweeper

> Work with your Lansweeper IT asset inventory from workflows: search and edit assets, list the software on them, find vulnerabilities, manage custom fields and export reports and assets. Start a workflow when a new device is found, an asset changes or goes quiet, a warranty is ending, a vulnerability or a piece of software appears, a scanning server goes down or a report finishes.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/lansweeper

## Actions

### Create custom field

Add a custom field to the site's assets, such as an owner or a cost center.

**Inputs**

- Name (`name`, text, required): The custom field's name.
- Kind (`field_type`, text, required): What the field holds. One of: `INPUT` (Text (one line)), `TEXTAREA` (Text (several lines)), `SELECT` (Choice from a list), `DATE`, `TIME`, `CURRENCY` (Amount of money), `HYPERLINK` (Link), `NUMERIC` (Number).
- Choices (`options`, list): The choices to offer. Only when Kind is Choice from a list.
- Currency (`currency`, text): The currency of the amount. Defaults to US dollar. Only when Kind is Amount of money. One of: `USD` (US dollar), `EUR` (Euro), `JPY` (Japanese yen), `CHF` (Swiss franc). Default: `USD`.
- Link text (`link_tag`, text): The words the link shows. Only when Kind is Link.
- Lowest number (`min_value`, number): The lowest number the field takes. Only when Kind is Number.
- Highest number (`max_value`, number): The highest number the field takes. Only when Kind is Number.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `custom_field` (object): The new custom field

**Example output**

```json
{
  "custom_field": {
    "key": "8d6a2ea7-0b9d-4847-b2d2-a300956c8d1e",
    "name": "Asset owner",
    "props": {
      "currencyType": "",
      "linkTag": "",
      "maxNumericValue": 0,
      "minNumericValue": 0,
      "options": [
        "IT",
        "Finance"
      ]
    },
    "type": "SELECT"
  }
}
```

### Delete assets

Delete one or more assets from the site, such as devices that were retired. This can't be undone.

**Inputs**

- Asset keys (`asset_keys`, list, required): The keys of the assets to delete, from 'Search assets'.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `count` (number): How many
- `deleted_keys` (list): The keys of the assets deleted
- `result` (true/false): Lansweeper's answer: true once they are deleted

**Example output**

```json
{
  "count": 1,
  "deleted_keys": [
    "MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ=="
  ],
  "result": true
}
```

### Delete custom field

Delete a custom field, and its value on every asset. This can't be undone.

**Inputs**

- Custom field (`field_key`, text, required): The custom field, chosen from the list or its key.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `deleted_key` (text): The key of the custom field deleted
- `result` (true/false): Lansweeper's answer: true once it is deleted

**Example output**

```json
{
  "deleted_key": "8d6a2ea7-0b9d-4847-b2d2-a300956c8d1e",
  "result": true
}
```

### Edit asset

Change an asset's name, description, IP address, asset details or custom fields. Fields left empty stay as they are.

**Inputs**

- Asset key (`asset_key`, text, required): The asset's key, from 'Search assets' or a trigger.
- Name (`name`, text): The asset's new name.
- Description (`description`, text): The asset's new description.
- IP address (`ip_address`, text): The asset's IP address.
- Manufacturer (`manufacturer`, text): The asset's manufacturer.
- Model (`model`, text): The asset's model.
- Serial number (`serial_number`, text): The asset's serial number.
- Location (`location`, text): Where the asset is.
- Department (`department`, text): The department the asset belongs to.
- Contact (`contact`, text): The asset's contact person.
- Branch office (`branch_office`, text): The branch office the asset belongs to.
- Building (`building`, text): The building the asset is in.
- Barcode (`barcode`, text): The asset's barcode.
- Notes (`notes`, text): Notes about the asset.
- Purchase date (`purchase_date`, date): When the asset was bought.
- Warranty end date (`warranty_date`, date): When the asset's warranty ends.
- Custom fields (`custom_fields`, object): Values for the site's custom fields: each custom field's key, from 'List custom fields', and its value.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `asset` (object): The changed fields as Lansweeper now has them
- `asset_key` (text): The asset that was changed

**Example output**

```json
{
  "asset": {
    "assetBasicInfo": {
      "description": "Finance laptop",
      "ipAddress": "10.0.4.42",
      "name": "LAPTOP-042"
    },
    "assetCustom": {
      "barcode": "BC-00042",
      "branchOffice": "Head office",
      "building": "North",
      "comment": "Issued to the finance team",
      "contact": "IT service desk",
      "department": "Finance",
      "location": "Floor 3",
      "manufacturer": "Dell Inc.",
      "model": "Latitude 7440",
      "purchaseDate": "2024-02-20",
      "serialNumber": "DEMOSERIAL1",
      "warrantyDate": "2027-03-01"
    }
  },
  "asset_key": "MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ=="
}
```

### Export assets

Start exporting every asset of a site to a file, such as for a nightly copy to a CMDB. Follow it with 'Get asset export' for the download link.

**Inputs**

- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `export_id` (text): The export's ID, for 'Get asset export'

**Example output**

```json
{
  "export_id": "61a9efb22d98215bc05b8987"
}
```

### Export report

Start exporting a report's full results to a file. Follow it with 'Get report export' for the download link.

**Inputs**

- Report (`report_id`, text, required): The report, chosen from the list or its ID.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `attempts_left` (number): How many more exports of it Lansweeper allows today
- `export_id` (text): The export's ID, for 'Get report export'
- `report_id` (text): The report

**Example output**

```json
{
  "attempts_left": 4,
  "export_id": "631749918485e555e57f036e",
  "report_id": "60c1b4d5118c2487f722b4d4"
}
```

### Get asset

Read an asset: what scanning found, its operating system and its asset details such as serial number, warranty and location.

**Inputs**

- Asset key (`asset_key`, text, required): The asset's key, from 'Search assets' or a trigger.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `asset` (object): The asset

**Example output**

```json
{
  "asset": {
    "assetBasicInfo": {
      "description": "Finance laptop",
      "domain": "EXAMPLE",
      "firstSeen": "2024-03-01T09:12:00.000Z",
      "fqdn": "laptop-042.example.com",
      "ipAddress": "10.0.4.42",
      "lastChanged": "2026-11-16T14:20:00.000Z",
      "lastSeen": "2026-11-17T08:00:00.000Z",
      "lastTried": "2026-11-17T08:00:00.000Z",
      "mac": "00:1A:2B:3C:4D:5E",
      "name": "LAPTOP-042",
      "type": "Windows",
      "upTime": 86400,
      "userDomain": "EXAMPLE",
      "userName": "jdoe"
    },
    "assetCustom": {
      "barcode": "BC-00042",
      "branchOffice": "Head office",
      "building": "North",
      "comment": "Issued to the finance team",
      "contact": "IT service desk",
      "department": "Finance",
      "dnsName": "laptop-042",
      "firmwareVersion": "1.12.0",
      "location": "Floor 3",
      "manufacturer": "Dell Inc.",
      "model": "Latitude 7440",
      "purchaseDate": "2024-02-20T00:00:00.000Z",
      "serialNumber": "DEMOSERIAL1",
      "sku": "0C1F",
      "stateName": "Active",
      "warrantyDate": "2027-03-01T00:00:00.000Z"
    },
    "key": "MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ==",
    "operatingSystem": {
      "caption": "Microsoft Windows 11 Pro",
      "productType": "Workstation"
    },
    "url": "https://app.lansweeper.com/head-office/asset/MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ==/summary"
  }
}
```

### Get asset export

Check an asset export and get its download link once it is ready. Lansweeper allows one check every 30 seconds.

**Inputs**

- Export ID (`export_id`, text, required): The export_id 'Export assets' gave.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `export_id` (text): The export
- `progress` (text): How far it is, such as 51%
- `ready` (true/false): True once the file can be downloaded
- `url` (text): Where to download the file; empty until it is ready

**Example output**

```json
{
  "export_id": "61a9efb22d98215bc05b8987",
  "progress": "100%",
  "ready": true,
  "url": "https://example.com/asset-export.zip"
}
```

### Get report export

Check a report export and get its download link once it is ready.

**Inputs**

- Report (`report_id`, text, required): The report, chosen from the list or its ID.
- Export ID (`export_id`, text, required): The export_id 'Export report' gave.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `completed_at` (text): When it was ready
- `export_id` (text): The export
- `ready` (true/false): True once the file can be downloaded
- `report_id` (text): The report
- `requested_at` (text): When it was asked for
- `status` (text): Its status, such as completed
- `url` (text): Where to download the file; empty until it is ready

**Example output**

```json
{
  "completed_at": "2026-11-17T13:22:30.016Z",
  "export_id": "631749918485e555e57f036e",
  "ready": true,
  "report_id": "60c1b4d5118c2487f722b4d4",
  "requested_at": "2026-11-17T13:22:25.454Z",
  "status": "completed",
  "url": "https://example.com/report-export.csv"
}
```

### Get report status

Read a report's last run: whether it finished, when, and how many rows it found.

**Inputs**

- Report (`report_id`, text, required): The report, chosen from the list or its ID.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `currentResultCount` (number): How many rows its last run found
- `executionFinishedAt` (text): When its last run finished
- `isPaused` (true/false): True if its schedule is paused
- `nextExecutionAt` (text): When it runs next
- `progress` (number): How far its run is, out of 100
- `report_id` (text): The report
- `status` (text): Its status, such as completed; empty if it hasn't run

**Example output**

```json
{
  "currentResultCount": 300,
  "executionFinishedAt": "2026-11-17T07:48:53.994Z",
  "isPaused": false,
  "nextExecutionAt": "",
  "progress": 100,
  "report_id": "60c1b4d5118c2487f722b4d4",
  "status": "completed"
}
```

### Get software

Read one piece of software: how many assets have it, by operating system and version.

**Inputs**

- Software name (`software`, text, required): The software's name exactly as 'List software' gives it.
- Publisher (`publisher`, text, required): Its publisher exactly as 'List software' gives it.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `software` (object): The software

**Example output**

```json
{
  "software": {
    "earliestInstallDate": "2021-05-04T00:00:00.000Z",
    "id": "vk+LRnGgyhuNmBPnppPVtlqjrf3RQI3t0NoX996MIDY=",
    "operatingSystemsDetails": [
      {
        "earliestInstallDate": "2021-05-04T00:00:00.000Z",
        "operatingSystem": "Windows",
        "totalInstallations": 240,
        "versionsDetails": [
          {
            "earliestInstallDate": "2026-10-30T00:00:00.000Z",
            "totalInstallations": 240,
            "version": "131.0.6778.86"
          }
        ]
      }
    ],
    "publisher": "Google LLC",
    "software": "Google Chrome",
    "totalInstallations": 240,
    "totalVersions": 1
  }
}
```

### Get vulnerability

Read a vulnerability by its CVE ID: its risk score, severity, CVSS details, whether it is exploited and links about it.

**Inputs**

- CVE ID (`cve`, text, required): The vulnerability's CVE ID, such as CVE-2024-1283.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `vulnerability` (object): The vulnerability

**Example output**

```json
{
  "vulnerability": {
    "attackComplexity": "Low",
    "attackVector": "Network",
    "availabilityImpact": "HIGH",
    "baseScore": 9.8,
    "cause": {
      "affectedProduct": [
        "Chrome"
      ],
      "category": [
        "Browser"
      ],
      "vendor": [
        "Google"
      ]
    },
    "confidentiality": "HIGH",
    "cve": "CVE-2024-1283",
    "exploitability": {
      "CISA": {
        "dueDate": "",
        "exploited": "Unknown",
        "knownRansomwareCampaignUse": "Unknown"
      },
      "exploitable": "Known",
      "exploitedInTheWild": "Unknown"
    },
    "integrity": "HIGH",
    "isActive": true,
    "patchable": true,
    "privilegeRequired": "NONE",
    "publishedOn": "2024-02-07 00:15:56",
    "references": [
      {
        "url": "https://issues.chromium.org/issues/41494860"
      }
    ],
    "riskScore": 9.8,
    "scope": "UNCHANGED",
    "severity": "Critical",
    "source": "Chrome",
    "updatedOn": "2024-02-14 18:19:42",
    "userInteraction": "NONE",
    "weaknessEnumeration": [
      "CWE-787"
    ]
  }
}
```

### List asset states

List the states an asset can be in, such as Active, Broken or Stolen.

**Inputs**

- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `count` (number): How many
- `states` (list): The asset states

**Example output**

```json
{
  "count": 2,
  "states": [
    {
      "assetStateKey": "MS1TdGF0ZS02ZGQy",
      "name": "Active"
    },
    {
      "assetStateKey": "Mi1TdGF0ZS02ZGQy",
      "name": "Broken"
    }
  ]
}
```

### List asset types

List the asset types a site uses, such as Windows, Printer or iPhone.

**Inputs**

- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `asset_types` (list): Every asset type, such as Windows, Printer or iPhone
- `count` (number): How many

**Example output**

```json
{
  "asset_types": [
    "Linux",
    "Printer",
    "Windows"
  ],
  "count": 3
}
```

### List assets with software

List the assets that have a piece of software installed, such as to find every machine running an old version.

**Inputs**

- Software ID (`software_id`, text, required): The software's ID, from 'List software' or 'Get software'.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.
- How many (`limit`, number): The most to list. Defaults to 50. From 1 to 500.
- Page cursor (`cursor`, text): To read the next page, the next_cursor an earlier run of this step gave. Leave empty for the first page.

**Outputs**

- `assets` (list): The assets
- `count` (number): How many are on this page
- `has_more` (true/false): True if there are more after this page
- `next_cursor` (text): Give this to the step's Page cursor to read the next page; empty on the last page
- `software_id` (text): The software asked about
- `total` (number): How many match in all

**Example output**

```json
{
  "assets": [
    {
      "assetBasicInfo": {
        "description": "Finance laptop",
        "domain": "EXAMPLE",
        "firstSeen": "2024-03-01T09:12:00.000Z",
        "fqdn": "laptop-042.example.com",
        "ipAddress": "10.0.4.42",
        "lastChanged": "2026-11-16T14:20:00.000Z",
        "lastSeen": "2026-11-17T08:00:00.000Z",
        "mac": "00:1A:2B:3C:4D:5E",
        "name": "LAPTOP-042",
        "type": "Windows",
        "userDomain": "EXAMPLE",
        "userName": "jdoe"
      },
      "assetCustom": {
        "department": "Finance",
        "location": "Floor 3",
        "manufacturer": "Dell Inc.",
        "model": "Latitude 7440",
        "serialNumber": "DEMOSERIAL1",
        "stateName": "Active",
        "warrantyDate": "2027-03-01T00:00:00.000Z"
      },
      "key": "MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ==",
      "operatingSystem": {
        "caption": "Microsoft Windows 11 Pro"
      },
      "url": "https://app.lansweeper.com/head-office/asset/MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ==/summary"
    }
  ],
  "count": 1,
  "has_more": false,
  "next_cursor": "",
  "software_id": "dEF0Dc+Svm0AOg8Qm7fReEy3ln8hPIJqB6PZwIOt8Cs=",
  "total": 1
}
```

### List assets without software

List the assets that don't have a piece of software installed, such as machines missing antivirus.

**Inputs**

- Software ID (`software_id`, text, required): The software's ID, from 'List software' or 'Get software'.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.
- How many (`limit`, number): The most to list. Defaults to 50. From 1 to 500.
- Page cursor (`cursor`, text): To read the next page, the next_cursor an earlier run of this step gave. Leave empty for the first page.

**Outputs**

- `assets` (list): The assets
- `count` (number): How many are on this page
- `has_more` (true/false): True if there are more after this page
- `next_cursor` (text): Give this to the step's Page cursor to read the next page; empty on the last page
- `software_id` (text): The software asked about
- `total` (number): How many match in all

**Example output**

```json
{
  "assets": [
    {
      "assetBasicInfo": {
        "description": "Finance laptop",
        "domain": "EXAMPLE",
        "firstSeen": "2024-03-01T09:12:00.000Z",
        "fqdn": "laptop-042.example.com",
        "ipAddress": "10.0.4.42",
        "lastChanged": "2026-11-16T14:20:00.000Z",
        "lastSeen": "2026-11-17T08:00:00.000Z",
        "mac": "00:1A:2B:3C:4D:5E",
        "name": "LAPTOP-042",
        "type": "Windows",
        "userDomain": "EXAMPLE",
        "userName": "jdoe"
      },
      "assetCustom": {
        "department": "Finance",
        "location": "Floor 3",
        "manufacturer": "Dell Inc.",
        "model": "Latitude 7440",
        "serialNumber": "DEMOSERIAL1",
        "stateName": "Active",
        "warrantyDate": "2027-03-01T00:00:00.000Z"
      },
      "key": "MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ==",
      "operatingSystem": {
        "caption": "Microsoft Windows 11 Pro"
      },
      "url": "https://app.lansweeper.com/head-office/asset/MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ==/summary"
    }
  ],
  "count": 1,
  "has_more": false,
  "next_cursor": "",
  "software_id": "dEF0Dc+Svm0AOg8Qm7fReEy3ln8hPIJqB6PZwIOt8Cs=",
  "total": 1
}
```

### List custom fields

List a site's asset custom fields, with the key 'Edit asset' needs for each.

**Inputs**

- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `count` (number): How many
- `custom_fields` (list): The site's custom fields

**Example output**

```json
{
  "count": 1,
  "custom_fields": [
    {
      "key": "8d6a2ea7-0b9d-4847-b2d2-a300956c8d1e",
      "name": "Asset owner",
      "props": {
        "currencyType": "",
        "linkTag": "",
        "maxNumericValue": 0,
        "minNumericValue": 0,
        "options": [
          "IT",
          "Finance"
        ]
      },
      "type": "SELECT"
    }
  ]
}
```

### List installations

List a site's scanning installations, with whether each is up, when it last sent data and how many assets it scans.

**Inputs**

- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `count` (number): How many
- `installations` (list): The site's scanning installations

**Example output**

```json
{
  "count": 1,
  "installations": [
    {
      "description": "Head office scanning server",
      "fqdn": "scanner.example.com",
      "id": "eeeeeeee-dddd-cccc-bbbb-aaaaaaaaaaaa",
      "installationDate": "2022-04-05T16:12:59.338Z",
      "lastAvailable": "2026-11-17T10:37:06.445Z",
      "linkStatus": "Linked",
      "name": "Main scanner",
      "siteId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1",
      "syncServerStatus": "Up",
      "totalAssets": 1500,
      "type": "IT",
      "unlinkedBy": "",
      "unlinkedOn": "",
      "version": "11.4.1"
    }
  ]
}
```

### List reports

List the reports the token can read, with their categories.

**Inputs**

- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `count` (number): How many
- `reports` (list): The reports this token may read

**Example output**

```json
{
  "count": 1,
  "reports": [
    {
      "category": "hardware",
      "description": "Assets that haven't been scanned for a month.",
      "id": "60c1b4d5118c2487f722b4d4",
      "isDefault": true,
      "name": "Assets not seen in 30 days",
      "subcategory": "uncategorized"
    }
  ]
}
```

### List site users

List the people with access to a Lansweeper site, with their status and when they last used it.

**Inputs**

- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `accounts` (list): The people with access to the site
- `count` (number): How many

**Example output**

```json
{
  "accounts": [
    {
      "createdAt": "2020-02-18T14:15:16.518Z",
      "email": "jane.doe@example.com",
      "joinedAt": "2021-11-25T08:53:39.052Z",
      "lastTimeAccess": "2026-11-01T07:35:35.237Z",
      "status": "enabled",
      "username": "jane.doe"
    }
  ],
  "count": 1
}
```

### List sites

List the Lansweeper sites the token can read, with their IDs, which also checks the connected account works.

**Inputs**: None.

**Outputs**

- `count` (number): How many
- `sites` (list): The sites the token may read

**Example output**

```json
{
  "count": 1,
  "sites": [
    {
      "id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeee1",
      "name": "Head office"
    }
  ]
}
```

### List software

List the software found across a site, by name, with its publisher, versions and how many assets have it.

**Inputs**

- Name contains (`search`, text): Only software whose name contains this.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.
- How many (`limit`, number): The most to list. Defaults to 50. From 1 to 500.
- Page cursor (`cursor`, text): To read the next page, the next_cursor an earlier run of this step gave. Leave empty for the first page.

**Outputs**

- `count` (number): How many are on this page
- `has_more` (true/false): True if there are more after this page
- `next_cursor` (text): Give this to the step's Page cursor to read the next page; empty on the last page
- `software` (list): The software found on the site
- `total` (number): How many match in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_cursor": "",
  "software": [
    {
      "assets": 240,
      "id": "dEF0Dc+Svm0AOg8Qm7fReEy3ln8hPIJqB6PZwIOt8Cs=",
      "installDate": "2021-05-04T00:00:00.000Z",
      "labeledPublisher": "Google",
      "labeledSoftware": "Chrome",
      "operatingSystems": [
        "Windows"
      ],
      "publisher": "Google LLC",
      "software": "Google Chrome",
      "versions": [
        "131.0.6778.86"
      ]
    }
  ],
  "total": 1
}
```

### List software on asset

List the software installed on an asset, with versions, publishers and install dates.

**Inputs**

- Asset key (`asset_key`, text, required): The asset's key, from 'Search assets' or a trigger.
- Sort by (`sort_by`, text): What to sort the software by. One of: `softwares.name` (Name), `softwares.publisher` (Publisher), `softwares.installDate` (Install date), `softwares.lastChanged` (Last changed). Default: `softwares.name`.
- Order (`direction`, text): Ascending or descending. One of: `ASC` (Ascending), `DESC` (Descending). Default: `ASC`.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.

**Outputs**

- `asset_key` (text): The asset
- `count` (number): How many are listed
- `software` (list): The software installed on it
- `total` (number): How many are installed

**Example output**

```json
{
  "asset_key": "MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ==",
  "count": 1,
  "software": [
    {
      "architecture": "64-bit",
      "currentUser": false,
      "installDate": "2026-10-30T00:00:00.000Z",
      "lastChanged": "2026-11-16T06:50:05.580Z",
      "msi": true,
      "name": "Google Chrome",
      "operatingSystem": "Windows",
      "publisher": "Google LLC",
      "release": "131",
      "version": "131.0.6778.86"
    }
  ],
  "total": 1
}
```

### List vulnerabilities

List the vulnerabilities (CVEs) Lansweeper found on a site's assets, by severity, risk score, date and whether they are known to be exploited.

**Inputs**

- Severity (`severity`, list): Only vulnerabilities this severe. One or more of: `Critical`, `High`, `Medium`, `Low`.
- CVE contains (`cve`, text): Only CVEs whose ID contains this.
- Known exploited only (`known_exploited`, true/false): Only vulnerabilities known to be exploited. Default: `false`.
- Lowest risk score (`min_risk_score`, number): Only vulnerabilities with at least this risk score, from 0 to 10. From 0 to 10.
- Published after (`published_after`, date and time): Only vulnerabilities published after this.
- Updated after (`updated_after`, date and time): Only vulnerabilities updated after this.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.
- How many (`limit`, number): The most to list. Defaults to 50. From 1 to 500.
- Page cursor (`cursor`, text): To read the next page, the next_cursor an earlier run of this step gave. Leave empty for the first page.

**Outputs**

- `count` (number): How many are on this page
- `has_more` (true/false): True if there are more after this page
- `next_cursor` (text): Give this to the step's Page cursor to read the next page; empty on the last page
- `total` (number): How many match in all
- `vulnerabilities` (list): The vulnerabilities

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_cursor": "",
  "total": 1,
  "vulnerabilities": [
    {
      "attackComplexity": "Low",
      "attackVector": "Network",
      "availabilityImpact": "HIGH",
      "baseScore": 9.8,
      "cause": {
        "affectedProduct": [
          "Chrome"
        ],
        "category": [
          "Browser"
        ],
        "vendor": [
          "Google"
        ]
      },
      "confidentiality": "HIGH",
      "cve": "CVE-2024-1283",
      "exploitability": {
        "CISA": {
          "dueDate": "",
          "exploited": "Unknown",
          "knownRansomwareCampaignUse": "Unknown"
        },
        "exploitable": "Known",
        "exploitedInTheWild": "Unknown"
      },
      "integrity": "HIGH",
      "isActive": true,
      "patchable": true,
      "privilegeRequired": "NONE",
      "publishedOn": "2024-02-07 00:15:56",
      "references": [
        {
          "url": "https://issues.chromium.org/issues/41494860"
        }
      ],
      "riskScore": 9.8,
      "scope": "UNCHANGED",
      "severity": "Critical",
      "source": "Chrome",
      "updatedOn": "2024-02-14 18:19:42",
      "userInteraction": "NONE",
      "weaknessEnumeration": [
        "CWE-787"
      ]
    }
  ]
}
```

### Search assets

Find assets (computers, servers, printers, network devices and more) by name, type, state, IP or MAC address, serial number and when they were first or last seen.

**Inputs**

- Name contains (`name`, text): Only assets whose name contains this.
- Asset type (`asset_type`, list): Only assets of these types, such as Windows or Printer.
- State (`state`, list): Only assets in these states, such as Active.
- IP address (`ip_address`, text): Only the asset with this IP address.
- MAC address (`mac_address`, text): Only the asset with this MAC address.
- Serial number (`serial_number`, text): Only the asset with this serial number.
- Last seen after (`seen_after`, date and time): Only assets scanned after this.
- Last seen before (`seen_before`, date and time): Only assets not scanned since this, such as to find stale ones.
- First seen after (`first_seen_after`, date and time): Only assets Lansweeper first found after this.
- Site (`site`, text): The Lansweeper site. Leave empty to use the only site the token can read.
- How many (`limit`, number): The most to list. Defaults to 50. From 1 to 500.
- Page cursor (`cursor`, text): To read the next page, the next_cursor an earlier run of this step gave. Leave empty for the first page.

**Outputs**

- `assets` (list): The assets
- `count` (number): How many are on this page
- `has_more` (true/false): True if there are more after this page
- `next_cursor` (text): Give this to the step's Page cursor to read the next page; empty on the last page
- `total` (number): How many match in all

**Example output**

```json
{
  "assets": [
    {
      "assetBasicInfo": {
        "description": "Finance laptop",
        "domain": "EXAMPLE",
        "firstSeen": "2024-03-01T09:12:00.000Z",
        "fqdn": "laptop-042.example.com",
        "ipAddress": "10.0.4.42",
        "lastChanged": "2026-11-16T14:20:00.000Z",
        "lastSeen": "2026-11-17T08:00:00.000Z",
        "mac": "00:1A:2B:3C:4D:5E",
        "name": "LAPTOP-042",
        "type": "Windows",
        "userDomain": "EXAMPLE",
        "userName": "jdoe"
      },
      "assetCustom": {
        "department": "Finance",
        "location": "Floor 3",
        "manufacturer": "Dell Inc.",
        "model": "Latitude 7440",
        "serialNumber": "DEMOSERIAL1",
        "stateName": "Active",
        "warrantyDate": "2027-03-01T00:00:00.000Z"
      },
      "key": "MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ==",
      "operatingSystem": {
        "caption": "Microsoft Windows 11 Pro"
      },
      "url": "https://app.lansweeper.com/head-office/asset/MTA1LUFzc2V0LWE1ODg5ZDQxLWFhYzktNDQ0YS1iZmEzLTI4NTdkYTc0NTUyYQ==/summary"
    }
  ],
  "count": 1,
  "has_more": false,
  "next_cursor": "",
  "total": 1
}
```
