Wordpress REST API custom endpoint for method POST
in your callback function you can use something like this:
$param = $request->get_param( 'some_param' ); // You can get the combined, merged set of parameters: $parameters = $request->get_params();
https://www.coditty.com/code/wordpress-api-custom-route-access-post-parameters