REST Message – Outbound
Another method for outbound is REST Message. Create a REST message and trigger it from the ServiceNow system.
For example, we can take any third-party application. Example:- https://documenter.getpostman.com/


Code to use in BR or UI Action:
try {
var r = new sn_ws.RESTMessageV2('TestAPI', 'SendData');
r.setStringParameterNoEscape('short_description', 'test');
r.setStringParameterNoEscape('number', 'inc001');
var response = r.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
}
catch(ex) {
var message = ex.message;
}