PREREQUISITES: You must have Full Administrator privileges! This endpoint allows you to list all keys for an organization.
limit | integer [ 1 .. 500 ] Default: 500 A limit on the number of results to be returned, between 1 and 500, with a default of 500. Use with |
page | integer Default: 0 The page of results you wish to be returned with page numbers starting at 0. See About Automox API - Pagination |
Successful Operation
Invalid Request
Access token is missing or invalid
You do not have permission to perform this action.
Entity not found
Too many requests
Service Unavailable
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = "https://console.automox.com/api/orgs/{0000}/api_keys" $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
{- "results": [
- {
- "id": 0,
- "name": "string",
- "is_enabled": true,
- "expires_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "user": {
- "id": 0,
- "firstname": "string",
- "lastname": "string",
- "email": "user@example.com"
}
}
], - "size": 0
}