# Pulseway

> Monitor and manage devices: notifications, organizations, sites and groups, and automation scripts, workflows and tasks.

App · 31 actions. Web page: https://docs.lodol.com/docs/integrations/pulseway

## Actions

### Create a group

Create a group in a site.

**Inputs**

- Name (`name`, text, required): The group's name (up to 255 characters).
- Site (`site_id`, number, required): The site the group belongs to.
- Notes (`notes`, text): Notes about the group.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "Id": 1,
      "Name": "example",
      "Notes": "example",
      "ParentSiteId": 1
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Create a site

Create a site in an organization.

**Inputs**

- Name (`name`, text, required): The site's name (up to 255 characters).
- Organization (`organization_id`, number, required): The organization the site belongs to.
- Contact name (`contact_name`, text): The site's contact person.
- Email (`email`, text): The contact's email address.
- Phone (`phone`, text): The contact's phone number.
- Fax (`fax`, text): The contact's fax number.
- Address line 1 (`address_line_1`, text): The first line of the address.
- Address line 2 (`address_line_2`, text): The second line of the address.
- City (`city`, text): The city.
- Zip (`zip`, text): The ZIP or postal code.
- Country code (`country_code`, text): The two-letter country code, such as `US`.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "ContactInformation": {
        "Address1": "example",
        "Address2": "example",
        "City": "example",
        "ContactName": "example",
        "CountryCode": "example",
        "Email": "example",
        "Fax": "example",
        "Phone": "example",
        "Zip": "example"
      },
      "HasCustomFields": true,
      "Id": 1,
      "Name": "example",
      "ParentId": 1,
      "ParentName": "example",
      "PsaIntegrationType": "example",
      "PsaMappingId": 1
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Create an organization

Create an organization.

**Inputs**

- Name (`name`, text, required): The organization's name (up to 255 characters).
- Type (`type`, text): Internal or a customer. Pulseway uses Internal when left empty. One of: `Internal`, `Customer`.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "Id": 1,
      "Name": "example",
      "Type": "example"
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Delete a group

Delete a group.

**Inputs**

- Group (`group_id`, number, required): The group.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Meta": {
      "ResponseCode": 1
    }
  }
}
```

### Delete a notification

Delete a notification, and optionally complete the PSA ticket it opened.

**Inputs**

- Notification ID (`notification_id`, number, required): The notification's ID.
- Complete PSA ticket (`complete_psa_ticket`, true/false): Also complete or resolve the PSA ticket linked to the notification.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Meta": {
      "ResponseCode": 1
    }
  }
}
```

### Delete a site

Delete a site.

**Inputs**

- Site (`site_id`, number, required): The site.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Meta": {
      "ResponseCode": 1
    }
  }
}
```

### Delete an organization

Delete an organization.

**Inputs**

- Organization (`organization_id`, number, required): The organization.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Meta": {
      "ResponseCode": 1
    }
  }
}
```

### Get a device

Get a device's details: its OS, uptime, IP addresses, agent version and notification counts.

**Inputs**

- Device (`device_id`, text, required): The device.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "ClientVersion": "example",
      "ComputerType": "example",
      "CriticalNotifications": 1,
      "Description": "example",
      "ElevatedNotifications": 1,
      "ExternalIpAddress": "example",
      "GroupId": 1,
      "GroupName": "example",
      "HasCustomFields": true,
      "Identifier": "example",
      "InMaintenance": true,
      "IsAgentInstalled": true,
      "IsMdmEnrolled": true,
      "IsOnline": true,
      "LocalIpAddresses": [
        {
          "DhcpEnabled": true,
          "DnsServers": [
            "example"
          ],
          "Gateways": [
            "example"
          ],
          "IpV4": "example",
          "IpV6": "example",
          "Name": "example",
          "PhysicalAddress": "example",
          "SubnetMask": "example"
        }
      ],
      "LowNotifications": 1,
      "Name": "example",
      "NormalNotifications": 1,
      "OrganizationId": 1,
      "OrganizationName": "example",
      "SiteId": 1,
      "SiteName": "example",
      "Uptime": "example"
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Get a device's antivirus status

Get the antivirus protection, definitions, scan and update status of a device.

**Inputs**

- Device (`device_id`, text, required): The device.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "AgentStatus": [
        "example"
      ],
      "DefinitionsStatus": "example",
      "Policy": "example",
      "ProtectionStatus": "example",
      "ScanStatus": "example",
      "UpdateStatus": "example"
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Get a script execution

