How to send a SMS from Total.js?
This blog post describes how to send a SMS from Total.js framework using Nexmo SMS API.

- create an account on Nexmo SMS API (cheap SMS)
- get
keyandsecret
Edit your application's /config:
nexmo-key : YOUR KEY
nexmo-secret : YOUR SECRET
nexmo-sender : Total.jsCreate a definition file e.g. /definitions/sms.js:
F.sms = function(number, message, callback) {
RESTBuilder.make(function(builder) {
builder.url('https://rest.nexmo.com/sms/json?api_key={0}&api_secret={1}&from={2}&to={3}&text={4}&type=unicode'.format(F.config['nexmo-key'], F.config['nexmo-secret'], encodeURIComponent(F.config['nexmo-sender']), number, encodeURIComponent(message)));
builder.exec(function(err, response) {
LOGGER('sms', 'response:', JSON.stringify(response), 'error:', err);
callback && callback(err, response['message-count'] > 0);
});
});
return F;
};Sending SMS from anywhere in the code:
F.sms('+421903163302', 'Hello Peter from Total.js');
// or
F.sms('+421903163302', 'Hello Peter from Total.js', (err, sent) => console.log(err, sent));Keep reading
Using AI for Traffic Analysis and Smart Parking Monitoring
Discover how AI, NVIDIA Jetson AGX, and Total.js IoT transform camera data into traffic insights and automated parking occupancy monitoring.
Total.js Platform and NVIDIA DeepStream: Automated AI Video Anonymization
Discover how we combined Total.js Platform, Total.js Flow, and NVIDIA DeepStream to build a scalable, GPU-accelerated video anonymization system for a major enterprise customer. Explore how we process large volumes of video recordings, automate workflows across multiple locations, and manage AI-powered anonymization through a centralized interface.
October report 2026
A quick overview of all changes and news from the entire Total.js Platform. Read more about our work.
Node.js Security Vulnerabilities
Recent Node.js security updates have addressed serious vulnerabilities, including an issue in Brotli decompression. The news is particularly interesting because AI-assisted security research helped uncover a flaw in technology used by applications around the world.
September report 2026
A quick overview of all changes and news from the entire Total.js Platform. Read more about our work.
August report 2026
A quick overview of all changes and news from the entire Total.js Platform. Read more about our work.
How to write better Total.js Applications using AI?
Learn how to make AI coding agents write better, more native Total.js applications!
July report 2026
A quick overview of all changes and news from the entire Total.js Platform. Read more about our work.
Total.js AIModel: a practical foundation for AI-powered workflows
How Total.js helps developers integrate AI models into real applications with routing, actions, streaming, tools, validation, and business logic in one coherent stack.
June report 2026
A quick overview of all changes and news from the entire Total.js Platform. Read more about our work.