AnsweredAssumed Answered

Custom Endpoints - noLoginRequired = true not working.

Question asked by Mehul Bhandari on Apr 13, 2019
Latest reply on Apr 16, 2019 by Mehul Bhandari

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

url: 'rest/v10/GetBulkSMSBody',
type: 'POST',
data: {modulefrom: 'Leads', recid: id_array.toString()},
success: function (get_body) {