$APIToken = 'szjxBgQNQSW1xq2ByjKB' $APIUrl = 'https://app3.archisnapper.com/api/public/v1/' $url_APIToken = '?auth_token='+$APIToken $header = @{ auth_token = $APIToken } | ConvertTo-Json # get list of projects $URI = $APIUrl+'sites.json'+$url_APIToken $response = Invoke-WebRequest -Uri $URI -Method Get $ProjectList = $response.Content | convertfrom-json