Retrieve information for a specific account. See Using Global API Keys for more information on permission and scope requirements.
Successful Operation
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" "Content-Type" = "application/json" } $url = "https://console.automox.com/api/accounts/{accountId}" $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
Example of an Automox account object
{- "id": "a18afd39-1182-4a78-8cd9-b410b9de2ea0",
- "name": "Test GZM",
- "type": "normal",
- "created_at": "2021-10-20T04:03:25+0000",
- "updated_at": "2021-10-20T04:03:25+0000"
}