code: public ApiResponse<TargetsResponse> getTargetWithHttpInfo(BigDecimal id, String type) throws ApiException {
          com.squareup.okhttp.Call call = getTargetValidateBeforeCall(id, type, null, null);
          Type localVarReturnType = new TypeToken<TargetsResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Get a target
  Get a specific target by type and ID. Targets can be agents, agent groups, queues, route points, skills, and custom contacts.
  @param id The ID of the target. (required)
  @param type The type of target to retrieve. (required)
  @return ApiResponse&lt;TargetsResponse&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body