Custom Endpoints - noLoginRequired = true not working.

Hello Folks

I have created my custom EndPoint where if 

noLoginRequired = true then its working but current_user id not getting.

If I change that 

noLoginRequired = false then its showing below error

error: "need_login", error_message: "No valid authentication for user."}
'GetBulkSMSBodyEndpoint' => array(
'reqType' => 'POST',
'noLoginRequired' => false,
'path' => array('GetBulkSMSBody'),
'pathVars' => array(''),
'method' => 'GetBulkSMSBody',
'shortHelp' => '',
'longHelp' => '',
),

Let me know what i have did wrong.. Calling this Endpoint from js

$.ajax({
url: 'rest/v10/GetBulkSMSBody',
type: 'POST',
data: {modulefrom: 'Leads', recid: id_array.toString()},
success: function (get_body) {
console.log(get_body);
$("#bulk_dashboardDialog").empty();
$("#bulk_dashboardDialog").append(get_body['res_data']);
}
});