Get a script run's state, output, exit code and output variables. Details may be missing while the device is offline.

**Inputs**

- Script (`script_id`, text, required): The script that ran.
- Device (`device_id`, text, required): The device.
- Execution ID (`execution_id`, text, required): The execution ID that Run a script returned.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "DurationInSeconds": 1,
      "EndTime": "example",
      "ExitCode": 1,
      "Id": "example",
      "Output": "example",
      "StartTime": "example",
      "State": "example",
      "VariableOutputs": [
        {
          "DataType": "example",
          "Id": 1,
          "Name": "example",
          "Value": "example"
        }
      ]
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Get a task execution

Get a task run's state and how many devices it succeeded and failed on.

**Inputs**

- Execution ID (`execution_id`, number, required): The execution ID that Run a task returned.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "DeviceCount": 1,
      "Duration": "example",
      "EndTime": "example",
      "FailedDeviceCount": 1,
      "Id": 1,
      "StartTime": "example",
      "State": "example",
      "SuccessfulDeviceCount": 1,
      "TaskId": 1
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Get a workflow execution

Get a workflow execution's status and the outcome of each of its steps.

**Inputs**

- Execution ID (`execution_id`, number, required): The workflow execution's ID.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "CompletedAt": "example",
      "ConstantVariableOverrides": [
        {
          "Name": "example",
          "Value": "example"
        }
      ],
      "CreatedAt": "example",
      "ExecutionSteps": [
        {
          "CompletedAt": "example",
          "Outcome": true,
          "OutputItems": [
            {}
          ],
          "Status": "example",
          "UpdatedAt": "example",
          "WorkflowStepId": 1
        }
      ],
      "FolderPath": "example",
      "Id": 1,
      "Status": "example",
      "TargetId": "example",
      "TargetType": "example",
      "TriggerId": "example",
      "TriggerType": "example",
      "WorkflowId": 1
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Get environment information

Get the Pulseway server's version, type and license use.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "CustomerId": "example",
      "CustomerName": "example",
      "Language": "example",
      "License": {},
      "ProductVersion": "example",
      "ServerType": "example"
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### List audit log entries

List audit log entries, newest first.

**Inputs**

- Limit (`top`, number): How many records to return at most (up to 5,000). From 1 to 5000. Default: `100`.
- Skip (`skip`, number): How many records to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": [
      {
        "AuditLogRecordDateTime": "example",
        "AuditLogRecordId": 1,
        "CategoryId": 1,
        "DeviceGroupName": "example",
        "DeviceIdentifier": "example",
        "DeviceName": "example",
        "EventDescription": "example",
        "EventTypeId": 1,
        "ExtraInformation": "example",
        "RequestIpAddress": "example",
        "RequestSource": "example",
        "User": "example",
        "UserAgentDevice": "example",
        "UserAgentDeviceId": "example"
      }
    ],
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### List devices

List the devices Pulseway manages, by name, with filters for the organization, site, group, name and whether they're online.

**Inputs**

- Name contains (`name_contains`, text): Only devices whose name contains this text (not case-sensitive).
- Organization (`organization_id`, number): Only devices in this organization.
- Site (`site_id`, number): Only devices in this site.
- Group (`group_id`, number): The group.
- Online (`is_online`, true/false): Only devices that are online (on) or offline (off). Leave empty for both.
- Scope ID (`scope_id`, number): Only devices in this Pulseway scope (its numeric ID).
- Limit (`top`, number): How many records to return at most (up to 5,000). From 1 to 5000. Default: `100`.
- Skip (`skip`, number): How many records to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": [
      {
        "GroupId": 1,
        "GroupName": "example",
        "HasCustomFields": true,
        "Identifier": "example",
        "IsAgentInstalled": true,
        "IsMdmEnrolled": true,
        "IsOnline": true,
        "Name": "example",
        "OrganizationId": 1,
        "OrganizationName": "example",
        "SiteId": 1,
        "SiteName": "example"
      }
    ],
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### List groups

List the active groups devices belong to, by name.

**Inputs**

