Note: The response does not contain the encrypted portion of the key. See Decrypt User API Key See Using Global API Keys for more information on permission and scope requirements.
Successful Operation
Invalid Request
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = 'https://console.automox.com/api/users/{98765}/api_keys/999999?o=0000' $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers -ContentType "application/json").Content
{- "results": [
- {
- "id": 98765,
- "name": "Jane",
- "is_enabled": true,
- "expires_at": null,
- "created_at": "2023-04-20T15:46:56+0000",
- "user": {
- "id": 65432,
- "firstname": "Jane",
- "lastname": "Doe",
- "email": "jane.doe@example.com"
}
}
], - "size": 1
}