Decrypt User API Key

This endpoint allows you to decrypt the API key for an authenticated user.

Request
Security:
path Parameters
userId
required
integer

The ID of the user to decrypt keys for.

id
required
integer

The ID of the API key to decrypt

query Parameters
o
required
integer

The Organization of the user.

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

post/users/{userId}/api_keys/{id}/decrypt
Request samples
$apiKey = 'your_automox_api_key'
$headers = @{ "Authorization" = "Bearer $apiKey" }

$url = 'https://console.automox.com/api/users/{98765}/api_keys/999999/decrypt?o=0000'

$response = (Invoke-WebRequest -Method Post -Uri $url -Headers $headers -ContentType "application/json").Content
Response samples
application/json
{
  • "api_key": "string"
}