I have been able to create a custom endpoint following the code below for wordpress
function handle_woocommerce_keys($request){ $user_id = $request[user_i