getCredential->run('vikon_api'); if (!$credential || empty($credential->payload['token'])) { throw new \RuntimeException('VIKON API token not configured. Add it in /dashboard/integration-credentials.'); } return $credential->payload['token']; } public function apiUrl(): string { $credential = $this->getCredential->run('vikon_api'); return $credential->payload['api_url'] ?? self::FALLBACK_API_URL; } }