Official TurkeySMS Node.js Library — High-performance, asynchronous SMS & OTP integration for modern JavaScript server environments and high-traffic APIs.
Install via npm:
npm install turkeysms-nodeconst TurkeySmsClient = require('turkeysms-node');
const client = new TurkeySmsClient('your_api_key_here');async function send() {
try {
const response = await client.sendSms('SENDER', '905xxxxxxxxx', 'Hello from Node.js!');
console.log(response);
} catch (error) {
console.error(error);
}
}
send();const response = await client.sendOtp('905xxxxxxxxx', 1, 4);const response = await client.sendDetailedOtp('SENDER', '905xxxxxxxxx', 'Code: TS-CODE', 1);const balance = await client.getBalance();
console.log(`Balance: ${balance.balance}`);For security issues, please contact support@turkeysms.com.tr.
The MIT License (MIT). Please see License File for more information.
© 2026 TurkeySMS Bilişim ve İletişim Hizmetleri Tic. Ltd. Şti.