Pass the optional and required parameters as per the official API docs. See the DTO reference below for more information.
packagecom.example.myapp;importcom.unkey.unkeysdk.dto.KeyVerifyRequest;importcom.unkey.unkeysdk.dto.KeyVerifyResponse;@RestControllerpublicclassAPIController{privatestaticIKeyService keyService =newKeyService();@PostMapping("/verify")publicKeyVerifyResponseverifyKey(@RequestBodyKeyVerifyRequest keyVerifyRequest){// Delegate the creation of the key to the KeyService from the SDKreturn keyService.verifyKey(keyVerifyRequest);}}