2.1.3 - 2025-11-25
- Support for MFA with
smsapi.mfa.generateCode()andsmsapi.mfa.verifyCode().
- Better error handling. Now we return HTTP status code and response from API.
2.1.2 - 2025-09-12
- Replaced form-data package with native FormData. (Accidentally pushed code from v2.1.0 instead of v2.1.1).
- Dependencies update.
2.1.1 - 2025-07-29
- Replaced form-data package with native FormData.
2.1.0 - 2025-07-28
Dropped support for Node <18.
- Replaced axios with fetch.
- Dependencies update.
2.0.15 - 2025-05-13
- Possibility to set specific service url.
const smsapi = new SMSAPI('oAuthToken', 'https://ssl.smsapi.com/api');2.0.14 - 2024-10-02
- Dependencies update.
2.0.13 - 2024-01-09
- Dependencies update.
2.0.12 - 2023-12-04
- Dependencies update.
2.0.11 - 2023-11-09
- Removed lodash.
2.0.10 - 2023-11-09
- Dependencies update.
2.0.9 - 2023-09-14
- Build
2.0.8 - 2023-09-12
- Bug with converting message's
date_senttoDate - Changed hlr request method from GET to POST.
2.0.7 - 2023-07-17
- Replaced tsdx with tsup.
- Dependencies update.
2.0.6 - 2023-01-09
- Dependencies update.
2.0.5 - 2022-12-08
- Dependencies update.
2.0.4 - 2021-08-13
- Dependencies update.
2.0.3 - 2021-07-08
- Dependencies update.
2.0.2 - 2021-04-20
test:watchnpm script andmake test--watch.
- Error handling.
2.0.1 - 2021-01-15
- Updated
tsconfig.json.
2.0.0 - 2021-01-14
In version 2.0 we've rewritten library and introduced long awaited TypeScript support. We also introduced support of smsapi.io - a proxy which simplifies logging into both smsapi.pl and smsapi.com services. For all changes details check the list below.
- TypeScript support.
- Support for
https://smsapi.io. One service forhttps://api.smsapi.plandhttps://api.smsapi.com. smsapi.sms.sendFlashSms()smsapi.sms.sendFlashSmsToGroup()smsapi.sendernames.getBySender()
new SMSAPI()now accepts OAuth token as argument instead of options object.smsapi.hlr.check()now can handle array of phone numbers and array of idx as second argument.- Replaced
smsapi.contacts.list()withsmsapi.contacts.get(). - Replaced
smsapi.contacts.add()withsmsapi.contacts.create(). - Updated
smsapi.contacts.update()to accepts object of fields to update as second argument. - Replaced
smsapi.contacts.delete()withsmsapi.contacts.remove(). - Replaced
smsapi.contacts.groups.assignments.list()withsmsapi.contacts.getGroups(). - Replaced
smsapi.contacts.groups.assignments.get()withsmsapi.contacts.getGroupById(). - Replaced
smsapi.contacts.groups.assignments.add()withsmsapi.contacts.assignContactToGroup(). - Replaced
smsapi.contacts.groups.assignments.delete()withsmsapi.contacts.unpinContactFromGroup(). - Replaced
smsapi.contacts.fields.list()withsmsapi.contacts.fields.get(). - Replaced
smsapi.contacts.fields.add()withsmsapi.contacts.fields.create(). - Updated
smsapi.contacts.fields.update()to accepts field's name as second argument. - Replaced
smsapi.contacts.fields.delete()withsmsapi.contacts.fields.remove(). - Replaced
smsapi.contacts.groups.list()withsmsapi.contacts.groups.get(). - Replaced
smsapi.contacts.groups.add()withsmsapi.contacts.groups.create(). - Replaced
smsapi.contacts.groups.get()withsmsapi.contacts.groups.getById(). - Updated
smsapi.contacts.groups.update()to accepts group's name and description in options object as second argument. - Replaced
smsapi.contacts.groups.delete()withsmsapi.contacts.groups.remove(). - Replaced
smsapi.contacts.groups.members.add()withsmsapi.contacts.assignContactToGroup(). - Replaced
smsapi.contacts.groups.members.delete()withsmsapi.contacts.unpinContactFromGroup(). - Replaced
smsapi.message.sms().to()withsmsapi.sms.sendSms(). - Replaced
smsapi.message.sms().group()withsmsapi.sms.sendSmsToGroup(). - Replaced
smsapi.message.delete()withsmsapi.sms.removeScheduledSms(). - Replaced
smsapi.message.mms().to()withsmsapi.sms.sendMms(). - Replaced
smsapi.message.mms().group()withsmsapi.mms.sendMmsToGroup(). - Replaced
smsapi.message.vms().to().tts()withsmsapi.sms.sendVms(). - Replaced
smsapi.message.vms().group().tts()withsmsapi.mms.sendVmsToGroup(). - Replaced
smsapi.message.vms().to().localFile()withsmsapi.sms.sendVmsWithLocalFile(). - Replaced
smsapi.message.vms().group().localFile()withsmsapi.mms.sendVmsWithLocalFileToGroup(). - Replaced
smsapi.message.vms().to().remoteFile()withsmsapi.sms.sendVmsWithRemoteFile(). - Replaced
smsapi.message.vms().group().remoteFile()withsmsapi.mms.sendVmsWithRemoteFileToGroup(). - Replaced
smsapi.sender.list()withsmsapi.sendernames.get(). - Replaced
smsapi.sender.add()withsmsapi.sendernames.create(). - Replaced
smsapi.sender.default()withsmsapi.sendernames.makeDefault(). - Replaced
smsapi.sender.delete()withsmsapi.sendernames.remove(). - Replaced
smsapi.template.list()withsmsapi.templates.get(). - Replaced
smsapi.template.get()withsmsapi.templates.getById(). - Replaced
smsapi.template.add()withsmsapi.templates.create(). - Replaced
smsapi.template.update()withsmsapi.templates.update(). - Replaced
smsapi.template.delete()withsmsapi.templates.remove(). - Replaced
smsapi.user.list()withsmsapi.subusers.get(). - Replaced
smsapi.user.get()withsmsapi.subusers.getById(). - Replaced
smsapi.user.add()withsmsapi.subusers.create(). - Replaced
smsapi.user.update()withsmsapi.subusers.update(). - Replaced
smsapi.user.delete()withsmsapi.subusers.remove().
- Support for username/password authorization.
smsapi.points.get()- instead use response ofsmsapi.profile.get().smsapi.contacts.groups.list().name()smsapi.contacts.groups.list().id()- instead usesmsapi.contacts.groups.getById().smsapi.contacts.groups.permissionssmsapi.contacts.groups.members.get()smsapi.sender.status()- instead usesmsapi.sendernames.getBySender()and checkstatusin returned object.