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.GetAPIResponse;@RestControllerpublicclassAPIController{privatestaticIAPIService apiService =newAPIService();@GetMapping("/keys")publicListKeysResponselistKeys(@RequestParamString apiId,@RequestBody(required =false)ListKeysRequest listKeyRquest,@RequestHeader("Authorization")String authToken){// Delegate the creation of the key to the IAPIService from the SDKreturn iapiService.listKeys(listKeyRquest, apiId, authToken);}}