Outbound authentication using a token

reference brazil Updated Sep 10, 2026 1 min read ccci-outbound-auth.md
Raw file servicenow.com

Pass an outbound token from the authentication API to the sender script.

Secure fields contain the maskType metadata field as "SECURE". The client can handle the following script appropriately.

Example: Outbound authentication token script

JavaScript
(function execute(inputs, outputs) {    try {        var results = inputs.result;                var sendInputs = {            app_inbound_id : inputs["app_inbound_id"],            channel_user_id: inputs["channel_user_id"],            messages: JSON.stringify(results)        };
        sn_fd.FlowAPI.startSubflowQuick('sn_va_sms_twilio.va_sms_twilio_adapter_send_sms', sendInputs);        //return sn_fd.FlowAPI.executeActionQuick('sn_va_sms_twilio.va_sms_twilio_adapter_sender_handler', sendInputs);

    } catch (e) {        gs.error("Messages: " + JSON.stringify(sendInputs));        gs.error("Error is twilio sms sender : " + e.message);    }})(inputs, outputs);

Parent Topic:Supported Virtual Agent and Agent Chat features for custom chat integrations

Search documentation
Search document titles and file paths on the brazil branch