Outbound authentication using a token
reference brazil Updated Sep 10, 2026 1 min read ccci-outbound-auth.md
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
47 lines · 1.7 KB
---
title: Outbound authentication using a token
description: Pass an outbound token from the authentication API to the sender script.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/conversational-interfaces/virtual-agent/ccci-outbound-auth.html
release: brazil
product: Virtual Agent
classification: virtual-agent
topic_type: reference
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Supported features for custom chat integrations, Create custom chat integrations, Configure, Virtual Agent, Conversational Interfaces]
---
# Outbound authentication using a token
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
```
(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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/conversational-interfaces/virtual-agent/va-features-custom-chat-integrations.md)
| title | Outbound authentication using a token |
| description | Pass an outbound token from the authentication API to the sender script. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/conversational-interfaces/virtual-agent/ccci-outbound-auth.html |
| release | brazil |
| product | Virtual Agent |
| classification | virtual-agent |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Supported features for custom chat integrationsCreate custom chat integrationsConfigureVirtual AgentConversational Interfaces |