- Limit (`top`, number): How many records to return at most (up to 100). From 1 to 100. Default: `100`.
- Skip (`skip`, number): How many records to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": [
      {
        "HasCustomFields": true,
        "Id": 1,
        "IsActive": true,
        "Name": "example",
        "Notes": "example",
        "ParentOrganizationId": 1,
        "ParentOrganizationName": "example",
        "ParentSiteId": 1,
        "ParentSiteName": "example",
        "PsaIntegrationType": "example",
        "PsaMappingId": 1
      }
    ],
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### List notifications

List notifications, newest first, optionally only those of one priority.

**Inputs**

- Priority (`priority`, text): Only notifications of this priority. One of: `Low`, `Normal`, `Elevated`, `Critical`.
- Limit (`top`, number): How many records to return at most (up to 5,000). From 1 to 5000. Default: `100`.
- Skip (`skip`, number): How many records to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": [
      {
        "DateTime": "example",
        "Id": 1,
        "Message": "example",
        "Priority": "example"
      }
    ],
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### List organizations

List organizations, by name.

**Inputs**

- Limit (`top`, number): How many records to return at most (up to 100). From 1 to 100. Default: `100`.
- Skip (`skip`, number): How many records to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": [
      {
        "Access": [
          {
            "AccessLevel": "example",
            "TeamName": "example"
          }
        ],
        "HasCustomFields": true,
        "Id": 1,
        "Name": "example",
        "PsaIntegrationType": "example",
        "PsaMappingId": 1,
        "PsaNotificationType": "example",
        "PsaQueueName": "example",
        "Type": "example"
      }
    ],
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### List scripts

List automation scripts, by name.

**Inputs**

- Limit (`top`, number): How many records to return at most (up to 100). From 1 to 100. Default: `100`.
- Skip (`skip`, number): How many records to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": [
      {
        "CategoryId": 1,
        "CategoryName": "example",
        "CreatedBy": "example",
        "Description": "example",
        "FolderPath": "example",
        "Id": "example",
        "IsBuiltIn": true,
        "Name": "example",
        "Platforms": [
          "example"
        ]
      }
    ],
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### List sites

List sites, by name.

**Inputs**

- Limit (`top`, number): How many records to return at most (up to 100). From 1 to 100. Default: `100`.
- Skip (`skip`, number): How many records to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": [
      {
        "ContactInformation": {
          "Address1": "example",
          "Address2": "example",
          "City": "example",
          "ContactName": "example",
          "CountryCode": "example",
          "Email": "example",
          "Fax": "example",
          "Phone": "example",
          "Zip": "example"
        },
        "HasCustomFields": true,
        "Id": 1,
        "Name": "example",
        "ParentId": 1,
        "ParentName": "example",
        "PsaIntegrationType": "example",
        "PsaMappingId": 1
      }
    ],
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### List tasks

List automation tasks, by name.

**Inputs**

- Limit (`top`, number): How many tasks to return at most (up to 100). From 1 to 100. Default: `100`.
- Skip (`skip`, number): How many records to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": [
      {
        "ContinueOnError": true,
        "Description": "example",
        "ExecutionState": "example",
        "FolderPath": "example",
        "Id": 1,
        "IsBuiltIn": true,
        "IsEnabled": true,
        "IsScheduled": true,
        "Name": "example",
        "ScopeId": 1,
        "ScopeName": "example",
        "TotalScripts": 1,
        "UpdatedAt": "example"
      }
    ],
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### List workflow executions

List running and recently finished workflow executions, newest first.

**Inputs**

- Limit (`top`, number): How many executions to return at most (up to 100). From 1 to 100. Default: `100`.
- Skip (`skip`, number): How many records to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": [
      {
        "CompletedAt": "example",
        "ConstantVariableOverrides": [
          {
            "Name": "example",
            "Value": "example"
          }
        ],
        "CreatedAt": "example",
        "FolderPath": "example",
        "Id": 1,
        "Status": "example",
        "TargetId": "example",
        "TargetType": "example",
        "TriggerId": "example",
        "TriggerType": "example",
        "WorkflowId": 1
      }
    ],
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### List workflows

List automation workflows, by name.

**Inputs**

- Limit (`top`, number): How many records to return at most (up to 5,000). From 1 to 5000. Default: `100`.
- Skip (`skip`, number): How many records to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": [
      {
        "ContextItemId": "example",
        "ContextType": "example",
        "Description": "example",
        "FolderPath": "example",
        "Id": 1,
        "IsEnabled": true,
        "Name": "example",
        "TriggerSubType": "example",
        "TriggerType": "example",
        "UpdatedAt": "example"
      }
    ],
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Move a device to another group

