Retrieve information about an existing API key (not the key itself).
POST /json/retrieveApiKey
[
'result' => 'success',
'data' => [
'api_key_id' => 'KEY123',
'description' => 'Production Server',
'created_at' => '2025-01-15 10:30:00',
'last_used_at' => '2025-10-15 14:25:00',
'is_active' => true,
'permissions' => ['read', 'write'],
'rate_limit' => 1000,
'requests_today' => 450
]
]
use GoSuccess\Digistore24\Api\Digistore24;
use GoSuccess\Digistore24\Api\Client\Configuration;
// Initialize API client
$config = new Configuration('YOUR-API-KEY');
$api = new Digistore24($config);
// Get API key information
$response = $api->apiKey()->retrieveApiKey(
apiKeyId: 'KEY123'
);
echo "Description: {$response->description}\n";
echo "Created: {$response->createdAt}\n";
echo "Last used: {$response->lastUsedAt}\n";
echo "Requests today: {$response->requestsToday}/{$response->rateLimit}\n";