Retrieves a list of API key objects for a user

Returns a list of API keys for the given user under the requested organization. This response does not include the encrypted portion of the key.

Request
Security:
path Parameters
userId
required
integer

User ID of the user to retrieve API key objects

query Parameters
o
required
integer

The Organization of the user.

page
integer
Default: 0

The page of results you wish to be returned with page numbers starting at 0. See About Automox API - Pagination

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 parameter. See About Automox API - Pagination

Responses
200

Successful Operation

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

get/users/{userId}/api_keys
Request samples
$apiKey = 'your_automox_api_key'

$headers = @{ "Authorization" = "Bearer $apiKey" }


$url = "https://console.automox.com/api/users/{98765}/api_keys?o=0000&page=0&limit=25"


$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
Response samples
application/json
{
  • "size": 0,
  • "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": "string"
        }
      }
    ]
}