Move a device to a different group.

**Inputs**

- Device (`device_id`, text, required): The device.
- Group (`group_id`, number, required): The group.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "DeviceIdentifier": "example",
      "GroupId": 1,
      "GroupName": "example"
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Publish a custom device

Register or update a custom device (a Pulseway instance for a system without the agent, such as a website). Publishing the same instance ID again updates it.

**Inputs**

- Instance ID (`instance_id`, text, required): A unique ID you choose for the instance (up to 100 characters). Use the same ID to update it.
- Name (`name`, text): The instance's name (up to 100 characters).
- Group (`group_id`, number, required): The group.
- Description (`description`, text): Shown under the instance's name (up to 255 characters).
- Offline after (minutes) (`offline_after_minutes`, number): Mark the instance offline if it isn't published again within this many minutes. 0 turns this off. At least 0.
- Notify when offline (`notify_when_offline`, true/false): Send a notification when the instance goes offline (needs Offline after).

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "Identifier": "example"
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Run a script

Run an automation script on an online device. Returns the execution's ID, for Get a script execution.

**Inputs**

- Script (`script_id`, text, required): The script to run.
- Device (`device_id`, text, required): The device to run it on. It must be online.
- Variable ID (`variable_id`, number): The ID of a script input variable to set for this run.
- Variable value (`variable_value`, text): The value for that variable.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "ExecutionId": "example"
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Run a task

Run an automation task on chosen devices, or on its own scope when none are chosen. Returns the execution's ID.

**Inputs**

- Task (`task_id`, number, required): The task to run.
- Devices (`device_ids`, list): The devices to run it on. Leave empty to use the task's own scope.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "Id": 1
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Run a workflow

Run an automation workflow on chosen devices, or on its own scope when none are chosen. A device already running it is listed under existing executions.

**Inputs**

- Workflow (`automation_workflow`, number, required): The workflow to run.
- Devices (`device_ids`, list): The devices to run it on. Leave empty to use the workflow's own scope.
- Variable name (`variable_name`, text): The name of a constant variable to override for this run (a Get Device Value step with a constant value).
- Variable value (`variable_value`, text): The value for that variable.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "ExistingExecutions": [
        {
          "ConstantVariableOverrides": [
            {
              "Name": "example",
              "Value": "example"
            }
          ],
          "CreatedAt": "example",
          "ExecutionId": 1,
          "TargetId": "example",
          "TargetType": "example"
        }
      ],
      "NewExecutions": [
        {
          "ConstantVariableOverrides": [
            {
              "Name": "example",
              "Value": "example"
            }
          ],
          "CreatedAt": "example",
          "ExecutionId": 1,
          "TargetId": "example",
          "TargetType": "example"
        }
      ]
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Send a notification

Create a notification for a custom device instance; Pulseway pushes it to the people who get its notifications.

**Inputs**

- Instance ID (`instance_id`, text, required): The instance ID of the custom device the notification is about (the one used to publish it).
- Title (`title`, text, required): The notification's title, shown in the push notification.
- Message (`message`, text): The notification's details (up to 5,000 characters). Defaults to the title.
- Priority (`priority`, text): How urgent the notification is. Pulseway uses Normal when left empty. One of: `Low`, `Normal`, `Elevated`, `Critical`.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "NotificationId": 1
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Update a group

Rename a group or change its notes.

**Inputs**

- Group (`group_id`, number, required): The group.
- Name (`name`, text, required): The group's name (up to 255 characters).
- Notes (`notes`, text): Notes about the group.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "Id": 1,
      "Name": "example",
      "Notes": "example",
      "ParentSiteId": 1
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```

### Update an organization

Rename an organization or change its type.

**Inputs**

- Organization (`organization_id`, number, required): The organization.
- Name (`name`, text, required): The organization's name (up to 255 characters).
- Type (`type`, text): Internal or a customer. One of: `Internal`, `Customer`.

**Outputs**

- `data` (object): The response from Pulseway.

**Example output**

```json
{
  "data": {
    "Data": {
      "Id": 1,
      "Name": "example",
      "Type": "example"
    },
    "Meta": {
      "NextQueryLink": "example",
      "ResponseCode": 1,
      "TotalCount": 1
    }
  }
}
```
