Powershell module for Datto API interaction
Install-Module Datto-API
Import-Module Datto-API
$Token = New-DattoAPIToken -APIKey "1234567" -APISecretKey "asdfasdfasdf"
$Sites = Get-DattoSites -APIToken $Token
$SiteDevices = Get-DattoDevices -APIKey $Token -SiteUID $SiteUID
$AllDevices = Get-DattoSites -APIKey $Token | Get-DattoDevices -APIKey $Token